Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_WindowCocoa.h
| Show First 20 Lines • Show All 249 Lines • ▼ Show 20 Lines | void setImmediateDraw(bool value) | ||||
| m_immediateDraw = value; | m_immediateDraw = value; | ||||
| } | } | ||||
| bool getImmediateDraw(void) const | bool getImmediateDraw(void) const | ||||
| { | { | ||||
| return m_immediateDraw; | return m_immediateDraw; | ||||
| } | } | ||||
| #ifdef WITH_INPUT_IME | #ifdef WITH_INPUT_IME | ||||
| void beginIME(GHOST_TInt32 x, GHOST_TInt32 y, GHOST_TInt32 w, GHOST_TInt32 h, int completed); | void beginIME(int32_t x, int32_t y, int32_t w, int32_t h, int completed); | ||||
| void endIME(); | void endIME(); | ||||
| #endif /* WITH_INPUT_IME */ | #endif /* WITH_INPUT_IME */ | ||||
| protected: | protected: | ||||
| /** | /** | ||||
| * \param type: The type of rendering context create. | * \param type: The type of rendering context create. | ||||
| * \return Indication of success. | * \return Indication of success. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
| class GHOST_EventIME : public GHOST_Event { | class GHOST_EventIME : public GHOST_Event { | ||||
| public: | public: | ||||
| /** | /** | ||||
| * Constructor. | * Constructor. | ||||
| * \param msec: The time this event was generated. | * \param msec: The time this event was generated. | ||||
| * \param type: The type of key event. | * \param type: The type of key event. | ||||
| * \param key: The key code of the key. | * \param key: The key code of the key. | ||||
| */ | */ | ||||
| GHOST_EventIME(GHOST_TUns64 msec, GHOST_TEventType type, GHOST_IWindow *window, void *customdata) | GHOST_EventIME(uint64_t msec, GHOST_TEventType type, GHOST_IWindow *window, void *customdata) | ||||
| : GHOST_Event(msec, type, window) | : GHOST_Event(msec, type, window) | ||||
| { | { | ||||
| this->m_data = customdata; | this->m_data = customdata; | ||||
| } | } | ||||
| }; | }; | ||||
| typedef int GHOST_ImeStateFlagCocoa; | typedef int GHOST_ImeStateFlagCocoa; | ||||
| enum { | enum { | ||||
| GHOST_IME_INPUT_FOCUSED = (1 << 0), | GHOST_IME_INPUT_FOCUSED = (1 << 0), | ||||
| GHOST_IME_ENABLED = (1 << 1), | GHOST_IME_ENABLED = (1 << 1), | ||||
| GHOST_IME_COMPOSING = (1 << 2), | GHOST_IME_COMPOSING = (1 << 2), | ||||
| GHOST_IME_KEY_CONTROL_CHAR = (1 << 3), | GHOST_IME_KEY_CONTROL_CHAR = (1 << 3), | ||||
| GHOST_IME_COMPOSITION_EVENT = (1 << 4), // For Korean input | GHOST_IME_COMPOSITION_EVENT = (1 << 4), // For Korean input | ||||
| GHOST_IME_RESULT_EVENT = (1 << 5) // For Korean input | GHOST_IME_RESULT_EVENT = (1 << 5) // For Korean input | ||||
| }; | }; | ||||
| #endif /* WITH_INPUT_IME */ | #endif /* WITH_INPUT_IME */ | ||||