Contains information found when looking up an icon in GtkIconTheme or loading it from a file.
GtkIconPaintable implements GdkPaintable and GtkSymbolicPaintable.
function "+"
(Widget : access Gtk_Icon_Paintable_Record'Class)
return Gdk.Paintable.Gdk_Paintable
function "+"
(Widget : access Gtk_Icon_Paintable_Record'Class)
return Gtk.Symbolic_Paintable.Gtk_Symbolic_Paintable
function "-"
(Interf : Gdk.Paintable.Gdk_Paintable)
return Gtk_Icon_Paintable
function "-"
(Interf : Gtk.Symbolic_Paintable.Gtk_Symbolic_Paintable)
return Gtk_Icon_Paintable
procedure Compute_Concrete_Size
(Self : not null access Gtk_Icon_Paintable_Record;
Specified_Width : Gdouble;
Specified_Height : Gdouble;
Default_Width : Gdouble;
Default_Height : Gdouble;
Concrete_Width : out Gdouble;
Concrete_Height : out Gdouble)
File_Property : constant Glib.Properties.Property_Interface;
Type: Glib.GFile.Gfile The file representing the icon, if any.
function Get_Current_Image
(Self : not null access Gtk_Icon_Paintable_Record)
return Gdk.Paintable.Gdk_Paintable
function Get_File
(Self : not null access Gtk_Icon_Paintable_Record)
return Glib.GFile.Gfile
Gets the GFile that was used to load the icon. Returns null if the icon was not loaded from a file.
the GFile for the icon
function Get_Flags
(Self : not null access Gtk_Icon_Paintable_Record)
return Gdk.Paintable.Gdk_Paintable_Flags
function Get_Intrinsic_Aspect_Ratio
(Self : not null access Gtk_Icon_Paintable_Record) return Gdouble
function Get_Intrinsic_Height
(Self : not null access Gtk_Icon_Paintable_Record) return Glib.Gint
function Get_Intrinsic_Width
(Self : not null access Gtk_Icon_Paintable_Record) return Glib.Gint
function Get_Type return Glib.GType
type Gtk_Icon_Paintable is access all Gtk_Icon_Paintable_Record'Class;
function Gtk_Icon_Paintable_New_For_File
(File : Glib.GFile.Gfile;
Size : Glib.Gint;
Scale : Glib.Gint) return Gtk_Icon_Paintable
Creates a GtkIconPaintable for a file with a given size and scale. The icon can then be rendered by using it as a GdkPaintable.
a GFile
desired icon size, in application pixels
the desired scale
type Gtk_Icon_Paintable_Record is new GObject_Record with null record;
procedure Gtk_New_For_File
(Self : out Gtk_Icon_Paintable;
File : Glib.GFile.Gfile;
Size : Glib.Gint;
Scale : Glib.Gint)
Creates a GtkIconPaintable for a file with a given size and scale. The icon can then be rendered by using it as a GdkPaintable. Initialize_For_File does nothing if the object was already created with another call to Initialize* or G_New.
a GFile
desired icon size, in application pixels
the desired scale
Icon_Name_Property : constant Glib.Properties.Property_String;
The icon name that was chosen during lookup.
package Implements_Gdk_Paintable is new Glib.Types.Implements
(Gdk.Paintable.Gdk_Paintable, Gtk_Icon_Paintable_Record, Gtk_Icon_Paintable);
package Implements_Gtk_Symbolic_Paintable is new Glib.Types.Implements
(Gtk.Symbolic_Paintable.Gtk_Symbolic_Paintable, Gtk_Icon_Paintable_Record, Gtk_Icon_Paintable);
procedure Initialize_For_File
(Self : not null access Gtk_Icon_Paintable_Record'Class;
File : Glib.GFile.Gfile;
Size : Glib.Gint;
Scale : Glib.Gint)
Creates a GtkIconPaintable for a file with a given size and scale. The icon can then be rendered by using it as a GdkPaintable. Initialize_For_File does nothing if the object was already created with another call to Initialize* or G_New.
a GFile
desired icon size, in application pixels
the desired scale
procedure Invalidate_Contents
(Self : not null access Gtk_Icon_Paintable_Record)
procedure Invalidate_Size
(Self : not null access Gtk_Icon_Paintable_Record)
Is_Symbolic_Property : constant Glib.Properties.Property_Boolean;
Whether the icon is symbolic or not.
Scale_Property : constant Glib.Properties.Property_Int;
Size_Property : constant Glib.Properties.Property_Int;
procedure Snapshot
(Self : not null access Gtk_Icon_Paintable_Record;
Snapshot : not null access Gdk.Snapshot.Gdk_Snapshot_Record'Class;
Width : Gdouble;
Height : Gdouble)