home *** CD-ROM | disk | FTP | other *** search
-
- /* Generated by Interface Builder */
-
- #import <appkit/View.h>
-
- @interface ClockView:View
- {
- int sec, min, hour; // last time on the clock.
- float dialSize; // the size of the dial(s).
- int clockType; // the type of the clock.
- #define NORMAL 0
- #define LINES 1
- #define CURVES 2
- #define BEZIER 3
- // Add new clocks here. To add new clocks, you must change three things:
- // add a new clock name here, with a new number.
- // append the necessary drawing stuff in the drawDials method.
- // add more entries to the matrix in the Preferences panel.
- //
- // If you've got a good idea for a clock, please mail it to me, and I'll include
- // it in the next release, with your name on it, of course. If there are no
- // new versions, there will be no next release :-)
-
- id animator; // to keep us moving . . .
- }
-
- + newFrame:(NXRect *)r;
- - setAnimator:anObject;
- - animate:sender;
- - animator;
- - drawSelf:(NXRect *)r :(int)count;
-
- - takeDialSizeFrom:sender; // set the dial size via slider.
- - takeClockTypeFrom:sender; // set the clock type via matrix.
-
- - setDialSize:(float)size; // Set programatically.
- - setClockType:(int)type;
-
- -(int)clockType; // return the data.
- -(float)dialSize;
-
- @end
-