[BACK]Return to term.h CVS log [TXT][DIR] Up to [contributed] / brogue-ce / src / platform

Annotation of brogue-ce/src/platform/term.h, Revision 1.1.1.1

1.1       rubenllo    1:
                      2: #ifndef _term_h_
                      3: #define _term_h_
                      4:
                      5: #define TERM_NONE 0
                      6: #define TERM_MOUSE 1
                      7:
                      8: typedef struct {float r, g, b;} fcolor;
                      9: struct term_t {
                     10:     int (*start)();
                     11:     void (*end)();
                     12:     void (*put)(int x, int y, int ch, fcolor *fg, fcolor *bg);
                     13:     void (*refresh)();
                     14:     int (*getkey)();
                     15:     void (*wait)(int ms);
                     16:     int (*hasKey)();
                     17:     void (*title)(const char *);
                     18:     void (*resize)(int w, int h);
                     19:     int (*keycodeByName)(const char *);
                     20:
                     21:     struct {
                     22:         int up, down, left, right, backspace, del, quit;
                     23:     } keys;
                     24:
                     25:     int width, height;
                     26:     struct {
                     27:         int x, y;
                     28:         int isPressed, justPressed, justReleased, justMoved;
                     29:         int shift, control;
                     30:     } mouse;
                     31: };
                     32:
                     33: extern struct term_t Term;
                     34:
                     35: #endif
                     36:

CVSweb