13# error Apple OSX only!
23@class CocoaOpenGLView;
82 void setTitle(
const char *title)
override;
87 std::string
getTitle()
const override;
254 void endIME()
override;
296 const int hot_spot[2],
297 bool can_invert_color)
override;
331 const void *customdata)
334 this->data_ = customdata;
338typedef int GHOST_ImeStateFlagCocoa;
340 GHOST_IME_INPUT_FOCUSED = (1 << 0),
341 GHOST_IME_ENABLED = (1 << 1),
342 GHOST_IME_COMPOSING = (1 << 2),
343 GHOST_IME_KEY_CONTROL_CHAR = (1 << 3),
344 GHOST_IME_COMPOSITION_EVENT = (1 << 4),
345 GHOST_IME_RESULT_EVENT = (1 << 5)
GHOST_TDrawingContextType
unsigned long long int uint64_t
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
static btDbvtVolume bounds(btDbvtNode **leaves, int count)
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
GHOST_Event(uint64_t msec, GHOST_TEventType type, GHOST_IWindow *window)
bool isDialog() const override
GHOST_TSuccess setProgressBar(float progress) override
GHOST_TSuccess setWindowCursorShape(GHOST_TStandardCursor shape) override
bool getImmediateDraw() const
GHOST_TSuccess setState(GHOST_TWindowState state) override
std::string getTitle() const override
GHOST_SystemCocoa * system_cocoa_
void setImmediateDraw(bool value)
GHOST_TSuccess setClientHeight(uint32_t height) override
void clientToScreen(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const override
CAMetalLayer * metal_layer_
NSScreen * getScreen() const
NSCursor * custom_cursor_
void setTitle(const char *title) override
GHOST_TSuccess invalidate() override
GHOST_TSuccess endProgressBar() override
NSCursor * getStandardCursor(GHOST_TStandardCursor cursor) const
GHOST_TWindowState getState() const override
GHOST_TSuccess setClientWidth(uint32_t width) override
GHOST_TSuccess applyWindowDecorationStyle() override
GHOST_TSuccess hasCursorShape(GHOST_TStandardCursor shape) override
void clientToScreenIntern(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const
void * getOSWindow() const override
GHOST_TabletData & GetCocoaTabletData()
CocoaOpenGLView * opengl_view_
void getClientBounds(GHOST_Rect &bounds) const override
GHOST_TSuccess setModifiedState(bool is_unsaved_changes) override
void screenToClient(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const override
void getWindowBounds(GHOST_Rect &bounds) const override
GHOST_Context * newDrawingContext(GHOST_TDrawingContextType type) override
GHOST_TSuccess setWindowCursorGrab(GHOST_TGrabCursorMode mode) override
GHOST_TSuccess setWindowCustomCursorShape(const uint8_t *bitmap, const uint8_t *mask, const int size[2], const int hot_spot[2], bool can_invert_color) override
static NSScreen * getPrimaryScreen()
GHOST_WindowCocoa(GHOST_SystemCocoa *systemCocoa, const char *title, int32_t left, int32_t bottom, uint32_t width, uint32_t height, GHOST_TWindowState state, GHOST_TDrawingContextType type, const GHOST_ContextParams &context_params, bool dialog, GHOST_WindowCocoa *parent_window, const GHOST_GPUDevice &preferred_device)
~GHOST_WindowCocoa() override
GHOST_TSuccess setOrder(GHOST_TWindowOrder order) override
CocoaMetalView * metal_view_
void screenToClientIntern(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const
GHOST_GPUDevice preferred_device_
GHOST_TSuccess setPath(const char *filepath) override
void setNativePixelSize()
bool getValid() const override
GHOST_TSuccess setWindowCursorVisibility(bool visible) override
BlenderWindow * getViewWindow() const
void loadCursor(bool visible, GHOST_TStandardCursor cursor) const
GHOST_TSuccess setClientSize(uint32_t width, uint32_t height) override
GHOST_Window(uint32_t width, uint32_t height, GHOST_TWindowState state, const GHOST_ContextParams &context_params, const bool exclusive=false)
ccl_device_inline float2 mask(const MaskType mask, const float2 a)