#include #include #include #include @interface Window : NSWindow @end @interface Controller : NSWindowController @end @interface View : NSOpenGLView { @public Window* wnd; NSOpenGLContext* glctx; bool cursor_visible; bool cursor_inside; bool cursor_ignore; NSTrackingArea* trackingArea; } - (void)close; - (void)terminateGL; - (void)async_lock; - (void)async_unlock; - (void)async_swap; - (std::string)pick_file:(NSArray*)types; - (std::string)pick_dir; - (void)share_file:(NSString*)file_path; - (void)hockeyapp_crash; - (void)show_cursor:(bool)visible; - (std::string)clipboard_get_string; - (bool)clipboard_set_string:(const std::string&)s; @end @interface AppOSX : NSApplication { Window* window; Controller* controller; View* view; } - (void)init_dirs; - (void)save_ui_state; @end