From 2711b7032cafdc9bdbd6ae06db0325c91e6e7f63 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 16 Feb 2022 21:17:09 +0800 Subject: ... --- include/cru/ui/style/StyleRuleSet.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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); -- cgit v1.2.3