AgsGui.Level

g AgsGui.Level AgsGui.Level 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.Level Gtk.Widget->AgsGui.Level

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, width_request, height_request)

get_lower ()

get_normalized_volume ()

get_upper ()

set_data_format (data_format)

set_lower (lower)

set_normalized_volume (normalized_volume)

set_samplerate (samplerate)

set_upper (upper)

value_changed (normalized_volume)

Virtual Methods

Inherited:

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

do_value_changed (normalized_volume)

Properties

Inherited:

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

Name

Type

Flags

Short Description

data-format

int

r/w

The data format

lower

float

r/w

The lower of level

normalized-volume

float

r/w

The normalized volume of level

samplerate

int

r/w

The samplerate of level

upper

float

r/w

The upper of level

Signals

Inherited:

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

Name

Short Description

value-changed

The ::value-changed signal notifies about modified default value.

Fields

Inherited:

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

Name

Type

Access

Description

audio_channel

int

r

audio_channel_count

int

r

button_state

AgsGui.LevelButtonState

r

data_format

AgsGui.LevelDataFormat

r

flags

int

r

font_size

int

r

key_mask

AgsGui.LevelKeyMask

r

lower

float

r

normalized_volume

float

r

orientation

Gtk.Orientation

r

page_size

float

r

samplerate

int

r

step_count

int

r

upper

float

r

widget

Gtk.Widget

r

Class Details

class AgsGui.Level(**kwargs)
Bases:

Gtk.Widget, Gtk.Orientable

Abstract:

No

Structure:

AgsGui.LevelClass

classmethod new(orientation, width_request, height_request)
Parameters:
Returns:

the new AgsGui.Level instance

Return type:

AgsGui.Level

Create a new instance of AgsGui.Level.

New in version 3.0.0.

get_lower()
Returns:

the lower

Return type:

float

Get lower of self.

New in version 3.2.2.

get_normalized_volume()
Returns:

the normalized volume

Return type:

float

Get normalized volume of self.

New in version 3.2.2.

get_upper()
Returns:

the upper

Return type:

float

Get upper of self.

New in version 3.2.2.

set_data_format(data_format)
Parameters:

data_format (AgsGui.LevelDataFormat) – the data format

Set data-format.

New in version 5.1.0.

set_lower(lower)
Parameters:

lower (float) – the lower

Set lower of self.

New in version 3.2.2.

set_normalized_volume(normalized_volume)
Parameters:

normalized_volume (float) – the normalized volume

Set normalized_volume of self.

New in version 3.2.2.

set_samplerate(samplerate)
Parameters:

samplerate (int) – the samplerate

Set samplerate.

New in version 5.1.0.

set_upper(upper)
Parameters:

upper (float) – the upper

Set upper of self.

New in version 3.2.2.

value_changed(normalized_volume)
Parameters:

normalized_volume (float) – the normalized volume

Emits ::value-changed event.

New in version 3.0.0.

do_value_changed(normalized_volume) virtual
Parameters:

normalized_volume (float) – the normalized volume

Emits ::value-changed event.

New in version 3.0.0.

Signal Details

AgsGui.Level.signals.value_changed(level, normalized_volume)
Signal Name:

value-changed

Flags:

RUN_LAST

Parameters:
  • level (AgsGui.Level) – The object which received the signal

  • normalized_volume (float) – the changed default value

The ::value-changed signal notifies about modified default value.

New in version 3.0.0.

Property Details

AgsGui.Level.props.data_format
Name:

data-format

Type:

int

Default Value:

1

Flags:

READABLE, WRITABLE

The data format.

New in version 4.0.0.

AgsGui.Level.props.lower
Name:

lower

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The level’s lower range.

New in version 3.0.0.

AgsGui.Level.props.normalized_volume
Name:

normalized-volume

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The level’s default value.

New in version 3.0.0.

AgsGui.Level.props.samplerate
Name:

samplerate

Type:

int

Default Value:

44100

Flags:

READABLE, WRITABLE

The level’s samplerate.

New in version 5.1.0.

AgsGui.Level.props.upper
Name:

upper

Type:

float

Default Value:

1.0

Flags:

READABLE, WRITABLE

The level’s upper range.

New in version 3.0.0.