Top | ![]() |
![]() |
![]() |
![]() |
void | ags_piano_set_button_state () |
guint | ags_piano_get_button_state () |
void | ags_piano_set_base_note () |
gchar * | ags_piano_get_base_note () |
void | ags_piano_set_base_key_code () |
gint | ags_piano_get_base_key_code () |
void | ags_piano_set_key_width () |
guint | ags_piano_get_key_width () |
void | ags_piano_set_key_height () |
guint | ags_piano_get_key_height () |
void | ags_piano_set_key_count () |
guint | ags_piano_get_key_count () |
gchar * | ags_piano_key_code_to_note () |
void | ags_piano_key_pressed () |
void | ags_piano_key_released () |
void | ags_piano_key_clicked () |
gint * | ags_piano_get_active_key () |
AgsPiano * | ags_piano_new () |
#define | AGS_IS_PIANO() |
#define | AGS_IS_PIANO_CLASS() |
#define | AGS_PIANO() |
#define | AGS_PIANO_CLASS() |
#define | AGS_PIANO_GET_CLASS() |
GType | ags_piano_get_type () |
guint | base-key-code | Read / Write |
char * | base-note | Read / Write |
guint | key-count | Read / Write |
guint | key-height | Read / Write |
guint | key-width | Read / Write |
#define | AGS_PIANO_DEFAULT_BASE_NOTE |
#define | AGS_PIANO_DEFAULT_BASE_KEY_CODE |
#define | AGS_PIANO_DEFAULT_KEY_WIDTH |
#define | AGS_PIANO_DEFAULT_KEY_HEIGHT |
#define | AGS_PIANO_DEFAULT_KEY_COUNT |
enum | AgsPianoFlags |
enum | AgsPianoButtonState |
enum | AgsPianoAction |
enum | AgsPianoOctave |
#define | AGS_TYPE_PIANO |
struct | AgsPiano |
struct | AgsPianoClass |
AgsPiano implements GtkAccessible, GtkBuildable, GtkConstraintTarget and GtkOrientable.
void ags_piano_set_button_state (AgsPiano *piano
,guint button_state
);
Set button_state
of piano
.
Since: 3.6.6
guint
ags_piano_get_button_state (AgsPiano *piano
);
Get mouse button state of piano
.
Since: 3.6.6
void ags_piano_set_base_note (AgsPiano *piano
,gchar *base_note
);
Set base note of piano
.
Since: 3.2.0
gchar *
ags_piano_get_base_note (AgsPiano *piano
);
Get base note of piano
.
Since: 3.2.0
void ags_piano_set_base_key_code (AgsPiano *piano
,gint base_key_code
);
Set base key code of piano
.
Since: 3.2.0
gint
ags_piano_get_base_key_code (AgsPiano *piano
);
Get base key code of piano
.
Since: 3.2.0
void ags_piano_set_key_width (AgsPiano *piano
,guint key_width
);
Set key width of piano
.
Since: 3.2.0
guint
ags_piano_get_key_width (AgsPiano *piano
);
Get key width of piano
.
Since: 3.2.0
void ags_piano_set_key_height (AgsPiano *piano
,guint key_height
);
Set key width of piano
.
Since: 3.2.0
guint
ags_piano_get_key_height (AgsPiano *piano
);
Get key height of piano
.
Since: 3.2.0
void ags_piano_set_key_count (AgsPiano *piano
,guint key_count
);
Set key count of piano
.
Since: 3.2.0
guint
ags_piano_get_key_count (AgsPiano *piano
);
Get key count of piano
.
Since: 3.2.0
gchar *
ags_piano_key_code_to_note (gint key_code
);
Get note from key code.
Since: 3.0.0
void ags_piano_key_pressed (AgsPiano *piano
,gchar *note
,gint key_code
);
Emits ::key-pressed event.
Since: 3.0.0
void ags_piano_key_released (AgsPiano *piano
,gchar *note
,gint key_code
);
Emits ::key-released event.
Since: 3.0.0
void ags_piano_key_clicked (AgsPiano *piano
,gchar *note
,gint key_code
);
Emits ::key-clicked event.
Since: 3.0.0
gint * ags_piano_get_active_key (AgsPiano *piano
,guint *active_key_count
);
Get active keys.
Since: 3.0.0
AgsPiano * ags_piano_new (GtkOrientation orientation
,guint key_width
,guint key_height
);
Create a new instance of AgsPiano.
orientation |
the GtkOrientation |
|
key_width |
the width of one key |
|
key_height |
the height of one key |
Since: 3.0.0
#define AGS_IS_PIANO_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_PIANO))
#define AGS_PIANO_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PIANO, AgsPianoClass))
#define AGS_PIANO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PIANO, AgsPianoClass))
“base-key-code”
property“base-key-code” guint
The base key code.
Owner: AgsPiano
Flags: Read / Write
Default value: 0
Since: 3.0.0
“base-note”
property “base-note” char *
The base note to use as lower.
Owner: AgsPiano
Flags: Read / Write
Default value: "C,,"
Since: 3.0.0
“key-count”
property“key-count” guint
The count of keys to be drawn.
Owner: AgsPiano
Flags: Read / Write
Default value: 128
Since: 3.0.0
“key-height”
property“key-height” guint
The key height to use for drawing a key.
Owner: AgsPiano
Flags: Read / Write
Default value: 14
Since: 3.0.0
“key-width”
property“key-width” guint
The key width to use for drawing a key.
Owner: AgsPiano
Flags: Read / Write
Default value: 60
Since: 3.0.0
“key-clicked”
signalvoid user_function (AgsPiano *piano, char *note, int key_code, gpointer user_data)
The ::key-clicked signal notifies about key clicked.
piano |
the AgsPiano |
|
note |
the note as string |
|
key_code |
the numeric representation of the note |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“key-pressed”
signalvoid user_function (AgsPiano *piano, char *note, int key_code, gpointer user_data)
The ::key-pressed signal notifies about key pressed.
piano |
the AgsPiano |
|
note |
the note as string |
|
key_code |
the numeric representation of the note |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“key-released”
signalvoid user_function (AgsPiano *piano, char *note, int key_code, gpointer user_data)
The ::key-released signal notifies about key released.
piano |
the AgsPiano |
|
note |
the note as string |
|
key_code |
the numeric representation of the note |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0