type Gtk_Icon_Set is new Glib.C_Boxed with null record;
Null_Gtk_Icon_Set : constant Gtk_Icon_Set;
function From_Object
( | Object | : System.Address) return Gtk_Icon_Set; |
function From_Object_Free
( | B | : access Gtk_Icon_Set'Class) return Gtk_Icon_Set; |
procedure Gtk_New
( | Self | : out Gtk_Icon_Set); |
function Gtk_Icon_Set_New return Gtk_Icon_Set;
procedure Gtk_New_From_Pixbuf
( | Self | : out Gtk_Icon_Set; |
Pixbuf | : not null access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class); |
function Gtk_Icon_Set_New_From_Pixbuf
( | Pixbuf | : not null access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class) return Gtk_Icon_Set; |
function Get_Type return Glib.GType;
procedure Add_Source
( | Self | : Gtk_Icon_Set; |
Source | : Gtk.Icon_Source.Gtk_Icon_Source); |
function Get_Sizes
( | Self | : Gtk_Icon_Set) return Gint_Array; |
function Ref
( | Self | : Gtk_Icon_Set) return Gtk_Icon_Set; |
function Render_Icon
( | Self | : Gtk_Icon_Set; |
Style | : access Gtk.Style.Gtk_Style_Record'Class; | |
Direction | : Gtk.Enums.Gtk_Text_Direction; | |
State | : Gtk.Enums.Gtk_State_Type; | |
Size | : Gtk.Enums.Gtk_Icon_Size; | |
Widget | : access Gtk.Widget.Gtk_Widget_Record'Class; | |
Detail | : UTF8_String := "") return Gdk.Pixbuf.Gdk_Pixbuf; |
function Render_Icon_Pixbuf
( | Self | : Gtk_Icon_Set; |
Context | : not null access Gtk.Style_Context.Gtk_Style_Context_Record'Class; | |
Size | : Gtk.Enums.Gtk_Icon_Size) return Gdk.Pixbuf.Gdk_Pixbuf; |
procedure Unref
( | Self | : Gtk_Icon_Set); |
function Lookup_Icon_Set
( | Style | : access Gtk.Style.Gtk_Style_Record'Class; |
Stock_Id | : String) return Gtk_Icon_Set; |
An icon set represents a single icon in various sizes and widget states.
It can provide a Gdk_Pixbuf for a given size and state on request, and automatically caches some of the rendered Gdk_Pixbuf objects.
Normally you would use Gtk.Widget.Render_Icon instead of using icon sets directly. The one case where you'd use an icon set is to create application-specific icon sets to place in an icon factory.