From 82f42a4103c168abd3605acad8ee4b9b4f00d79d Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 23 Sep 2018 21:00:46 +0800 Subject: Add native message handler event in Window. --- CruUI/cru_event.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CruUI/cru_event.h') 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 handlers_; }; -- cgit v1.2.3