Port Cocoa drag source backend to new API

This commit is contained in:
Kovid Goyal
2026-02-18 11:20:17 +05:30
parent e5eb63fcd0
commit a2b7a0cd6d
9 changed files with 298 additions and 459 deletions

24
glfw/null_window.c vendored
View File

@@ -535,27 +535,13 @@ void _glfwPlatformCancelDrag(_GLFWwindow* window UNUSED)
{
// No-op for null platform
}
int _glfwPlatformStartDrag(_GLFWwindow* window UNUSED,
const char* const* mime_types UNUSED,
int mime_count UNUSED,
const GLFWimage* thumbnail UNUSED,
int operations UNUSED)
{
int
_glfwPlatformStartDrag(_GLFWwindow* window, const GLFWimage* thumbnail) {
(void)window; (void)thumbnail;
return ENOTSUP;
}
ssize_t _glfwPlatformSendDragData(GLFWDragSourceData* source_data UNUSED,
const void* data UNUSED,
size_t size UNUSED)
{
return -ENOTSUP;
}
void _glfwPlatformUpdateDragState(_GLFWwindow* window UNUSED)
{
// No-op for null platform
}
void _glfwPlatformFreeDragSourceData(void) {}
int _glfwPlatformDragDataReady(const char *mime_type) { (void) mime_type; return 0; }
const char** _glfwPlatformGetDropMimeTypes(GLFWDropData* drop UNUSED, int* count)
{