25 window_csd_layout_({0}),
26 timer_manager_(
nullptr),
27 window_manager_(
nullptr),
28 event_manager_(
nullptr),
30 ndof_manager_(
nullptr),
32 multitouch_gestures_(
true),
34 is_debug_enabled_(
false)
145 std::vector<GHOST_IWindow *>::reverse_iterator iwindow_iter;
150 for (iwindow_iter = windows.rbegin(); iwindow_iter != windows.rend(); ++iwindow_iter) {
170#ifdef WITH_INPUT_NDOF
173 ndof_manager_->sendMotionEvent();
296#ifdef WITH_INPUT_NDOF
297void GHOST_System::setNDOFDeadZone(
float deadzone)
299 if (this->ndof_manager_) {
300 this->ndof_manager_->setDeadZone(deadzone);
311#ifdef WITH_GHOST_DEBUG
338#ifdef WITH_INPUT_NDOF
339 delete ndof_manager_;
340 ndof_manager_ =
nullptr;
void * GHOST_TUserDataPtr
@ GHOST_kWindowStateMinimized
void(*)(GHOST_ITimerTask *task, uint64_t time) GHOST_TimerProcPtr
unsigned long long int uint64_t
GHOST_TSuccess addConsumer(GHOST_IEventConsumer *consumer)
GHOST_TSuccess removeConsumer(GHOST_IEventConsumer *consumer)
GHOST_TSuccess pushEvent(std::unique_ptr< const GHOST_IEvent > event)
void removeWindowEvents(const GHOST_IWindow *window)
virtual GHOST_TSuccess getCursorPosition(int32_t &x, int32_t &y) const =0
virtual uint64_t getMilliSeconds() const =0
virtual GHOST_TSuccess setCursorPosition(int32_t x, int32_t y)=0
virtual void getClientBounds(GHOST_Rect &bounds) const =0
virtual void clientToScreen(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const =0
virtual void screenToClient(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const =0
virtual GHOST_TWindowState getState() const =0
virtual bool isInside(int32_t x, int32_t y) const
GHOST_TSuccess removeEventConsumer(GHOST_IEventConsumer *consumer) override
GHOST_TSuccess getPixelAtCursor(float r_color[3]) const override
void setWindowCSD(const GHOST_CSD_Params ¶ms) override
GHOST_TSuccess removeTimer(GHOST_ITimerTask *timerTask) override
virtual GHOST_TSuccess getButtons(GHOST_Buttons &buttons) const =0
GHOST_TSuccess getButtonState(GHOST_TButton mask, bool &is_down) const override
void setMultitouchGestures(const bool use) override
void setIconGenerator(const GHOST_IconGenerator *icon_generator) override
uint * getClipboardImage(int *r_width, int *r_height) const override
GHOST_TTabletAPI getTabletAPI()
GHOST_TSuccess getCursorPositionClientRelative(const GHOST_IWindow *window, int32_t &x, int32_t &y) const override
GHOST_TimerManager * timer_manager_
GHOST_TSuccess addEventConsumer(GHOST_IEventConsumer *consumer) override
GHOST_ITimerTask * installTimer(uint64_t delay, uint64_t interval, GHOST_TimerProcPtr timer_proc, GHOST_TUserDataPtr user_data=nullptr) override
const GHOST_CSD_Params & getWindowCSD() const
GHOST_WindowManager * window_manager_
uint32_t getCursorPreferredLogicalSize() const override
GHOST_TSuccess init() override
GHOST_TTabletAPI tablet_api_
GHOST_TSuccess getModifierKeyState(GHOST_TModifierKey mask, bool &is_down) const override
const GHOST_CSD_Layout & getWindowCSD_Layout() const override
GHOST_TSuccess disposeWindow(GHOST_IWindow *window) override
void initDebug(GHOST_Debug debug) override
bool validWindow(GHOST_IWindow *window) override
void useWindowFocus(const bool use_focus) override
GHOST_TSuccess hasClipboardImage() const override
void setTabletAPI(GHOST_TTabletAPI api) override
GHOST_TSuccess pushEvent(std::unique_ptr< const GHOST_IEvent > event)
bool useNativePixel() override
GHOST_CSD_Layout window_csd_layout_
bool multitouch_gestures_
GHOST_IWindow * getWindowUnderCursor(int32_t x, int32_t y) override
virtual GHOST_TSuccess getModifierKeys(GHOST_ModifierKeys &keys) const =0
GHOST_TSuccess exit() override
GHOST_TSuccess putClipboardImage(uint *rgba, int width, int height) const override
GHOST_EventManager * event_manager_
void dispatchEvents() override
const GHOST_IconGenerator * icon_generator_
GHOST_CSD_Params window_csd_params_
bool isDebugEnabled() override
GHOST_TSuccess setCursorPositionClientRelative(GHOST_IWindow *window, int32_t x, int32_t y) override
void setWindowCSD_Layout(const GHOST_CSD_Layout &csd_layout)
void setAutoFocus(const bool auto_focus) override
bool fireTimers(uint64_t time)
GHOST_TSuccess removeTimer(GHOST_TimerTask *timer)
GHOST_TSuccess addTimer(GHOST_TimerTask *timer)
GHOST_TimerTask(uint64_t start, uint64_t interval, GHOST_TimerProcPtr timer_proc, GHOST_TUserDataPtr user_data=nullptr)
GHOST_TSuccess removeWindow(const GHOST_IWindow *window)
const std::vector< GHOST_IWindow * > & getWindows() const
bool getWindowFound(const GHOST_IWindow *window) const
ccl_device_inline float2 mask(const MaskType mask, const float2 a)
bool get(GHOST_TModifierKey mask) const