![]() |
![]() |
![]() |
Netbook Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
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
);
NbtkLabel implements ClutterScriptable, ClutterAnimatable, AtkImplementorIface and NbtkStylable.
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.
typedef struct _NbtkLabel NbtkLabel;
The contents of this structure is private and should only be accessed using the provided API.
NbtkWidget * nbtk_label_new (const gchar *text
);
Create a new NbtkLabel with the specified label
|
text to set the label to |
Returns : |
a new NbtkLabel |
const gchar * nbtk_label_get_text (NbtkLabel *label
);
Get the text displayed on the label
|
a NbtkLabel |
Returns : |
the text for the label. This must not be freed by the application |
void nbtk_label_set_text (NbtkLabel *label
,const gchar *text
);
Sets the text displayed on the label
|
a NbtkLabel |
|
text to set the label to |
ClutterActor * nbtk_label_get_clutter_text (NbtkLabel *label
);
Retrieve the internal ClutterText so that extra parameters can be set
|
a NbtkLabel |
Returns : |
the ClutterText used by NbtkLabel. The label is owned by the NbtkLabel and should not be unref'ed by the application. |