Constructor

GskTextNodenew

Declaration [src]

GskRenderNode*
gsk_text_node_new (
  PangoFont* font,
  PangoGlyphString* glyphs,
  const GdkRGBA* color,
  const graphene_point_t* offset
)

Description [src]

Creates a render node that renders the given glyphs.

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

Parameters

font

Type: PangoFont

The PangoFont containing the glyphs.

The data is owned by the caller of the function.
glyphs

Type: PangoGlyphString

The PangoGlyphString to render.

The data is owned by the caller of the function.
color

Type: GdkRGBA

The foreground color to render with.

The data is owned by the caller of the function.
offset

Type: graphene_point_t

Offset of the baseline.

The data is owned by the caller of the function.

Return value

Type: GskTextNode

A new GskRenderNode.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.