set layout size draggble

This commit is contained in:
2026-03-04 01:25:59 -05:00
parent 5aa0d7466e
commit 8891dcffb8
6 changed files with 147 additions and 18 deletions

View File

@@ -411,6 +411,14 @@ PlatformInput platform_get_input(PlatformWindow *window) {
return result;
}
void platform_set_cursor(PlatformCursor cursor) {
switch (cursor) {
case PLATFORM_CURSOR_SIZE_WE: [[NSCursor resizeLeftRightCursor] set]; break;
case PLATFORM_CURSOR_SIZE_NS: [[NSCursor resizeUpDownCursor] set]; break;
default: [[NSCursor arrowCursor] set]; break;
}
}
void platform_clipboard_set(const char *text) {
if (!text) return;
NSPasteboard *pb = [NSPasteboard generalPasteboard];