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

NAME

6       Gtk2::ToolButton - wrapper for GtkToolButton
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         Gtk2::Activatable
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 : default undef : readable / writable / private /
62       static-nick / static-blurb)
63           The name of the themed icon displayed on the item
64
65       'icon-widget' (Gtk2::Widget : default undef : readable / writable /
66       private / static-nick / static-blurb)
67           Icon widget to display in the item
68
69       'label' (string : default undef : readable / writable / private /
70       static-nick / static-blurb)
71           Text to show in the item.
72
73       'label-widget' (Gtk2::Widget : default undef : readable / writable /
74       private / static-nick / static-blurb)
75           Widget to use as the item label
76
77       'stock-id' (string : default undef : readable / writable / private /
78       static-nick / static-blurb)
79           The stock icon displayed on the item
80
81       'use-underline' (boolean : default false : readable / writable /
82       private / static-nick / static-blurb)
83           If set, an underline in the label property indicates that the next
84           character should be used for the mnemonic accelerator key in the
85           overflow menu
86

STYLE PROPERTIES

88       'icon-spacing' (integer : default 3 : readable / writable / private /
89       static-nick / static-blurb)
90           Spacing in pixels between the icon and label
91

SIGNALS

93       clicked (Gtk2::ToolButton)
94

SEE ALSO

96       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
97       Gtk2::Container, Gtk2::Bin, Gtk2::ToolItem
98
100       Copyright (C) 2003-2011 by the gtk2-perl team.
101
102       This software is licensed under the LGPL.  See Gtk2 for a full notice.
103
104
105
106perl v5.36.0                      2022-07-22               Gtk2::ToolButton(3)
Impressum