// Copyright 2012-2020 David Robillard // Copyright 2017 Hanspeter Portner // SPDX-License-Identifier: ISC #ifndef PUGL_SRC_MAC_H #define PUGL_SRC_MAC_H #include "pugl/pugl.h" #import #include #include @interface PuglWrapperView : NSView - (void)dispatchExpose:(NSRect)rect; - (void)setReshaped; @end @interface PuglWindow : NSWindow - (void)setPuglview:(PuglView*)view; @end struct PuglWorldInternalsImpl { NSApplication* app; NSAutoreleasePool* autoreleasePool; struct mach_timebase_info timebaseInfo; }; struct PuglInternalsImpl { NSApplication* app; PuglWrapperView* wrapperView; NSView* drawView; NSCursor* cursor; PuglWindow* window; uint32_t mods; bool mouseTracked; }; #endif // PUGL_SRC_MAC_H