![]() |
![]() |
![]() |
RhythmCat Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#include <rc-ui-slabel.h> struct RCUiScrollableLabel; struct RCUiScrollableLabelClass; PangoAttrList * rc_ui_scrollable_label_get_attributes (RCUiScrollableLabel *widget
); gdouble rc_ui_scrollable_label_get_percent (RCUiScrollableLabel *widget
); const gchar * rc_ui_scrollable_label_get_text (RCUiScrollableLabel *widget
); gint rc_ui_scrollable_label_get_width (RCUiScrollableLabel *widget
); GtkWidget * rc_ui_scrollable_label_new (); void rc_ui_scrollable_label_set_attributes (RCUiScrollableLabel *widget
,PangoAttrList *attrs
); void rc_ui_scrollable_label_set_percent (RCUiScrollableLabel *widget
,gdouble percent
); void rc_ui_scrollable_label_set_text (RCUiScrollableLabel *widget
,const gchar *text
);
"attributes" PangoAttrList* : Read / Write "percent" gdouble : Read / Write "text" gchar* : Read / Write
PangoAttrList * rc_ui_scrollable_label_get_attributes
(RCUiScrollableLabel *widget
);
Get the attribute list that was set on the widget.
|
the RCUiScrollableLabel widget |
Returns : |
The attribute list, or NULL if none was set. |
gdouble rc_ui_scrollable_label_get_percent (RCUiScrollableLabel *widget
);
Get the horizon percentage of the text show in the widget.
|
the RCUiScrollableLabel widget |
Returns : |
The horizon percentage of the text show in the widget. |
const gchar * rc_ui_scrollable_label_get_text (RCUiScrollableLabel *widget
);
Return the text in the widget.
|
the RCUiScrollableLabel widget |
Returns : |
The text in the widget, do not modify or free it. |
gint rc_ui_scrollable_label_get_width (RCUiScrollableLabel *widget
);
Get the text width in the widget.
|
the RCUiScrollableLabel widget |
Returns : |
The text width in the widget. |
GtkWidget * rc_ui_scrollable_label_new ();
Create a new RCUiScrollableLabel widget.
Returns : |
A new RCUiScrollableLabel widget. |
void rc_ui_scrollable_label_set_attributes (RCUiScrollableLabel *widget
,PangoAttrList *attrs
);
Sets a PangoAttrList; the attributes in the list are applied to the text in the widget.
|
the RCUiScrollableLabel widget |
|
the PangoAttrList to set |
void rc_ui_scrollable_label_set_percent (RCUiScrollableLabel *widget
,gdouble percent
);
Set the horizon percentage of the text show in the widget, if the text in the widget is longer than the width of the widget.
|
the RCUiScrollableLabel widget to set |
|
the horizon percentage of the text show in the widget, must be between 0.0 and 1.0 |
void rc_ui_scrollable_label_set_text (RCUiScrollableLabel *widget
,const gchar *text
);
Set the text to show in the widget.
|
the RCUiScrollableLabel widget to set |
|
the text to set |
"attributes"
property"attributes" PangoAttrList* : Read / Write
Sets the text of the widget to show.
"percent"
property"percent" gdouble : Read / Write
Sets the percentage of text movement.
Allowed values: [0,1]
Default value: 0
"text"
property"text" gchar* : Read / Write
Sets the text of the widget to show.
Default value: NULL