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

NAME

6       Gtk2::StatusIcon
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::StatusIcon
11

METHODS

13   statusicon = Gtk2::StatusIcon->new
14   statusicon = Gtk2::StatusIcon->new_from_file ($filename)
15           ·   $filename (localized file name)
16
17   statusicon = Gtk2::StatusIcon->new_from_icon_name ($icon_name)
18           ·   $icon_name (string)
19
20   statusicon = Gtk2::StatusIcon->new_from_pixbuf ($pixbuf)
21           ·   $pixbuf (Gtk2::Gdk::Pixbuf)
22
23   statusicon = Gtk2::StatusIcon->new_from_stock ($stock_id)
24           ·   $stock_id (string)
25
26   boolean = $status_icon->get_blinking
27   $status_icon->set_blinking ($blinking)
28           ·   $blinking (boolean)
29
30   $status_icon->set_from_file ($filename)
31           ·   $filename (localized file name)
32
33   $status_icon->set_from_icon_name ($icon_name)
34           ·   $icon_name (string)
35
36   $status_icon->set_from_pixbuf ($pixbuf)
37           ·   $pixbuf (Gtk2::Gdk::Pixbuf or undef)
38
39   $status_icon->set_from_stock ($stock_id)
40           ·   $stock_id (string)
41
42   list = $status_icon->get_geometry
43   string or undef = $status_icon->get_icon_name
44   boolean = $status_icon->is_embedded
45   pixbuf or undef = $status_icon->get_pixbuf
46   (x, y, push_in) = Gtk2::StatusIcon::position_menu (menu, icon)
47   (x, y, push_in) = Gtk2::StatusIcon::position_menu (menu, x, y, icon)
48           ·   ... (list)
49
50           ·   $icon (Gtk2::StatusIcon)
51
52           ·   $y (integer)
53
54           ·   $x (integer)
55
56           This function takes four arguments so that it may be passed
57           directly as the menu position callback to Gtk2::Menu::popup(),
58           which passes in initial x and y values for historical reasons.
59           Otherwise, you need only pass two arguments.
60
61           This function can be used as the menu_pos_func argument to
62           Gtk2::Menu::popup.
63
64   screen = $status_icon->get_screen
65           Since: gtk+ 2.12
66
67   $status_icon->set_screen ($screen)
68           ·   $screen (Gtk2::Gdk::Screen)
69
70           Since: gtk+ 2.12
71
72   integer = $status_icon->get_size
73   string or undef = $status_icon->get_stock
74   imagetype = $status_icon->get_storage_type
75   $status_icon->set_tooltip ($tooltip_text)
76           ·   $tooltip_text (string or undef)
77
78   boolean = $status_icon->get_visible
79   $status_icon->set_visible ($visible)
80           ·   $visible (boolean)
81
82   unsigned = $status_icon->get_x11_window_id
83           Since: gtk+ 2.14
84

PROPERTIES

86       'blinking' (boolean : readable / writable / private)
87           Whether or not the status icon is blinking
88
89       'embedded' (boolean : readable / private)
90           Whether or not the status icon is embedded
91
92       'file' (string : writable / private)
93           Filename to load and display
94
95       'gicon' (Glib::Object::_Unregistered::GIcon : readable / writable /
96       private)
97           The GIcon being displayed
98
99       'has-tooltip' (boolean : readable / writable / private)
100           Whether this tray icon has a tooltip
101
102       'icon-name' (string : readable / writable / private)
103           The name of the icon from the icon theme
104
105       'orientation' (Gtk2::Orientation : readable / private)
106           The orientation of the tray
107
108       'pixbuf' (Gtk2::Gdk::Pixbuf : readable / writable / private)
109           A GdkPixbuf to display
110
111       'screen' (Gtk2::Gdk::Screen : readable / writable / private)
112           The screen where this status icon will be displayed
113
114       'size' (integer : readable / private)
115           The size of the icon
116
117       'stock' (string : readable / writable / private)
118           Stock ID for a stock image to display
119
120       'storage-type' (Gtk2::ImageType : readable / private)
121           The representation being used for image data
122
123       'title' (string : readable / writable / private)
124           The title of this tray icon
125
126       'tooltip-markup' (string : readable / writable / private)
127           The contents of the tooltip for this tray icon
128
129       'tooltip-text' (string : readable / writable / private)
130           The contents of the tooltip for this widget
131
132       'visible' (boolean : readable / writable / private)
133           Whether or not the status icon is visible
134

SIGNALS

136       boolean = button-press-event (Gtk2::StatusIcon, Gtk2::Gdk::Event)
137       boolean = button-release-event (Gtk2::StatusIcon, Gtk2::Gdk::Event)
138       boolean = scroll-event (Gtk2::StatusIcon, Gtk2::Gdk::Event)
139       boolean = query-tooltip (Gtk2::StatusIcon, integer, integer, boolean,
140       Gtk2::Tooltip)
141       popup-menu (Gtk2::StatusIcon, Glib::UInt, Glib::UInt)
142       activate (Gtk2::StatusIcon)
143       boolean = size-changed (Gtk2::StatusIcon, integer)
144

ENUMS AND FLAGS

146   enum Gtk2::ImageType
147       ·   'empty' / 'GTK_IMAGE_EMPTY'
148
149       ·   'pixmap' / 'GTK_IMAGE_PIXMAP'
150
151       ·   'image' / 'GTK_IMAGE_IMAGE'
152
153       ·   'pixbuf' / 'GTK_IMAGE_PIXBUF'
154
155       ·   'stock' / 'GTK_IMAGE_STOCK'
156
157       ·   'icon-set' / 'GTK_IMAGE_ICON_SET'
158
159       ·   'animation' / 'GTK_IMAGE_ANIMATION'
160
161       ·   'icon-name' / 'GTK_IMAGE_ICON_NAME'
162
163       ·   'gicon' / 'GTK_IMAGE_GICON'
164
165   enum Gtk2::Orientation
166       ·   'horizontal' / 'GTK_ORIENTATION_HORIZONTAL'
167
168       ·   'vertical' / 'GTK_ORIENTATION_VERTICAL'
169

SEE ALSO

171       Gtk2, Glib::Object
172
174       Copyright (C) 2003-2008 by the gtk2-perl team.
175
176       This software is licensed under the LGPL.  See Gtk2 for a full notice.
177
178
179
180perl v5.12.0                      2010-05-02               Gtk2::StatusIcon(3)
Impressum