Class: Clutter::TextNode

Inherits:
PaintNode show all
Defined in:
(unknown)

Overview

The ClutterTextNodeClass structure is an opaque type whose contents cannot be directly accessed.

Instance Method Summary collapse

Methods inherited from PaintNode

#add_child, #add_rectangle, #add_texture_rectangle, #name=, #ref, #unref

Constructor Details

#initialize(layout, color) ⇒ Clutter::PaintNode

Creates a new Clutter::PaintNode that will paint a #PangoLayout with the given color.

This function takes a reference on the passed layout, so it is safe to call g_object_unref() after it returns.

Parameters:

  • layout (Pango::Layout)

    a Pango::Layout, or nil

  • color (Clutter::Color)

    the color used to paint the layout, or nil