=head1 NAME

Gtk2::ToggleAction

=cut

=for position SYNOPSIS

=head1 SYNOPSIS

  my $action = Gtk2::ToggleAction->new (name => 'one',
                                        tooltip => 'One');

=for position DESCRIPTION

=head1 DESCRIPTION

Note that C<new> is the plain L<Glib::Object> C<new> (see
L<Gtk2::Action>).  The name, label, tooltip and stock_id arguments of
the C code C<gtk_toggle_action_new()> can be given as key/value pairs,
plus other property values like active or sensitive.

=cut



=head1 HIERARCHY

  Glib::Object
  +----Gtk2::Action
       +----Gtk2::ToggleAction



=cut

=head1 INTERFACES

  Gtk2::Buildable



=cut


=head1 METHODS

=head2 boolean = $action-E<gt>B<get_active> 

=head2 $action-E<gt>B<set_active> ($is_active)

=over

=item * $is_active (boolean) 

=back

=head2 boolean = $action-E<gt>B<get_draw_as_radio> 

=head2 $action-E<gt>B<set_draw_as_radio> ($draw_as_radio)

=over

=item * $draw_as_radio (boolean) 

=back

=head2 $action-E<gt>B<toggled> 



=cut


=head1 PROPERTIES

=over

=item 'active' (boolean : default false : readable / writable / private)

If the toggle action should be active in or not

=item 'draw-as-radio' (boolean : default false : readable / writable / private)

Whether the proxies for this action look like radio action proxies

=back



=cut


=head1 SIGNALS

=over

=item B<toggled> (Gtk2::ToggleAction)

=back



=cut


=head1 SEE ALSO

L<Gtk2>, L<Glib::Object>, L<Gtk2::Action>


=cut


=head1 COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See L<Gtk2> for a full notice.



=cut

