1Gtk2::ToolButton(3)   User Contributed Perl Documentation  Gtk2::ToolButton(3)
2
3
4

NAME

6       Gtk2::ToolButton
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::Container
14                             +----Gtk2::Bin
15                                  +----Gtk2::ToolItem
16                                       +----Gtk2::ToolButton
17

INTERFACES

19         Glib::Object::_Unregistered::AtkImplementorIface
20         Gtk2::Buildable
21         Glib::Object::_Unregistered::GtkActivatable
22

METHODS

24   toolitem = Gtk2::ToolButton->new ($icon_widget, $label)
25           ·   $icon_widget (Gtk2::Widget or undef)
26
27           ·   $label (string or undef)
28
29   toolitem = Gtk2::ToolButton->new_from_stock ($stock_id)
30           ·   $stock_id (string)
31
32   string or undef = $button->get_icon_name
33           Since: gtk+ 2.8
34
35   $button->set_icon_name ($icon_name)
36           ·   $icon_name (string or undef)
37
38           Since: gtk+ 2.8
39
40   widget or undef = $button->get_icon_widget
41   $button->set_icon_widget ($icon_widget)
42           ·   $icon_widget (Gtk2::Widget or undef)
43
44   string or undef = $button->get_label
45   $button->set_label ($label)
46           ·   $label (string or undef)
47
48   widget or undef = $button->get_label_widget
49   $button->set_label_widget ($label_widget)
50           ·   $label_widget (Gtk2::Widget or undef)
51
52   string = $button->get_stock_id
53   $button->set_stock_id ($stock_id)
54           ·   $stock_id (string or undef)
55
56   boolean = $button->get_use_underline
57   $button->set_use_underline ($use_underline)
58           ·   $use_underline (boolean)
59

PROPERTIES

61       'icon-name' (string : readable / writable / private)
62           The name of the themed icon displayed on the item
63
64       'icon-widget' (Gtk2::Widget : readable / writable / private)
65           Icon widget to display in the item
66
67       'label' (string : readable / writable / private)
68           Text to show in the item.
69
70       'label-widget' (Gtk2::Widget : readable / writable / private)
71           Widget to use as the item label
72
73       'stock-id' (string : readable / writable / private)
74           The stock icon displayed on the item
75
76       'use-underline' (boolean : readable / writable / private)
77           If set, an underline in the label property indicates that the next
78           character should be used for the mnemonic accelerator key in the
79           overflow menu
80

SIGNALS

82       clicked (Gtk2::ToolButton)
83

SEE ALSO

85       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
86       Gtk2::Container, Gtk2::Bin, Gtk2::ToolItem
87
89       Copyright (C) 2003-2008 by the gtk2-perl team.
90
91       This software is licensed under the LGPL.  See Gtk2 for a full notice.
92
93
94
95perl v5.12.0                      2010-05-02               Gtk2::ToolButton(3)
Impressum