AgsRuler

AgsRuler — A ruler widget

Synopsis

#include <ags/widget/ags_ruler.h>

#define             AGS_RULER_DEFAULT_STEP
#define             AGS_RULER_LARGE_STEP
#define             AGS_RULER_SMALL_STEP
struct              AgsRuler;
struct              AgsRulerClass;
AgsRuler *          ags_ruler_new                       ();

Description

AgsRuler is a widget representing a GtkAdjustment.

Details

AGS_RULER_DEFAULT_STEP

#define AGS_RULER_DEFAULT_STEP (16)

AGS_RULER_LARGE_STEP

#define AGS_RULER_LARGE_STEP (8.0)

AGS_RULER_SMALL_STEP

#define AGS_RULER_SMALL_STEP (6.0)

struct AgsRuler

struct AgsRuler {
  GtkWidget widget;

  guint flags;

  guint font_size;

  GtkAdjustment *adjustment;

  guint step;

  gdouble factor;
  gdouble precision;
  gdouble scale_precision;
};

struct AgsRulerClass

struct AgsRulerClass {
  GtkWidgetClass widget;
};

ags_ruler_new ()

AgsRuler *          ags_ruler_new                       ();

Creates an AgsRuler

Returns :

a new AgsRuler

Since 0.4