aboutsummaryrefslogtreecommitdiff
path: root/CruUI/cru_event.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-23 21:07:19 +0800
committercrupest <crupest@outlook.com>2018-09-23 21:07:19 +0800
commit800c98a732f82df09a98fddba91eddb5d675318d (patch)
treebd7722bebd51e8bb47e79468d70c0d99ef0df9ac /CruUI/cru_event.h
parentb7833b2d3243b008a2a726a72408f818070d8238 (diff)
parent796ba6e1e816ec87a106f2f7b501e38c99f059e1 (diff)
downloadcru-800c98a732f82df09a98fddba91eddb5d675318d.tar.gz
cru-800c98a732f82df09a98fddba91eddb5d675318d.tar.bz2
cru-800c98a732f82df09a98fddba91eddb5d675318d.zip
Merge branch 'master' into textboxdev
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_;
};