2015-12-30 06:41:46 +00:00
|
|
|
#if defined(Hiro_Application)
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaDelegate : NSObject <NSApplicationDelegate> {
|
|
|
|
}
|
2013-03-21 12:59:01 +00:00
|
|
|
-(NSApplicationTerminateReply) applicationShouldTerminate:(NSApplication*)sender;
|
|
|
|
-(BOOL) applicationShouldHandleReopen:(NSApplication*)application hasVisibleWindows:(BOOL)flag;
|
|
|
|
-(void) run:(NSTimer*)timer;
|
2013-04-09 13:31:46 +00:00
|
|
|
-(void) updateInDock:(NSTimer*)timer;
|
2013-03-15 13:11:33 +00:00
|
|
|
@end
|
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
namespace hiro {
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
struct pApplication {
|
2015-12-30 06:41:46 +00:00
|
|
|
static auto run() -> void;
|
|
|
|
static auto pendingEvents() -> bool;
|
|
|
|
static auto processEvents() -> void;
|
|
|
|
static auto quit() -> void;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
static auto initialize() -> void;
|
2013-03-15 13:11:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
|
|
|
|
#endif
|