Class

AgsGuiPiano

[]

Description

class AgsGui.Piano : Gtk.Widget
  implements Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable {
  flags: AgsPianoFlags,
  orientation: GtkOrientation,
  button_state: AgsPianoButtonState,
  font_size: guint,
  base_note: gchar*,
  base_key_code: gint,
  key_width: guint,
  key_height: guint,
  key_count: guint,
  cursor_position: gint,
  current_key: gint,
  active_key: gint*,
  active_key_count: guint
}

No description available.

[]

Constructors

ags_piano_new

Create a new instance of AgsPiano.

since: 3.0.0

[]

Functions

ags_piano_key_code_to_note

Get note from key code.

since: 3.0.0

[]

Instance methods

ags_piano_get_active_key

Get active keys.

since: 3.0.0

ags_piano_get_base_key_code

Get base key code of piano.

since: 3.2.0

ags_piano_get_base_note

Get base note of piano.

since: 3.2.0

ags_piano_get_button_state

Get mouse button state of piano.

since: 3.6.6

ags_piano_get_key_count

Get key count of piano.

since: 3.2.0

ags_piano_get_key_height

Get key height of piano.

since: 3.2.0

ags_piano_get_key_width

Get key width of piano.

since: 3.2.0

ags_piano_key_clicked

Emits ::key-clicked event.

since: 3.0.0

ags_piano_key_pressed

Emits ::key-pressed event.

since: 3.0.0

ags_piano_key_released

Emits ::key-released event.

since: 3.0.0

ags_piano_set_base_key_code

Set base key code of piano.

since: 3.2.0

ags_piano_set_base_note

Set base note of piano.

since: 3.2.0

ags_piano_set_button_state

Set button_state of piano.

since: 3.6.6

ags_piano_set_key_count

Set key count of piano.

since: 3.2.0

ags_piano_set_key_height

Set key width of piano.

since: 3.2.0

ags_piano_set_key_width

Set key width of piano.

since: 3.2.0

Methods inherited from GtkWidget (162)
Methods inherited from GObject (43)
Methods inherited from GtkAccessible (19)
Methods inherited from GtkBuildable (1)
Methods inherited from GtkOrientable (2)
[]

Properties

AgsGui.Piano:base-key-code

The base key code.

since: 3.0.0

AgsGui.Piano:base-note

The base note to use as lower.

since: 3.0.0

AgsGui.Piano:key-count

The count of keys to be drawn.

since: 3.0.0

AgsGui.Piano:key-height

The key height to use for drawing a key.

since: 3.0.0

AgsGui.Piano:key-width

The key width to use for drawing a key.

since: 3.0.0

Properties inherited from GtkWidget (34)
Properties inherited from GtkAccessible (1)
Properties inherited from GtkOrientable (1)
[]

Signals

AgsGui.Piano::key-clicked

The ::key-clicked signal notifies about key clicked.

since: 3.0.0

AgsGui.Piano::key-pressed

The ::key-pressed signal notifies about key pressed.

since: 3.0.0

AgsGui.Piano::key-released

The ::key-released signal notifies about key released.

since: 3.0.0

Signals inherited from GtkWidget (13)
Signals inherited from GObject (1)

Class structure

[]

Virtual methods

AgsGui.PianoClass.key_clicked

Emits ::key-clicked event.

since: 3.0.0

AgsGui.PianoClass.key_pressed

Emits ::key-pressed event.

since: 3.0.0

AgsGui.PianoClass.key_released

Emits ::key-released event.

since: 3.0.0