CtkText

CtkText — Creates widgets that display text using pango

Synopsis

                    CtkTextPrivate;
                    CtkText;
ClutterActor *      ctk_text_new                        (const gchar *text);
void                ctk_text_set_alignment              (CtkText *self,
                                                         PangoAlignment alignment);
PangoAlignment      ctk_text_get_alignment              (CtkText *self);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----ClutterActor
               +----ClutterText
                     +----CtkText

Implemented Interfaces

CtkText implements ClutterScriptable.

Description

CtkText is a widget that internally uses ClutterText and Pango to display text

Details

CtkTextPrivate

typedef struct _CtkTextPrivate CtkTextPrivate;


CtkText

typedef struct _CtkText CtkText;


ctk_text_new ()

ClutterActor *      ctk_text_new                        (const gchar *text);

Builds a CtkText object containing text Defaults to enabling Pango markup

text :

string containing the text to display

Returns :

a CtkText object

ctk_text_set_alignment ()

void                ctk_text_set_alignment              (CtkText *self,
                                                         PangoAlignment alignment);

Sets the alignment of the text, see PangoAlignment for more info

self :

A CtkText object

alignment :

A PangoAlignment object

ctk_text_get_alignment ()

PangoAlignment      ctk_text_get_alignment              (CtkText *self);

Retrives the PangoAlignment that is currently used by self

self :

A CtkText object

Returns :

a PangoAlignment