BColorBar

BColorBar — Widget for displaying a color map with an axis.

Functions

Properties

gchar * bar-label Read / Write / Construct
gboolean draw-edge Read / Write / Construct
gboolean draw-label Read / Write / Construct
gdouble edge-thickness Read / Write / Construct
gdouble label-offset Read / Write / Construct
gdouble major-tick-length Read / Write / Construct
gdouble major-tick-thickness Read / Write / Construct
gdouble minor-tick-length Read / Write / Construct
gint orientation Read / Write / Construct Only
gboolean show-major-labels Read / Write / Construct
gboolean show-major-ticks Read / Write / Construct
gboolean show-minor-ticks Read / Write / Construct

Types and Values

Object Hierarchy

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

Implemented Interfaces

BColorBar implements AtkImplementorIface and GtkBuildable.

Description

Widget showing the color scale for a BDensityPlot.

The axis type to use to get/set the view interval and axis markers is META_AXIS.

Functions

b_color_bar_new ()

BColorBar *
b_color_bar_new (GtkOrientation o,
                 BColorMap *m);

Convenience function to create a new BColorBar.

Parameters

o

either GTK_ORIENTATION_HORIZONTAL or GTK_ORIENTATION_VERTICAL

 

m

a colormap to use

 

Returns

the new color bar.

Types and Values

BColorBar

typedef struct _BColorBar BColorBar;

Property Details

The “bar-label” property

  “bar-label”                gchar *

Set color bar label.

Flags: Read / Write / Construct

Default value: ""


The “draw-edge” property

  “draw-edge”                gboolean

Whether to draw the axis edge.

Flags: Read / Write / Construct

Default value: TRUE


The “draw-label” property

  “draw-label”               gboolean

Whether to draw an axis label.

Flags: Read / Write / Construct

Default value: TRUE


The “edge-thickness” property

  “edge-thickness”           gdouble

The thickness of the axis edge in pixels.

Flags: Read / Write / Construct

Allowed values: [0,10]

Default value: 1


The “label-offset” property

  “label-offset”             gdouble

The gap between ticks and labels in pixels.

Flags: Read / Write / Construct

Allowed values: [0,10]

Default value: 2


The “major-tick-length” property

  “major-tick-length”        gdouble

The length of major ticks in pixels.

Flags: Read / Write / Construct

Allowed values: [0,100]

Default value: 5


The “major-tick-thickness” property

  “major-tick-thickness”     gdouble

The thickness of major ticks in pixels.

Flags: Read / Write / Construct

Allowed values: [0,10]

Default value: 1


The “minor-tick-length” property

  “minor-tick-length”        gdouble

The length of minor ticks in pixels.

Flags: Read / Write / Construct

Allowed values: [0,100]

Default value: 3


The “orientation” property

  “orientation”              gint

Whether the colorbar is horizontal or vertical.

Flags: Read / Write / Construct Only

Allowed values: [0,1]

Default value: 0


The “show-major-labels” property

  “show-major-labels”        gboolean

Whether to draw major labels.

Flags: Read / Write / Construct

Default value: TRUE


The “show-major-ticks” property

  “show-major-ticks”         gboolean

Whether to draw major ticks.

Flags: Read / Write / Construct

Default value: TRUE


The “show-minor-ticks” property

  “show-minor-ticks”         gboolean

Whether to draw minor ticks.

Flags: Read / Write / Construct

Default value: TRUE