1Gtk2::ToolButton(3) User Contributed Perl Documentation Gtk2::ToolButton(3)
2
3
4
6 Gtk2::ToolButton
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
22 toolitem = Gtk2::ToolButton->new ($icon_widget, $label)
23
24 * $icon_widget (Gtk2::Widget or undef)
25 * $label (string or undef)
26
27 toolitem = Gtk2::ToolButton->new_from_stock ($stock_id)
28
29 * $stock_id (string)
30
31 string or undef = $button->get_icon_name
32
33 $button->set_icon_name ($icon_name)
34
35 * $icon_name (string or undef)
36
37 widget or undef = $button->get_icon_widget
38
39 $button->set_icon_widget ($icon_widget)
40
41 * $icon_widget (Gtk2::Widget or undef)
42
43 string or undef = $button->get_label
44
45 $button->set_label ($label)
46
47 * $label (string or undef)
48
49 widget or undef = $button->get_label_widget
50
51 $button->set_label_widget ($label_widget)
52
53 * $label_widget (Gtk2::Widget or undef)
54
55 string = $button->get_stock_id
56
57 $button->set_stock_id ($stock_id)
58
59 * $stock_id (string or undef)
60
61 boolean = $button->get_use_underline
62
63 $button->set_use_underline ($use_underline)
64
65 * $use_underline (boolean)
66
68 'icon-name' (string : readable / writable / private)
69 The name of the themed icon displayed on the item
70
71 'icon-widget' (Gtk2::Widget : readable / writable / private)
72 Icon widget to display in the item
73
74 'label' (string : readable / writable / private)
75 Text to show in the item.
76
77 'label-widget' (Gtk2::Widget : readable / writable / private)
78 Widget to use as the item label
79
80 'stock-id' (string : readable / writable / private)
81 The stock icon displayed on the item
82
83 'use-underline' (boolean : readable / writable / private)
84 If set, an underline in the label property indicates that the next
85 character should be used for the mnemonic accelerator key in the
86 overflow menu
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-2007 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.8.8 2007-03-18 Gtk2::ToolButton(3)