libvisual
0.5.0
|
Public Member Functions | |
ParamList () | |
Creates a new empty ParamList. | |
ParamList (std::initializer_list< Param * > params) | |
Creates a new ParamList with entries drawn from an initializer list. | |
ParamList (ParamList &&list) | |
Move constructor. | |
~ParamList () | |
Destructor. | |
void | add (Param &¶m) |
Adds a new parameter entry. More... | |
void | add (Param *param) |
Adds a new parameter entry. More... | |
template<class Container > | |
void | add (Container const ¶ms) |
Adds a list of parameters. More... | |
bool | remove (std::string const &name) |
Removes a parameter by name. More... | |
Param * | get (std::string const &name) const |
Returns a parameter by name. More... | |
void | set_event_queue (EventQueue &event_queue) |
Sets the event queue. More... | |
EventQueue * | get_event_queue () const |
Returns the event queue. More... | |
Definition at line 47 of file lv_param.h.
void LV::ParamList::add | ( | Param && | param | ) |
Adds a new parameter entry.
param | Parameter to add |
Definition at line 176 of file lv_param.cpp.
void LV::ParamList::add | ( | Param * | param | ) |
Adds a new parameter entry.
param | Parameter to add |
Definition at line 181 of file lv_param.cpp.
|
inline |
Adds a list of parameters.
params | List of parameters |
Definition at line 91 of file lv_param.h.
Param * LV::ParamList::get | ( | std::string const & | name | ) | const |
Returns a parameter by name.
name | Name of parameter to return |
Definition at line 202 of file lv_param.cpp.
Referenced by LV::SongInfo::set_cover().
EventQueue * LV::ParamList::get_event_queue | ( | ) | const |
Returns the event queue.
Definition at line 171 of file lv_param.cpp.
bool LV::ParamList::remove | ( | std::string const & | name | ) |
Removes a parameter by name.
name | Name of parameter to remove |
Definition at line 191 of file lv_param.cpp.
void LV::ParamList::set_event_queue | ( | EventQueue & | event_queue | ) |
Sets the event queue.
event_queue | Event queue to hook send parameter update events to |
Definition at line 166 of file lv_param.cpp.