aboutsummaryrefslogtreecommitdiff
path: root/include/cru
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru')
-rw-r--r--include/cru/ui/style/StyleRuleSet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cru/ui/style/StyleRuleSet.h b/include/cru/ui/style/StyleRuleSet.h
index f905d97a..348fdd5f 100644
--- a/include/cru/ui/style/StyleRuleSet.h
+++ b/include/cru/ui/style/StyleRuleSet.h
@@ -31,6 +31,9 @@ class CRU_UI_API StyleRuleSet : public Object {
void RemoveStyleRule(gsl::index index, gsl::index count = 1);
+ const StyleRule& GetStyleRule(Index index) const { return rules_[index]; }
+ void SetStyleRule(Index index, StyleRule rule);
+
void Clear() { RemoveStyleRule(0, GetSize()); }
void Set(const StyleRuleSet& other, bool set_parent = false);