// Copyright 2012-2020 David Robillard // Copyright 2017 Hanspeter Portner // SPDX-License-Identifier: ISC #ifndef PUGL_DETAIL_MAC_H #define PUGL_DETAIL_MAC_H #include "pugl/pugl.h" #import #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 PuglInternalsImpl { NSApplication* app; PuglWrapperView* wrapperView; NSView* drawView; NSCursor* cursor; PuglWindow* window; uint32_t mods; bool mouseTracked; }; #endif // PUGL_DETAIL_MAC_H