A render node for a conic gradient.
function Create
(Object : not null access System.Address)
return Gsk_Conic_Gradient_Node_Record
function Get_Angle
(Self : Gsk_Conic_Gradient_Node) return Interfaces.C.C_float
Retrieves the angle for the gradient in radians, normalized in [0, 2 * PI]. The angle is starting at the top and going clockwise, as expressed in the css specification: angle = 90 - Gsk.Conic_Gradient_Node.Get_Rotation Since: gtk+ 4.2
the angle for the gradient
function Get_Center
(Self : Gsk_Conic_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_Conic_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_N_Color_Stops (Self : Gsk_Conic_Gradient_Node) return Gsize
Retrieves the number of color stops in the gradient.
the number of color stops
function Get_Rotation
(Self : Gsk_Conic_Gradient_Node) return Interfaces.C.C_float
Retrieves the rotation for the gradient in degrees.
the rotation for the gradient
function Get_Type return Glib.GType
type Gsk_Conic_Gradient_Node is access all Gsk_Conic_Gradient_Node_Record'Class;
function Gsk_Conic_Gradient_Node_New
(Bounds : not null access Graphene.Rect.Graphene_Rect_T;
Center : not null access Graphene.Point.Graphene_Point_T;
Rotation : Interfaces.C.C_float;
Color_Stops : Gsk.Render_Node.Gsk_Color_Stop_Array)
return Gsk_Conic_Gradient_Node
Creates a GskRenderNode that draws a conic gradient. The conic gradient starts around Center in the direction of Rotation. A rotation of 0 means that the gradient points up. Color stops are then added clockwise.
the bounds of the node
the center of the gradient
the rotation of the gradient in degrees
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_Conic_Gradient_Node_Record is new Gsk_Render_Node_Record with null record;
procedure Gtk_New
(Self : out Gsk_Conic_Gradient_Node;
Bounds : not null access Graphene.Rect.Graphene_Rect_T;
Center : not null access Graphene.Point.Graphene_Point_T;
Rotation : Interfaces.C.C_float;
Color_Stops : Gsk.Render_Node.Gsk_Color_Stop_Array)
Creates a GskRenderNode that draws a conic gradient. The conic gradient starts around Center in the direction of Rotation. A rotation of 0 means that the gradient points up. Color stops are then added clockwise. 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 rotation of the gradient in degrees
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_Conic_Gradient_Node_Record'Class;
Bounds : not null access Graphene.Rect.Graphene_Rect_T;
Center : not null access Graphene.Point.Graphene_Point_T;
Rotation : Interfaces.C.C_float;
Color_Stops : Gsk.Render_Node.Gsk_Color_Stop_Array)
Creates a GskRenderNode that draws a conic gradient. The conic gradient starts around Center in the direction of Rotation. A rotation of 0 means that the gradient points up. Color stops are then added clockwise. 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 rotation of the gradient in degrees
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.