AgsScale

AgsScale — scale widget

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkObject
            ╰── GtkWidget
                ╰── GtkDrawingArea
                    ╰── AgsScale

Implemented Interfaces

AgsScale implements AtkImplementorIface, GtkBuildable and AgsConnectable.

Includes

#include <ags/X/editor/ags_scale.h>

Description

The AgsScale draws you a scale.

Functions

ags_scale_paint ()

void
ags_scale_paint (AgsScale *scale);

ags_scale_add_area ()

void
ags_scale_add_area (AgsScale *scale,
                    AgsScaleArea *scale_area);

Adds scale_area to scale .

Parameters

scale

an AgsScale

 

scale_area

the AgsScaleArea to add

 

Since: 1.0.0


ags_scale_remove_area ()

void
ags_scale_remove_area (AgsScale *scale,
                       AgsScaleArea *scale_area);

Removes scale_area of scale .

Parameters

scale

an AgsScale

 

scale_area

the AgsScaleArea to remove

 

Since: 1.0.0


ags_scale_new ()

AgsScale *
ags_scale_new ();

Create a new AgsScale.

Returns

a new AgsScale

Since: 1.0.0


AGS_IS_SCALE()

#define AGS_IS_SCALE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCALE))

AGS_SCALE()

#define AGS_SCALE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCALE, AgsScale))

AGS_SCALE_CLASS()

#define AGS_SCALE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SCALE, AgsScaleClass))

AGS_SCALE_GET_CLASS()

#define AGS_SCALE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_SCALE, AgsScaleClass))

ags_scale_get_type ()

GType
ags_scale_get_type (void);

Types and Values

AGS_SCALE_MARGIN_TOP

#define AGS_SCALE_MARGIN_TOP (24)

AGS_SCALE_DEFAULT_HEIGHT

#define AGS_SCALE_DEFAULT_HEIGHT (128)

AGS_SCALE_DEFAULT_MARGIN

#define AGS_SCALE_DEFAULT_MARGIN (8)

AGS_TYPE_SCALE

#define AGS_TYPE_SCALE                (ags_scale_get_type())

struct AgsScale

struct AgsScale;

struct AgsScaleClass

struct AgsScaleClass {
  GtkDrawingAreaClass drawing_area;
};