aboutsummaryrefslogtreecommitdiff
path: root/CruUI/cru_event.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-23 21:00:46 +0800
committercrupest <crupest@outlook.com>2018-09-23 21:00:46 +0800
commit82f42a4103c168abd3605acad8ee4b9b4f00d79d (patch)
tree6db4f99f3dc2f85fba3f8339da53849d04a5cfee /CruUI/cru_event.h
parentad8ea7fc26b3e0807d11965d93c26a6ff51db226 (diff)
downloadcru-82f42a4103c168abd3605acad8ee4b9b4f00d79d.tar.gz
cru-82f42a4103c168abd3605acad8ee4b9b4f00d79d.tar.bz2
cru-82f42a4103c168abd3605acad8ee4b9b4f00d79d.zip
Add native message handler event in Window.
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_;
};