AgsGui.Dial

g AgsGui.Dial AgsGui.Dial GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Widget->AgsGui.Dial

Subclasses:

None

Methods

Inherited:

Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new ()

get_adjustment ()

get_button_height ()

get_button_width ()

get_font_size ()

get_margin_left ()

get_margin_right ()

get_outline_strength ()

get_radius ()

get_scale_precision ()

get_value ()

set_adjustment (adjustment)

set_button_height (button_height)

set_button_width (button_width)

set_font_size (font_size)

set_margin_left (margin_left)

set_margin_right (margin_right)

set_outline_strength (outline_strength)

set_radius (radius)

set_scale_precision (scale_precision)

set_value (value)

value_changed ()

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

do_value_changed ()

Properties

Inherited:

Gtk.Widget (34), Gtk.Accessible (1)

Name

Type

Flags

Short Description

adjustment

GObject.Object

r/w

The adjustment it is assigned with

button-height

int

r/w

The buttons height

button-width

int

r/w

The buttons width

font-size

int

r/w

The buttons font-size

margin-left

int

r/w

The button’s margin left

margin-right

int

r/w

The button’s margin right

outline-strength

int

r/w

The knob’s outline strength

radius

int

r/w

The knob’s radius

scale-precision

int

r/w

The precision of the scale

Signals

Inherited:

Gtk.Widget (13), GObject.Object (1)

Name

Short Description

value-changed

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

Fields

Inherited:

Gtk.Widget (13), GObject.Object (1)

Name

Type

Access

Description

adjustment

Gtk.Adjustment

r

button_height

int

r

button_width

int

r

current_x

float

r

current_y

float

r

flags

AgsGui.DialFlags

r

font_size

int

r

gravity_x

float

r

gravity_y

float

r

margin_left

int

r

margin_right

int

r

negated_tolerance

float

r

outline_strength

int

r

radius

int

r

scale_max_precision

int

r

scale_precision

int

r

tolerance

float

r

widget

Gtk.Widget

r

Class Details

class AgsGui.Dial(**kwargs)
Bases:

Gtk.Widget

Abstract:

No

Structure:

AgsGui.DialClass

classmethod new()
Returns:

a new AgsGui.Dial

Return type:

AgsGui.Dial

Creates an AgsGui.Dial

New in version 3.0.0.

get_adjustment()
Returns:

the Gtk.Adjustment

Return type:

Gtk.Adjustment

Get adjustment of self.

New in version 3.2.0.

get_button_height()
Returns:

the button height

Return type:

int

Get button height of self.

New in version 3.2.0.

get_button_width()
Returns:

the button width

Return type:

int

Get button width of self.

New in version 3.2.0.

get_font_size()
Returns:

the font size

Return type:

int

Get font size of self.

New in version 3.2.0.

get_margin_left()
Returns:

the margin left

Return type:

int

Get margin_left of self.

New in version 3.2.0.

get_margin_right()
Returns:

the margin right

Return type:

int

Get margin right of self.

New in version 3.2.0.

get_outline_strength()
Returns:

the outline _strength

Return type:

int

Get outline strength of self.

New in version 3.2.0.

get_radius()
Returns:

the radius

Return type:

int

Get radius of self.

New in version 3.2.0.

get_scale_precision()
Returns:

the scale precision

Return type:

int

Get scale precision of self.

New in version 3.2.0.

get_value()
Returns:

the value

Return type:

float

Get value

New in version 3.14.0.

set_adjustment(adjustment)
Parameters:

adjustment (Gtk.Adjustment) – the Gtk.Adjustment

Set adjustment of self.

New in version 3.2.0.

set_button_height(button_height)
Parameters:

button_height (int) – the button height

Set button height of self.

New in version 3.2.0.

set_button_width(button_width)
Parameters:

button_width (int) – the button width

Set button width of self.

New in version 3.2.0.

set_font_size(font_size)
Parameters:

font_size (int) – the font size

Set font size of self.

New in version 3.2.0.

set_margin_left(margin_left)
Parameters:

margin_left (int) – the margin left

Set margin left of self.

New in version 3.2.0.

set_margin_right(margin_right)
Parameters:

margin_right (int) – the margin right

Set margin right of self.

New in version 3.2.0.

set_outline_strength(outline_strength)
Parameters:

outline_strength (int) – the outline strength

Set outline strength of self.

New in version 3.2.0.

set_radius(radius)
Parameters:

radius (int) – the radius

Set radius of self.

New in version 3.2.0.

set_scale_precision(scale_precision)
Parameters:

scale_precision (int) – the scale precision

Set scale precision of self.

New in version 3.2.0.

set_value(value)
Parameters:

value (float) – the value to set

Set value

New in version 3.0.0.

value_changed()

draws the widget

New in version 3.0.0.

do_value_changed() virtual

draws the widget

New in version 3.0.0.

Signal Details

AgsGui.Dial.signals.value_changed(dial)
Signal Name:

value-changed

Flags:

RUN_LAST

Parameters:

dial (AgsGui.Dial) – The object which received the signal

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

New in version 3.0.0.

Property Details

AgsGui.Dial.props.adjustment
Name:

adjustment

Type:

GObject.Object

Default Value:

None

Flags:

READABLE, WRITABLE

The adjustment storing current value and boundaries.

New in version 3.0.0.

AgsGui.Dial.props.button_height
Name:

button-height

Type:

int

Default Value:

8

Flags:

READABLE, WRITABLE

The buttons height.

New in version 3.0.0.

AgsGui.Dial.props.button_width
Name:

button-width

Type:

int

Default Value:

12

Flags:

READABLE, WRITABLE

The buttons width.

New in version 3.0.0.

AgsGui.Dial.props.font_size
Name:

font-size

Type:

int

Default Value:

12

Flags:

READABLE, WRITABLE

The font size of the buttons.

New in version 3.0.0.

AgsGui.Dial.props.margin_left
Name:

margin-left

Type:

int

Default Value:

4

Flags:

READABLE, WRITABLE

The button’s margin left.

New in version 3.0.0.

AgsGui.Dial.props.margin_right
Name:

margin-right

Type:

int

Default Value:

4

Flags:

READABLE, WRITABLE

The button’s margin right.

New in version 3.0.0.

AgsGui.Dial.props.outline_strength
Name:

outline-strength

Type:

int

Default Value:

4

Flags:

READABLE, WRITABLE

The outline strength of the knob.

New in version 3.0.0.

AgsGui.Dial.props.radius
Name:

radius

Type:

int

Default Value:

10

Flags:

READABLE, WRITABLE

The radius of the knob.

New in version 3.0.0.

AgsGui.Dial.props.scale_precision
Name:

scale-precision

Type:

int

Default Value:

8

Flags:

READABLE, WRITABLE

The precision of the scale.

New in version 3.0.0.