Gtk2::Button Glib::Object +----Glib::Object::_Unregistered::GInitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::Bin +----Gtk2::Button Glib::Object::_Unregistered::AtkImplementorIface Mnemonics are "memory aids"; in GTK+, a mnemonic is an underlined character which corresponds to a keyboard accelerator. For a button, that means pressing Alt and that key activates the button. For convenience, Gtk2-Perl uses mnemonics by default on widgets that support them. If characters in label string are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use '__' (two underscores). If you don't want to use mnemonics at all, use the non-mnemonic version explicitly (e.g. "Gtk2::Button::new_with_label").

widget = Gtk2::Button->new

widget = Gtk2::Button->new ($mnemonic)

widget = Gtk2::Button->new_from_stock ($stock_id)
specified stock item, see Gtk2::Stock

widget = Gtk2::Button->new_with_label ($label)

widget = Gtk2::Button->new_with_mnemonic ($mnemonic)

(xalign, yalign) = $button->get_alignment

$button->set_alignment ($xalign, $yalign)

$button->clicked

$button->enter

boolean = $button->get_focus_on_click

$button->set_focus_on_click ($focus_on_click)

widget or undef = $button->get_image

$button->set_image ($image)

string = $button->get_label

$button->set_label ($label)

$button->leave

$button->pressed

$button->released

reliefstyle = $button->get_relief

$button->set_relief ($newstyle)

boolean = $button->get_use_stock

$button->set_use_stock ($use_stock)

boolean = $button->get_use_underline

$button->set_use_underline ($use_underline)
Whether the button grabs focus when it is clicked with the mouse Child widget to appear next to the button text Text of the label widget inside the button, if the button contains a label widget The border relief style If set, the label is used to pick a stock item instead of being displayed If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key Horizontal position of child in available space. 0.0 is left aligned, 1.0 is right aligned Vertical position of child in available space. 0.0 is top aligned, 1.0 is bottom aligned

enum Gtk2::ReliefStyle
Gtk2, Glib::Object, Glib::Object::_Unregistered::GInitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin Copyright (C) 2003-2005 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice.