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: 0.4.0


ags_dial_value_changed ()

void
ags_dial_value_changed (AgsDial *dial);


ags_dial_new ()

AgsDial *
ags_dial_new ();

Creates an AgsDial

Returns

a new AgsDial

Since: 0.4


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_IS_DIAL_CLASS()

#define AGS_IS_DIAL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), 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)


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 it is assigned with.

Flags: Read / Write


The “scale-precision” property

  “scale-precision”          guint

The precision of the scale.

Flags: Read / Write

Default value: 8

Since: 0.7.21

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