BElementView

BElementView — Base class for plot objects.

Functions

Signals

void changed Run First

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkDrawingArea
                ╰── BElementView
                    ╰── BElementViewCartesian

Implemented Interfaces

BElementView implements AtkImplementorIface and GtkBuildable.

Description

Abstract base class for plot classes BScatterLineView, BAxisView, and others.

Functions

b_element_view_changed ()

void
b_element_view_changed (BElementView *view);

Causes the BElementView to emit a "changed" signal, unless it is frozen, in which case the signal will be emitted when the view is thawed.

Parameters

view

BElementView

 

b_element_view_freeze ()

void
b_element_view_freeze (BElementView *view);

Freezes a BElementView, so that it no longer emits a "changed" signal when b_element_view_changed() is called. Multiple calls of this function will increase the freeze count. If b_element_view_changed() is called while the view is frozen, it will emit a "changed" signal when the freeze count drops to zero.

Parameters

view

BElementView

 

b_element_view_thaw ()

void
b_element_view_thaw (BElementView *view);

Decreases the freeze count of a BElementView. See b_element_view_freeze() for details.

Parameters

view

BElementView

 

b_element_view_set_status_label ()

void
b_element_view_set_status_label (BElementView *v,
                                 GtkLabel *status_label);

Connect a label to the view that will show status information, such as the coordinates of the pointer.

Parameters

v

a BScatterLineView

 

status_label

a GtkLabel

 

b_element_view_get_status_label ()

GtkLabel *
b_element_view_get_status_label (BElementView *v);

Get the status label.

Parameters

Returns

the label.

[transfer none]


b_element_view_set_status ()

void
b_element_view_set_status (BElementView *v,
                           const gchar *status);

Set the string to be displayed on the status label, if present.

Parameters

v

a BScatterLineView

 

status

a string

 

b_element_view_set_zooming ()

void
b_element_view_set_zooming (BElementView *view,
                            gboolean b);

If b is true, set v to zoom mode, where the view interval(s) can be increased or decreased using the mouse.

Parameters

view

BElementView

 

b

TRUE or FALSE

 

b_element_view_set_panning ()

void
b_element_view_set_panning (BElementView *view,
                            gboolean b);

If b is true, set v to pan mode, where the view interval(s) can be translated using the mouse.

Parameters

view

BElementView

 

b

TRUE or FALSE

 

b_element_view_get_zooming ()

gboolean
b_element_view_get_zooming (BElementView *view);

Return TRUE if the BElementView is in zoom mode.

Parameters

view

BElementView

 

Returns

a boolean


b_element_view_get_panning ()

gboolean
b_element_view_get_panning (BElementView *view);

Return TRUE if the BElementView is in pan mode.

Parameters

view

BElementView

 

Returns

a boolean

Types and Values

BElementView

typedef struct _BElementView BElementView;

struct BElementViewClass

struct BElementViewClass {
    GtkDrawingAreaClass base;

    /* VTable */

    /* Freeze/thaw */

    void (*freeze)       (BElementView *view);
    void (*thaw)         (BElementView *view);

    /* Signals */
    void (*changed)           (BElementView *view);
};

Abstract base class for views, which form the elements of plots.

Members

GtkDrawingAreaClass base;

base class

 

freeze ()

method that gets called by b_element_view_freeze()

 

thaw ()

method that gets called by b_element_view_thaw()

 

changed ()

default handler for "changed" signal

 

enum BAnchor

Members

ANCHOR_TOP

   

ANCHOR_UPPER_LEFT

   

ANCHOR_LEFT

   

ANCHOR_LOWER_LEFT

   

ANCHOR_BOTTOM

   

ANCHOR_LOWER_RIGHT

   

ANCHOR_RIGHT

   

ANCHOR_UPPER_RIGHT

   

ANCHOR_CENTER

   

enum BRotation

Members

ROT_0

   

ROT_90

   

ROT_180

   

ROT_270

   

struct BPoint

struct BPoint {
  double x, y;
};

Coordinates on a plane.

Members

double x;

x coordinate

 

double y;

y coordinate

 

Signal Details

The “changed” signal

void
user_function (BElementView *belementview,
               gpointer      user_data)

Flags: Run First