type Gtk_Status_Icon_Record is new Glib.Object.GObject_Record with private;
type Gtk_Status_Icon is access all Gtk_Status_Icon_Record'Class;
Blinking_Property : constant Glib.Properties.Property_Boolean;
Embedded_Property : constant Glib.Properties.Property_Boolean;
File_Property : constant Glib.Properties.Property_String;
Gicon_Property : constant Glib.Properties.Property_Object;
Has_Tooltip_Property : constant Glib.Properties.Property_Boolean;
Icon_Name_Property : constant Glib.Properties.Property_String;
Orientation_Property : constant Glib.Properties.Property_Enum;
Pixbuf_Property : constant Glib.Properties.Property_Object;
Screen_Property : constant Glib.Properties.Property_Object;
Size_Property : constant Glib.Properties.Property_Int;
Stock_Property : constant Glib.Properties.Property_String;
Storage_Type_Property : constant Glib.Properties.Property_Enum;
Tooltip_Markup_Property : constant Glib.Properties.Property_String;
Tooltip_Text_Property : constant Glib.Properties.Property_String;
Visible_Property : constant Glib.Properties.Property_Boolean;
function Get_Type return GType;
procedure Gtk_New
( | Widget | : out Gtk_Status_Icon); |
procedure Initialize
( | Widget | : access Gtk_Status_Icon_Record'Class); |
function Get_Storage_Type
( | Status_Icon | : access Gtk_Status_Icon_Record) return Gtk.Image.Gtk_Image_Type; |
function Is_Embedded
( | Status_Icon | : access Gtk_Status_Icon_Record) return Boolean; |
procedure Gtk_New_From_File
( | Widget | : out Gtk_Status_Icon; |
Filename | : String); |
procedure Initialize_From_File
( | Widget | : access Gtk_Status_Icon_Record'Class; |
Filename | : String); |
procedure Set_From_File
( | Status_Icon | : access Gtk_Status_Icon_Record; |
Filename | : String); |
procedure Gtk_New_From_Gicon
( | Widget | : out Gtk_Status_Icon; |
Icon | : Glib.G_Icon.G_Icon); |
procedure Initialize_From_Gicon
( | Widget | : access Gtk_Status_Icon_Record'Class; |
Icon | : Glib.G_Icon.G_Icon); |
function Get_Gicon
( | Status_Icon | : access Gtk_Status_Icon_Record) return Glib.G_Icon.G_Icon; |
procedure Set_From_Gicon
( | Status_Icon | : access Gtk_Status_Icon_Record; |
Icon | : Glib.G_Icon.G_Icon); |
procedure Gtk_New_From_Icon_Name
( | Widget | : out Gtk_Status_Icon; |
Icon_Name | : String); |
procedure Initialize_From_Icon_Name
( | Widget | : access Gtk_Status_Icon_Record'Class; |
Icon_Name | : String); |
function Get_Icon_Name
( | Status_Icon | : access Gtk_Status_Icon_Record) return String; |
procedure Set_From_Icon_Name
( | Status_Icon | : access Gtk_Status_Icon_Record; |
Icon_Name | : String); |
procedure Gtk_New_From_Pixbuf
( | Widget | : out Gtk_Status_Icon; |
Pixbuf | : Gdk.Pixbuf.Gdk_Pixbuf); |
procedure Initialize_From_Pixbuf
( | Widget | : access Gtk_Status_Icon_Record'Class; |
Pixbuf | : Gdk.Pixbuf.Gdk_Pixbuf); |
function Get_Pixbuf
( | Status_Icon | : access Gtk_Status_Icon_Record) return Gdk.Pixbuf.Gdk_Pixbuf; |
procedure Set_From_Pixbuf
( | Status_Icon | : access Gtk_Status_Icon_Record; |
Pixbuf | : Gdk.Pixbuf.Gdk_Pixbuf); |
procedure Gtk_New_From_Stock
( | Widget | : out Gtk_Status_Icon; |
Stock_Id | : String); |
procedure Initialize_From_Stock
( | Widget | : access Gtk_Status_Icon_Record'Class; |
Stock_Id | : String); |
function Get_Stock
( | Status_Icon | : access Gtk_Status_Icon_Record) return String; |
procedure Set_From_Stock
( | Status_Icon | : access Gtk_Status_Icon_Record; |
Stock_Id | : String); |
function Get_Has_Tooltip
( | Status_Icon | : access Gtk_Status_Icon_Record) return Boolean; |
procedure Set_Has_Tooltip
( | Status_Icon | : access Gtk_Status_Icon_Record; |
Has_Tooltip | : Boolean); |
function Get_Tooltip_Markup
( | Status_Icon | : access Gtk_Status_Icon_Record) return String; |
procedure Set_Tooltip_Markup
( | Status_Icon | : access Gtk_Status_Icon_Record; |
Markup | : String); |
function Get_Tooltip_Text
( | Status_Icon | : access Gtk_Status_Icon_Record) return String; |
procedure Set_Tooltip_Text
( | Status_Icon | : access Gtk_Status_Icon_Record; |
Text | : String); |
procedure Get_Geometry
( | Status_Icon | : access Gtk_Status_Icon_Record; |
Screen | : in out Gdk.Screen.Gdk_Screen; | |
Area | : out Gdk.Rectangle.Gdk_Rectangle; | |
Orientation | : out Gtk.Enums.Gtk_Orientation; | |
Success | : out Boolean); |
function Get_Blinking
( | Status_Icon | : access Gtk_Status_Icon_Record) return Boolean; |
procedure Set_Blinking
( | Status_Icon | : access Gtk_Status_Icon_Record; |
Blinking | : Boolean); |
function Get_Screen
( | Status_Icon | : access Gtk_Status_Icon_Record) return Gdk.Screen.Gdk_Screen; |
procedure Set_Screen
( | Status_Icon | : access Gtk_Status_Icon_Record; |
Screen | : access Gdk.Screen.Gdk_Screen_Record'Class); |
function Get_Size
( | Status_Icon | : access Gtk_Status_Icon_Record) return Gint; |
function Get_Visible
( | Status_Icon | : access Gtk_Status_Icon_Record) return Boolean; |
procedure Set_Visible
( | Status_Icon | : access Gtk_Status_Icon_Record; |
Visible | : Boolean); |
function Get_X11_Window_Id
( | Status_Icon | : access Gtk_Status_Icon_Record) return Guint32; |
procedure Position_Menu
( | Menu | : System.Address; |
X | : out Gint; | |
Y | : out Gint; | |
Push_In | : out Gboolean; | |
Status_Icon | : System.Address); |
procedure Set_Tooltip
( | Status_Icon | : access Gtk_Status_Icon_Record; |
Tooltip_Text | : String); |
The "system tray" or notification area is normally used for transient icons that indicate some special state. For example, a system tray icon might appear to tell the user that they have new mail, or have an incoming instant message, or something along those lines. The basic idea is that creating an icon in the notification area is less annoying than popping up a dialog.
A Gtk_Status_Icon object can be used to display an icon in a "system tray".
The icon can have a tooltip, and the user can interact with it by activating it or popping up a context menu. Critical information should not solely be displayed in a Gtk_Status_Icon, since it may not be visible (e.g. when the user doesn't have a notification area on his panel). This can be checked with Is_Embedded.
On X11, the implementation follows the freedesktop.org "System Tray" specification. Implementations of the "tray" side of this specification can be found e.g. in the GNOME and KDE panel applications.
Note that a Gtk_Status_Icon is not a widget, but just a GObject. Making it a widget would be impractical, since the system tray on Win32 doesn't allow to embed arbitrary widgets.
Binding from C File version 2.16.6