summaryrefslogblamecommitdiff
path: root/src/lib/ecore_cocoa/ecore_cocoa_app.h
blob: e6eac097fc146973db9f013d4cbc6b14575144ed (plain) (tree)
1
2
3
4
5
6
7
8
9



                        

                                             

                                                  
                        
                             
                                          








                                               

                                                    
 


                                   





                                                                     


    
#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