github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/tests/raylib/external/glfw/src/null_platform.h (about)

     1  //========================================================================
     2  // GLFW 3.4 - www.glfw.org
     3  //------------------------------------------------------------------------
     4  // Copyright (c) 2016 Google Inc.
     5  // Copyright (c) 2016-2017 Camilla Löwy <elmindreda@glfw.org>
     6  //
     7  // This software is provided 'as-is', without any express or implied
     8  // warranty. In no event will the authors be held liable for any damages
     9  // arising from the use of this software.
    10  //
    11  // Permission is granted to anyone to use this software for any purpose,
    12  // including commercial applications, and to alter it and redistribute it
    13  // freely, subject to the following restrictions:
    14  //
    15  // 1. The origin of this software must not be misrepresented; you must not
    16  //    claim that you wrote the original software. If you use this software
    17  //    in a product, an acknowledgment in the product documentation would
    18  //    be appreciated but is not required.
    19  //
    20  // 2. Altered source versions must be plainly marked as such, and must not
    21  //    be misrepresented as being the original software.
    22  //
    23  // 3. This notice may not be removed or altered from any source
    24  //    distribution.
    25  //
    26  //========================================================================
    27  
    28  #define GLFW_NULL_WINDOW_STATE          _GLFWwindowNull null;
    29  #define GLFW_NULL_LIBRARY_WINDOW_STATE  _GLFWlibraryNull null;
    30  #define GLFW_NULL_MONITOR_STATE         _GLFWmonitorNull null;
    31  
    32  #define GLFW_NULL_CONTEXT_STATE
    33  #define GLFW_NULL_CURSOR_STATE
    34  #define GLFW_NULL_LIBRARY_CONTEXT_STATE
    35  
    36  
    37  // Null-specific per-window data
    38  //
    39  typedef struct _GLFWwindowNull
    40  {
    41      int             xpos;
    42      int             ypos;
    43      int             width;
    44      int             height;
    45      char*           title;
    46      GLFWbool        visible;
    47      GLFWbool        iconified;
    48      GLFWbool        maximized;
    49      GLFWbool        resizable;
    50      GLFWbool        decorated;
    51      GLFWbool        floating;
    52      GLFWbool        transparent;
    53      float           opacity;
    54  } _GLFWwindowNull;
    55  
    56  // Null-specific per-monitor data
    57  //
    58  typedef struct _GLFWmonitorNull
    59  {
    60      GLFWgammaramp   ramp;
    61  } _GLFWmonitorNull;
    62  
    63  // Null-specific global data
    64  //
    65  typedef struct _GLFWlibraryNull
    66  {
    67      int             xcursor;
    68      int             ycursor;
    69      char*           clipboardString;
    70      _GLFWwindow*    focusedWindow;
    71  } _GLFWlibraryNull;
    72  
    73  void _glfwPollMonitorsNull(void);
    74  
    75  GLFWbool _glfwConnectNull(int platformID, _GLFWplatform* platform);
    76  int _glfwInitNull(void);
    77  void _glfwTerminateNull(void);
    78  
    79  void _glfwFreeMonitorNull(_GLFWmonitor* monitor);
    80  void _glfwGetMonitorPosNull(_GLFWmonitor* monitor, int* xpos, int* ypos);
    81  void _glfwGetMonitorContentScaleNull(_GLFWmonitor* monitor, float* xscale, float* yscale);
    82  void _glfwGetMonitorWorkareaNull(_GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height);
    83  GLFWvidmode* _glfwGetVideoModesNull(_GLFWmonitor* monitor, int* found);
    84  void _glfwGetVideoModeNull(_GLFWmonitor* monitor, GLFWvidmode* mode);
    85  GLFWbool _glfwGetGammaRampNull(_GLFWmonitor* monitor, GLFWgammaramp* ramp);
    86  void _glfwSetGammaRampNull(_GLFWmonitor* monitor, const GLFWgammaramp* ramp);
    87  
    88  GLFWbool _glfwCreateWindowNull(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig);
    89  void _glfwDestroyWindowNull(_GLFWwindow* window);
    90  void _glfwSetWindowTitleNull(_GLFWwindow* window, const char* title);
    91  void _glfwSetWindowIconNull(_GLFWwindow* window, int count, const GLFWimage* images);
    92  void _glfwSetWindowMonitorNull(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate);
    93  void _glfwGetWindowPosNull(_GLFWwindow* window, int* xpos, int* ypos);
    94  void _glfwSetWindowPosNull(_GLFWwindow* window, int xpos, int ypos);
    95  void _glfwGetWindowSizeNull(_GLFWwindow* window, int* width, int* height);
    96  void _glfwSetWindowSizeNull(_GLFWwindow* window, int width, int height);
    97  void _glfwSetWindowSizeLimitsNull(_GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight);
    98  void _glfwSetWindowAspectRatioNull(_GLFWwindow* window, int n, int d);
    99  void _glfwGetFramebufferSizeNull(_GLFWwindow* window, int* width, int* height);
   100  void _glfwGetWindowFrameSizeNull(_GLFWwindow* window, int* left, int* top, int* right, int* bottom);
   101  void _glfwGetWindowContentScaleNull(_GLFWwindow* window, float* xscale, float* yscale);
   102  void _glfwIconifyWindowNull(_GLFWwindow* window);
   103  void _glfwRestoreWindowNull(_GLFWwindow* window);
   104  void _glfwMaximizeWindowNull(_GLFWwindow* window);
   105  GLFWbool _glfwWindowMaximizedNull(_GLFWwindow* window);
   106  GLFWbool _glfwWindowHoveredNull(_GLFWwindow* window);
   107  GLFWbool _glfwFramebufferTransparentNull(_GLFWwindow* window);
   108  void _glfwSetWindowResizableNull(_GLFWwindow* window, GLFWbool enabled);
   109  void _glfwSetWindowDecoratedNull(_GLFWwindow* window, GLFWbool enabled);
   110  void _glfwSetWindowFloatingNull(_GLFWwindow* window, GLFWbool enabled);
   111  void _glfwSetWindowMousePassthroughNull(_GLFWwindow* window, GLFWbool enabled);
   112  float _glfwGetWindowOpacityNull(_GLFWwindow* window);
   113  void _glfwSetWindowOpacityNull(_GLFWwindow* window, float opacity);
   114  void _glfwSetRawMouseMotionNull(_GLFWwindow *window, GLFWbool enabled);
   115  GLFWbool _glfwRawMouseMotionSupportedNull(void);
   116  void _glfwShowWindowNull(_GLFWwindow* window);
   117  void _glfwRequestWindowAttentionNull(_GLFWwindow* window);
   118  void _glfwRequestWindowAttentionNull(_GLFWwindow* window);
   119  void _glfwHideWindowNull(_GLFWwindow* window);
   120  void _glfwFocusWindowNull(_GLFWwindow* window);
   121  GLFWbool _glfwWindowFocusedNull(_GLFWwindow* window);
   122  GLFWbool _glfwWindowIconifiedNull(_GLFWwindow* window);
   123  GLFWbool _glfwWindowVisibleNull(_GLFWwindow* window);
   124  void _glfwPollEventsNull(void);
   125  void _glfwWaitEventsNull(void);
   126  void _glfwWaitEventsTimeoutNull(double timeout);
   127  void _glfwPostEmptyEventNull(void);
   128  void _glfwGetCursorPosNull(_GLFWwindow* window, double* xpos, double* ypos);
   129  void _glfwSetCursorPosNull(_GLFWwindow* window, double x, double y);
   130  void _glfwSetCursorModeNull(_GLFWwindow* window, int mode);
   131  GLFWbool _glfwCreateCursorNull(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot);
   132  GLFWbool _glfwCreateStandardCursorNull(_GLFWcursor* cursor, int shape);
   133  void _glfwDestroyCursorNull(_GLFWcursor* cursor);
   134  void _glfwSetCursorNull(_GLFWwindow* window, _GLFWcursor* cursor);
   135  void _glfwSetClipboardStringNull(const char* string);
   136  const char* _glfwGetClipboardStringNull(void);
   137  const char* _glfwGetScancodeNameNull(int scancode);
   138  int _glfwGetKeyScancodeNull(int key);
   139  
   140  EGLenum _glfwGetEGLPlatformNull(EGLint** attribs);
   141  EGLNativeDisplayType _glfwGetEGLNativeDisplayNull(void);
   142  EGLNativeWindowType _glfwGetEGLNativeWindowNull(_GLFWwindow* window);
   143  
   144  void _glfwGetRequiredInstanceExtensionsNull(char** extensions);
   145  GLFWbool _glfwGetPhysicalDevicePresentationSupportNull(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily);
   146  VkResult _glfwCreateWindowSurfaceNull(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
   147  
   148  void _glfwPollMonitorsNull(void);
   149