Add GLFW_DND_* constants

This commit is contained in:
Florian Albrechtskirchinger 2022-06-10 22:51:54 +02:00
parent d3ede7b684
commit 8031534c38
No known key found for this signature in database
GPG Key ID: 19618CE9B2D4BE6D
2 changed files with 33 additions and 0 deletions

View File

@ -927,6 +927,9 @@ extern "C" {
*/ */
#define GLFW_MOUSE_PASSTHROUGH 0x0002000D #define GLFW_MOUSE_PASSTHROUGH 0x0002000D
// TODO doc
#define GLFW_DND_DRAGGING 0x0002000E
/*! @brief Framebuffer bit depth hint. /*! @brief Framebuffer bit depth hint.
* *
* Framebuffer bit depth [hint](@ref GLFW_RED_BITS). * Framebuffer bit depth [hint](@ref GLFW_RED_BITS).
@ -1302,6 +1305,25 @@ extern "C" {
#define GLFW_PLATFORM_NULL 0x00060005 #define GLFW_PLATFORM_NULL 0x00060005
/*! @} */ /*! @} */
// TODO doc
#define GLFW_DND_NONE 0
// Drag and drop events
#define GLFW_DND_ENTER 0xdd100001
#define GLFW_DND_DRAG 0xdd100002
#define GLFW_DND_LEAVE 0xdd100003
// Drag and drop actions
// GLFW_DND_NONE
#define GLFW_DND_COPY 0xdd200001
#define GLFW_DND_LINK 0xdd200002
#define GLFW_DND_MOVE 0xdd200004
// Drag and drop formats
// GLFW_DND_NONE
#define GLFW_DND_TEXT 0xdd300002
#define GLFW_DND_PATHS 0xdd300001
#define GLFW_DONT_CARE -1 #define GLFW_DONT_CARE -1

View File

@ -58,6 +58,17 @@
#define _GLFW_MESSAGE_SIZE 1024 #define _GLFW_MESSAGE_SIZE 1024
#define _GLFW_DND_MASK 0x000fffff
#define _GLFW_DND_TEXT_INDEX 1
#define _GLFW_DND_PATHS_INDEX 0
#define _GLFW_DND_FORMAT_COUNT 2
#define _GLFW_DND_COPY_INDEX 0
#define _GLFW_DND_LINK_INDEX 1
#define _GLFW_DND_MOVE_INDEX 2
#define _GLFW_DND_ACTION_COUNT 3
typedef int GLFWbool; typedef int GLFWbool;
typedef void (*GLFWproc)(void); typedef void (*GLFWproc)(void);