diff options
Diffstat (limited to 'CruUI/cru_event.h')
-rw-r--r-- | CruUI/cru_event.h | 5 |
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_; }; |