home *** CD-ROM | disk | FTP | other *** search
/ Peanuts NeXT Software Archives / Peanuts-Update.iso / Rhapsody / developer / examples / LocalizationExample.5.0.m.I.bs.tz / LocalizationExample.5.0.m.I.bs / LocalizationExample.5.0.I.bs / Source / Animator.h < prev    next >
Encoding:
Text File  |  1997-10-22  |  1.1 KB  |  44 lines

  1. // Animator.h
  2. // By R. E. Crandall
  3. // You may freely copy, distribute and reuse the code in this example.
  4. // NeXT disclaims any warranty of any kind, expressed or implied, as to its
  5. // fitness for any particular use.
  6.  
  7. #import <AppKit/AppKit.h>
  8. #import <sys/time.h>
  9. #import <AppKit/dpsclient.h>
  10. #import <AppKit/NSDPSContext.h>
  11.  
  12. @interface Animator:NSObject
  13. {
  14.     int            mask, ticking, passcounter;
  15.     NSTimer *teNum;
  16.     double        interval, synctime, adapteddt, desireddt, t0, howOften;
  17.     struct timeval    entrytime;
  18.     id            target;
  19.     SEL            action;
  20. }
  21.  
  22. - initChronon:(double)dt adaptation:(double)howoft target:(id)targ
  23.   action:(SEL)act autoStart:(int)start eventMask:(int)eMask; 
  24. - resetRealTime; 
  25. - (double)getSyncTime; 
  26. - (double)getDoubleEntryTime; 
  27. - (double)getDoubleRealTime; 
  28. - (double)getDouble; 
  29. - adapt; 
  30. - setBreakMask:(int)eventMask; 
  31. - (int)getBreakMask; 
  32. - (int)isTicking; 
  33. - (int)shouldBreak; 
  34. - setIncrement:(double)dt; 
  35. - (double)getIncrement; 
  36. - setAdaptation:(double)oft; 
  37. - (void)setTarget:(id)targ; 
  38. - (void)setAction:(SEL)aSelector; 
  39. - startEntry; 
  40. - stopEntry; 
  41. - (void)dealloc;
  42.  
  43. @end
  44.