diff options
author | crupest <crupest@outlook.com> | 2022-02-16 21:17:09 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-16 21:17:09 +0800 |
commit | 2711b7032cafdc9bdbd6ae06db0325c91e6e7f63 (patch) | |
tree | 9f19ec2697e1cf27895540f989d52946dcf4adab /include/cru/ui/style | |
parent | c6de932f727ed324cf875ea3fca9ca44775a820e (diff) | |
download | cru-2711b7032cafdc9bdbd6ae06db0325c91e6e7f63.tar.gz cru-2711b7032cafdc9bdbd6ae06db0325c91e6e7f63.tar.bz2 cru-2711b7032cafdc9bdbd6ae06db0325c91e6e7f63.zip |
...
Diffstat (limited to 'include/cru/ui/style')
-rw-r--r-- | include/cru/ui/style/StyleRuleSet.h | 3 |
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); |