|
NAMEGtk2::Button - wrapper for GtkButtonHIERARCHYGlib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::Bin +----Gtk2::Button INTERFACESGlib::Object::_Unregistered::AtkImplementorIface Gtk2::Buildable Gtk2::Activatable MNEMONICSMnemonics 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"). METHODSwidget = Gtk2::Button->newwidget = 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_alignmentSince: gtk+ 2.4$button->set_alignment ($xalign, $yalign)
Since: gtk+ 2.4 $button->clicked$button->enterwindow or undef = $button->get_event_windowSince: gtk+ 2.22boolean = $button->get_focus_on_clickSince: gtk+ 2.4$button->set_focus_on_click ($focus_on_click)
Since: gtk+ 2.4 widget or undef = $button->get_imageSince: gtk+ 2.6positiontype = $button->get_image_positionSince: gtk+ 2.10$button->set_image_position ($position)
Since: gtk+ 2.10 $button->set_image ($image)
Since: gtk+ 2.6 string = $button->get_label$button->set_label ($label)
$button->leave$button->pressed$button->releasedreliefstyle = $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)
PROPERTIES
STYLE PROPERTIES
SIGNALS
ENUMS AND FLAGSenum Gtk2::PositionType
enum Gtk2::ReliefStyle
SEE ALSOGtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::BinCOPYRIGHTCopyright (C) 2003-2011 by the gtk2-perl team.This software is licensed under the LGPL. See Gtk2 for a full notice.
Visit the GSP FreeBSD Man Page Interface. |