Blender V4.3
GHOST_WindowNULL.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10#pragma once
11
12#include "GHOST_Window.hh"
13
14#include <map>
15
17
19 public:
21 {
22 return GHOST_kSuccess;
23 }
24
25 GHOST_WindowNULL(const char * /*title*/,
26 int32_t /*left*/,
27 int32_t /*top*/,
28 uint32_t width,
29 uint32_t height,
31 const GHOST_IWindow * /*parentWindow*/,
33 const bool stereoVisual)
34 : GHOST_Window(width, height, state, stereoVisual, false)
35 {
36 }
37
38 protected:
56 uint8_t * /*mask*/,
57 int /*sizex*/,
58 int /*sizey*/,
59 int /*hotX*/,
60 int /*hotY*/,
61 bool /*canInvertColor*/) override
62 {
63 return GHOST_kSuccess;
64 }
65
66 bool getValid() const override
67 {
68 return true;
69 }
70 void setTitle(const char * /*title*/) override
71 { /* nothing */
72 }
73 std::string getTitle() const override
74 {
75 return "untitled";
76 }
77 GHOST_TSuccess setPath(const char * /*filepath*/) override
78 {
79 return GHOST_kFailure;
80 }
81 void getWindowBounds(GHOST_Rect &bounds) const override
82 {
84 }
85 void getClientBounds(GHOST_Rect & /*bounds*/) const override
86 { /* nothing */
87 }
89 {
90 return GHOST_kFailure;
91 }
93 {
94 return GHOST_kFailure;
95 }
96 GHOST_TSuccess setClientSize(uint32_t /*width*/, uint32_t /*height*/) override
97 {
98 return GHOST_kFailure;
99 }
100 void screenToClient(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const override
101 {
102 outX = inX;
103 outY = inY;
104 }
105 void clientToScreen(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const override
106 {
107 outX = inX;
108 outY = inY;
109 }
111 {
112 return GHOST_kFailure;
113 }
115 {
116 return GHOST_kFailure;
117 }
118 ~GHOST_WindowNULL() override = default;
119
120 GHOST_TSuccess setWindowCursorVisibility(bool /*visible*/) override
121 {
122 return GHOST_kSuccess;
123 }
125 {
126 return GHOST_kSuccess;
127 }
129 {
131 }
133 {
134 return GHOST_kSuccess;
135 }
137 {
138 return GHOST_kSuccess;
139 }
140
142 {
143 return GHOST_kSuccess;
144 }
146 {
147 return GHOST_kSuccess;
148 }
149
150 private:
155 GHOST_Context *newDrawingContext(GHOST_TDrawingContextType /*type*/) override
156 {
157 return nullptr;
158 }
159};
GHOST_TWindowState
@ GHOST_kWindowStateNormal
GHOST_TStandardCursor
GHOST_TDrawingContextType
GHOST_TWindowOrder
GHOST_TSuccess
Definition GHOST_Types.h:87
@ GHOST_kFailure
Definition GHOST_Types.h:87
@ GHOST_kSuccess
Definition GHOST_Types.h:87
GHOST_TGrabCursorMode
static btDbvtVolume bounds(btDbvtNode **leaves, int count)
Definition btDbvt.cpp:299
GHOST_TSuccess invalidate() override
std::string getTitle() const override
GHOST_TSuccess setState(GHOST_TWindowState) override
void clientToScreen(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const override
GHOST_TSuccess setWindowCursorGrab(GHOST_TGrabCursorMode) override
GHOST_TSuccess setWindowCursorVisibility(bool) override
GHOST_TSuccess setClientHeight(uint32_t) override
void getWindowBounds(GHOST_Rect &bounds) const override
void setTitle(const char *) override
GHOST_TSuccess activateDrawingContext() override
GHOST_TSuccess beginFullScreen() const override
GHOST_TSuccess installDrawingContext(GHOST_TDrawingContextType)
GHOST_TSuccess hasCursorShape(GHOST_TStandardCursor) override
GHOST_TSuccess setClientWidth(uint32_t) override
void getClientBounds(GHOST_Rect &) const override
GHOST_TSuccess setClientSize(uint32_t, uint32_t) override
GHOST_WindowNULL(const char *, int32_t, int32_t, uint32_t width, uint32_t height, GHOST_TWindowState state, const GHOST_IWindow *, GHOST_TDrawingContextType, const bool stereoVisual)
GHOST_TSuccess endFullScreen() const override
GHOST_TSuccess setWindowCustomCursorShape(uint8_t *, uint8_t *, int, int, int, int, bool) override
~GHOST_WindowNULL() override=default
GHOST_TSuccess setPath(const char *) override
GHOST_TWindowState getState() const override
GHOST_TSuccess removeDrawingContext()
void screenToClient(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const override
bool getValid() const override
GHOST_TSuccess setOrder(GHOST_TWindowOrder) override
GHOST_TSuccess setWindowCursorShape(GHOST_TStandardCursor) override
GHOST_TSuccess swapBuffers() override
static ulong state[N]
unsigned int uint32_t
Definition stdint.h:80
signed int int32_t
Definition stdint.h:77
unsigned char uint8_t
Definition stdint.h:78