|
void | Display () override |
| Displays the variable as an editable field in the UI.
|
|
| UIColor (const std::string &name="", const glm::vec3 &value=glm::vec3(0.0f), ActionStack *actionStack=nullptr, std::function< void()> callback=std::function< void()>(nullptr)) |
| Creates a new variable that can be displayed and updated directly in the UI.
|
|
bool | Equals (const glm::vec3 &value) const |
| Returns whether the value is equal to the given value.
|
|
glm::vec3 | Get () const |
| Returns the current value of this variable.
|
|
glm::vec3 * | GetRef () const |
| Returns a reference to the value stored in this variable. This is unsafe, but is necessary for Commands outside of the class to update the value.
|
|
| operator glm::vec3 () |
| Explicitly converts this variable to its internal value.
|
|
glm::vec3 & | operator* () |
| Returns a reference to the value stored in this variable.
|
|
glm::vec3 * | operator-> () |
| Returns a reference to the value stored in this variable.
|
|
std::string | Name () const |
| Returns the name of the variable.
|
|
void | Set (const glm::vec3 &newValue) |
| Sets the value of the variable to the new value only if it is different. Sends a Command to the action stack indicating the changed value.
|
|
void | SetNoUpdate (const glm::vec3 &newValue) |
| Sets the value of the variable to the new value without creating a command.
|
|
A color (vector3) that can be directly displayed and edited in the UI.