A keyboard state which adds the possibility of colouring the keys. More...
Public Member Functions | |
| CustomKeyboardState () | |
| Creates a new keyboard state. More... | |
| Colour | getColourForSingleKey (int noteNumber) const |
| Returns the colour for the given note number. More... | |
| bool | isColourDefinedForKey (int noteNumber) const |
| Checks if a colour was specified for the given note number. More... | |
| void | setColourForSingleKey (int noteNumber, Colour colour) |
| Changes the colour for the given note number. More... | |
Public Member Functions inherited from SafeChangeBroadcaster | |
| void | addChangeListener (SafeChangeListener *listener) |
| Registers a listener to receive change callbacks from this broadcaster. More... | |
| void | removeAllChangeListeners () |
| Removes all listeners from the list. More... | |
| void | removeChangeListener (SafeChangeListener *listener) |
| Unregisters a listener from the list. More... | |
| void | sendAllocationFreeChangeMessage () |
| This will send a message without allocating a message slot. More... | |
| void | sendChangeMessage (const String &=String()) |
| Causes an asynchronous change message to be sent to all the registered listeners. More... | |
| void | sendSynchronousChangeMessage () |
| Sends a synchronous change message to all the registered listeners. More... | |
A keyboard state which adds the possibility of colouring the keys.
|
inline |
Creates a new keyboard state.
|
inline |
Returns the colour for the given note number.
|
inline |
Checks if a colour was specified for the given note number.
|
inline |
Changes the colour for the given note number.