aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/window.h
diff options
context:
space:
mode:
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>