61 inline bool has(
const string& condition)
const {
69 inline void set(
const string& condition) {
70 this->conditions = {{ condition }};
88 inline bool add(
const string& condition) {
89 auto conditionsChanged =
has(condition) ==
false;
90 if (conditionsChanged ==
true) {
94 return conditionsChanged;
102 inline bool remove(
const string& condition) {
103 auto conditionsChanged =
has(condition);
104 if (conditionsChanged ==
true) {
108 return conditionsChanged;
116 auto conditionsChanged =
conditions.empty() ==
false;
117 if (conditionsChanged ==
true) {
121 return conditionsChanged;
GUI element node conditions.
GUIElementNode * elementNode
bool add(const string &condition)
Add a condition.
void updateNode(GUINode *node, const vector< string > &conditions) const
Update node.
bool has(const string &condition) const
Returns if condition is set.
bool removeAll()
Remove all.
void set(const vector< string > &conditions)
Set multiple conditions.
bool remove(const string &condition)
Remove a condition.
void set(const string &condition)
Set condition.
void updateElementNode(const vector< string > &conditions) const
Update element node.
GUINodeConditions(GUIElementNode *node=nullptr)
Public constructor.
vector< string > conditions
const vector< string > & getConditions() const