diff options
Diffstat (limited to 'vendor/gioui.org/app/internal/window/os_darwin.m')
-rw-r--r-- | vendor/gioui.org/app/internal/window/os_darwin.m | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/vendor/gioui.org/app/internal/window/os_darwin.m b/vendor/gioui.org/app/internal/window/os_darwin.m deleted file mode 100644 index dc4f00b..0000000 --- a/vendor/gioui.org/app/internal/window/os_darwin.m +++ /dev/null @@ -1,22 +0,0 @@ -// SPDX-License-Identifier: Unlicense OR MIT - -@import Dispatch; -@import Foundation; - -#include "_cgo_export.h" - -void gio_wakeupMainThread(void) { - dispatch_async(dispatch_get_main_queue(), ^{ - gio_dispatchMainFuncs(); - }); -} - -NSUInteger gio_nsstringLength(CFTypeRef cstr) { - NSString *str = (__bridge NSString *)cstr; - return [str length]; -} - -void gio_nsstringGetCharacters(CFTypeRef cstr, unichar *chars, NSUInteger loc, NSUInteger length) { - NSString *str = (__bridge NSString *)cstr; - [str getCharacters:chars range:NSMakeRange(loc, length)]; -} |