github.com/gop9/olt@v0.0.0-20200202132135-d956aad50b08/gio/app/internal/window/os_macos.h (about) 1 // SPDX-License-Identifier: Unlicense OR MIT 2 3 #ifndef _OS_MACOS_H 4 #define _OS_MACOS_H 5 6 #define GIO_MOUSE_MOVE 1 7 #define GIO_MOUSE_UP 2 8 #define GIO_MOUSE_DOWN 3 9 10 __attribute__ ((visibility ("hidden"))) void gio_main(CFTypeRef viewRef, const char *title, CGFloat width, CGFloat height); 11 __attribute__ ((visibility ("hidden"))) CGFloat gio_viewWidth(CFTypeRef viewRef); 12 __attribute__ ((visibility ("hidden"))) CGFloat gio_viewHeight(CFTypeRef viewRef); 13 __attribute__ ((visibility ("hidden"))) void gio_setAnimating(CFTypeRef viewRef, BOOL anim); 14 __attribute__ ((visibility ("hidden"))) void gio_updateDisplayLink(CFTypeRef viewRef, CGDirectDisplayID dispID); 15 __attribute__ ((visibility ("hidden"))) CGFloat gio_getViewBackingScale(CFTypeRef viewRef); 16 17 #endif