A GdkTexture representing image data in memory.
function "+"
(Widget : access Gdk_Memory_Texture_Record'Class)
return Gdk.Paintable.Gdk_Paintable
function "+"
(Widget : access Gdk_Memory_Texture_Record'Class)
return Glib.Loadable_Icon.Gloadable_Icon
function "-"
(Interf : Gdk.Paintable.Gdk_Paintable)
return Gdk_Memory_Texture
function "-"
(Interf : Glib.Loadable_Icon.Gloadable_Icon)
return Gdk_Memory_Texture
procedure Compute_Concrete_Size
(Self : not null access Gdk_Memory_Texture_Record;
Specified_Width : Gdouble;
Specified_Height : Gdouble;
Default_Width : Gdouble;
Default_Height : Gdouble;
Concrete_Width : out Gdouble;
Concrete_Height : out Gdouble)
type Gasync_Ready_Callback is access procedure
(Source_Object : access Glib.Object.GObject_Record'Class;
Res : Glib.G_Async_Result);
Type definition for a function that will be called back when an asynchronous operation within GIO has been completed. Gasync_Ready_Callback callbacks from Gtask.Gtask are guaranteed to be invoked in a later iteration of the thread-default main context (see [methodGlib.MainContext.push_thread_default]) where the Gtask.Gtask was created. All other users of Gasync_Ready_Callback must likewise call it asynchronously in a later iteration of the main context. The asynchronous operation is guaranteed to have held a reference to Source_Object from the time when the *_async function was called, until after this callback returns.
the object the asynchronous operation was started with.
a Glib.G_Async_Result.
type Gdk_Memory_Texture is access all Gdk_Memory_Texture_Record'Class;
function Gdk_Memory_Texture_New
(Width : Glib.Gint;
Height : Glib.Gint;
Format : Gdk.Texture.Gdk_Memory_Format;
Bytes : Glib.Bytes.Gbytes;
Stride : Gsize) return Gdk_Memory_Texture
Creates a new texture for a blob of image data. The GBytes must contain Stride à Height pixels in the given format.
the width of the texture
the height of the texture
the format of the data
the GBytes containing the pixel data
rowstride for the data
type Gdk_Memory_Texture_Record is new Gdk_Texture_Record with null record;
procedure Gdk_New
(Self : out Gdk_Memory_Texture;
Width : Glib.Gint;
Height : Glib.Gint;
Format : Gdk.Texture.Gdk_Memory_Format;
Bytes : Glib.Bytes.Gbytes;
Stride : Gsize)
Creates a new texture for a blob of image data. The GBytes must contain Stride à Height pixels in the given format.
the width of the texture
the height of the texture
the format of the data
the GBytes containing the pixel data
rowstride for the data
function Get_Current_Image
(Self : not null access Gdk_Memory_Texture_Record)
return Gdk.Paintable.Gdk_Paintable
function Get_Flags
(Self : not null access Gdk_Memory_Texture_Record)
return Gdk.Paintable.Gdk_Paintable_Flags
function Get_Intrinsic_Aspect_Ratio
(Self : not null access Gdk_Memory_Texture_Record) return Gdouble
function Get_Intrinsic_Height
(Self : not null access Gdk_Memory_Texture_Record) return Glib.Gint
function Get_Intrinsic_Width
(Self : not null access Gdk_Memory_Texture_Record) return Glib.Gint
function Get_Type return Glib.GType
package Implements_Gdk_Paintable is new Glib.Types.Implements
(Gdk.Paintable.Gdk_Paintable, Gdk_Memory_Texture_Record, Gdk_Memory_Texture);
package Implements_Gloadable_Icon is new Glib.Types.Implements
(Glib.Loadable_Icon.Gloadable_Icon, Gdk_Memory_Texture_Record, Gdk_Memory_Texture);
procedure Initialize
(Self : not null access Gdk_Memory_Texture_Record'Class;
Width : Glib.Gint;
Height : Glib.Gint;
Format : Gdk.Texture.Gdk_Memory_Format;
Bytes : Glib.Bytes.Gbytes;
Stride : Gsize)
Creates a new texture for a blob of image data. The GBytes must contain Stride à Height pixels in the given format. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the width of the texture
the height of the texture
the format of the data
the GBytes containing the pixel data
rowstride for the data
procedure Invalidate_Contents
(Self : not null access Gdk_Memory_Texture_Record)
procedure Invalidate_Size
(Self : not null access Gdk_Memory_Texture_Record)
function Load
(Self : not null access Gdk_Memory_Texture_Record;
Size : Glib.Gint;
The_Type : access UTF8_String := null;
Cancellable : access Glib.Cancellable.Gcancellable_Record'Class;
Error : out Glib.Error.GError)
return Glib.Input_Stream.Ginput_Stream
procedure Load_Async
(Self : not null access Gdk_Memory_Texture_Record;
Size : Glib.Gint;
Cancellable : access Glib.Cancellable.Gcancellable_Record'Class;
Callback : Gasync_Ready_Callback)
Loads an icon asynchronously. To finish this function, see Glib.Loadable_Icon.Load_Finish. For the synchronous, blocking version of this function, see Glib.Loadable_Icon.Load.
an integer.
optional Glib.Cancellable.Gcancellable object, null to ignore.
a Gasync_Ready_Callback to call when the request is satisfied
function Load_Finish
(Self : not null access Gdk_Memory_Texture_Record;
Res : Glib.G_Async_Result;
The_Type : access UTF8_String := null;
Error : out Glib.Error.GError)
return Glib.Input_Stream.Ginput_Stream
procedure Snapshot
(Self : not null access Gdk_Memory_Texture_Record;
Snapshot : not null access Gdk.Snapshot.Gdk_Snapshot_Record'Class;
Width : Gdouble;
Height : Gdouble)