1Gtk2::ToolButton(3) User Contributed Perl Documentation Gtk2::ToolButton(3)
2
3
4
6 Gtk2::ToolButton - wrapper for GtkToolButton
7
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
19 Glib::Object::_Unregistered::AtkImplementorIface
20 Gtk2::Buildable
21 Gtk2::Activatable
22
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
61 'icon-name' (string : default undef : readable / writable / private)
62 The name of the themed icon displayed on the item
63
64 'icon-widget' (Gtk2::Widget : default undef : readable / writable /
65 private)
66 Icon widget to display in the item
67
68 'label' (string : default undef : readable / writable / private)
69 Text to show in the item.
70
71 'label-widget' (Gtk2::Widget : default undef : readable / writable /
72 private)
73 Widget to use as the item label
74
75 'stock-id' (string : default undef : readable / writable / private)
76 The stock icon displayed on the item
77
78 'use-underline' (boolean : default false : readable / writable /
79 private)
80 If set, an underline in the label property indicates that the next
81 character should be used for the mnemonic accelerator key in the
82 overflow menu
83
85 'icon-spacing' (integer : default 3 : readable / writable / private)
86 Spacing in pixels between the icon and label
87
89 clicked (Gtk2::ToolButton)
90
92 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
93 Gtk2::Container, Gtk2::Bin, Gtk2::ToolItem
94
96 Copyright (C) 2003-2011 by the gtk2-perl team.
97
98 This software is licensed under the LGPL. See Gtk2 for a full notice.
99
100
101
102perl v5.28.0 2018-07-18 Gtk2::ToolButton(3)