RCUiScrollableLabel

RCUiScrollableLabel — A scrollable label widget.

Synopsis

#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);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkWidget
               +----RCUiScrollableLabel

Implemented Interfaces

RCUiScrollableLabel implements AtkImplementorIface and GtkBuildable.

Properties

  "attributes"               PangoAttrList*        : Read / Write
  "percent"                  gdouble               : Read / Write
  "text"                     gchar*                : Read / Write

Description

An scrolledate label widget.

Details

struct RCUiScrollableLabel

struct RCUiScrollableLabel;

The structure used in object.


struct RCUiScrollableLabelClass

struct RCUiScrollableLabelClass {
};

The class data.


rc_ui_scrollable_label_get_attributes ()

PangoAttrList *     rc_ui_scrollable_label_get_attributes
                                                        (RCUiScrollableLabel *widget);

Get the attribute list that was set on the widget.

widget :

the RCUiScrollableLabel widget

Returns :

The attribute list, or NULL if none was set.

rc_ui_scrollable_label_get_percent ()

gdouble             rc_ui_scrollable_label_get_percent  (RCUiScrollableLabel *widget);

Get the horizon percentage of the text show in the widget.

widget :

the RCUiScrollableLabel widget

Returns :

The horizon percentage of the text show in the widget.

rc_ui_scrollable_label_get_text ()

const gchar *       rc_ui_scrollable_label_get_text     (RCUiScrollableLabel *widget);

Return the text in the widget.

widget :

the RCUiScrollableLabel widget

Returns :

The text in the widget, do not modify or free it.

rc_ui_scrollable_label_get_width ()

gint                rc_ui_scrollable_label_get_width    (RCUiScrollableLabel *widget);

Get the text width in the widget.

widget :

the RCUiScrollableLabel widget

Returns :

The text width in the widget.

rc_ui_scrollable_label_new ()

GtkWidget *         rc_ui_scrollable_label_new          ();

Create a new RCUiScrollableLabel widget.

Returns :

A new RCUiScrollableLabel widget.

rc_ui_scrollable_label_set_attributes ()

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.

widget :

the RCUiScrollableLabel widget

attrs :

the PangoAttrList to set

rc_ui_scrollable_label_set_percent ()

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.

widget :

the RCUiScrollableLabel widget to set

percent :

the horizon percentage of the text show in the widget, must be between 0.0 and 1.0

rc_ui_scrollable_label_set_text ()

void                rc_ui_scrollable_label_set_text     (RCUiScrollableLabel *widget,
                                                         const gchar *text);

Set the text to show in the widget.

widget :

the RCUiScrollableLabel widget to set

text :

the text to set

Property Details

The "attributes" property

  "attributes"               PangoAttrList*        : Read / Write

Sets the text of the widget to show.


The "percent" property

  "percent"                  gdouble               : Read / Write

Sets the percentage of text movement.

Allowed values: [0,1]

Default value: 0


The "text" property

  "text"                     gchar*                : Read / Write

Sets the text of the widget to show.

Default value: NULL