Compilation Units
Tagged Types
A render node for a GdkTexture, with control over scaling.
function Create
(Object : not null access System.Address)
return Gsk_Texture_Scale_Node_Record
function Get_Filter
(Self : Gsk_Texture_Scale_Node) return Gsk.Enums.Gsk_Scaling_Filter
Retrieves the GskScalingFilter used when creating this GskRenderNode. Since: gtk+ 4.10
the GskScalingFilter
function Get_Texture
(Self : Gsk_Texture_Scale_Node) return Gdk.Texture.Gdk_Texture
Retrieves the GdkTexture used when creating this GskRenderNode. Since: gtk+ 4.10
the GdkTexture. Has transfer-ownership='none'.
function Get_Type return Glib.GType
type Gsk_Texture_Scale_Node is access all Gsk_Texture_Scale_Node_Record'Class;
function Gsk_Texture_Scale_Node_New
(Texture : not null access Gdk.Texture.Gdk_Texture_Record'Class;
Bounds : not null access Graphene.Rect.Graphene_Rect_T;
Filter : Gsk.Enums.Gsk_Scaling_Filter) return Gsk_Texture_Scale_Node
Creates a node that scales the texture to the size given by the bounds using the filter and then places it at the bounds' position. Note that further scaling and other transformations which are applied to the node will apply linear filtering to the resulting texture, as usual. This node is intended for tight control over scaling applied to a texture, such as in image editors and requires the application to be aware of the whole render tree as further transforms may be applied that conflict with the desired effect of this node. Since: gtk+ 4.10
the texture to scale
the size of the texture to scale to
how to scale the texture
type Gsk_Texture_Scale_Node_Record is new Gsk_Render_Node_Record with null record;
procedure Gtk_New
(Self : out Gsk_Texture_Scale_Node;
Texture : not null access Gdk.Texture.Gdk_Texture_Record'Class;
Bounds : not null access Graphene.Rect.Graphene_Rect_T;
Filter : Gsk.Enums.Gsk_Scaling_Filter)
Creates a node that scales the texture to the size given by the bounds using the filter and then places it at the bounds' position. Note that further scaling and other transformations which are applied to the node will apply linear filtering to the resulting texture, as usual. This node is intended for tight control over scaling applied to a texture, such as in image editors and requires the application to be aware of the whole render tree as further transforms may be applied that conflict with the desired effect of this node. Since: gtk+ 4.10 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the texture to scale
the size of the texture to scale to
how to scale the texture
procedure Initialize
(Self : not null access Gsk_Texture_Scale_Node_Record'Class;
Texture : not null access Gdk.Texture.Gdk_Texture_Record'Class;
Bounds : not null access Graphene.Rect.Graphene_Rect_T;
Filter : Gsk.Enums.Gsk_Scaling_Filter)
Creates a node that scales the texture to the size given by the bounds using the filter and then places it at the bounds' position. Note that further scaling and other transformations which are applied to the node will apply linear filtering to the resulting texture, as usual. This node is intended for tight control over scaling applied to a texture, such as in image editors and requires the application to be aware of the whole render tree as further transforms may be applied that conflict with the desired effect of this node. Since: gtk+ 4.10 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the texture to scale
the size of the texture to scale to
how to scale the texture