AgsGui.Ruler

g AgsGui.Ruler AgsGui.Ruler 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 Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable 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.Orientable->AgsGui.Ruler Gtk.Widget->AgsGui.Ruler

Subclasses:

None

Methods

Inherited:

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

Structs:

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

class

new (orientation, step, factor, precision, scale_precision)

get_adjustment ()

get_factor ()

get_font_size ()

get_large_step ()

get_precision ()

get_scale_precision ()

get_small_step ()

get_step ()

set_adjustment (adjustment)

set_factor (factor)

set_font_size (font_size)

set_large_step (large_step)

set_precision (precision)

set_scale_precision (scale_precision)

set_small_step (small_step)

set_step (step)

Virtual Methods

Inherited:

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

Properties

Inherited:

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

Name

Type

Flags

Short Description

adjustment

GObject.Object

r/w

The adjustment it is assigned with

factor

float

r/w

The factor

font-size

int

r/w

The font size

large-step

int

r/w

The width of a large step

precision

float

r/w

The precision

scale-precision

float

r/w

The scale precision

small-step

int

r/w

The width of a small step

step

int

r/w

The width of a step

Signals

Inherited:

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

Fields

Inherited:

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

Name

Type

Access

Description

adjustment

Gtk.Adjustment

r

factor

float

r

font_size

int

r

large_step

int

r

orientation

Gtk.Orientation

r

precision

float

r

scale_precision

float

r

small_step

int

r

step

int

r

widget

Gtk.Widget

r

Class Details

class AgsGui.Ruler(**kwargs)
Bases:

Gtk.Widget, Gtk.Orientable

Abstract:

No

Structure:

AgsGui.RulerClass

classmethod new(orientation, step, factor, precision, scale_precision)
Parameters:
Returns:

the new AgsGui.Ruler

Return type:

AgsGui.Ruler

Create a new instance of AgsGui.Ruler

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_factor()
Returns:

the factor

Return type:

float

Get factor of self.

New in version 4.0.0.

get_font_size()
Returns:

the font size

Return type:

int

Get font size of self.

New in version 3.6.15.

get_large_step()
Returns:

the large step

Return type:

int

Get large step of self.

New in version 3.2.0.

get_precision()
Returns:

the precision

Return type:

float

Get precision of self.

New in version 4.0.0.

get_scale_precision()
Returns:

the scale precision

Return type:

float

Get scale precision of self.

New in version 4.0.0.

get_small_step()
Returns:

the small step

Return type:

int

Get small step of self.

New in version 3.2.0.

get_step()
Returns:

the step

Return type:

int

Get step of self.

New in version 3.2.0.

set_adjustment(adjustment)
Parameters:

adjustment (Gtk.Adjustment) – the Gtk.Adjustment

Set adjustment of self.

New in version 3.2.0.

set_factor(factor)
Parameters:

factor (float) – the factor

Set factor of self.

New in version 4.0.0.

set_font_size(font_size)
Parameters:

font_size (int) – the font size

Set font size of self.

New in version 3.6.15.

set_large_step(large_step)
Parameters:

large_step (int) – the large step

Set large step of self.

New in version 3.2.0.

set_precision(precision)
Parameters:

precision (float) – the precision

Set precision of self.

New in version 4.0.0.

set_scale_precision(scale_precision)
Parameters:

scale_precision (float) – the scale precision

Set scale precision of self.

New in version 4.0.0.

set_small_step(small_step)
Parameters:

small_step (int) – the small step

Set small step of self.

New in version 3.2.0.

set_step(step)
Parameters:

step (int) – the step

Set step of self.

New in version 3.2.0.

Property Details

AgsGui.Ruler.props.adjustment
Name:

adjustment

Type:

GObject.Object

Default Value:

None

Flags:

READABLE, WRITABLE

The adjustment.

New in version 3.0.0.

AgsGui.Ruler.props.factor
Name:

factor

Type:

float

Default Value:

16.0

Flags:

READABLE, WRITABLE

The factor.

New in version 4.0.0.

AgsGui.Ruler.props.font_size
Name:

font-size

Type:

int

Default Value:

12

Flags:

READABLE, WRITABLE

The font size.

New in version 3.6.15.

AgsGui.Ruler.props.large_step
Name:

large-step

Type:

int

Default Value:

8

Flags:

READABLE, WRITABLE

The large step’s width.

New in version 3.0.0.

AgsGui.Ruler.props.precision
Name:

precision

Type:

float

Default Value:

1.0

Flags:

READABLE, WRITABLE

The precision.

New in version 4.0.0.

AgsGui.Ruler.props.scale_precision
Name:

scale-precision

Type:

float

Default Value:

1.0

Flags:

READABLE, WRITABLE

The scale precision.

New in version 4.0.0.

AgsGui.Ruler.props.small_step
Name:

small-step

Type:

int

Default Value:

6

Flags:

READABLE, WRITABLE

The small step’s width.

New in version 3.0.0.

AgsGui.Ruler.props.step
Name:

step

Type:

int

Default Value:

16

Flags:

READABLE, WRITABLE

The step’s width.

New in version 3.0.0.