aboutsummaryrefslogtreecommitdiff
path: root/CruUI/cru_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'CruUI/cru_event.h')
-rw-r--r--CruUI/cru_event.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/CruUI/cru_event.h b/CruUI/cru_event.h
index 3a2dccfa..d0a7eb82 100644
--- a/CruUI/cru_event.h
+++ b/CruUI/cru_event.h
@@ -80,6 +80,11 @@ namespace cru {
(*ptr)(args);
}
+ bool IsNoHandler() const
+ {
+ return handlers_.empty();
+ }
+
private:
std::list<EventHandlerPtr> handlers_;
};