Public Member Functions | List of all members
CustomKeyboardState Class Reference

A keyboard state which adds the possibility of colouring the keys. More...

Inheritance diagram for CustomKeyboardState:
SafeChangeBroadcaster

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...
 

Detailed Description

A keyboard state which adds the possibility of colouring the keys.

Constructor & Destructor Documentation

CustomKeyboardState ( )
inline

Creates a new keyboard state.

Member Function Documentation

Colour getColourForSingleKey ( int  noteNumber) const
inline

Returns the colour for the given note number.

bool isColourDefinedForKey ( int  noteNumber) const
inline

Checks if a colour was specified for the given note number.

void setColourForSingleKey ( int  noteNumber,
Colour  colour 
)
inline

Changes the colour for the given note number.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.