aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/style/StyleRuleSet.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-06 17:27:10 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-06 17:27:10 +0800
commit6315e654ce0be2d2cc148e9ff80f611ac1176348 (patch)
tree8232fedd7bbe87d635563e743e22781e20f83376 /include/cru/ui/style/StyleRuleSet.h
parent38b1268028d4d631de15ca85826c241e39c82675 (diff)
downloadcru-6315e654ce0be2d2cc148e9ff80f611ac1176348.tar.gz
cru-6315e654ce0be2d2cc148e9ff80f611ac1176348.tar.bz2
cru-6315e654ce0be2d2cc148e9ff80f611ac1176348.zip
Refactor Event.
Diffstat (limited to 'include/cru/ui/style/StyleRuleSet.h')
-rw-r--r--include/cru/ui/style/StyleRuleSet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/ui/style/StyleRuleSet.h b/include/cru/ui/style/StyleRuleSet.h
index 0b7a237d..d89c3ae1 100644
--- a/include/cru/ui/style/StyleRuleSet.h
+++ b/include/cru/ui/style/StyleRuleSet.h
@@ -63,7 +63,7 @@ class CRU_UI_API StyleRuleSet : public Object, public model::IListChangeNotify {
Event<model::ListChange> list_change_event_;
std::shared_ptr<StyleRuleSet> parent_ = nullptr;
- EventRevokerGuard parent_change_event_guard_;
+ EventHandlerRevokerGuard parent_change_event_guard_;
std::vector<StyleRule> rules_;
};
@@ -90,6 +90,6 @@ class CRU_UI_API StyleRuleSetBind {
// child first, parent last.
std::vector<StyleRuleSet*> ruleset_chain_cache_;
- EventRevokerListGuard guard_;
+ EventHandlerRevokerListGuard guard_;
};
} // namespace cru::ui::style