89 if (context_ !=
nullptr) {
109 return context_->swapBufferAcquire();
113 return context_->swapBufferRelease();
118 return context_->setSwapInterval(interval);
123 return context_->getSwapInterval(interval_out);
133 return context_ ? context_->
hasAlpha() :
false;
138 return (context_) ? context_->getDefaultFramebuffer() : 0;
141#ifdef WITH_VULKAN_BACKEND
142GHOST_TSuccess GHOST_Window::getVulkanSwapChainFormat(GHOST_VulkanSwapChainData *r_swap_chain_data)
144 return context_->getVulkanSwapChainFormat(r_swap_chain_data);
150 return context_->activateDrawingContext();
155 return context_->updateDrawingContext();
160 return context_->releaseNativeHandles();
181 if (mouse_ungrab_xy) {
217 bool &use_software_cursor)
253 const int hot_spot[2],
254 bool can_invert_color)
@ GHOST_kWindowStateFullScreen
@ GHOST_kStandardCursorCustom
@ GHOST_kStandardCursorDefault
GHOST_TDrawingContextType
@ GHOST_kDrawingContextTypeNone
#define GHOST_CONTEXT_PARAMS_NONE
GHOST_TWindowDecorationStyleFlags
GHOST_ContextNone(const GHOST_ContextParams &context_params)
virtual void getClientBounds(GHOST_Rect &bounds) const =0
virtual GHOST_TSuccess getCursorGrabBounds(GHOST_Rect &bounds) const
GHOST_ContextParams want_context_params_
int32_t cursor_grab_accum_pos_[2]
virtual bool getCursorGrabUseSoftwareDisplay()
GHOST_TSuccess swapBufferRelease() override
void setWindowDecorationStyleFlags(GHOST_TWindowDecorationStyleFlags style_flags) override
GHOST_TStandardCursor cursor_shape_
GHOST_TAxisFlag cursor_grab_axis_
virtual bool getModifiedState()
bool can_accept_drag_operation_
GHOST_TSuccess setModifiedState(bool is_unsaved_changes) override
GHOST_WindowDecorationStyleSettings window_decoration_style_settings_
GHOST_TSuccess setDrawingContextType(GHOST_TDrawingContextType type) override
GHOST_TSuccess setCursorShape(GHOST_TStandardCursor cursor_shape) override
uint32_t full_screen_width_
GHOST_Context * getContext()
int32_t cursor_grab_init_pos_[2]
GHOST_TSuccess setCursorGrab(GHOST_TGrabCursorMode mode, GHOST_TAxisFlag wrap_axis, GHOST_Rect *bounds, int32_t mouse_ungrab_xy[2]) override
unsigned int getDefaultFramebuffer() override
GHOST_TSuccess setSwapInterval(int interval) override
virtual GHOST_TSuccess setWindowCursorGrab(GHOST_TGrabCursorMode)
GHOST_TUserDataPtr user_data_
GHOST_TDrawingContextType drawing_context_type_
GHOST_TWindowDecorationStyleFlags getWindowDecorationStyleFlags() override
GHOST_TSuccess releaseNativeHandles()
virtual GHOST_TSuccess setWindowCustomCursorGenerator(GHOST_CursorGenerator *cursor_generator)
virtual void * getOSWindow() const
void setWindowDecorationStyleSettings(GHOST_WindowDecorationStyleSettings decoration_settings) override
GHOST_TWindowDecorationStyleFlags window_decoration_style_flags_
virtual bool canAcceptDragOperation() const
uint32_t full_screen_height_
GHOST_TSuccess setCursorVisibility(bool visible) override
GHOST_TSuccess setCustomCursorShape(const uint8_t *bitmap, const uint8_t *mask, const int size[2], const int hot_spot[2], bool can_invert_color) override
GHOST_TSuccess getCursorBitmap(GHOST_CursorBitmapRef *bitmap) override
virtual GHOST_TSuccess setWindowCursorVisibility(bool visible)=0
void setAcceptDragOperation(bool can_accept) override
GHOST_TSuccess activateDrawingContext() override
GHOST_IContext * getDrawingContext() override
void getCursorGrabState(GHOST_TGrabCursorMode &mode, GHOST_TAxisFlag &wrap_axis, GHOST_Rect &bounds, bool &use_software_cursor) override
GHOST_TSuccess updateDrawingContext()
GHOST_Window(uint32_t width, uint32_t height, GHOST_TWindowState state, const GHOST_ContextParams &context_params, const bool exclusive=false)
GHOST_TSuccess getSwapInterval(int &interval_out) override
virtual GHOST_TSuccess setWindowCursorShape(GHOST_TStandardCursor shape)=0
virtual GHOST_Context * newDrawingContext(GHOST_TDrawingContextType type)=0
GHOST_Rect cursor_grab_bounds_
bool progress_bar_visible_
GHOST_TSuccess swapBufferAcquire() override
GHOST_TGrabCursorMode cursor_grab_
GHOST_TSuccess setCustomCursorGenerator(GHOST_CursorGenerator *cursor_generator) override
bool hasAlpha() const override
virtual GHOST_TSuccess setWindowCustomCursorShape(const uint8_t *bitmap, const uint8_t *mask, const int size[2], const int hot_size[2], bool can_invert_color)=0
#define assert(assertion)
ccl_device_inline float2 mask(const MaskType mask, const float2 a)