From 9b5155a499d7499de2da6d1d1297f55c536a7c7d Mon Sep 17 00:00:00 2001 From: James Turk Date: Mon, 28 Mar 2011 20:54:12 -0400 Subject: [PATCH] WindowEvents --- csdl/events.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/csdl/events.py b/csdl/events.py index 582d37b..fb0e554 100644 --- a/csdl/events.py +++ b/csdl/events.py @@ -48,6 +48,23 @@ class EventType(CEnum): USEREVENT = 0x8000 LASTEVENT = 0xFFFF +class WindowEventType(CEnum): + NONE = 0 + SHOWN = 1 + HIDDEN = 2 + EXPOSED = 3 + MOVED = 4 + RESIZED = 5 + SIZE_CHANGED = 6 + MINIMIZED = 7 + MAXIMIZED = 8 + RESTORED = 9 + ENTER = 10 + LEAVE = 11 + FOCUS_GAINED = 12 + FOCUS_LOST = 13 + CLOSE = 14 + # a few typedefs Keycode = ctypes.c_int32 Scancode = ctypes.c_int32 # enum, not sure about this one