Compilation Units
Tagged Types
A render node drawing a set of glyphs.
function Create
(Object : not null access System.Address) return Gsk_Text_Node_Record
function Get_Color
(Self : Gsk_Text_Node) return access constant Gdk.RGBA.Gdk_RGBA
Retrieves the color used by the text Node. The value returned by this function will not be correct if the render node was created for a non-sRGB color.
the text color
function Get_Font (Self : Gsk_Text_Node) return Pango.Font.Pango_Font
Returns the font used by the text Node.
the font. Has transfer-ownership='none'.
function Get_Glyphs
(Self : Gsk_Text_Node)
return Pango.Glyph_String.Pango_Glyph_Info_Array
Retrieves the glyph information in the Node.
the glyph information
function Get_Num_Glyphs (Self : Gsk_Text_Node) return Guint
Retrieves the number of glyphs in the text node.
the number of glyphs
function Get_Offset
(Self : Gsk_Text_Node)
return access constant Graphene.Point.Graphene_Point_T
Retrieves the offset applied to the text.
a point with the horizontal and vertical offsets
function Get_Type return Glib.GType
type Gsk_Text_Node is access all Gsk_Text_Node_Record'Class;
function Gsk_Text_Node_New
(Font : not null access Pango.Font.Pango_Font_Record'Class;
Glyphs : not null access Pango.Glyph_String.Pango_Glyph_String;
Color : not null access Gdk.RGBA.Gdk_RGBA;
Offset : not null access Graphene.Point.Graphene_Point_T)
return Gsk_Text_Node
Creates a render node that renders the given glyphs. Note that Color may not be used if the font contains color glyphs.
the PangoFont containing the glyphs
the PangoGlyphString to render
the foreground color to render with
offset of the baseline
type Gsk_Text_Node_Record is new Gsk_Render_Node_Record with null record;
procedure Gtk_New
(Self : out Gsk_Text_Node;
Font : not null access Pango.Font.Pango_Font_Record'Class;
Glyphs : not null access Pango.Glyph_String.Pango_Glyph_String;
Color : not null access Gdk.RGBA.Gdk_RGBA;
Offset : not null access Graphene.Point.Graphene_Point_T)
Creates a render node that renders the given glyphs. Note that Color may not be used if the font contains color glyphs. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the PangoFont containing the glyphs
the PangoGlyphString to render
the foreground color to render with
offset of the baseline
function Has_Color_Glyphs (Self : Gsk_Text_Node) return Boolean
Checks whether the text Node has color glyphs. Since: gtk+ 4.2
True if the text node has color glyphs
procedure Initialize
(Self : not null access Gsk_Text_Node_Record'Class;
Font : not null access Pango.Font.Pango_Font_Record'Class;
Glyphs : not null access Pango.Glyph_String.Pango_Glyph_String;
Color : not null access Gdk.RGBA.Gdk_RGBA;
Offset : not null access Graphene.Point.Graphene_Point_T)
Creates a render node that renders the given glyphs. Note that Color may not be used if the font contains color glyphs. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the PangoFont containing the glyphs
the PangoGlyphString to render
the foreground color to render with
offset of the baseline