Gtk2::ToggleAction3pm
Wrapper for gtktoggleaction
Usage
my $action = Gtk2::ToggleAction->new (name => 'one',tooltip => 'One');
Overview
Note that "new" is the plain Glib::Object "new" (see Gtk2::Action). The name, label, tooltip and stock_id arguments of the C code "gtk_toggle_action_new()" can be given as key/value pairs, plus other property values like active or sensitive.
Hierarchy
Glib::Object+----Gtk2::Action+----Gtk2::ToggleAction
Interfaces
Gtk2::Buildable
Methods
boolean = $action->get_active
$action->set_active ($is_active)
- •
-
$is_active(boolean)
boolean = $action->get_draw_as_radio
$action->set_draw_as_radio ($draw_as_radio)
- •
-
$draw_as_radio(boolean)
$action->toggled
Properties
'active' (boolean : default false : readable / writable / private)
|
If the toggle action should be active in or not |
|---|---|
'draw-as-radio' (boolean : default false : readable / writable / private)
|
Whether the proxies for this action look like radio action proxies |
Signals
toggled(Gtk2::ToggleAction)
Releases
7 releases since Debian 3.1 (Sarge); the text changed 6 times.