1Gtk2::StatusIcon(3) User Contributed Perl Documentation Gtk2::StatusIcon(3)
2
3
4
6 Gtk2::StatusIcon
7
9 Glib::Object
10 +----Gtk2::StatusIcon
11
13 statusicon = Gtk2::StatusIcon->new
14
15 statusicon = Gtk2::StatusIcon->new_from_file ($filename)
16
17 * $filename (localized file name)
18
19 statusicon = Gtk2::StatusIcon->new_from_icon_name ($icon_name)
20
21 * $icon_name (string)
22
23 statusicon = Gtk2::StatusIcon->new_from_pixbuf ($pixbuf)
24
25 * $pixbuf (Gtk2::Gdk::Pixbuf)
26
27 statusicon = Gtk2::StatusIcon->new_from_stock ($stock_id)
28
29 * $stock_id (string)
30
31 boolean = $status_icon->get_blinking
32
33 $status_icon->set_blinking ($blinking)
34
35 * $blinking (boolean)
36
37 $status_icon->set_from_file ($filename)
38
39 * $filename (localized file name)
40
41 $status_icon->set_from_icon_name ($icon_name)
42
43 * $icon_name (string)
44
45 $status_icon->set_from_pixbuf ($pixbuf)
46
47 * $pixbuf (Gtk2::Gdk::Pixbuf or undef)
48
49 $status_icon->set_from_stock ($stock_id)
50
51 * $stock_id (string)
52
53 list = $status_icon->get_geometry
54
55 string or undef = $status_icon->get_icon_name
56
57 boolean = $status_icon->is_embedded
58
59 pixbuf or undef = $status_icon->get_pixbuf
60
61 list = Gtk2::StatusIcon::position_menu ($menu, $x, $y, $icon)
62
63 * $menu (Gtk2::Menu)
64 * $x (integer)
65 * $y (integer)
66 * $icon (Gtk2::StatusIcon)
67
68 This function can be used as the menu_pos_func argument to
69 Gtk2::Menu::popup.
70
71 integer = $status_icon->get_size
72
73 string or undef = $status_icon->get_stock
74
75 imagetype = $status_icon->get_storage_type
76
77 $status_icon->set_tooltip ($tooltip_text)
78
79 * $tooltip_text (string or undef)
80
81 boolean = $status_icon->get_visible
82
83 $status_icon->set_visible ($visible)
84
85 * $visible (boolean)
86
88 'blinking' (boolean : readable / writable / private)
89 Whether or not the status icon is blinking
90
91 'file' (string : writable / private)
92 Filename to load and display
93
94 'icon-name' (string : readable / writable / private)
95 The name of the icon from the icon theme
96
97 'pixbuf' (Gtk2::Gdk::Pixbuf : readable / writable / private)
98 A GdkPixbuf to display
99
100 'size' (integer : readable / private)
101 The size of the icon
102
103 'stock' (string : readable / writable / private)
104 Stock ID for a stock image to display
105
106 'storage-type' (Gtk2::ImageType : readable / private)
107 The representation being used for image data
108
109 'visible' (boolean : readable / writable / private)
110 Whether or not the status icon is visible
111
113 popup-menu (Gtk2::StatusIcon, Glib::UInt, Glib::UInt)
114 activate (Gtk2::StatusIcon)
115 boolean = size-changed (Gtk2::StatusIcon, integer)
116
118 enum Gtk2::ImageType
119
120 * 'empty' / 'GTK_IMAGE_EMPTY'
121 * 'pixmap' / 'GTK_IMAGE_PIXMAP'
122 * 'image' / 'GTK_IMAGE_IMAGE'
123 * 'pixbuf' / 'GTK_IMAGE_PIXBUF'
124 * 'stock' / 'GTK_IMAGE_STOCK'
125 * 'icon-set' / 'GTK_IMAGE_ICON_SET'
126 * 'animation' / 'GTK_IMAGE_ANIMATION'
127 * 'icon-name' / 'GTK_IMAGE_ICON_NAME'
128
130 Gtk2, Glib::Object
131
133 Copyright (C) 2003-2007 by the gtk2-perl team.
134
135 This software is licensed under the LGPL. See Gtk2 for a full notice.
136
137
138
139perl v5.8.8 2007-03-18 Gtk2::StatusIcon(3)