Blender  V3.3
GHOST_WindowNULL.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
8 #pragma once
9 
10 #include "GHOST_Window.h"
11 
12 #include <map>
13 
14 class GHOST_SystemNULL;
15 
17  public:
19  {
20  return GHOST_kSuccess;
21  }
22 
24  const char *title,
25  int32_t left,
26  int32_t top,
30  const GHOST_IWindow *parentWindow,
32  const bool stereoVisual)
33  : GHOST_Window(width, height, state, stereoVisual, false), m_system(system)
34  {
35  setTitle(title);
36  }
37 
38  protected:
40  {
41  return GHOST_kSuccess;
42  }
44  {
45  return GHOST_kSuccess;
46  }
48  {
49  return GHOST_kSuccess;
50  }
52  {
53  return GHOST_kSuccess;
54  }
56  uint8_t *mask,
57  int sizex,
58  int sizey,
59  int hotX,
60  int hotY,
61  bool canInvertColor)
62  {
63  return GHOST_kSuccess;
64  }
65 
66  bool getValid() const
67  {
68  return true;
69  }
70  void setTitle(const char *title)
71  { /* nothing */
72  }
73  std::string getTitle() const
74  {
75  return "untitled";
76  }
78  {
80  }
82  { /* nothing */
83  }
85  {
86  return GHOST_kFailure;
87  }
89  {
90  return GHOST_kFailure;
91  }
93  {
94  return GHOST_kFailure;
95  }
96  void screenToClient(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const
97  {
98  outX = inX;
99  outY = inY;
100  }
101  void clientToScreen(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const
102  {
103  outX = inX;
104  outY = inY;
105  }
107  {
108  return GHOST_kFailure;
109  }
111  {
112  return GHOST_kFailure;
113  }
115  { /* nothing */
116  }
118  {
119  return GHOST_kSuccess;
120  }
122  {
123  return GHOST_kSuccess;
124  }
126  {
128  }
130  {
131  return GHOST_kSuccess;
132  }
134  {
135  return GHOST_kSuccess;
136  }
137 
139  {
140  return GHOST_kSuccess;
141  }
143  {
144  return GHOST_kSuccess;
145  }
146 
147  private:
148  GHOST_SystemNULL *m_system;
149 
154  GHOST_Context *newDrawingContext(GHOST_TDrawingContextType type)
155  {
156  return nullptr;
157  }
158 };
GHOST_TWindowState
Definition: GHOST_Types.h:129
@ GHOST_kWindowStateNormal
Definition: GHOST_Types.h:130
GHOST_TStandardCursor
Definition: GHOST_Types.h:214
GHOST_TDrawingContextType
Definition: GHOST_Types.h:148
GHOST_TWindowOrder
Definition: GHOST_Types.h:146
GHOST_TSuccess
Definition: GHOST_Types.h:74
@ GHOST_kFailure
Definition: GHOST_Types.h:74
@ GHOST_kSuccess
Definition: GHOST_Types.h:74
GHOST_TGrabCursorMode
Definition: GHOST_Types.h:404
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei height
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei width
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble top
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint order
static btDbvtVolume bounds(btDbvtNode **leaves, int count)
Definition: btDbvt.cpp:299
void getClientBounds(GHOST_Rect &bounds) const
std::string getTitle() const
bool getValid() const
GHOST_TSuccess setClientWidth(uint32_t width)
GHOST_TSuccess swapBuffers()
GHOST_TSuccess invalidate()
GHOST_TSuccess beginFullScreen() const
GHOST_TSuccess setWindowCursorVisibility(bool visible)
GHOST_TSuccess setClientHeight(uint32_t height)
GHOST_TSuccess endFullScreen() const
GHOST_TSuccess setClientSize(uint32_t width, uint32_t height)
void getWindowBounds(GHOST_Rect &bounds) const
void setTitle(const char *title)
GHOST_TSuccess setOrder(GHOST_TWindowOrder order)
void screenToClient(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const
GHOST_TSuccess setWindowCursorShape(GHOST_TStandardCursor shape)
GHOST_TSuccess activateDrawingContext()
GHOST_TSuccess removeDrawingContext()
GHOST_TSuccess setState(GHOST_TWindowState state)
GHOST_TSuccess hasCursorShape(GHOST_TStandardCursor)
GHOST_TSuccess installDrawingContext(GHOST_TDrawingContextType type)
GHOST_WindowNULL(GHOST_SystemNULL *system, const char *title, int32_t left, int32_t top, uint32_t width, uint32_t height, GHOST_TWindowState state, const GHOST_IWindow *parentWindow, GHOST_TDrawingContextType type, const bool stereoVisual)
GHOST_TSuccess setWindowCustomCursorShape(uint8_t *bitmap, uint8_t *mask, int sizex, int sizey, int hotX, int hotY, bool canInvertColor)
GHOST_TWindowState getState() const
GHOST_TSuccess setWindowCursorGrab(GHOST_TGrabCursorMode mode)
void clientToScreen(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const
const int state
ccl_device_inline float4 mask(const int4 &mask, const float4 &a)
Definition: math_float4.h:513
static int left
unsigned int uint32_t
Definition: stdint.h:80
signed int int32_t
Definition: stdint.h:77
unsigned char uint8_t
Definition: stdint.h:78