Compilation Units
Tagged Types
A render node for a linear gradient.
function Create
(Object : not null access System.Address)
return Gsk_Linear_Gradient_Node_Record
function Get_Color_Stops
(Self : Gsk_Linear_Gradient_Node)
return Gsk.Render_Node.Gsk_Color_Stop_Array
Retrieves the color stops in the gradient.
the color stops in the gradient
function Get_End
(Self : Gsk_Linear_Gradient_Node)
return access constant Graphene.Point.Graphene_Point_T
Retrieves the final point of the linear gradient.
the final point
function Get_N_Color_Stops (Self : Gsk_Linear_Gradient_Node) return Gsize
Retrieves the number of color stops in the gradient.
the number of color stops
function Get_Start
(Self : Gsk_Linear_Gradient_Node)
return access constant Graphene.Point.Graphene_Point_T
Retrieves the initial point of the linear gradient.
the initial point
function Get_Type return Glib.GType
type Gsk_Linear_Gradient_Node is access all Gsk_Linear_Gradient_Node_Record'Class;
function Gsk_Linear_Gradient_Node_New
(Bounds : not null access Graphene.Rect.Graphene_Rect_T;
Start : not null access Graphene.Point.Graphene_Point_T;
The_End : not null access Graphene.Point.Graphene_Point_T;
Color_Stops : Gsk_Color_Stop_Array) return Gsk_Linear_Gradient_Node
Creates a GskRenderNode that will create a linear gradient from the given points and color stops, and render that into the area given by Bounds.
the rectangle to render the linear gradient into
the point at which the linear gradient will begin
the point at which the linear gradient will finish
a pointer to an array of GskColorStop defining the gradient. The offsets of all color stops must be increasing. The first stop's offset must be >= 0 and the last stop's offset must be <= 1.
type Gsk_Linear_Gradient_Node_Record is new Gsk_Render_Node_Record with null record;
procedure Gtk_New
(Self : out Gsk_Linear_Gradient_Node;
Bounds : not null access Graphene.Rect.Graphene_Rect_T;
Start : not null access Graphene.Point.Graphene_Point_T;
The_End : not null access Graphene.Point.Graphene_Point_T;
Color_Stops : Gsk_Color_Stop_Array)
Creates a GskRenderNode that will create a linear gradient from the given points and color stops, and render that into the area given by Bounds. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the rectangle to render the linear gradient into
the point at which the linear gradient will begin
the point at which the linear gradient will finish
a pointer to an array of GskColorStop defining the gradient. The offsets of all color stops must be increasing. The first stop's offset must be >= 0 and the last stop's offset must be <= 1.
procedure Initialize
(Self : not null access Gsk_Linear_Gradient_Node_Record'Class;
Bounds : not null access Graphene.Rect.Graphene_Rect_T;
Start : not null access Graphene.Point.Graphene_Point_T;
The_End : not null access Graphene.Point.Graphene_Point_T;
Color_Stops : Gsk_Color_Stop_Array)
Creates a GskRenderNode that will create a linear gradient from the given points and color stops, and render that into the area given by Bounds. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the rectangle to render the linear gradient into
the point at which the linear gradient will begin
the point at which the linear gradient will finish
a pointer to an array of GskColorStop defining the gradient. The offsets of all color stops must be increasing. The first stop's offset must be >= 0 and the last stop's offset must be <= 1.