A GdkTexture representing a DMA buffer.
To create a GdkDmabufTexture, use the auxiliary [classGdk.DmabufTextureBuilder] object.
Dma-buf textures can only be created on Linux.
function "+"
(Widget : access Gdk_Dmabuf_Texture_Record'Class)
return Gdk.Paintable.Gdk_Paintable
function "+"
(Widget : access Gdk_Dmabuf_Texture_Record'Class)
return Glib.Loadable_Icon.Gloadable_Icon
function "-"
(Interf : Gdk.Paintable.Gdk_Paintable)
return Gdk_Dmabuf_Texture
function "-"
(Interf : Glib.Loadable_Icon.Gloadable_Icon)
return Gdk_Dmabuf_Texture
procedure Compute_Concrete_Size
(Self : not null access Gdk_Dmabuf_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_Dmabuf_Texture is access all Gdk_Dmabuf_Texture_Record'Class;
type Gdk_Dmabuf_Texture_Record is new Gdk_Texture_Record with null record;
function Get_Current_Image
(Self : not null access Gdk_Dmabuf_Texture_Record)
return Gdk.Paintable.Gdk_Paintable
function Get_Flags
(Self : not null access Gdk_Dmabuf_Texture_Record)
return Gdk.Paintable.Gdk_Paintable_Flags
function Get_Intrinsic_Aspect_Ratio
(Self : not null access Gdk_Dmabuf_Texture_Record) return Gdouble
function Get_Intrinsic_Height
(Self : not null access Gdk_Dmabuf_Texture_Record) return Glib.Gint
function Get_Intrinsic_Width
(Self : not null access Gdk_Dmabuf_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_Dmabuf_Texture_Record, Gdk_Dmabuf_Texture);
package Implements_Gloadable_Icon is new Glib.Types.Implements
(Glib.Loadable_Icon.Gloadable_Icon, Gdk_Dmabuf_Texture_Record, Gdk_Dmabuf_Texture);
procedure Invalidate_Contents
(Self : not null access Gdk_Dmabuf_Texture_Record)
procedure Invalidate_Size
(Self : not null access Gdk_Dmabuf_Texture_Record)
function Load
(Self : not null access Gdk_Dmabuf_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_Dmabuf_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_Dmabuf_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_Dmabuf_Texture_Record;
Snapshot : not null access Gdk.Snapshot.Gdk_Snapshot_Record'Class;
Width : Gdouble;
Height : Gdouble)