liblives
2.4.1-svn
|
class "effectKeyMap". More...
#include <liblives.hpp>
Public Member Functions | |
bool | isValid () const |
Returns whether the effectKeyMap is valid or not. More... | |
bool | clear () const |
Unmap all effects from effectKey mappings, leaving an empty map. More... | |
effectKey | at (int i) const |
Returns the ith effect key for this key map. More... | |
size_t | size () const |
Returns the number of key slots (indices) in the effectKeyMap. More... | |
bool | operator== (const effectKeyMap &other) const |
effectKey | operator[] (int i) const |
Returns an effect key with index i for this key map. More... | |
Protected Member Functions | |
effectKeyMap (livesApp *lives) | |
class "effectKeyMap".
Represents a mapping of effectKey instances to key slots. Real time effects are always applied in order of ascending index value (with the exception of generator effects, which are applied first).
effectKey lives::effectKeyMap::at | ( | int | i | ) | const |
Returns the ith effect key for this key map.
Valid range for i is 1 <= i <= prefs::rteKeysVirtual(). For values of i outside this range, an invalid effectKey is returned.
i | the index value |
bool lives::effectKeyMap::clear | ( | ) | const |
Unmap all effects from effectKey mappings, leaving an empty map.
Only has an effect when livesApp::status() is LIVES_STATUS_READY.
bool lives::effectKeyMap::isValid | ( | ) | const |
Returns whether the effectKeyMap is valid or not.
A valid effectKeyMap is owned by a valid livesApp, the livesApp::status() is not LIVES_STATUS_NOTREADY, and the index is 1 <= i <= prefs::rteKeysVirtual().
|
inline |
|
inline |
size_t lives::effectKeyMap::size | ( | ) | const |
Returns the number of key slots (indices) in the effectKeyMap.
The valid range of keys is 1 <= key <= size(). Equivalent to prefs::rteKeysVirtual(), except that if the effectKeyMap is invalid, returns 0.