Top | ![]() |
![]() |
![]() |
![]() |
ClutterActor * | mx_label_new () |
ClutterActor * | mx_label_new_with_text () |
const gchar * | mx_label_get_text () |
void | mx_label_set_text () |
gboolean | mx_label_get_use_markup () |
void | mx_label_set_use_markup () |
ClutterActor * | mx_label_get_clutter_text () |
MxAlign | mx_label_get_x_align () |
void | mx_label_set_x_align () |
MxAlign | mx_label_get_y_align () |
void | mx_label_set_y_align () |
gboolean | mx_label_get_line_wrap () |
void | mx_label_set_line_wrap () |
void | mx_label_set_fade_out () |
gboolean | mx_label_get_fade_out () |
ClutterText * | clutter-text | Read |
gboolean | fade-out | Read / Write |
gboolean | line-wrap | Read / Write |
gboolean | show-tooltip | Read / Write |
gchar * | text | Read / Write |
gboolean | use-markup | Read / Write |
MxAlign | x-align | Read / Write |
MxAlign | y-align | Read / Write |
MxLabel implements ClutterContainer, ClutterScriptable, ClutterAnimatable, AtkImplementorIface and MxStylable.
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.
ClutterActor *
mx_label_new_with_text (const gchar *text
);
Create a new MxLabel with the specified label
const gchar *
mx_label_get_text (MxLabel *label
);
Get the text displayed on the label
void mx_label_set_text (MxLabel *label
,const gchar *text
);
Sets the text displayed on the label
gboolean
mx_label_get_use_markup (MxLabel *label
);
Determines whether the text of the label is being treated as Pango markup.
Since: 1.2
void mx_label_set_use_markup (MxLabel *label
,gboolean use_markup
);
Sets whether the text of the label should be treated as Pango markup.
ClutterActor *
mx_label_get_clutter_text (MxLabel *label
);
Retrieve the internal ClutterText so that extra parameters can be set
the ClutterText used by MxLabel. The label is owned by the MxLabel and should not be unref'ed by the application.
[transfer none]
gboolean
mx_label_get_line_wrap (MxLabel *label
);
Get the value of the “line-wrap” property.
Since: 1.2
void mx_label_set_line_wrap (MxLabel *label
,gboolean line_wrap
);
Set the value of the “line-wrap” property.
Since: 1.2
void mx_label_set_fade_out (MxLabel *label
,gboolean fade
);
Set whether to fade out the end of the label, instead of ellipsizing. Enabling this mode will also set the “single-line-mode” and “ellipsize” properties.
Since: 1.2
struct MxLabel;
The contents of this structure is private and should only be accessed using the provided API.
“clutter-text”
property“clutter-text” ClutterText *
Internal ClutterText actor.
Owner: MxLabel
Flags: Read
“fade-out”
property“fade-out” gboolean
Fade out the end of the label, instead of ellipsizing.
Owner: MxLabel
Flags: Read / Write
Default value: FALSE
“line-wrap”
property“line-wrap” gboolean
Whether to wrap the lines of “text” if the contents exceed the available allocation.
Owner: MxLabel
Flags: Read / Write
Default value: FALSE
Since: 1.2
“show-tooltip”
property“show-tooltip” gboolean
Show a tooltip when there is not enough space to display the text. If set
to TRUE
, this will also cause the “reactive” property to be
enabled.
Owner: MxLabel
Flags: Read / Write
Default value: FALSE
Since: 1.4
“text”
property“text” gchar *
Text of the label.
Owner: MxLabel
Flags: Read / Write
Default value: NULL
“use-markup”
property“use-markup” gboolean
Whether the text of the label should be treated as Pango markup.
Owner: MxLabel
Flags: Read / Write
Default value: FALSE
“x-align”
property“x-align” MxAlign
Horizontal position of the text layout.
Owner: MxLabel
Flags: Read / Write
Default value: MX_ALIGN_START
“y-align”
property“y-align” MxAlign
Vertical position of the text layout.
Owner: MxLabel
Flags: Read / Write
Default value: MX_ALIGN_START