aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/window.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-13 22:47:22 +0800
committercrupest <crupest@outlook.com>2018-09-13 22:47:22 +0800
commit9f6803884704e277fe49ed046344ddaa44a7fd19 (patch)
tree4b7f2c2e6db2f71e44633c3b10128243be95d2a0 /CruUI/ui/window.h
parent5f35ba198582bb93e16d34c8d94ffdc8f453068d (diff)
downloadcru-9f6803884704e277fe49ed046344ddaa44a7fd19.tar.gz
cru-9f6803884704e277fe49ed046344ddaa44a7fd19.tar.bz2
cru-9f6803884704e277fe49ed046344ddaa44a7fd19.zip
...
Diffstat (limited to 'CruUI/ui/window.h')
-rw-r--r--CruUI/ui/window.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/CruUI/ui/window.h b/CruUI/ui/window.h
index 551e2048..92b084e1 100644
--- a/CruUI/ui/window.h
+++ b/CruUI/ui/window.h
@@ -213,6 +213,11 @@ namespace cru {
Control* CaptureMouseFor(Control* control);
Control* ReleaseCurrentMouseCapture();
+ public:
+ //*************** region: events ***************
+ events::UiEvent activated_event;
+ events::UiEvent deactivated_event;
+
private:
//*************** region: native operations ***************
@@ -236,6 +241,9 @@ namespace cru {
void OnMouseDownInternal(MouseButton button, POINT point);
void OnMouseUpInternal(MouseButton button, POINT point);
+ void OnActivatedInternal();
+ void OnDeactivatedInternal();
+
//*************** region: event dispatcher helper ***************
template<typename EventArgs>