Gsk.TextNode¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
|
|
|
|
|
|
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Gsk.TextNode¶
- Bases:
- Abstract:
No
A render node drawing a set of glyphs.
- classmethod new(font, glyphs, color, offset)¶
- Parameters:
font (
Pango.Font
) – thePangoFont
containing the glyphsglyphs (
Pango.GlyphString
) – thePangoGlyphString
to rendercolor (
Gdk.RGBA
) – the foreground color to render withoffset (
Graphene.Point
) – offset of the baseline
- Returns:
a new
GskRenderNode
- Return type:
Gsk.TextNode
orNone
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:
Retrieves the color used by the text self.
- get_font()¶
- Returns:
the font
- Return type:
Returns the font used by the text self.
- get_glyphs()¶
- Returns:
the glyph information
- Return type:
Retrieves the glyph information in the self.
- get_num_glyphs()¶
- Returns:
the number of glyphs
- Return type:
Retrieves the number of glyphs in the text node.
- get_offset()¶
- Returns:
a point with the horizontal and vertical offsets
- Return type:
Retrieves the offset applied to the text.