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 |
---|
| |
| |
| |
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. If an item already exists with the same stock ID as one of the items, the old item gets replaced. The stock item is copied, so GtkAda does not hold any pointer into item and item can be freed. Use Add_Static if item is persistent and GtkAda need not copy the array. |
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 application exit. |
procedure Add_Static (Items : Gtk_Stock_Item_Array); |
Same as Add, but do not copy Items, so Items must persist until application exit. |
procedure Lookup (Stock_Id : String; Item : out Gtk_Stock_Item; Success : out Boolean); |
Fill Item with the registered values for Stock_Id. Success if set to True of Stock_Id was known. |
procedure Free (Item : in out Gtk_Stock_Item); |
Free memory allocated in Item. |