re-add setAppliedClasses() to style
This commit is contained in:
@@ -63,6 +63,11 @@ const std::vector<std::string> &Style::getAppliedClasses() const {
|
||||
return appliedClasses;
|
||||
}
|
||||
|
||||
void Style::setAppliedClasses(std::vector<std::string> &class_names) {
|
||||
appliedClasses.swap(class_names);
|
||||
updateClasses();
|
||||
}
|
||||
|
||||
void Style::toggleClass(const std::string &name) {
|
||||
if (name.length()) {
|
||||
auto it = std::find(appliedClasses.begin(), appliedClasses.end(), name);
|
||||
|
||||
Reference in New Issue
Block a user