summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa/ecore_cocoa_app.h
blob: e6eac097fc146973db9f013d4cbc6b14575144ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#import <Cocoa/Cocoa.h>
#include "Ecore_Cocoa.h"
#include <Ecore.h>

#define ECORE_COCOA_MAINLOOP_PERIOD ( 0.0166)

@interface Ecore_Cocoa_Application : NSApplication
{
   Ecore_Timer  *_timer;
   NSDate       *_expiration;
   Ecore_Cocoa_Terminate_Cb _terminate_cb;
}

- (NSDate *)eventExpirationDate;

+ (Ecore_Cocoa_Application *)sharedApplication;
- (void)run;
- (void)sendEvent:(NSEvent *)anEvent;
- (id)init;
- (void)internalUpdate;
- (void)setTerminateCb:(Ecore_Cocoa_Terminate_Cb)cb;
- (Ecore_Cocoa_Terminate_Cb)terminateCb;

- (void) pauseNSRunLoopMonitoring;
- (void) resumeNSRunLoopMonitoring;

@end


@interface Ecore_Cocoa_AppDelegate : NSObject <NSApplicationDelegate>

+ (Ecore_Cocoa_AppDelegate *)appDelegate;

@end