BRateLabel

BRateLabel — Widget for displaying a rate, e.g. frames per second.

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkMisc
                ╰── GtkLabel
                    ╰── BRateLabel

Implemented Interfaces

BRateLabel implements AtkImplementorIface and GtkBuildable.

Description

This is a label used to display a rate.

Functions

b_rate_label_new ()

BRateLabel *
b_rate_label_new (const gchar *text,
                  const gchar *suffix);

Create a new BRateLabel.

Parameters

text

label string

 

suffix

suffix string

 

Returns

the widget.


b_rate_label_set_source ()

void
b_rate_label_set_source (BRateLabel *f,
                         BData *source);

Set a source object for BRateLabel. The frame rate will reflect the rate that "changed" signals are generated.

Parameters

f

a BRateLabel

 

source

a BData object

 

b_rate_label_update ()

void
b_rate_label_update (BRateLabel *f);

Force an update.

Parameters

f

a BRateLabel

 

b_rate_label_set_timeout ()

void
b_rate_label_set_timeout (BRateLabel *f,
                          double interval);

Set the timeout for the rate label. The label will display "timed out" if there are no updates within this time period. A value of interval less than or equal to zero will disable the timeout.

Parameters

f

a BRateLabel

 

interval

a timeout interval, in seconds

 

Types and Values

BRateLabel

typedef struct _BRateLabel BRateLabel;