gioui.org/ui@v0.0.0-20190926171558-ce74bc0cbaea/app/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_getPixelsPerDP(void);
    16  __attribute__ ((visibility ("hidden"))) CGFloat gio_getBackingScale(void);
    17  __attribute__ ((visibility ("hidden"))) CGFloat gio_getViewBackingScale(CFTypeRef viewRef);
    18  
    19  #endif