Class: Gsk::TextNode
- Inherits:
-
RenderNode
- Object
- RenderNode
- Gsk::TextNode
- Defined in:
- (unknown)
Overview
A render node drawing a set of glyphs.
Instance Method Summary collapse
-
#color ⇒ Gdk::RGBA
Retrieves the color used by the text node.
-
#font ⇒ Pango::Font
Returns the font used by the text node.
-
#get_glyphs(n_glyphs) ⇒ Array<Pango::GlyphInfo>
Retrieves the glyph information in the node.
-
#has_color_glyphs ⇒ Boolean
Checks whether the text node has color glyphs.
-
#initialize(font, glyphs, color, offset) ⇒ Gsk::TextNode
constructor
Creates a render node that renders the given glyphs.
-
#num_glyphs ⇒ Integer
Retrieves the number of glyphs in the text node.
-
#offset ⇒ Graphene::Point
Retrieves the offset applied to the text.
Methods inherited from RenderNode
deserialize, #draw, #get_bounds, #node_type, #ref, #serialize, #unref, #write_to_file
Constructor Details
#initialize(font, glyphs, color, offset) ⇒ Gsk::TextNode
Creates a render node that renders the given glyphs.
Note that color may not be used if the font contains color glyphs.
Instance Method Details
#color ⇒ Gdk::RGBA
Retrieves the color used by the text node.
#font ⇒ Pango::Font
Returns the font used by the text node.
#get_glyphs(n_glyphs) ⇒ Array<Pango::GlyphInfo>
Retrieves the glyph information in the node.
#has_color_glyphs ⇒ Boolean
Checks whether the text node has color glyphs.
#num_glyphs ⇒ Integer
Retrieves the number of glyphs in the text node.
#offset ⇒ Graphene::Point
Retrieves the offset applied to the text.