A render node for a radial gradient.
function Create
(Object : not null access System.Address)
return Gsk_Radial_Gradient_Node_Record
function Get_Center
(Self : Gsk_Radial_Gradient_Node)
return access constant Graphene.Point.Graphene_Point_T
Retrieves the center pointer for the gradient.
the center point for the gradient
function Get_Color_Stops
(Self : Gsk_Radial_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_Radial_Gradient_Node) return Interfaces.C.C_float
Retrieves the end value for the gradient.
the end value for the gradient
function Get_Hradius
(Self : Gsk_Radial_Gradient_Node) return Interfaces.C.C_float
Retrieves the horizontal radius for the gradient.
the horizontal radius for the gradient
function Get_N_Color_Stops (Self : Gsk_Radial_Gradient_Node) return Gsize
Retrieves the number of color stops in the gradient.
the number of color stops
function Get_Start
(Self : Gsk_Radial_Gradient_Node) return Interfaces.C.C_float
Retrieves the start value for the gradient.
the start value for the gradient
function Get_Type return Glib.GType
function Get_Vradius
(Self : Gsk_Radial_Gradient_Node) return Interfaces.C.C_float
Retrieves the vertical radius for the gradient.
the vertical radius for the gradient
type Gsk_Radial_Gradient_Node is access all Gsk_Radial_Gradient_Node_Record'Class;
function Gsk_Radial_Gradient_Node_New
(Bounds : not null access Graphene.Rect.Graphene_Rect_T;
Center : not null access Graphene.Point.Graphene_Point_T;
Hradius : Interfaces.C.C_float;
Vradius : Interfaces.C.C_float;
Start : Interfaces.C.C_float;
The_End : Interfaces.C.C_float;
Color_Stops : Gsk.Render_Node.Gsk_Color_Stop_Array)
return Gsk_Radial_Gradient_Node
Creates a GskRenderNode that draws a radial gradient. The radial gradient starts around Center. The size of the gradient is dictated by Hradius in horizontal orientation and by Vradius in vertical orientation.
the bounds of the node
the center of the gradient
the horizontal radius
the vertical radius
a percentage >= 0 that defines the start of the gradient around Center
a percentage >= 0 that defines the end of the gradient around Center
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_Radial_Gradient_Node_Record is new Gsk_Render_Node_Record with null record;
procedure Gtk_New
(Self : out Gsk_Radial_Gradient_Node;
Bounds : not null access Graphene.Rect.Graphene_Rect_T;
Center : not null access Graphene.Point.Graphene_Point_T;
Hradius : Interfaces.C.C_float;
Vradius : Interfaces.C.C_float;
Start : Interfaces.C.C_float;
The_End : Interfaces.C.C_float;
Color_Stops : Gsk.Render_Node.Gsk_Color_Stop_Array)
Creates a GskRenderNode that draws a radial gradient. The radial gradient starts around Center. The size of the gradient is dictated by Hradius in horizontal orientation and by Vradius in vertical orientation. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the bounds of the node
the center of the gradient
the horizontal radius
the vertical radius
a percentage >= 0 that defines the start of the gradient around Center
a percentage >= 0 that defines the end of the gradient around Center
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_Radial_Gradient_Node_Record'Class;
Bounds : not null access Graphene.Rect.Graphene_Rect_T;
Center : not null access Graphene.Point.Graphene_Point_T;
Hradius : Interfaces.C.C_float;
Vradius : Interfaces.C.C_float;
Start : Interfaces.C.C_float;
The_End : Interfaces.C.C_float;
Color_Stops : Gsk.Render_Node.Gsk_Color_Stop_Array)
Creates a GskRenderNode that draws a radial gradient. The radial gradient starts around Center. The size of the gradient is dictated by Hradius in horizontal orientation and by Vradius in vertical orientation. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the bounds of the node
the center of the gradient
the horizontal radius
the vertical radius
a percentage >= 0 that defines the start of the gradient around Center
a percentage >= 0 that defines the end of the gradient around Center
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.