Debian Codegraph @

phoenix/cocoa/timer.hpp

raw
1 @interface CocoaTimer : NSObject {
2 @public
3 phoenix::Timer* timer;
4 NSTimer* instance;
5 }
6 -(id) initWith:(phoenix::Timer&)timer;
7 -(NSTimer*) instance;
8 -(void) update;
9 -(void) run:(NSTimer*)instance;
10 @end
11
12 namespace phoenix {
13
14 struct pTimer : public pObject {
15 Timer& timer;
16 CocoaTimer* cocoaTimer = nullptr;
17
18 void setEnabled(bool enabled);
19 void setInterval(unsigned interval);
20
21 pTimer(Timer& timer) : pObject(timer), timer(timer) {}
22 void constructor();
23 void destructor();
24 };
25
26 }