home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / UNIX / ARCHIE / CLIENTS / NEXTARCH / CLOCKVIE.H < prev    next >
Encoding:
Text File  |  1992-01-19  |  1.2 KB  |  43 lines

  1. // ClockView.h
  2. // By Jayson Adams, NeXT Developer Support Team
  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. /* Modified by Scott Stark, Thu Jan 16 1992 */
  7.  
  8. #import <appkit/View.h>
  9. #import <dpsclient/dpsclient.h>
  10.  
  11. @interface ClockView : View
  12. {
  13.     /* The NXImages used to display the clock */
  14.     id    clockImage;
  15.     id    numbers[10];
  16.     id    amImage;
  17.     id    pmImage;
  18.     id    colon;
  19.     id    meridianImage;
  20.     NXPoint    colonPosition_clock;    // : position for normal time
  21.     NXPoint colonPosition_timer;    // : position for timer
  22.     /* My Date class object used to store the time and date */
  23.     id    dateObj;
  24.     /* The timed entry procedure activated by the startMinSecTimer: method */
  25.     DPSTimedEntry min_sec_timer;
  26.     BOOL timerActive;
  27. }
  28.  
  29. /* instance methods */
  30. - initFrame : (NXRect *) frameRect;
  31. - drawSelf : (NXRect *) rects : (int) count;
  32.  
  33. /* Date initialization methods */
  34. - setDate : (short) d : (short) m : (short) y;
  35. - setTime : (short) hr : (short) min : (short) sec;
  36. - now;
  37.  
  38. /* A minute/second timer display method */
  39. - startMinSecTimer : sender;
  40. - endTimer : sender;
  41.  
  42. @end
  43.