AgsDial

AgsDial — A dial widget

Functions

Properties

GObject * adjustment Read / Write
guint scale-precision Read / Write

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkObject
            ╰── GtkWidget
                ╰── AgsDial

Implemented Interfaces

AgsDial implements AtkImplementorIface and GtkBuildable.

Includes

#include <ags/widget/ags_dial.h>

Description

AgsDial is a widget representing a GtkAdjustment.

Functions

ags_dial_draw ()

void
ags_dial_draw (AgsDial *dial);

draws the widget

Parameters

dial

an AgsDial

 

Since: 1.0.0


ags_dial_value_changed ()

void
ags_dial_value_changed (AgsDial *dial);

Set value

Parameters

dial

an AgsDial

 

value

the value to set

 

Since: 1.0.0


ags_dial_set_value ()

void
ags_dial_set_value (AgsDial *dial,
                    gdouble value);

ags_dial_new ()

AgsDial *
ags_dial_new ();

Creates an AgsDial

Returns

a new AgsDial

Since: 1.0.0


AGS_DIAL()

#define AGS_DIAL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DIAL, AgsDial))

AGS_DIAL_CLASS()

#define AGS_DIAL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_DIAL, AgsDialClass))

AGS_DIAL_GET_CLASS()

#define AGS_DIAL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_DIAL, AgsDialClass))

AGS_IS_DIAL()

#define AGS_IS_DIAL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DIAL))

ags_dial_get_type ()

GType
ags_dial_get_type (void);

Types and Values

AGS_DIAL_DEFAULT_PRECISION

#define AGS_DIAL_DEFAULT_PRECISION (8.0)

AGS_DIAL_DEFAULT_RADIUS

#define AGS_DIAL_DEFAULT_RADIUS (8)

AGS_DIAL_DEFAULT_OUTLINE_STRENGTH

#define AGS_DIAL_DEFAULT_OUTLINE_STRENGTH (4)

AGS_DIAL_DEFAULT_BUTTON_WIDTH

#define AGS_DIAL_DEFAULT_BUTTON_WIDTH (10)

AGS_DIAL_DEFAULT_MARGIN

#define AGS_DIAL_DEFAULT_MARGIN (4.0)

AGS_DIAL_DEFAULT_HEIGHT

#define AGS_DIAL_DEFAULT_HEIGHT (2 * (AGS_DIAL_DEFAULT_RADIUS + AGS_DIAL_DEFAULT_OUTLINE_STRENGTH + 1))

AGS_DIAL_DEFAULT_WIDTH

#define AGS_DIAL_DEFAULT_WIDTH (2 * (AGS_DIAL_DEFAULT_BUTTON_WIDTH + AGS_DIAL_DEFAULT_MARGIN + AGS_DIAL_DEFAULT_RADIUS + AGS_DIAL_DEFAULT_OUTLINE_STRENGTH + 2))

enum AgsDialFlags

Members

AGS_DIAL_WITH_BUTTONS

   

AGS_DIAL_MOUSE_BUTTON_PRESSED

   

AGS_DIAL_BUTTON_DOWN_PRESSED

   

AGS_DIAL_BUTTON_UP_PRESSED

   

AGS_DIAL_MOTION_CAPTURING_INIT

   

AGS_DIAL_MOTION_CAPTURING

   

AGS_DIAL_SEEMLESS_MODE

   

enum AgsDialAction

Members

AGS_DIAL_INCREMENT

   

AGS_DIAL_DECREMENT

   

AGS_TYPE_DIAL

#define AGS_TYPE_DIAL                (ags_dial_get_type())

struct AgsDial

struct AgsDial;

struct AgsDialClass

struct AgsDialClass {
  GtkWidgetClass widget;

  void (*value_changed)(AgsDial *dial);
};

Property Details

The “adjustment” property

  “adjustment”               GObject *

The adjustment storing current value and boundaries.

Flags: Read / Write

Since: 1.0.0


The “scale-precision” property

  “scale-precision”          guint

The precision of the scale.

Flags: Read / Write

Default value: 8

Since: 1.0.0

Signal Details

The “value-changed” signal

void
user_function (AgsDial *dial,
               gpointer user_data)

The ::value-changed signal notifies adjustment value changed.

Parameters

dial

the AgsDial

 

port_data

the port's data

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 1.0.0