Gsk.TextNode

g Gsk.RenderNode Gsk.RenderNode Gsk.TextNode Gsk.TextNode Gsk.RenderNode->Gsk.TextNode

Subclasses:

None

Methods

Inherited:

Gsk.RenderNode (8)

class

new (font, glyphs, color, offset)

get_color ()

get_font ()

get_glyphs ()

get_num_glyphs ()

get_offset ()

has_color_glyphs ()

Virtual Methods

None

Fields

None

Class Details

class Gsk.TextNode
Bases:

Gsk.RenderNode

Abstract:

No

A render node drawing a set of glyphs.

classmethod new(font, glyphs, color, offset)
Parameters:
Returns:

a new GskRenderNode

Return type:

Gsk.TextNode or None

Creates a render node that renders the given glyphs.

Note that color may not be used if the font contains color glyphs.

get_color()
Returns:

the text color

Return type:

Gdk.RGBA

Retrieves the color used by the text self.

get_font()
Returns:

the font

Return type:

Pango.Font

Returns the font used by the text self.

get_glyphs()
Returns:

the glyph information

Return type:

[Pango.GlyphInfo]

Retrieves the glyph information in the self.

get_num_glyphs()
Returns:

the number of glyphs

Return type:

int

Retrieves the number of glyphs in the text node.

get_offset()
Returns:

a point with the horizontal and vertical offsets

Return type:

Graphene.Point

Retrieves the offset applied to the text.

has_color_glyphs()
Returns:

True if the text node has color glyphs

Return type:

bool

Checks whether the text self has color glyphs.

New in version 4.2.