Compilation Units
Tagged Types
A render node controlling the color matrix of its single child node.
function Create
(Object : not null access System.Address)
return Gsk_Color_Matrix_Node_Record
function Get_Child
(Self : Gsk_Color_Matrix_Node) return Gsk.Render_Node.Gsk_Render_Node
Gets the child node that is getting its colors modified by the given Node.
The child that is getting its colors modified. Has transfer-ownership='none'.
function Get_Color_Matrix
(Self : Gsk_Color_Matrix_Node)
return access constant Graphene.Matrix.Graphene_Matrix_T
Retrieves the color matrix used by the Node.
a 4x4 color matrix
function Get_Color_Offset
(Self : Gsk_Color_Matrix_Node)
return access constant Graphene.Vec4.Graphene_Vec4_T
Retrieves the color offset used by the Node.
a color vector
function Get_Type return Glib.GType
type Gsk_Color_Matrix_Node is access all Gsk_Color_Matrix_Node_Record'Class;
function Gsk_Color_Matrix_Node_New
(Child : Gsk.Render_Node.Gsk_Render_Node;
Color_Matrix : not null access Graphene.Matrix.Graphene_Matrix_T;
Color_Offset : not null access Graphene.Vec4.Graphene_Vec4_T)
return Gsk_Color_Matrix_Node
Creates a GskRenderNode that will drawn the Child with Color_Matrix. In particular, the node will transform colors by applying pixel = transpose(color_matrix) * pixel + color_offset for every pixel. The transformation operates on unpremultiplied colors, with color components ordered R, G, B, A.
The node to draw
The matrix to apply
Values to add to the color
type Gsk_Color_Matrix_Node_Record is new Gsk_Render_Node_Record with null record;
procedure Gtk_New
(Self : out Gsk_Color_Matrix_Node;
Child : Gsk.Render_Node.Gsk_Render_Node;
Color_Matrix : not null access Graphene.Matrix.Graphene_Matrix_T;
Color_Offset : not null access Graphene.Vec4.Graphene_Vec4_T)
Creates a GskRenderNode that will drawn the Child with Color_Matrix. In particular, the node will transform colors by applying pixel = transpose(color_matrix) * pixel + color_offset for every pixel. The transformation operates on unpremultiplied colors, with color components ordered R, G, B, A. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
The node to draw
The matrix to apply
Values to add to the color
procedure Initialize
(Self : not null access Gsk_Color_Matrix_Node_Record'Class;
Child : Gsk.Render_Node.Gsk_Render_Node;
Color_Matrix : not null access Graphene.Matrix.Graphene_Matrix_T;
Color_Offset : not null access Graphene.Vec4.Graphene_Vec4_T)
Creates a GskRenderNode that will drawn the Child with Color_Matrix. In particular, the node will transform colors by applying pixel = transpose(color_matrix) * pixel + color_offset for every pixel. The transformation operates on unpremultiplied colors, with color components ordered R, G, B, A. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
The node to draw
The matrix to apply
Values to add to the color