Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_WindowWin32.h
| Show All 33 Lines | |||||
| #define __GHOST_WINDOWWIN32_H__ | #define __GHOST_WINDOWWIN32_H__ | ||||
| #ifndef WIN32 | #ifndef WIN32 | ||||
| #error WIN32 only! | #error WIN32 only! | ||||
| #endif // WIN32 | #endif // WIN32 | ||||
| #include "GHOST_Window.h" | #include "GHOST_Window.h" | ||||
| #include "GHOST_TaskbarWin32.h" | #include "GHOST_TaskbarWin32.h" | ||||
| #ifdef WITH_INPUT_IME | #ifdef WITH_IM_ONTHESPOT | ||||
| # include "GHOST_ImeWin32.h" | # include "GHOST_ImeWin32.h" | ||||
| #endif | #endif | ||||
| #include <wintab.h> | #include <wintab.h> | ||||
| #define PACKETDATA (PK_BUTTONS | PK_NORMAL_PRESSURE | PK_ORIENTATION | PK_CURSOR) | #define PACKETDATA (PK_BUTTONS | PK_NORMAL_PRESSURE | PK_ORIENTATION | PK_CURSOR) | ||||
| #define PACKETMODE PK_BUTTONS | #define PACKETMODE PK_BUTTONS | ||||
| #include <pktdef.h> | #include <pktdef.h> | ||||
| ▲ Show 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | public: | ||||
| GHOST_TSuccess endFullScreen() const {return GHOST_kFailure;} | GHOST_TSuccess endFullScreen() const {return GHOST_kFailure;} | ||||
| GHOST_TUns16 getDPIHint() override; | GHOST_TUns16 getDPIHint() override; | ||||
| /** if the window currently resizing */ | /** if the window currently resizing */ | ||||
| bool m_inLiveResize; | bool m_inLiveResize; | ||||
| #ifdef WITH_INPUT_IME | #ifdef WITH_IM_ONTHESPOT | ||||
| GHOST_ImeWin32 *getImeInput() {return &m_imeInput;} | GHOST_ImeWin32 *getImeInput() {return &m_imeInput;} | ||||
| void beginIME( | void setIMSpot(GHOST_TInt32 x, GHOST_TInt32 y, GHOST_TInt32 h); | ||||
| GHOST_TInt32 x, GHOST_TInt32 y, | void beginIM(); | ||||
| GHOST_TInt32 w, GHOST_TInt32 h, | void endIM(); | ||||
| int completed); | #endif /* WITH_IM_ONTHESPOT */ | ||||
| void endIME(); | |||||
| #endif /* WITH_INPUT_IME */ | |||||
| private: | private: | ||||
| /** | /** | ||||
| * \param type The type of rendering context create. | * \param type The type of rendering context create. | ||||
| * \return Indication of success. | * \return Indication of success. | ||||
| */ | */ | ||||
| GHOST_Context *newDrawingContext(GHOST_TDrawingContextType type); | GHOST_Context *newDrawingContext(GHOST_TDrawingContextType type); | ||||
| ▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | private: | ||||
| GHOST_TWindowState m_normal_state; | GHOST_TWindowState m_normal_state; | ||||
| /** user32 dll handle*/ | /** user32 dll handle*/ | ||||
| HMODULE m_user32; | HMODULE m_user32; | ||||
| /** Hwnd to parent window */ | /** Hwnd to parent window */ | ||||
| GHOST_TEmbedderWindowID m_parentWindowHwnd; | GHOST_TEmbedderWindowID m_parentWindowHwnd; | ||||
| #ifdef WITH_INPUT_IME | #ifdef WITH_IM_ONTHESPOT | ||||
| /** Handle input method editors event */ | /** Handle input method editors event */ | ||||
| GHOST_ImeWin32 m_imeInput; | GHOST_ImeWin32 m_imeInput; | ||||
| #endif | #endif | ||||
| bool m_debug_context; | bool m_debug_context; | ||||
| }; | }; | ||||
| #endif // __GHOST_WINDOWWIN32_H__ | #endif // __GHOST_WINDOWWIN32_H__ | ||||