These functions provide an applications programmer with default images and buttons for toolbars, menu pixmaps, etc.
See the function Gtk.Widget.Render_Icon for a convenience function that converts a stock icon to an actual pixmap/pixbuf.
Types |
---|
type Gtk_Stock_Item is record Stock_Id : Gtkada.Types.Chars_Ptr; Label : Gtkada.Types.Chars_Ptr; Modifier : Gdk.Types.Gdk_Modifier_Type; Keyval : Gdk.Types.Gdk_Key_Type; Translation_Domain : Gtkada.Types.Chars_Ptr; end record; | |
| |
type Gtk_Stock_Item_Access is access all Gtk_Stock_Item; | |
| |
type Gtk_Stock_Item_Array is array (Natural range <>) of Gtk_Stock_Item; | |
|
Subprograms |
---|
procedure Gtk_New (Item : out Gtk_Stock_Item; Stock_Id : String; Label : UTF8_String; Modifier : Gdk.Types.Gdk_Modifier_Type; Keyval : Gdk.Types.Gdk_Key_Type; Translation_Domain : String); | ||
Create a new stock item.
| ||
procedure Add (Item : Gtk_Stock_Item); | ||
Register Item. | ||
procedure Add (Items : Gtk_Stock_Item_Array); | ||
Register each of the stock items in Items.
| ||
procedure Add_Static (Item : Gtk_Stock_Item); | ||
Same as Add, but do not copy Item, so Item must persist until | ||
procedure Add_Static (Items : Gtk_Stock_Item_Array); | ||
Same as Add, but do not copy Items, so Items must persist until | ||
procedure Lookup (Stock_Id : String; Item : out Gtk_Stock_Item; Success : out Boolean); | ||
Fill Item with the registered values for Stock_Id. | ||
procedure Free (Item : in out Gtk_Stock_Item); | ||
Free memory allocated in Item.
|