Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_Window.h
| Show First 20 Lines • Show All 298 Lines • ▼ Show 20 Lines | public: | ||||
| * Returns the recommended DPI for this window. | * Returns the recommended DPI for this window. | ||||
| * \return The recommended DPI for this window. | * \return The recommended DPI for this window. | ||||
| */ | */ | ||||
| virtual inline GHOST_TUns16 getDPIHint() | virtual inline GHOST_TUns16 getDPIHint() | ||||
| { | { | ||||
| return 96; | return 96; | ||||
| } | } | ||||
| #ifdef WITH_INPUT_IME | #ifdef WITH_IM_OVERTHESPOT | ||||
| virtual void beginIME(GHOST_TInt32 x, | virtual bool isIMSpotNeeded() = 0; | ||||
| GHOST_TInt32 y, | #endif | ||||
| GHOST_TInt32 w, | #if defined(WITH_IM_OVERTHESPOT) || defined(WITH_IM_ONTHESPOT) | ||||
| GHOST_TInt32 h, | void setIMModal() | ||||
| int completed) | |||||
| { | { | ||||
| /* do nothing temporarily if not in windows */ | m_im_modal = true; | ||||
| } | } | ||||
| virtual void endIME() | void unsetIMModal() | ||||
| { | { | ||||
| /* do nothing temporarily if not in windows */ | m_im_modal = false; | ||||
| } | } | ||||
| #endif /* WITH_INPUT_IME */ | |||||
| virtual void setIMSpot(GHOST_TInt32 x, GHOST_TInt32 y, GHOST_TInt32 h) = 0; | |||||
| virtual void beginIM() = 0; | |||||
| virtual void endIM() = 0; | |||||
| #endif | |||||
| protected: | protected: | ||||
| /** | /** | ||||
| * Tries to install a rendering context in this window. | * Tries to install a rendering context in this window. | ||||
| * \param type The type of rendering context installed. | * \param type The type of rendering context installed. | ||||
| * \return Indication as to whether installation has succeeded. | * \return Indication as to whether installation has succeeded. | ||||
| */ | */ | ||||
| virtual GHOST_Context *newDrawingContext(GHOST_TDrawingContextType type) = 0; | virtual GHOST_Context *newDrawingContext(GHOST_TDrawingContextType type) = 0; | ||||
| ▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | protected: | ||||
| /** Full-screen width */ | /** Full-screen width */ | ||||
| GHOST_TUns32 m_fullScreenWidth; | GHOST_TUns32 m_fullScreenWidth; | ||||
| /** Full-screen height */ | /** Full-screen height */ | ||||
| GHOST_TUns32 m_fullScreenHeight; | GHOST_TUns32 m_fullScreenHeight; | ||||
| /* OSX only, retina screens */ | /* OSX only, retina screens */ | ||||
| float m_nativePixelSize; | float m_nativePixelSize; | ||||
| #if defined(WITH_IM_OVERTHESPOT) || defined(WITH_IM_ONTHESPOT) | |||||
| /** Whether modal input is ongoing with input method */ | |||||
| bool m_im_modal; | |||||
| #endif | |||||
| private: | private: | ||||
| GHOST_Context *m_context; | GHOST_Context *m_context; | ||||
| }; | }; | ||||
| inline GHOST_TDrawingContextType GHOST_Window::getDrawingContextType() | inline GHOST_TDrawingContextType GHOST_Window::getDrawingContextType() | ||||
| { | { | ||||
| return m_drawingContextType; | return m_drawingContextType; | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||