Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
68 lines (61 sloc) 1.64 KB
/**
* Copyright: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: $(LINK2 http://cattermole.co.nz, Richard Andrew Cattermole)
*/
module cf.spew.events.winapi;
import cf.spew.events.defs;
import devisualization.util.core.memory.managed;
///
enum WinAPI_Events_Types {
///
Prefix = EventType.from("|w"),
///
Unknown = EventType.from("|wunknwn"),
///
Raw = EventType.from("|wraw"),
///
Window_Quit = EventType.from("|wquit"),
///
Window_GainedKeyboardFocus = EventType.from("|wkfoc"),
///
Window_LostKeyboardFocus = EventType.from("|w/kfoc"),
///
Window_Enable = EventType.from("|weble"),
///
Window_Disable = EventType.from("|w/eble"),
///
Window_SetRedraw = EventType.from("|wsrd"),
///
Window_Paint = EventType.from("|wpaint"),
///
Window_SystemColorsChanged = EventType.from("|wscolch"),
///
Window_DevModeChanged = EventType.from("|wdevmc"),
///
Window_SetCursor = EventType.from("|wsetcur"),
///
Window_EnterSizeMove = EventType.from("|wszmv"),
///
Window_ExitSizeMove = EventType.from("|w/szmv"),
///
Menu_Click = EventType.from("|wmclk"),
///
Window_DragAndDrop = EventType.from("|wd&d,"),
///
Window_Timer = EventType.from("|wt")
}
// windows specific stuff
version (Windows) : import core.sys.windows.windows : MSG, CREATESTRUCT, HWND;
///
union WinAPI_Events {
/// WM_ERASEBKGND
MSG raw;
/// WM_CREATE
CREATESTRUCT window_create;
/// WM_SETFOCUS
HWND lostFocusWindow;
/// WM_KILLFOCUS
HWND gainedFocusWindow;
/// WM_SETREDRAW
bool redrawState;
}