![]() |
![]() |
![]() |
Mx Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
struct MxLabel; ClutterActor * mx_label_new (void
); ClutterActor * mx_label_new_with_text (const gchar *text
); const gchar * mx_label_get_text (MxLabel *label
); void mx_label_set_text (MxLabel *label
,const gchar *text
); ClutterActor * mx_label_get_clutter_text (MxLabel *label
); void mx_label_set_x_align (MxLabel *label
,MxAlign align
); MxAlign mx_label_get_x_align (MxLabel *label
); void mx_label_set_y_align (MxLabel *label
,MxAlign align
); MxAlign mx_label_get_y_align (MxLabel *label
);
MxLabel implements ClutterScriptable, ClutterAnimatable, AtkImplementorIface and MxStylable.
"clutter-text" ClutterText* : Read "text" gchar* : Read / Write "x-align" MxAlign : Read / Write "y-align" MxAlign : Read / Write
MxLabel is a simple widget for displaying one or more lines of text. It derives from MxWidget to add extra style and placement functionality over ClutterText. The internal ClutterText is publicly accessibly to allow applications to set further properties.
struct MxLabel;
The contents of this structure is private and should only be accessed using the provided API.
ClutterActor * mx_label_new_with_text (const gchar *text
);
Create a new MxLabel with the specified label
|
text to set the label to |
Returns : |
a new MxLabel |
const gchar * mx_label_get_text (MxLabel *label
);
Get the text displayed on the label
|
a MxLabel |
Returns : |
the text for the label. This must not be freed by the application |
void mx_label_set_text (MxLabel *label
,const gchar *text
);
Sets the text displayed on the label
|
a MxLabel |
|
text to set the label to |
ClutterActor * mx_label_get_clutter_text (MxLabel *label
);
Retrieve the internal ClutterText so that extra parameters can be set