145 static int getNumOpen (
void) {
return (s_inited) ? s_open->getSize() : 0; }
152 Event createSimpleEvent (
EventType type) {
return createGenericEvent(type,
"", 0, m_mouseKnown, m_mousePos); }
153 Event createKeyEvent (
bool down,
const String& key) {
return createGenericEvent((down) ?
EventType_KeyDown :
EventType_KeyUp, key, 0, m_mouseKnown, m_mousePos); }
154 Event createCharEvent (
S32 chr) {
return createGenericEvent(
EventType_Char,
"", chr, m_mouseKnown, m_mousePos); }
155 Event createMouseEvent (
bool mouseKnown,
const Vec2i& mousePos) {
return createGenericEvent(
EventType_Mouse,
"", 0, mouseKnown, mousePos); }
157 Event createGenericEvent (
EventType type,
const String& key,
S32 chr,
bool mouseKnown,
const Vec2i& mousePos);
158 void postEvent (
const Event& ev);
162 void recreate (
void);
164 static LRESULT CALLBACK staticWindowProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
165 LRESULT windowProc (UINT uMsg, WPARAM wParam, LPARAM lParam);
172 static bool s_inited;
173 static Array<Window*>* s_open;
174 static bool s_ignoreRepaint;
179 GLContext::Config m_glConfig;
180 bool m_glConfigDirty;
185 Array<Listener*> m_listeners;
194 Set<String> m_keysDown;
195 bool m_pendingKeyFlush;
199 S32 m_mouseDragCount;
static UPTR setWindowLong(HWND hwnd, int idx, UPTR value)
const GLContext::Config & getGLConfig(void) const
String showFileDialog(const String &title, bool save, const String &filters="", const String &initialDir="", bool forceInitialDir=false)
void enableDrop(bool enable)
static void staticDeinit(void)
void addListener(Listener *listener)
HWND getHandle(void) const
Vec2i getSize(void) const
bool isVisible(void) const
bool isMouseKnown(void) const
const Vec2i & getMousePos(void) const
void toggleFullScreen(void)
void removeListener(Listener *listener)
virtual bool handleEvent(const Event &ev)=0
void showModalMessage(const String &msg)
void setVisible(bool visible)
String showFileSaveDialog(const String &title, const String &filters="", const String &initialDir="", bool forceInitialDir=false)
bool isMouseDragging(void) const
String showFileLoadDialog(const String &title, const String &filters="", const String &initialDir="", bool forceInitialDir=false)
void setSize(const Vec2i &size)
bool isKeyDown(const String &key) const
void removeListeners(void)
static int getNumOpen(void)
static void traverseDirectory(const char *root, Array< String > &names)
void showMessageDialog(const String &title, const String &text)
CUdevice int ordinal char int CUdevice dev CUdevprop CUdevice dev CUcontext ctx CUcontext ctx CUcontext pctx CUmodule const void image CUmodule const void fatCubin CUfunction CUmodule const char name void p CUfunction unsigned int bytes CUtexref pTexRef CUtexref CUarray unsigned int Flags CUtexref int CUaddress_mode am CUtexref unsigned int Flags CUaddress_mode CUtexref int dim CUarray_format int CUtexref hTexRef CUfunction unsigned int numbytes CUfunction int float value
static void pollMessages(void)
void setGLConfig(const GLContext::Config &config)
static HWND createHWND(void)
static void staticInit(void)
Array< String > showDirLoadDialog(const String &title, const String &initialDir="")
bool isFullScreen(void) const
CUdevice int ordinal char int CUdevice dev CUdevprop CUdevice dev CUcontext ctx CUcontext ctx CUcontext pctx CUmodule const void image CUmodule const void fatCubin CUfunction CUmodule const char name void p CUfunction unsigned int bytes CUtexref pTexRef CUtexref CUarray unsigned int Flags CUtexref int CUaddress_mode am CUtexref unsigned int Flags CUaddress_mode CUtexref int dim CUarray_format int CUtexref hTexRef CUfunction unsigned int numbytes CUfunction int float value CUfunction int CUtexref hTexRef CUfunction int int grid_height CUevent unsigned int Flags CUevent hEvent CUevent hEvent CUstream unsigned int Flags CUstream hStream GLuint bufferobj unsigned int CUdevice dev CUdeviceptr unsigned int CUmodule const char name CUdeviceptr unsigned int bytesize CUdeviceptr dptr void unsigned int bytesize void CUdeviceptr unsigned int ByteCount CUarray unsigned int CUdeviceptr unsigned int ByteCount CUarray unsigned int const void unsigned int ByteCount CUarray unsigned int CUarray unsigned int unsigned int ByteCount void CUarray unsigned int unsigned int CUstream hStream const CUDA_MEMCPY2D pCopy CUdeviceptr const void unsigned int CUstream hStream const CUDA_MEMCPY2D CUstream hStream CUdeviceptr unsigned char unsigned int N CUdeviceptr unsigned int unsigned int N CUdeviceptr unsigned int unsigned short unsigned int unsigned int Height CUarray const CUDA_ARRAY_DESCRIPTOR pAllocateArray CUarray const CUDA_ARRAY3D_DESCRIPTOR pAllocateArray unsigned int CUtexref CUdeviceptr unsigned int bytes CUcontext unsigned int CUdevice device GLenum texture GLenum GLuint buffer GLenum GLuint renderbuffer GLenum GLsizeiptr const GLvoid GLenum usage GLuint shader GLenum type
void setTitle(const String &title)
void setFullScreen(bool isFull)
CUdevice int ordinal char int CUdevice dev CUdevprop CUdevice dev CUcontext ctx CUcontext ctx CUcontext pctx CUmodule const void image CUmodule const void fatCubin CUfunction CUmodule const char name void p CUfunction unsigned int bytes CUtexref pTexRef CUtexref CUarray unsigned int Flags CUtexref int CUaddress_mode am CUtexref unsigned int Flags CUaddress_mode CUtexref int dim CUarray_format int CUtexref hTexRef CUfunction unsigned int numbytes CUfunction int float value CUfunction int CUtexref hTexRef CUfunction int int grid_height CUevent unsigned int Flags CUevent hEvent CUevent hEvent CUstream unsigned int Flags CUstream hStream GLuint bufferobj unsigned int CUdevice dev CUdeviceptr unsigned int CUmodule const char name CUdeviceptr unsigned int bytesize CUdeviceptr dptr void unsigned int bytesize void CUdeviceptr unsigned int ByteCount CUarray unsigned int CUdeviceptr unsigned int ByteCount CUarray unsigned int const void unsigned int ByteCount CUarray unsigned int CUarray unsigned int unsigned int ByteCount void CUarray unsigned int unsigned int CUstream hStream const CUDA_MEMCPY2D pCopy CUdeviceptr const void unsigned int CUstream hStream const CUDA_MEMCPY2D CUstream hStream CUdeviceptr unsigned char unsigned int N CUdeviceptr unsigned int unsigned int N CUdeviceptr unsigned int unsigned short unsigned int unsigned int Height CUarray const CUDA_ARRAY_DESCRIPTOR pAllocateArray CUarray const CUDA_ARRAY3D_DESCRIPTOR pAllocateArray unsigned int CUtexref CUdeviceptr unsigned int bytes CUcontext unsigned int CUdevice device GLenum texture GLenum GLuint buffer GLenum GLuint renderbuffer GLenum GLsizeiptr size
void enablePaste(bool enable)
static void realizeAll(void)