NbtkLabel

NbtkLabel — Widget for displaying text

Synopsis

                    NbtkLabel;
NbtkWidget *        nbtk_label_new                      (const gchar *text);
const gchar *       nbtk_label_get_text                 (NbtkLabel *label);
void                nbtk_label_set_text                 (NbtkLabel *label,
                                                         const gchar *text);
ClutterActor *      nbtk_label_get_clutter_text         (NbtkLabel *label);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----ClutterActor
               +----NbtkWidget
                     +----NbtkLabel

Implemented Interfaces

NbtkLabel implements ClutterScriptable and NbtkStylable.

Properties

  "text"                     gchar*                : Read / Write

Description

NbtkLabel is a simple widget for displaying text. It derives from NbtkWidget to add extra style and placement functionality over ClutterText. The internal ClutterText is publicly accessibly to allow applications to set further properties.

Details

NbtkLabel

typedef struct _NbtkLabel NbtkLabel;

The contents of this structure is private and should only be accessed using the provided API.


nbtk_label_new ()

NbtkWidget *        nbtk_label_new                      (const gchar *text);

Create a new NbtkLabel with the specified label

text :

text to set the label to

Returns :

a new NbtkLabel

nbtk_label_get_text ()

const gchar *       nbtk_label_get_text                 (NbtkLabel *label);

Get the text displayed on the label

label :

a NbtkLabel

Returns :

the text for the label. This must not be freed by the application

nbtk_label_set_text ()

void                nbtk_label_set_text                 (NbtkLabel *label,
                                                         const gchar *text);

Sets the text displayed on the label

label :

a NbtkLabel

text :

text to set the label to

nbtk_label_get_clutter_text ()

ClutterActor *      nbtk_label_get_clutter_text         (NbtkLabel *label);

Retrieve the internal ClutterText so that extra parameters can be set

label :

a NbtkLabel

Returns :

the ClutterText used by NbtkLabel. The label is owned by the NbtkLabel and should not be unref'ed by the application.

Property Details

The "text" property

  "text"                     gchar*                : Read / Write

Text of the label.

Default value: NULL