diff options
Diffstat (limited to 'src/ui/style/StyleRuleSet.cpp')
-rw-r--r-- | src/ui/style/StyleRuleSet.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/style/StyleRuleSet.cpp b/src/ui/style/StyleRuleSet.cpp index 7352f69b..c8d12500 100644 --- a/src/ui/style/StyleRuleSet.cpp +++ b/src/ui/style/StyleRuleSet.cpp @@ -54,6 +54,12 @@ void StyleRuleSet::RemoveStyleRule(gsl::index index, gsl::index count) { RaiseChangeEvent(); } +void StyleRuleSet::SetStyleRule(Index index, StyleRule rule) { + Expects(index >= 0 && index < GetSize()); + rules_[index] = std::move(rule); + RaiseChangeEvent(); +} + void StyleRuleSet::Set(const StyleRuleSet& other, bool set_parent) { rules_ = other.rules_; if (set_parent) parent_ = other.parent_; |