Klang C++
Language Reference (draft)
|
UI control / parameter. More...
#include <klang.h>
Classes | |
struct | Size |
Control size. More... | |
Public Types | |
enum | Type { NONE , ROTARY , BUTTON , TOGGLE , SLIDER , MENU , METER , WHEEL } |
typedef Array< Caption, 128 > | Options |
Public Member Functions | |
operator signal & () | |
operator const signal & () const | |
operator param () const | |
operator float () const | |
signal | smooth () |
operator Control * () | |
Control & | set (float x) |
Control & | operator+= (float x) |
Control & | operator*= (float x) |
Control & | operator-= (float x) |
Control & | operator/= (float x) |
template<typename TYPE > | |
signal | operator+ (const Control &x) const |
template<typename TYPE > | |
signal | operator* (const Control &x) const |
template<typename TYPE > | |
signal | operator- (const Control &x) const |
template<typename TYPE > | |
signal | operator/ (const Control &x) const |
template<typename TYPE > | |
float | operator+ (TYPE x) const |
template<typename TYPE > | |
float | operator* (TYPE x) const |
template<typename TYPE > | |
float | operator- (TYPE x) const |
template<typename TYPE > | |
float | operator/ (TYPE x) const |
template<typename TYPE > | |
Control & | operator<< (TYPE &in) |
template<typename TYPE > | |
Control & | operator<< (const TYPE &in) |
template<typename TYPE > | |
TYPE & | operator>> (TYPE &in) |
template<typename TYPE > | |
const TYPE & | operator>> (const TYPE &in) |
Public Attributes | |
Caption | name |
Type | type = NONE |
float | min |
float | max |
float | initial |
Size | size |
Options | options |
signal | value |
signal | smoothed |
Static Public Attributes | |
static constexpr float | smoothing = 0.999f |
enum klang::Control::Type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1002 of file klang.h.
References klang::signal::operator*(), klang::signal::operator+(), smoothed, smoothing, and value.
Referenced by klang::ControlMap::smooth().
float klang::Control::initial |
Definition at line 988 of file klang.h.
Referenced by klang::Controls::add().
float klang::Control::max |
Definition at line 987 of file klang.h.
Referenced by klang::Controls::add(), and set().
float klang::Control::min |
Definition at line 986 of file klang.h.
Referenced by klang::Controls::add(), and set().
Caption klang::Control::name |
Definition at line 983 of file klang.h.
Referenced by klang::Controls::add().
Size klang::Control::size |
Definition at line 990 of file klang.h.
Referenced by klang::Controls::add().
|
staticconstexpr |
Definition at line 984 of file klang.h.
Referenced by klang::Controls::add(), and klang::Controls::operator=().
signal klang::Control::value |
Definition at line 993 of file klang.h.
Referenced by klang::param::param(), klang::Controls::add(), klang::Controls::changed(), operator const signal &(), klang::ControlMap::operator const signal &(), operator float(), klang::ControlMap::operator float(), operator param(), klang::ControlMap::operator param(), operator signal &(), klang::ControlMap::operator signal &(), operator*=(), operator+=(), operator-=(), operator/=(), set(), and smooth().