Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
PianoKeyboardWidget Struct Reference

Piano Keyboard widget. More...

#include <gui/widgets/piano_keyboard.h>

Data Fields

GtkDrawingArea parent_instance
 
int num_keys
 Number of visible keys (1-128).
 
int start_key
 0-127.
 
int pressed_keys [128]
 
int num_pressed_keys
 
bool scrollable
 When true, start key can change and when false the keys are fixed.
 
bool playable
 Whether clicking on keys plays them.
 
bool editable
 Whether clicking on keys "enables" them.
 
GtkOrientation orientation
 Horizontal/vertical.
 
int chord_idx
 Chord index, if this widget is for a chord key.
 
bool for_chord
 

Detailed Description

Piano Keyboard widget.

Definition at line 39 of file piano_keyboard.h.

Field Documentation

◆ chord_idx

int PianoKeyboardWidget::chord_idx

Chord index, if this widget is for a chord key.

Definition at line 67 of file piano_keyboard.h.

◆ editable

bool PianoKeyboardWidget::editable

Whether clicking on keys "enables" them.

Definition at line 60 of file piano_keyboard.h.

◆ for_chord

bool PianoKeyboardWidget::for_chord

Definition at line 69 of file piano_keyboard.h.

◆ num_keys

int PianoKeyboardWidget::num_keys

Number of visible keys (1-128).

Definition at line 44 of file piano_keyboard.h.

◆ num_pressed_keys

int PianoKeyboardWidget::num_pressed_keys

Definition at line 50 of file piano_keyboard.h.

◆ orientation

GtkOrientation PianoKeyboardWidget::orientation

Horizontal/vertical.

Definition at line 63 of file piano_keyboard.h.

◆ parent_instance

GtkDrawingArea PianoKeyboardWidget::parent_instance

Definition at line 41 of file piano_keyboard.h.

◆ playable

bool PianoKeyboardWidget::playable

Whether clicking on keys plays them.

Definition at line 57 of file piano_keyboard.h.

◆ pressed_keys

int PianoKeyboardWidget::pressed_keys[128]

Definition at line 49 of file piano_keyboard.h.

◆ scrollable

bool PianoKeyboardWidget::scrollable

When true, start key can change and when false the keys are fixed.

Definition at line 54 of file piano_keyboard.h.

◆ start_key

int PianoKeyboardWidget::start_key

0-127.

Definition at line 47 of file piano_keyboard.h.


The documentation for this struct was generated from the following file: