Annotation of researchv9/jerq/src/lib/pot/pot.pri, revision 1.1

1.1     ! root        1: #ifndef        defont
        !             2: #include       <CC/jerq.h>
        !             3: #endif
        !             4: 
        !             5: class Rulepot;
        !             6: class Bmappot;
        !             7: class Globepot;
        !             8: 
        !             9: class Pot
        !            10: {
        !            11:        short flags;
        !            12:        short pad;
        !            13:        Pot *next;
        !            14:        Rectangle r;
        !            15:        friend hitpot(int);
        !            16:        friend void helppot(int);
        !            17:        friend void drawpot();
        !            18:        friend void reshapepot(Rectangle, Rectangle);
        !            19:        friend Rulepot;
        !            20:        friend Bmappot;
        !            21:        friend Globepot;
        !            22: public:
        !            23:        Pot(Rectangle, short, short);
        !            24:        short val;
        !            25:        char *help;
        !            26:        virtual void draw();
        !            27:        virtual void resize(Rectangle);
        !            28:        virtual void mod(int);
        !            29: };
        !            30: extern Pot *base;
        !            31: extern void prval(Point, short);
        !            32: extern int hitpot(int);
        !            33: extern void drawpot(), reshapepot(Rectangle, Rectangle);
        !            34: extern void helppot(int);
        !            35: extern Rectangle rcenter(Rectangle, Rectangle);
        !            36: 
        !            37: #define                P_MASK          0xFF
        !            38: #define                P_STYLE         0x3
        !            39: #define                        P_VERT          0x0
        !            40: #define                        P_HORIZ         0x1
        !            41: #define                        P_CIRC          0x2
        !            42: #define                P_TICKS         0x4
        !            43: 
        !            44: class Rulepot : public Pot
        !            45: {
        !            46:        short maxval;
        !            47:        short rx;
        !            48:        Point valoffset, stroffset;
        !            49:        char *str;
        !            50: public:
        !            51:        Rulepot(Rectangle, short, short, short=0);
        !            52:        Rulepot(Rectangle, short, short, Point, char *, short=0);
        !            53:        Rulepot(Rectangle, short, short, Point, short=0);
        !            54:        Rulepot(Rectangle, short, short, Point, Point, char *, short=0);
        !            55:        setval(short);
        !            56:        void draw();
        !            57:        void resize(Rectangle);
        !            58:        void mod(int);
        !            59: };
        !            60: 
        !            61: class Bmapitem;
        !            62: 
        !            63: class Bmappot : public Pot
        !            64: {
        !            65:        short maxval;
        !            66:        short nitems;
        !            67:        Bmapitem *items;
        !            68:        Point corner, stroffset;
        !            69:        char *str;
        !            70: public:
        !            71:        Bmappot(Rectangle, short, short=0);
        !            72:        Bmappot(Rectangle, short, Point, char *, short=0);
        !            73:        void item(Point, char *, Texture32 *);
        !            74:        void item(Point, char *, Bitmap *);
        !            75:        setval(short);
        !            76:        void draw();
        !            77:        void resize(Rectangle);
        !            78:        void mod(int);
        !            79: };
        !            80: 
        !            81: class Globepot : public Pot
        !            82: {
        !            83:        short radius, offset;
        !            84:        Point center, pt;
        !            85:        Point valoffset, stroffset;
        !            86:        char *str;
        !            87:        void ptoc();
        !            88:        void ctop();
        !            89:        void calc();
        !            90:        void prvals();
        !            91: public:
        !            92:        Globepot(Rectangle, short, short, short);
        !            93:        Globepot(Rectangle, short, short, short, Point, char *);
        !            94:        Globepot(Rectangle, short, short, short, Point);
        !            95:        Globepot(Rectangle, short, short, short, Point, Point, char *);
        !            96:        void setval(short, short);
        !            97:        short w;
        !            98:        short front;
        !            99:        void draw();
        !           100:        void resize(Rectangle);
        !           101:        void mod(int);
        !           102: };
        !           103: 
        !           104: extern int min(int, int);
        !           105: extern int max(int, int);
        !           106: extern void sprintf(char *, char * ...);
        !           107: extern int atan2(int, int);
        !           108: extern void texture32(...);

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.