mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Fix return type of functions returning bool values
This commit is contained in:
parent
2c204ab52e
commit
736a88b067
@ -45,7 +45,7 @@ typedef struct _GLFWjoystickNS
|
|||||||
|
|
||||||
GLFWbool _glfwInitJoysticksCocoa(void);
|
GLFWbool _glfwInitJoysticksCocoa(void);
|
||||||
void _glfwTerminateJoysticksCocoa(void);
|
void _glfwTerminateJoysticksCocoa(void);
|
||||||
int _glfwPollJoystickCocoa(_GLFWjoystick* js, int mode);
|
GLFWbool _glfwPollJoystickCocoa(_GLFWjoystick* js, int mode);
|
||||||
const char* _glfwGetMappingNameCocoa(void);
|
const char* _glfwGetMappingNameCocoa(void);
|
||||||
void _glfwUpdateGamepadGUIDCocoa(char* guid);
|
void _glfwUpdateGamepadGUIDCocoa(char* guid);
|
||||||
|
|
||||||
|
@ -393,7 +393,7 @@ void _glfwTerminateJoysticksCocoa(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int _glfwPollJoystickCocoa(_GLFWjoystick* js, int mode)
|
GLFWbool _glfwPollJoystickCocoa(_GLFWjoystick* js, int mode)
|
||||||
{
|
{
|
||||||
if (mode & _GLFW_POLL_AXES)
|
if (mode & _GLFW_POLL_AXES)
|
||||||
{
|
{
|
||||||
|
@ -214,7 +214,7 @@ GLFWbool _glfwConnectCocoa(int platformID, _GLFWplatform* platform);
|
|||||||
int _glfwInitCocoa(void);
|
int _glfwInitCocoa(void);
|
||||||
void _glfwTerminateCocoa(void);
|
void _glfwTerminateCocoa(void);
|
||||||
|
|
||||||
int _glfwCreateWindowCocoa(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig);
|
GLFWbool _glfwCreateWindowCocoa(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig);
|
||||||
void _glfwDestroyWindowCocoa(_GLFWwindow* window);
|
void _glfwDestroyWindowCocoa(_GLFWwindow* window);
|
||||||
void _glfwSetWindowTitleCocoa(_GLFWwindow* window, const char* title);
|
void _glfwSetWindowTitleCocoa(_GLFWwindow* window, const char* title);
|
||||||
void _glfwSetWindowIconCocoa(_GLFWwindow* window, int count, const GLFWimage* images);
|
void _glfwSetWindowIconCocoa(_GLFWwindow* window, int count, const GLFWimage* images);
|
||||||
@ -235,12 +235,12 @@ void _glfwHideWindowCocoa(_GLFWwindow* window);
|
|||||||
void _glfwRequestWindowAttentionCocoa(_GLFWwindow* window);
|
void _glfwRequestWindowAttentionCocoa(_GLFWwindow* window);
|
||||||
void _glfwFocusWindowCocoa(_GLFWwindow* window);
|
void _glfwFocusWindowCocoa(_GLFWwindow* window);
|
||||||
void _glfwSetWindowMonitorCocoa(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate);
|
void _glfwSetWindowMonitorCocoa(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate);
|
||||||
int _glfwWindowFocusedCocoa(_GLFWwindow* window);
|
GLFWbool _glfwWindowFocusedCocoa(_GLFWwindow* window);
|
||||||
int _glfwWindowIconifiedCocoa(_GLFWwindow* window);
|
GLFWbool _glfwWindowIconifiedCocoa(_GLFWwindow* window);
|
||||||
int _glfwWindowVisibleCocoa(_GLFWwindow* window);
|
GLFWbool _glfwWindowVisibleCocoa(_GLFWwindow* window);
|
||||||
int _glfwWindowMaximizedCocoa(_GLFWwindow* window);
|
GLFWbool _glfwWindowMaximizedCocoa(_GLFWwindow* window);
|
||||||
int _glfwWindowHoveredCocoa(_GLFWwindow* window);
|
GLFWbool _glfwWindowHoveredCocoa(_GLFWwindow* window);
|
||||||
int _glfwFramebufferTransparentCocoa(_GLFWwindow* window);
|
GLFWbool _glfwFramebufferTransparentCocoa(_GLFWwindow* window);
|
||||||
void _glfwSetWindowResizableCocoa(_GLFWwindow* window, GLFWbool enabled);
|
void _glfwSetWindowResizableCocoa(_GLFWwindow* window, GLFWbool enabled);
|
||||||
void _glfwSetWindowDecoratedCocoa(_GLFWwindow* window, GLFWbool enabled);
|
void _glfwSetWindowDecoratedCocoa(_GLFWwindow* window, GLFWbool enabled);
|
||||||
void _glfwSetWindowFloatingCocoa(_GLFWwindow* window, GLFWbool enabled);
|
void _glfwSetWindowFloatingCocoa(_GLFWwindow* window, GLFWbool enabled);
|
||||||
@ -261,8 +261,8 @@ void _glfwSetCursorPosCocoa(_GLFWwindow* window, double xpos, double ypos);
|
|||||||
void _glfwSetCursorModeCocoa(_GLFWwindow* window, int mode);
|
void _glfwSetCursorModeCocoa(_GLFWwindow* window, int mode);
|
||||||
const char* _glfwGetScancodeNameCocoa(int scancode);
|
const char* _glfwGetScancodeNameCocoa(int scancode);
|
||||||
int _glfwGetKeyScancodeCocoa(int key);
|
int _glfwGetKeyScancodeCocoa(int key);
|
||||||
int _glfwCreateCursorCocoa(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot);
|
GLFWbool _glfwCreateCursorCocoa(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot);
|
||||||
int _glfwCreateStandardCursorCocoa(_GLFWcursor* cursor, int shape);
|
GLFWbool _glfwCreateStandardCursorCocoa(_GLFWcursor* cursor, int shape);
|
||||||
void _glfwDestroyCursorCocoa(_GLFWcursor* cursor);
|
void _glfwDestroyCursorCocoa(_GLFWcursor* cursor);
|
||||||
void _glfwSetCursorCocoa(_GLFWwindow* window, _GLFWcursor* cursor);
|
void _glfwSetCursorCocoa(_GLFWwindow* window, _GLFWcursor* cursor);
|
||||||
void _glfwSetClipboardStringCocoa(const char* string);
|
void _glfwSetClipboardStringCocoa(const char* string);
|
||||||
@ -273,7 +273,7 @@ EGLNativeDisplayType _glfwGetEGLNativeDisplayCocoa(void);
|
|||||||
EGLNativeWindowType _glfwGetEGLNativeWindowCocoa(_GLFWwindow* window);
|
EGLNativeWindowType _glfwGetEGLNativeWindowCocoa(_GLFWwindow* window);
|
||||||
|
|
||||||
void _glfwGetRequiredInstanceExtensionsCocoa(char** extensions);
|
void _glfwGetRequiredInstanceExtensionsCocoa(char** extensions);
|
||||||
int _glfwGetPhysicalDevicePresentationSupportCocoa(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily);
|
GLFWbool _glfwGetPhysicalDevicePresentationSupportCocoa(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily);
|
||||||
VkResult _glfwCreateWindowSurfaceCocoa(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
|
VkResult _glfwCreateWindowSurfaceCocoa(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
|
||||||
|
|
||||||
void _glfwFreeMonitorCocoa(_GLFWmonitor* monitor);
|
void _glfwFreeMonitorCocoa(_GLFWmonitor* monitor);
|
||||||
|
@ -893,7 +893,7 @@ float _glfwTransformYCocoa(float y)
|
|||||||
////// GLFW platform API //////
|
////// GLFW platform API //////
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
int _glfwCreateWindowCocoa(_GLFWwindow* window,
|
GLFWbool _glfwCreateWindowCocoa(_GLFWwindow* window,
|
||||||
const _GLFWwndconfig* wndconfig,
|
const _GLFWwndconfig* wndconfig,
|
||||||
const _GLFWctxconfig* ctxconfig,
|
const _GLFWctxconfig* ctxconfig,
|
||||||
const _GLFWfbconfig* fbconfig)
|
const _GLFWfbconfig* fbconfig)
|
||||||
@ -1309,35 +1309,35 @@ void _glfwSetWindowMonitorCocoa(_GLFWwindow* window,
|
|||||||
} // autoreleasepool
|
} // autoreleasepool
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowFocusedCocoa(_GLFWwindow* window)
|
GLFWbool _glfwWindowFocusedCocoa(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
return [window->ns.object isKeyWindow];
|
return [window->ns.object isKeyWindow];
|
||||||
} // autoreleasepool
|
} // autoreleasepool
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowIconifiedCocoa(_GLFWwindow* window)
|
GLFWbool _glfwWindowIconifiedCocoa(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
return [window->ns.object isMiniaturized];
|
return [window->ns.object isMiniaturized];
|
||||||
} // autoreleasepool
|
} // autoreleasepool
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowVisibleCocoa(_GLFWwindow* window)
|
GLFWbool _glfwWindowVisibleCocoa(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
return [window->ns.object isVisible];
|
return [window->ns.object isVisible];
|
||||||
} // autoreleasepool
|
} // autoreleasepool
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowMaximizedCocoa(_GLFWwindow* window)
|
GLFWbool _glfwWindowMaximizedCocoa(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
return [window->ns.object isZoomed];
|
return [window->ns.object isZoomed];
|
||||||
} // autoreleasepool
|
} // autoreleasepool
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowHoveredCocoa(_GLFWwindow* window)
|
GLFWbool _glfwWindowHoveredCocoa(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
|
|
||||||
@ -1355,7 +1355,7 @@ int _glfwWindowHoveredCocoa(_GLFWwindow* window)
|
|||||||
} // autoreleasepool
|
} // autoreleasepool
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwFramebufferTransparentCocoa(_GLFWwindow* window)
|
GLFWbool _glfwFramebufferTransparentCocoa(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
return ![window->ns.object isOpaque] && ![window->ns.view isOpaque];
|
return ![window->ns.object isOpaque] && ![window->ns.view isOpaque];
|
||||||
@ -1605,7 +1605,7 @@ int _glfwGetKeyScancodeCocoa(int key)
|
|||||||
return _glfw.ns.scancodes[key];
|
return _glfw.ns.scancodes[key];
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwCreateCursorCocoa(_GLFWcursor* cursor,
|
GLFWbool _glfwCreateCursorCocoa(_GLFWcursor* cursor,
|
||||||
const GLFWimage* image,
|
const GLFWimage* image,
|
||||||
int xhot, int yhot)
|
int xhot, int yhot)
|
||||||
{
|
{
|
||||||
@ -1649,7 +1649,7 @@ int _glfwCreateCursorCocoa(_GLFWcursor* cursor,
|
|||||||
} // autoreleasepool
|
} // autoreleasepool
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwCreateStandardCursorCocoa(_GLFWcursor* cursor, int shape)
|
GLFWbool _glfwCreateStandardCursorCocoa(_GLFWcursor* cursor, int shape)
|
||||||
{
|
{
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
|
|
||||||
@ -1832,7 +1832,7 @@ void _glfwGetRequiredInstanceExtensionsCocoa(char** extensions)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwGetPhysicalDevicePresentationSupportCocoa(VkInstance instance,
|
GLFWbool _glfwGetPhysicalDevicePresentationSupportCocoa(VkInstance instance,
|
||||||
VkPhysicalDevice device,
|
VkPhysicalDevice device,
|
||||||
uint32_t queuefamily)
|
uint32_t queuefamily)
|
||||||
{
|
{
|
||||||
|
@ -681,8 +681,8 @@ struct _GLFWplatform
|
|||||||
void (*setCursorMode)(_GLFWwindow*,int);
|
void (*setCursorMode)(_GLFWwindow*,int);
|
||||||
void (*setRawMouseMotion)(_GLFWwindow*,GLFWbool);
|
void (*setRawMouseMotion)(_GLFWwindow*,GLFWbool);
|
||||||
GLFWbool (*rawMouseMotionSupported)(void);
|
GLFWbool (*rawMouseMotionSupported)(void);
|
||||||
int (*createCursor)(_GLFWcursor*,const GLFWimage*,int,int);
|
GLFWbool (*createCursor)(_GLFWcursor*,const GLFWimage*,int,int);
|
||||||
int (*createStandardCursor)(_GLFWcursor*,int);
|
GLFWbool (*createStandardCursor)(_GLFWcursor*,int);
|
||||||
void (*destroyCursor)(_GLFWcursor*);
|
void (*destroyCursor)(_GLFWcursor*);
|
||||||
void (*setCursor)(_GLFWwindow*,_GLFWcursor*);
|
void (*setCursor)(_GLFWwindow*,_GLFWcursor*);
|
||||||
const char* (*getScancodeName)(int);
|
const char* (*getScancodeName)(int);
|
||||||
@ -691,7 +691,7 @@ struct _GLFWplatform
|
|||||||
const char* (*getClipboardString)(void);
|
const char* (*getClipboardString)(void);
|
||||||
GLFWbool (*initJoysticks)(void);
|
GLFWbool (*initJoysticks)(void);
|
||||||
void (*terminateJoysticks)(void);
|
void (*terminateJoysticks)(void);
|
||||||
int (*pollJoystick)(_GLFWjoystick*,int);
|
GLFWbool (*pollJoystick)(_GLFWjoystick*,int);
|
||||||
const char* (*getMappingName)(void);
|
const char* (*getMappingName)(void);
|
||||||
void (*updateGamepadGUID)(char*);
|
void (*updateGamepadGUID)(char*);
|
||||||
// monitor
|
// monitor
|
||||||
@ -704,7 +704,7 @@ struct _GLFWplatform
|
|||||||
GLFWbool (*getGammaRamp)(_GLFWmonitor*,GLFWgammaramp*);
|
GLFWbool (*getGammaRamp)(_GLFWmonitor*,GLFWgammaramp*);
|
||||||
void (*setGammaRamp)(_GLFWmonitor*,const GLFWgammaramp*);
|
void (*setGammaRamp)(_GLFWmonitor*,const GLFWgammaramp*);
|
||||||
// window
|
// window
|
||||||
int (*createWindow)(_GLFWwindow*,const _GLFWwndconfig*,const _GLFWctxconfig*,const _GLFWfbconfig*);
|
GLFWbool (*createWindow)(_GLFWwindow*,const _GLFWwndconfig*,const _GLFWctxconfig*,const _GLFWfbconfig*);
|
||||||
void (*destroyWindow)(_GLFWwindow*);
|
void (*destroyWindow)(_GLFWwindow*);
|
||||||
void (*setWindowTitle)(_GLFWwindow*,const char*);
|
void (*setWindowTitle)(_GLFWwindow*,const char*);
|
||||||
void (*setWindowIcon)(_GLFWwindow*,int,const GLFWimage*);
|
void (*setWindowIcon)(_GLFWwindow*,int,const GLFWimage*);
|
||||||
@ -725,12 +725,12 @@ struct _GLFWplatform
|
|||||||
void (*requestWindowAttention)(_GLFWwindow*);
|
void (*requestWindowAttention)(_GLFWwindow*);
|
||||||
void (*focusWindow)(_GLFWwindow*);
|
void (*focusWindow)(_GLFWwindow*);
|
||||||
void (*setWindowMonitor)(_GLFWwindow*,_GLFWmonitor*,int,int,int,int,int);
|
void (*setWindowMonitor)(_GLFWwindow*,_GLFWmonitor*,int,int,int,int,int);
|
||||||
int (*windowFocused)(_GLFWwindow*);
|
GLFWbool (*windowFocused)(_GLFWwindow*);
|
||||||
int (*windowIconified)(_GLFWwindow*);
|
GLFWbool (*windowIconified)(_GLFWwindow*);
|
||||||
int (*windowVisible)(_GLFWwindow*);
|
GLFWbool (*windowVisible)(_GLFWwindow*);
|
||||||
int (*windowMaximized)(_GLFWwindow*);
|
GLFWbool (*windowMaximized)(_GLFWwindow*);
|
||||||
int (*windowHovered)(_GLFWwindow*);
|
GLFWbool (*windowHovered)(_GLFWwindow*);
|
||||||
int (*framebufferTransparent)(_GLFWwindow*);
|
GLFWbool (*framebufferTransparent)(_GLFWwindow*);
|
||||||
float (*getWindowOpacity)(_GLFWwindow*);
|
float (*getWindowOpacity)(_GLFWwindow*);
|
||||||
void (*setWindowResizable)(_GLFWwindow*,GLFWbool);
|
void (*setWindowResizable)(_GLFWwindow*,GLFWbool);
|
||||||
void (*setWindowDecorated)(_GLFWwindow*,GLFWbool);
|
void (*setWindowDecorated)(_GLFWwindow*,GLFWbool);
|
||||||
@ -747,7 +747,7 @@ struct _GLFWplatform
|
|||||||
EGLNativeWindowType (*getEGLNativeWindow)(_GLFWwindow*);
|
EGLNativeWindowType (*getEGLNativeWindow)(_GLFWwindow*);
|
||||||
// vulkan
|
// vulkan
|
||||||
void (*getRequiredInstanceExtensions)(char**);
|
void (*getRequiredInstanceExtensions)(char**);
|
||||||
int (*getPhysicalDevicePresentationSupport)(VkInstance,VkPhysicalDevice,uint32_t);
|
GLFWbool (*getPhysicalDevicePresentationSupport)(VkInstance,VkPhysicalDevice,uint32_t);
|
||||||
VkResult (*createWindowSurface)(VkInstance,_GLFWwindow*,const VkAllocationCallbacks*,VkSurfaceKHR*);
|
VkResult (*createWindowSurface)(VkInstance,_GLFWwindow*,const VkAllocationCallbacks*,VkSurfaceKHR*);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -380,7 +380,7 @@ void _glfwTerminateJoysticksLinux(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwPollJoystickLinux(_GLFWjoystick* js, int mode)
|
GLFWbool _glfwPollJoystickLinux(_GLFWjoystick* js, int mode)
|
||||||
{
|
{
|
||||||
// Read all queued events (non-blocking)
|
// Read all queued events (non-blocking)
|
||||||
for (;;)
|
for (;;)
|
||||||
|
@ -59,7 +59,7 @@ void _glfwDetectJoystickConnectionLinux(void);
|
|||||||
|
|
||||||
GLFWbool _glfwInitJoysticksLinux(void);
|
GLFWbool _glfwInitJoysticksLinux(void);
|
||||||
void _glfwTerminateJoysticksLinux(void);
|
void _glfwTerminateJoysticksLinux(void);
|
||||||
int _glfwPollJoystickLinux(_GLFWjoystick* js, int mode);
|
GLFWbool _glfwPollJoystickLinux(_GLFWjoystick* js, int mode);
|
||||||
const char* _glfwGetMappingNameLinux(void);
|
const char* _glfwGetMappingNameLinux(void);
|
||||||
void _glfwUpdateGamepadGUIDLinux(char* guid);
|
void _glfwUpdateGamepadGUIDLinux(char* guid);
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ void _glfwTerminateJoysticksNull(void)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwPollJoystickNull(_GLFWjoystick* js, int mode)
|
GLFWbool _glfwPollJoystickNull(_GLFWjoystick* js, int mode)
|
||||||
{
|
{
|
||||||
return GLFW_FALSE;
|
return GLFW_FALSE;
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
GLFWbool _glfwInitJoysticksNull(void);
|
GLFWbool _glfwInitJoysticksNull(void);
|
||||||
void _glfwTerminateJoysticksNull(void);
|
void _glfwTerminateJoysticksNull(void);
|
||||||
int _glfwPollJoystickNull(_GLFWjoystick* js, int mode);
|
GLFWbool _glfwPollJoystickNull(_GLFWjoystick* js, int mode);
|
||||||
const char* _glfwGetMappingNameNull(void);
|
const char* _glfwGetMappingNameNull(void);
|
||||||
void _glfwUpdateGamepadGUIDNull(char* guid);
|
void _glfwUpdateGamepadGUIDNull(char* guid);
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ void _glfwGetVideoModeNull(_GLFWmonitor* monitor, GLFWvidmode* mode);
|
|||||||
GLFWbool _glfwGetGammaRampNull(_GLFWmonitor* monitor, GLFWgammaramp* ramp);
|
GLFWbool _glfwGetGammaRampNull(_GLFWmonitor* monitor, GLFWgammaramp* ramp);
|
||||||
void _glfwSetGammaRampNull(_GLFWmonitor* monitor, const GLFWgammaramp* ramp);
|
void _glfwSetGammaRampNull(_GLFWmonitor* monitor, const GLFWgammaramp* ramp);
|
||||||
|
|
||||||
int _glfwCreateWindowNull(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig);
|
GLFWbool _glfwCreateWindowNull(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig);
|
||||||
void _glfwDestroyWindowNull(_GLFWwindow* window);
|
void _glfwDestroyWindowNull(_GLFWwindow* window);
|
||||||
void _glfwSetWindowTitleNull(_GLFWwindow* window, const char* title);
|
void _glfwSetWindowTitleNull(_GLFWwindow* window, const char* title);
|
||||||
void _glfwSetWindowIconNull(_GLFWwindow* window, int count, const GLFWimage* images);
|
void _glfwSetWindowIconNull(_GLFWwindow* window, int count, const GLFWimage* images);
|
||||||
@ -102,9 +102,9 @@ void _glfwGetWindowContentScaleNull(_GLFWwindow* window, float* xscale, float* y
|
|||||||
void _glfwIconifyWindowNull(_GLFWwindow* window);
|
void _glfwIconifyWindowNull(_GLFWwindow* window);
|
||||||
void _glfwRestoreWindowNull(_GLFWwindow* window);
|
void _glfwRestoreWindowNull(_GLFWwindow* window);
|
||||||
void _glfwMaximizeWindowNull(_GLFWwindow* window);
|
void _glfwMaximizeWindowNull(_GLFWwindow* window);
|
||||||
int _glfwWindowMaximizedNull(_GLFWwindow* window);
|
GLFWbool _glfwWindowMaximizedNull(_GLFWwindow* window);
|
||||||
int _glfwWindowHoveredNull(_GLFWwindow* window);
|
GLFWbool _glfwWindowHoveredNull(_GLFWwindow* window);
|
||||||
int _glfwFramebufferTransparentNull(_GLFWwindow* window);
|
GLFWbool _glfwFramebufferTransparentNull(_GLFWwindow* window);
|
||||||
void _glfwSetWindowResizableNull(_GLFWwindow* window, GLFWbool enabled);
|
void _glfwSetWindowResizableNull(_GLFWwindow* window, GLFWbool enabled);
|
||||||
void _glfwSetWindowDecoratedNull(_GLFWwindow* window, GLFWbool enabled);
|
void _glfwSetWindowDecoratedNull(_GLFWwindow* window, GLFWbool enabled);
|
||||||
void _glfwSetWindowFloatingNull(_GLFWwindow* window, GLFWbool enabled);
|
void _glfwSetWindowFloatingNull(_GLFWwindow* window, GLFWbool enabled);
|
||||||
@ -118,9 +118,9 @@ void _glfwRequestWindowAttentionNull(_GLFWwindow* window);
|
|||||||
void _glfwRequestWindowAttentionNull(_GLFWwindow* window);
|
void _glfwRequestWindowAttentionNull(_GLFWwindow* window);
|
||||||
void _glfwHideWindowNull(_GLFWwindow* window);
|
void _glfwHideWindowNull(_GLFWwindow* window);
|
||||||
void _glfwFocusWindowNull(_GLFWwindow* window);
|
void _glfwFocusWindowNull(_GLFWwindow* window);
|
||||||
int _glfwWindowFocusedNull(_GLFWwindow* window);
|
GLFWbool _glfwWindowFocusedNull(_GLFWwindow* window);
|
||||||
int _glfwWindowIconifiedNull(_GLFWwindow* window);
|
GLFWbool _glfwWindowIconifiedNull(_GLFWwindow* window);
|
||||||
int _glfwWindowVisibleNull(_GLFWwindow* window);
|
GLFWbool _glfwWindowVisibleNull(_GLFWwindow* window);
|
||||||
void _glfwPollEventsNull(void);
|
void _glfwPollEventsNull(void);
|
||||||
void _glfwWaitEventsNull(void);
|
void _glfwWaitEventsNull(void);
|
||||||
void _glfwWaitEventsTimeoutNull(double timeout);
|
void _glfwWaitEventsTimeoutNull(double timeout);
|
||||||
@ -128,8 +128,8 @@ void _glfwPostEmptyEventNull(void);
|
|||||||
void _glfwGetCursorPosNull(_GLFWwindow* window, double* xpos, double* ypos);
|
void _glfwGetCursorPosNull(_GLFWwindow* window, double* xpos, double* ypos);
|
||||||
void _glfwSetCursorPosNull(_GLFWwindow* window, double x, double y);
|
void _glfwSetCursorPosNull(_GLFWwindow* window, double x, double y);
|
||||||
void _glfwSetCursorModeNull(_GLFWwindow* window, int mode);
|
void _glfwSetCursorModeNull(_GLFWwindow* window, int mode);
|
||||||
int _glfwCreateCursorNull(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot);
|
GLFWbool _glfwCreateCursorNull(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot);
|
||||||
int _glfwCreateStandardCursorNull(_GLFWcursor* cursor, int shape);
|
GLFWbool _glfwCreateStandardCursorNull(_GLFWcursor* cursor, int shape);
|
||||||
void _glfwDestroyCursorNull(_GLFWcursor* cursor);
|
void _glfwDestroyCursorNull(_GLFWcursor* cursor);
|
||||||
void _glfwSetCursorNull(_GLFWwindow* window, _GLFWcursor* cursor);
|
void _glfwSetCursorNull(_GLFWwindow* window, _GLFWcursor* cursor);
|
||||||
void _glfwSetClipboardStringNull(const char* string);
|
void _glfwSetClipboardStringNull(const char* string);
|
||||||
@ -142,7 +142,7 @@ EGLNativeDisplayType _glfwGetEGLNativeDisplayNull(void);
|
|||||||
EGLNativeWindowType _glfwGetEGLNativeWindowNull(_GLFWwindow* window);
|
EGLNativeWindowType _glfwGetEGLNativeWindowNull(_GLFWwindow* window);
|
||||||
|
|
||||||
void _glfwGetRequiredInstanceExtensionsNull(char** extensions);
|
void _glfwGetRequiredInstanceExtensionsNull(char** extensions);
|
||||||
int _glfwGetPhysicalDevicePresentationSupportNull(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily);
|
GLFWbool _glfwGetPhysicalDevicePresentationSupportNull(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily);
|
||||||
VkResult _glfwCreateWindowSurfaceNull(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
|
VkResult _glfwCreateWindowSurfaceNull(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
|
||||||
|
|
||||||
void _glfwPollMonitorsNull(void);
|
void _glfwPollMonitorsNull(void);
|
||||||
|
@ -103,7 +103,7 @@ static int createNativeWindow(_GLFWwindow* window,
|
|||||||
////// GLFW platform API //////
|
////// GLFW platform API //////
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
int _glfwCreateWindowNull(_GLFWwindow* window,
|
GLFWbool _glfwCreateWindowNull(_GLFWwindow* window,
|
||||||
const _GLFWwndconfig* wndconfig,
|
const _GLFWwndconfig* wndconfig,
|
||||||
const _GLFWctxconfig* ctxconfig,
|
const _GLFWctxconfig* ctxconfig,
|
||||||
const _GLFWfbconfig* fbconfig)
|
const _GLFWfbconfig* fbconfig)
|
||||||
@ -362,12 +362,12 @@ void _glfwMaximizeWindowNull(_GLFWwindow* window)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowMaximizedNull(_GLFWwindow* window)
|
GLFWbool _glfwWindowMaximizedNull(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return window->null.maximized;
|
return window->null.maximized;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowHoveredNull(_GLFWwindow* window)
|
GLFWbool _glfwWindowHoveredNull(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return _glfw.null.xcursor >= window->null.xpos &&
|
return _glfw.null.xcursor >= window->null.xpos &&
|
||||||
_glfw.null.ycursor >= window->null.ypos &&
|
_glfw.null.ycursor >= window->null.ypos &&
|
||||||
@ -375,7 +375,7 @@ int _glfwWindowHoveredNull(_GLFWwindow* window)
|
|||||||
_glfw.null.ycursor <= window->null.ypos + window->null.height - 1;
|
_glfw.null.ycursor <= window->null.ypos + window->null.height - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwFramebufferTransparentNull(_GLFWwindow* window)
|
GLFWbool _glfwFramebufferTransparentNull(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return window->null.transparent;
|
return window->null.transparent;
|
||||||
}
|
}
|
||||||
@ -461,17 +461,17 @@ void _glfwFocusWindowNull(_GLFWwindow* window)
|
|||||||
_glfwInputWindowFocus(window, GLFW_TRUE);
|
_glfwInputWindowFocus(window, GLFW_TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowFocusedNull(_GLFWwindow* window)
|
GLFWbool _glfwWindowFocusedNull(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return _glfw.null.focusedWindow == window;
|
return _glfw.null.focusedWindow == window;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowIconifiedNull(_GLFWwindow* window)
|
GLFWbool _glfwWindowIconifiedNull(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return window->null.iconified;
|
return window->null.iconified;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowVisibleNull(_GLFWwindow* window)
|
GLFWbool _glfwWindowVisibleNull(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return window->null.visible;
|
return window->null.visible;
|
||||||
}
|
}
|
||||||
@ -510,14 +510,14 @@ void _glfwSetCursorModeNull(_GLFWwindow* window, int mode)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwCreateCursorNull(_GLFWcursor* cursor,
|
GLFWbool _glfwCreateCursorNull(_GLFWcursor* cursor,
|
||||||
const GLFWimage* image,
|
const GLFWimage* image,
|
||||||
int xhot, int yhot)
|
int xhot, int yhot)
|
||||||
{
|
{
|
||||||
return GLFW_TRUE;
|
return GLFW_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwCreateStandardCursorNull(_GLFWcursor* cursor, int shape)
|
GLFWbool _glfwCreateStandardCursorNull(_GLFWcursor* cursor, int shape)
|
||||||
{
|
{
|
||||||
return GLFW_TRUE;
|
return GLFW_TRUE;
|
||||||
}
|
}
|
||||||
@ -693,7 +693,7 @@ void _glfwGetRequiredInstanceExtensionsNull(char** extensions)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwGetPhysicalDevicePresentationSupportNull(VkInstance instance,
|
GLFWbool _glfwGetPhysicalDevicePresentationSupportNull(VkInstance instance,
|
||||||
VkPhysicalDevice device,
|
VkPhysicalDevice device,
|
||||||
uint32_t queuefamily)
|
uint32_t queuefamily)
|
||||||
{
|
{
|
||||||
|
@ -601,7 +601,7 @@ void _glfwTerminateJoysticksWin32(void)
|
|||||||
IDirectInput8_Release(_glfw.win32.dinput8.api);
|
IDirectInput8_Release(_glfw.win32.dinput8.api);
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwPollJoystickWin32(_GLFWjoystick* js, int mode)
|
GLFWbool _glfwPollJoystickWin32(_GLFWjoystick* js, int mode)
|
||||||
{
|
{
|
||||||
if (js->win32.device)
|
if (js->win32.device)
|
||||||
{
|
{
|
||||||
|
@ -542,7 +542,7 @@ void _glfwSetVideoModeWin32(_GLFWmonitor* monitor, const GLFWvidmode* desired);
|
|||||||
void _glfwRestoreVideoModeWin32(_GLFWmonitor* monitor);
|
void _glfwRestoreVideoModeWin32(_GLFWmonitor* monitor);
|
||||||
void _glfwGetHMONITORContentScaleWin32(HMONITOR handle, float* xscale, float* yscale);
|
void _glfwGetHMONITORContentScaleWin32(HMONITOR handle, float* xscale, float* yscale);
|
||||||
|
|
||||||
int _glfwCreateWindowWin32(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig);
|
GLFWbool _glfwCreateWindowWin32(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig);
|
||||||
void _glfwDestroyWindowWin32(_GLFWwindow* window);
|
void _glfwDestroyWindowWin32(_GLFWwindow* window);
|
||||||
void _glfwSetWindowTitleWin32(_GLFWwindow* window, const char* title);
|
void _glfwSetWindowTitleWin32(_GLFWwindow* window, const char* title);
|
||||||
void _glfwSetWindowIconWin32(_GLFWwindow* window, int count, const GLFWimage* images);
|
void _glfwSetWindowIconWin32(_GLFWwindow* window, int count, const GLFWimage* images);
|
||||||
@ -563,12 +563,12 @@ void _glfwHideWindowWin32(_GLFWwindow* window);
|
|||||||
void _glfwRequestWindowAttentionWin32(_GLFWwindow* window);
|
void _glfwRequestWindowAttentionWin32(_GLFWwindow* window);
|
||||||
void _glfwFocusWindowWin32(_GLFWwindow* window);
|
void _glfwFocusWindowWin32(_GLFWwindow* window);
|
||||||
void _glfwSetWindowMonitorWin32(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate);
|
void _glfwSetWindowMonitorWin32(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate);
|
||||||
int _glfwWindowFocusedWin32(_GLFWwindow* window);
|
GLFWbool _glfwWindowFocusedWin32(_GLFWwindow* window);
|
||||||
int _glfwWindowIconifiedWin32(_GLFWwindow* window);
|
GLFWbool _glfwWindowIconifiedWin32(_GLFWwindow* window);
|
||||||
int _glfwWindowVisibleWin32(_GLFWwindow* window);
|
GLFWbool _glfwWindowVisibleWin32(_GLFWwindow* window);
|
||||||
int _glfwWindowMaximizedWin32(_GLFWwindow* window);
|
GLFWbool _glfwWindowMaximizedWin32(_GLFWwindow* window);
|
||||||
int _glfwWindowHoveredWin32(_GLFWwindow* window);
|
GLFWbool _glfwWindowHoveredWin32(_GLFWwindow* window);
|
||||||
int _glfwFramebufferTransparentWin32(_GLFWwindow* window);
|
GLFWbool _glfwFramebufferTransparentWin32(_GLFWwindow* window);
|
||||||
void _glfwSetWindowResizableWin32(_GLFWwindow* window, GLFWbool enabled);
|
void _glfwSetWindowResizableWin32(_GLFWwindow* window, GLFWbool enabled);
|
||||||
void _glfwSetWindowDecoratedWin32(_GLFWwindow* window, GLFWbool enabled);
|
void _glfwSetWindowDecoratedWin32(_GLFWwindow* window, GLFWbool enabled);
|
||||||
void _glfwSetWindowFloatingWin32(_GLFWwindow* window, GLFWbool enabled);
|
void _glfwSetWindowFloatingWin32(_GLFWwindow* window, GLFWbool enabled);
|
||||||
@ -589,8 +589,8 @@ void _glfwSetCursorPosWin32(_GLFWwindow* window, double xpos, double ypos);
|
|||||||
void _glfwSetCursorModeWin32(_GLFWwindow* window, int mode);
|
void _glfwSetCursorModeWin32(_GLFWwindow* window, int mode);
|
||||||
const char* _glfwGetScancodeNameWin32(int scancode);
|
const char* _glfwGetScancodeNameWin32(int scancode);
|
||||||
int _glfwGetKeyScancodeWin32(int key);
|
int _glfwGetKeyScancodeWin32(int key);
|
||||||
int _glfwCreateCursorWin32(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot);
|
GLFWbool _glfwCreateCursorWin32(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot);
|
||||||
int _glfwCreateStandardCursorWin32(_GLFWcursor* cursor, int shape);
|
GLFWbool _glfwCreateStandardCursorWin32(_GLFWcursor* cursor, int shape);
|
||||||
void _glfwDestroyCursorWin32(_GLFWcursor* cursor);
|
void _glfwDestroyCursorWin32(_GLFWcursor* cursor);
|
||||||
void _glfwSetCursorWin32(_GLFWwindow* window, _GLFWcursor* cursor);
|
void _glfwSetCursorWin32(_GLFWwindow* window, _GLFWcursor* cursor);
|
||||||
void _glfwSetClipboardStringWin32(const char* string);
|
void _glfwSetClipboardStringWin32(const char* string);
|
||||||
@ -601,7 +601,7 @@ EGLNativeDisplayType _glfwGetEGLNativeDisplayWin32(void);
|
|||||||
EGLNativeWindowType _glfwGetEGLNativeWindowWin32(_GLFWwindow* window);
|
EGLNativeWindowType _glfwGetEGLNativeWindowWin32(_GLFWwindow* window);
|
||||||
|
|
||||||
void _glfwGetRequiredInstanceExtensionsWin32(char** extensions);
|
void _glfwGetRequiredInstanceExtensionsWin32(char** extensions);
|
||||||
int _glfwGetPhysicalDevicePresentationSupportWin32(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily);
|
GLFWbool _glfwGetPhysicalDevicePresentationSupportWin32(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily);
|
||||||
VkResult _glfwCreateWindowSurfaceWin32(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
|
VkResult _glfwCreateWindowSurfaceWin32(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
|
||||||
|
|
||||||
void _glfwFreeMonitorWin32(_GLFWmonitor* monitor);
|
void _glfwFreeMonitorWin32(_GLFWmonitor* monitor);
|
||||||
@ -615,7 +615,7 @@ void _glfwSetGammaRampWin32(_GLFWmonitor* monitor, const GLFWgammaramp* ramp);
|
|||||||
|
|
||||||
GLFWbool _glfwInitJoysticksWin32(void);
|
GLFWbool _glfwInitJoysticksWin32(void);
|
||||||
void _glfwTerminateJoysticksWin32(void);
|
void _glfwTerminateJoysticksWin32(void);
|
||||||
int _glfwPollJoystickWin32(_GLFWjoystick* js, int mode);
|
GLFWbool _glfwPollJoystickWin32(_GLFWjoystick* js, int mode);
|
||||||
const char* _glfwGetMappingNameWin32(void);
|
const char* _glfwGetMappingNameWin32(void);
|
||||||
void _glfwUpdateGamepadGUIDWin32(char* guid);
|
void _glfwUpdateGamepadGUIDWin32(char* guid);
|
||||||
|
|
||||||
|
@ -1463,7 +1463,7 @@ void _glfwUnregisterWindowClassWin32(void)
|
|||||||
UnregisterClassW(_GLFW_WNDCLASSNAME, _glfw.win32.instance);
|
UnregisterClassW(_GLFW_WNDCLASSNAME, _glfw.win32.instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwCreateWindowWin32(_GLFWwindow* window,
|
GLFWbool _glfwCreateWindowWin32(_GLFWwindow* window,
|
||||||
const _GLFWwndconfig* wndconfig,
|
const _GLFWwndconfig* wndconfig,
|
||||||
const _GLFWctxconfig* ctxconfig,
|
const _GLFWctxconfig* ctxconfig,
|
||||||
const _GLFWfbconfig* fbconfig)
|
const _GLFWfbconfig* fbconfig)
|
||||||
@ -1900,32 +1900,32 @@ void _glfwSetWindowMonitorWin32(_GLFWwindow* window,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowFocusedWin32(_GLFWwindow* window)
|
GLFWbool _glfwWindowFocusedWin32(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return window->win32.handle == GetActiveWindow();
|
return window->win32.handle == GetActiveWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowIconifiedWin32(_GLFWwindow* window)
|
GLFWbool _glfwWindowIconifiedWin32(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return IsIconic(window->win32.handle);
|
return IsIconic(window->win32.handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowVisibleWin32(_GLFWwindow* window)
|
GLFWbool _glfwWindowVisibleWin32(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return IsWindowVisible(window->win32.handle);
|
return IsWindowVisible(window->win32.handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowMaximizedWin32(_GLFWwindow* window)
|
GLFWbool _glfwWindowMaximizedWin32(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return IsZoomed(window->win32.handle);
|
return IsZoomed(window->win32.handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowHoveredWin32(_GLFWwindow* window)
|
GLFWbool _glfwWindowHoveredWin32(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return cursorInContentArea(window);
|
return cursorInContentArea(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwFramebufferTransparentWin32(_GLFWwindow* window)
|
GLFWbool _glfwFramebufferTransparentWin32(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
BOOL composition, opaque;
|
BOOL composition, opaque;
|
||||||
DWORD color;
|
DWORD color;
|
||||||
@ -2209,7 +2209,7 @@ int _glfwGetKeyScancodeWin32(int key)
|
|||||||
return _glfw.win32.scancodes[key];
|
return _glfw.win32.scancodes[key];
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwCreateCursorWin32(_GLFWcursor* cursor,
|
GLFWbool _glfwCreateCursorWin32(_GLFWcursor* cursor,
|
||||||
const GLFWimage* image,
|
const GLFWimage* image,
|
||||||
int xhot, int yhot)
|
int xhot, int yhot)
|
||||||
{
|
{
|
||||||
@ -2220,7 +2220,7 @@ int _glfwCreateCursorWin32(_GLFWcursor* cursor,
|
|||||||
return GLFW_TRUE;
|
return GLFW_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwCreateStandardCursorWin32(_GLFWcursor* cursor, int shape)
|
GLFWbool _glfwCreateStandardCursorWin32(_GLFWcursor* cursor, int shape)
|
||||||
{
|
{
|
||||||
int id = 0;
|
int id = 0;
|
||||||
|
|
||||||
@ -2428,7 +2428,7 @@ void _glfwGetRequiredInstanceExtensionsWin32(char** extensions)
|
|||||||
extensions[1] = "VK_KHR_win32_surface";
|
extensions[1] = "VK_KHR_win32_surface";
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwGetPhysicalDevicePresentationSupportWin32(VkInstance instance,
|
GLFWbool _glfwGetPhysicalDevicePresentationSupportWin32(VkInstance instance,
|
||||||
VkPhysicalDevice device,
|
VkPhysicalDevice device,
|
||||||
uint32_t queuefamily)
|
uint32_t queuefamily)
|
||||||
{
|
{
|
||||||
|
@ -436,7 +436,7 @@ GLFWbool _glfwConnectWayland(int platformID, _GLFWplatform* platform);
|
|||||||
int _glfwInitWayland(void);
|
int _glfwInitWayland(void);
|
||||||
void _glfwTerminateWayland(void);
|
void _glfwTerminateWayland(void);
|
||||||
|
|
||||||
int _glfwCreateWindowWayland(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig);
|
GLFWbool _glfwCreateWindowWayland(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig);
|
||||||
void _glfwDestroyWindowWayland(_GLFWwindow* window);
|
void _glfwDestroyWindowWayland(_GLFWwindow* window);
|
||||||
void _glfwSetWindowTitleWayland(_GLFWwindow* window, const char* title);
|
void _glfwSetWindowTitleWayland(_GLFWwindow* window, const char* title);
|
||||||
void _glfwSetWindowIconWayland(_GLFWwindow* window, int count, const GLFWimage* images);
|
void _glfwSetWindowIconWayland(_GLFWwindow* window, int count, const GLFWimage* images);
|
||||||
@ -457,12 +457,12 @@ void _glfwHideWindowWayland(_GLFWwindow* window);
|
|||||||
void _glfwRequestWindowAttentionWayland(_GLFWwindow* window);
|
void _glfwRequestWindowAttentionWayland(_GLFWwindow* window);
|
||||||
void _glfwFocusWindowWayland(_GLFWwindow* window);
|
void _glfwFocusWindowWayland(_GLFWwindow* window);
|
||||||
void _glfwSetWindowMonitorWayland(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate);
|
void _glfwSetWindowMonitorWayland(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate);
|
||||||
int _glfwWindowFocusedWayland(_GLFWwindow* window);
|
GLFWbool _glfwWindowFocusedWayland(_GLFWwindow* window);
|
||||||
int _glfwWindowIconifiedWayland(_GLFWwindow* window);
|
GLFWbool _glfwWindowIconifiedWayland(_GLFWwindow* window);
|
||||||
int _glfwWindowVisibleWayland(_GLFWwindow* window);
|
GLFWbool _glfwWindowVisibleWayland(_GLFWwindow* window);
|
||||||
int _glfwWindowMaximizedWayland(_GLFWwindow* window);
|
GLFWbool _glfwWindowMaximizedWayland(_GLFWwindow* window);
|
||||||
int _glfwWindowHoveredWayland(_GLFWwindow* window);
|
GLFWbool _glfwWindowHoveredWayland(_GLFWwindow* window);
|
||||||
int _glfwFramebufferTransparentWayland(_GLFWwindow* window);
|
GLFWbool _glfwFramebufferTransparentWayland(_GLFWwindow* window);
|
||||||
void _glfwSetWindowResizableWayland(_GLFWwindow* window, GLFWbool enabled);
|
void _glfwSetWindowResizableWayland(_GLFWwindow* window, GLFWbool enabled);
|
||||||
void _glfwSetWindowDecoratedWayland(_GLFWwindow* window, GLFWbool enabled);
|
void _glfwSetWindowDecoratedWayland(_GLFWwindow* window, GLFWbool enabled);
|
||||||
void _glfwSetWindowFloatingWayland(_GLFWwindow* window, GLFWbool enabled);
|
void _glfwSetWindowFloatingWayland(_GLFWwindow* window, GLFWbool enabled);
|
||||||
@ -483,8 +483,8 @@ void _glfwSetCursorPosWayland(_GLFWwindow* window, double xpos, double ypos);
|
|||||||
void _glfwSetCursorModeWayland(_GLFWwindow* window, int mode);
|
void _glfwSetCursorModeWayland(_GLFWwindow* window, int mode);
|
||||||
const char* _glfwGetScancodeNameWayland(int scancode);
|
const char* _glfwGetScancodeNameWayland(int scancode);
|
||||||
int _glfwGetKeyScancodeWayland(int key);
|
int _glfwGetKeyScancodeWayland(int key);
|
||||||
int _glfwCreateCursorWayland(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot);
|
GLFWbool _glfwCreateCursorWayland(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot);
|
||||||
int _glfwCreateStandardCursorWayland(_GLFWcursor* cursor, int shape);
|
GLFWbool _glfwCreateStandardCursorWayland(_GLFWcursor* cursor, int shape);
|
||||||
void _glfwDestroyCursorWayland(_GLFWcursor* cursor);
|
void _glfwDestroyCursorWayland(_GLFWcursor* cursor);
|
||||||
void _glfwSetCursorWayland(_GLFWwindow* window, _GLFWcursor* cursor);
|
void _glfwSetCursorWayland(_GLFWwindow* window, _GLFWcursor* cursor);
|
||||||
void _glfwSetClipboardStringWayland(const char* string);
|
void _glfwSetClipboardStringWayland(const char* string);
|
||||||
@ -495,7 +495,7 @@ EGLNativeDisplayType _glfwGetEGLNativeDisplayWayland(void);
|
|||||||
EGLNativeWindowType _glfwGetEGLNativeWindowWayland(_GLFWwindow* window);
|
EGLNativeWindowType _glfwGetEGLNativeWindowWayland(_GLFWwindow* window);
|
||||||
|
|
||||||
void _glfwGetRequiredInstanceExtensionsWayland(char** extensions);
|
void _glfwGetRequiredInstanceExtensionsWayland(char** extensions);
|
||||||
int _glfwGetPhysicalDevicePresentationSupportWayland(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily);
|
GLFWbool _glfwGetPhysicalDevicePresentationSupportWayland(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily);
|
||||||
VkResult _glfwCreateWindowSurfaceWayland(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
|
VkResult _glfwCreateWindowSurfaceWayland(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
|
||||||
|
|
||||||
void _glfwFreeMonitorWayland(_GLFWmonitor* monitor);
|
void _glfwFreeMonitorWayland(_GLFWmonitor* monitor);
|
||||||
|
@ -1721,7 +1721,7 @@ void _glfwAddDataDeviceListenerWayland(struct wl_data_device* device)
|
|||||||
////// GLFW platform API //////
|
////// GLFW platform API //////
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
int _glfwCreateWindowWayland(_GLFWwindow* window,
|
GLFWbool _glfwCreateWindowWayland(_GLFWwindow* window,
|
||||||
const _GLFWwndconfig* wndconfig,
|
const _GLFWwndconfig* wndconfig,
|
||||||
const _GLFWctxconfig* ctxconfig,
|
const _GLFWctxconfig* ctxconfig,
|
||||||
const _GLFWfbconfig* fbconfig)
|
const _GLFWfbconfig* fbconfig)
|
||||||
@ -1994,34 +1994,34 @@ void _glfwSetWindowMonitorWayland(_GLFWwindow* window,
|
|||||||
_glfwInputWindowMonitor(window, monitor);
|
_glfwInputWindowMonitor(window, monitor);
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowFocusedWayland(_GLFWwindow* window)
|
GLFWbool _glfwWindowFocusedWayland(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return _glfw.wl.keyboardFocus == window;
|
return _glfw.wl.keyboardFocus == window;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowIconifiedWayland(_GLFWwindow* window)
|
GLFWbool _glfwWindowIconifiedWayland(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
// xdg-shell doesn’t give any way to request whether a surface is
|
// xdg-shell doesn’t give any way to request whether a surface is
|
||||||
// iconified.
|
// iconified.
|
||||||
return GLFW_FALSE;
|
return GLFW_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowVisibleWayland(_GLFWwindow* window)
|
GLFWbool _glfwWindowVisibleWayland(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return window->wl.visible;
|
return window->wl.visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowMaximizedWayland(_GLFWwindow* window)
|
GLFWbool _glfwWindowMaximizedWayland(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return window->wl.maximized;
|
return window->wl.maximized;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowHoveredWayland(_GLFWwindow* window)
|
GLFWbool _glfwWindowHoveredWayland(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return window->wl.hovered;
|
return window->wl.hovered;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwFramebufferTransparentWayland(_GLFWwindow* window)
|
GLFWbool _glfwFramebufferTransparentWayland(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return window->wl.transparent;
|
return window->wl.transparent;
|
||||||
}
|
}
|
||||||
@ -2193,7 +2193,7 @@ int _glfwGetKeyScancodeWayland(int key)
|
|||||||
return _glfw.wl.scancodes[key];
|
return _glfw.wl.scancodes[key];
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwCreateCursorWayland(_GLFWcursor* cursor,
|
GLFWbool _glfwCreateCursorWayland(_GLFWcursor* cursor,
|
||||||
const GLFWimage* image,
|
const GLFWimage* image,
|
||||||
int xhot, int yhot)
|
int xhot, int yhot)
|
||||||
{
|
{
|
||||||
@ -2208,7 +2208,7 @@ int _glfwCreateCursorWayland(_GLFWcursor* cursor,
|
|||||||
return GLFW_TRUE;
|
return GLFW_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwCreateStandardCursorWayland(_GLFWcursor* cursor, int shape)
|
GLFWbool _glfwCreateStandardCursorWayland(_GLFWcursor* cursor, int shape)
|
||||||
{
|
{
|
||||||
const char* name = NULL;
|
const char* name = NULL;
|
||||||
|
|
||||||
@ -2635,7 +2635,7 @@ void _glfwGetRequiredInstanceExtensionsWayland(char** extensions)
|
|||||||
extensions[1] = "VK_KHR_wayland_surface";
|
extensions[1] = "VK_KHR_wayland_surface";
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwGetPhysicalDevicePresentationSupportWayland(VkInstance instance,
|
GLFWbool _glfwGetPhysicalDevicePresentationSupportWayland(VkInstance instance,
|
||||||
VkPhysicalDevice device,
|
VkPhysicalDevice device,
|
||||||
uint32_t queuefamily)
|
uint32_t queuefamily)
|
||||||
{
|
{
|
||||||
|
@ -900,7 +900,7 @@ GLFWbool _glfwConnectX11(int platformID, _GLFWplatform* platform);
|
|||||||
int _glfwInitX11(void);
|
int _glfwInitX11(void);
|
||||||
void _glfwTerminateX11(void);
|
void _glfwTerminateX11(void);
|
||||||
|
|
||||||
int _glfwCreateWindowX11(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig);
|
GLFWbool _glfwCreateWindowX11(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig);
|
||||||
void _glfwDestroyWindowX11(_GLFWwindow* window);
|
void _glfwDestroyWindowX11(_GLFWwindow* window);
|
||||||
void _glfwSetWindowTitleX11(_GLFWwindow* window, const char* title);
|
void _glfwSetWindowTitleX11(_GLFWwindow* window, const char* title);
|
||||||
void _glfwSetWindowIconX11(_GLFWwindow* window, int count, const GLFWimage* images);
|
void _glfwSetWindowIconX11(_GLFWwindow* window, int count, const GLFWimage* images);
|
||||||
@ -921,12 +921,12 @@ void _glfwHideWindowX11(_GLFWwindow* window);
|
|||||||
void _glfwRequestWindowAttentionX11(_GLFWwindow* window);
|
void _glfwRequestWindowAttentionX11(_GLFWwindow* window);
|
||||||
void _glfwFocusWindowX11(_GLFWwindow* window);
|
void _glfwFocusWindowX11(_GLFWwindow* window);
|
||||||
void _glfwSetWindowMonitorX11(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate);
|
void _glfwSetWindowMonitorX11(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate);
|
||||||
int _glfwWindowFocusedX11(_GLFWwindow* window);
|
GLFWbool _glfwWindowFocusedX11(_GLFWwindow* window);
|
||||||
int _glfwWindowIconifiedX11(_GLFWwindow* window);
|
GLFWbool _glfwWindowIconifiedX11(_GLFWwindow* window);
|
||||||
int _glfwWindowVisibleX11(_GLFWwindow* window);
|
GLFWbool _glfwWindowVisibleX11(_GLFWwindow* window);
|
||||||
int _glfwWindowMaximizedX11(_GLFWwindow* window);
|
GLFWbool _glfwWindowMaximizedX11(_GLFWwindow* window);
|
||||||
int _glfwWindowHoveredX11(_GLFWwindow* window);
|
GLFWbool _glfwWindowHoveredX11(_GLFWwindow* window);
|
||||||
int _glfwFramebufferTransparentX11(_GLFWwindow* window);
|
GLFWbool _glfwFramebufferTransparentX11(_GLFWwindow* window);
|
||||||
void _glfwSetWindowResizableX11(_GLFWwindow* window, GLFWbool enabled);
|
void _glfwSetWindowResizableX11(_GLFWwindow* window, GLFWbool enabled);
|
||||||
void _glfwSetWindowDecoratedX11(_GLFWwindow* window, GLFWbool enabled);
|
void _glfwSetWindowDecoratedX11(_GLFWwindow* window, GLFWbool enabled);
|
||||||
void _glfwSetWindowFloatingX11(_GLFWwindow* window, GLFWbool enabled);
|
void _glfwSetWindowFloatingX11(_GLFWwindow* window, GLFWbool enabled);
|
||||||
@ -947,8 +947,8 @@ void _glfwSetCursorPosX11(_GLFWwindow* window, double xpos, double ypos);
|
|||||||
void _glfwSetCursorModeX11(_GLFWwindow* window, int mode);
|
void _glfwSetCursorModeX11(_GLFWwindow* window, int mode);
|
||||||
const char* _glfwGetScancodeNameX11(int scancode);
|
const char* _glfwGetScancodeNameX11(int scancode);
|
||||||
int _glfwGetKeyScancodeX11(int key);
|
int _glfwGetKeyScancodeX11(int key);
|
||||||
int _glfwCreateCursorX11(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot);
|
GLFWbool _glfwCreateCursorX11(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot);
|
||||||
int _glfwCreateStandardCursorX11(_GLFWcursor* cursor, int shape);
|
GLFWbool _glfwCreateStandardCursorX11(_GLFWcursor* cursor, int shape);
|
||||||
void _glfwDestroyCursorX11(_GLFWcursor* cursor);
|
void _glfwDestroyCursorX11(_GLFWcursor* cursor);
|
||||||
void _glfwSetCursorX11(_GLFWwindow* window, _GLFWcursor* cursor);
|
void _glfwSetCursorX11(_GLFWwindow* window, _GLFWcursor* cursor);
|
||||||
void _glfwSetClipboardStringX11(const char* string);
|
void _glfwSetClipboardStringX11(const char* string);
|
||||||
@ -959,7 +959,7 @@ EGLNativeDisplayType _glfwGetEGLNativeDisplayX11(void);
|
|||||||
EGLNativeWindowType _glfwGetEGLNativeWindowX11(_GLFWwindow* window);
|
EGLNativeWindowType _glfwGetEGLNativeWindowX11(_GLFWwindow* window);
|
||||||
|
|
||||||
void _glfwGetRequiredInstanceExtensionsX11(char** extensions);
|
void _glfwGetRequiredInstanceExtensionsX11(char** extensions);
|
||||||
int _glfwGetPhysicalDevicePresentationSupportX11(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily);
|
GLFWbool _glfwGetPhysicalDevicePresentationSupportX11(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily);
|
||||||
VkResult _glfwCreateWindowSurfaceX11(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
|
VkResult _glfwCreateWindowSurfaceX11(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
|
||||||
|
|
||||||
void _glfwFreeMonitorX11(_GLFWmonitor* monitor);
|
void _glfwFreeMonitorX11(_GLFWmonitor* monitor);
|
||||||
|
@ -1895,7 +1895,7 @@ void _glfwCreateInputContextX11(_GLFWwindow* window)
|
|||||||
////// GLFW platform API //////
|
////// GLFW platform API //////
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
int _glfwCreateWindowX11(_GLFWwindow* window,
|
GLFWbool _glfwCreateWindowX11(_GLFWwindow* window,
|
||||||
const _GLFWwndconfig* wndconfig,
|
const _GLFWwndconfig* wndconfig,
|
||||||
const _GLFWctxconfig* ctxconfig,
|
const _GLFWctxconfig* ctxconfig,
|
||||||
const _GLFWfbconfig* fbconfig)
|
const _GLFWfbconfig* fbconfig)
|
||||||
@ -2462,7 +2462,7 @@ void _glfwSetWindowMonitorX11(_GLFWwindow* window,
|
|||||||
XFlush(_glfw.x11.display);
|
XFlush(_glfw.x11.display);
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowFocusedX11(_GLFWwindow* window)
|
GLFWbool _glfwWindowFocusedX11(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
Window focused;
|
Window focused;
|
||||||
int state;
|
int state;
|
||||||
@ -2471,19 +2471,19 @@ int _glfwWindowFocusedX11(_GLFWwindow* window)
|
|||||||
return window->x11.handle == focused;
|
return window->x11.handle == focused;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowIconifiedX11(_GLFWwindow* window)
|
GLFWbool _glfwWindowIconifiedX11(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return getWindowState(window) == IconicState;
|
return getWindowState(window) == IconicState;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowVisibleX11(_GLFWwindow* window)
|
GLFWbool _glfwWindowVisibleX11(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
XWindowAttributes wa;
|
XWindowAttributes wa;
|
||||||
XGetWindowAttributes(_glfw.x11.display, window->x11.handle, &wa);
|
XGetWindowAttributes(_glfw.x11.display, window->x11.handle, &wa);
|
||||||
return wa.map_state == IsViewable;
|
return wa.map_state == IsViewable;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowMaximizedX11(_GLFWwindow* window)
|
GLFWbool _glfwWindowMaximizedX11(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
Atom* states;
|
Atom* states;
|
||||||
GLFWbool maximized = GLFW_FALSE;
|
GLFWbool maximized = GLFW_FALSE;
|
||||||
@ -2517,7 +2517,7 @@ int _glfwWindowMaximizedX11(_GLFWwindow* window)
|
|||||||
return maximized;
|
return maximized;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwWindowHoveredX11(_GLFWwindow* window)
|
GLFWbool _glfwWindowHoveredX11(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
Window w = _glfw.x11.root;
|
Window w = _glfw.x11.root;
|
||||||
while (w)
|
while (w)
|
||||||
@ -2545,7 +2545,7 @@ int _glfwWindowHoveredX11(_GLFWwindow* window)
|
|||||||
return GLFW_FALSE;
|
return GLFW_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwFramebufferTransparentX11(_GLFWwindow* window)
|
GLFWbool _glfwFramebufferTransparentX11(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
if (!window->x11.transparent)
|
if (!window->x11.transparent)
|
||||||
return GLFW_FALSE;
|
return GLFW_FALSE;
|
||||||
@ -2848,7 +2848,7 @@ int _glfwGetKeyScancodeX11(int key)
|
|||||||
return _glfw.x11.scancodes[key];
|
return _glfw.x11.scancodes[key];
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwCreateCursorX11(_GLFWcursor* cursor,
|
GLFWbool _glfwCreateCursorX11(_GLFWcursor* cursor,
|
||||||
const GLFWimage* image,
|
const GLFWimage* image,
|
||||||
int xhot, int yhot)
|
int xhot, int yhot)
|
||||||
{
|
{
|
||||||
@ -2859,7 +2859,7 @@ int _glfwCreateCursorX11(_GLFWcursor* cursor,
|
|||||||
return GLFW_TRUE;
|
return GLFW_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwCreateStandardCursorX11(_GLFWcursor* cursor, int shape)
|
GLFWbool _glfwCreateStandardCursorX11(_GLFWcursor* cursor, int shape)
|
||||||
{
|
{
|
||||||
if (_glfw.x11.xcursor.handle)
|
if (_glfw.x11.xcursor.handle)
|
||||||
{
|
{
|
||||||
@ -3066,7 +3066,7 @@ void _glfwGetRequiredInstanceExtensionsX11(char** extensions)
|
|||||||
extensions[1] = "VK_KHR_xlib_surface";
|
extensions[1] = "VK_KHR_xlib_surface";
|
||||||
}
|
}
|
||||||
|
|
||||||
int _glfwGetPhysicalDevicePresentationSupportX11(VkInstance instance,
|
GLFWbool _glfwGetPhysicalDevicePresentationSupportX11(VkInstance instance,
|
||||||
VkPhysicalDevice device,
|
VkPhysicalDevice device,
|
||||||
uint32_t queuefamily)
|
uint32_t queuefamily)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user