All Classes Namespaces Functions Variables Enumerations Enumerator Modules Pages
Public Member Functions | List of all members
CustomKeyboardState Class Reference
Inheritance diagram for CustomKeyboardState:
SafeChangeBroadcaster

Public Member Functions

 CustomKeyboardState ()
 
Colour getColourForSingleKey (int noteNumber) const
 
bool isColourDefinedForKey (int noteNumber) const
 
void setColourForSingleKey (int noteNumber, Colour colour)
 
- Public Member Functions inherited from SafeChangeBroadcaster
void sendSynchronousChangeMessage ()
 
void addChangeListener (SafeChangeListener *listener)
 
void removeChangeListener (SafeChangeListener *listener)
 
void removeAllChangeListeners ()
 
void sendChangeMessage (const String &=String())
 
void sendAllocationFreeChangeMessage ()
 

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.