78 #if LE_WINDOW_EXTENDED_KEYS == 1
79 LE_WINDOW_KEYCODE_INSERT = 12,
80 LE_WINDOW_KEYCODE_DELETE = 13,
81 LE_WINDOW_KEYCODE_HOME = 14,
82 LE_WINDOW_KEYCODE_END = 15,
83 LE_WINDOW_KEYCODE_PAGEUP = 16,
84 LE_WINDOW_KEYCODE_PAGEDOWN = 17,
142 #endif // LE_WINDOW_H
Represent an OS specific drawing context.
Definition: window.h:94
void registerKeyCallback(KeyCallback callback)
Register a callback to receive keyboard events associated to the window.
Definition: window_win.cpp:173
LeHandle window
Definition: window.h:96
void setFullScreen()
Set the window to fullscreen mode.
Definition: window_win.cpp:310
Create and handle an OS native window.
Definition: window.h:105
LightEngine 3D: General engine configuration file.
void(* KeyCallback)(int key, int state)
Definition: window.h:119
LightEngine 3D: Global helpers and definitions.
int width
Definition: window.h:128
LeWindow(const char *name, int width=LE_RESOX_DEFAULT, int height=LE_RESOY_DEFAULT, bool fullscreen=false)
Definition: window_win.cpp:57
LeHandle display
Definition: window.h:95
LeHandle getHandle()
Retrieve the native OS window handle.
Definition: window_win.cpp:152
void setWindowed()
Set the window to windowed mode.
Definition: window_win.cpp:343
LeDrawingContext getContext()
Retrieve the native OS window graphic context.
Definition: window_win.cpp:162
void registerMouseCallback(MouseCallback callback)
Register a callback to receive mouse events associated to the window.
Definition: window_win.cpp:183
LeHandle gc
Definition: window.h:97
#define LE_RESOX_DEFAULT
Definition: config.h:37
#define LE_RESOY_DEFAULT
Definition: config.h:38
LE_WINDOW_KEY_CODES
Definition: window.h:64
bool fullScreen
Definition: window.h:130
unsigned long long LeHandle
Definition: global.h:41
void sendKeyEvent(int code, int state)
Send a keyboard event to the window.
Definition: window_win.cpp:195
void sendMouseEvent(int x, int y, int buttons)
Send a mouse event to the window.
Definition: window_win.cpp:208
LE_WINDOW_KEY_STATES
Definition: window.h:56
int height
Definition: window.h:129
~LeWindow()
Definition: window_win.cpp:92
void update()
Update window state and process events.
Definition: window_win.cpp:141
bool visible
Definition: window.h:131
void(* MouseCallback)(int x, int y, int buttons)
Definition: window.h:120
LE_WINDOW_MOUSE_BUTTONS
mouse buttons identifiers
Definition: window.h:44