29 lines
1012 B
C
29 lines
1012 B
C
|
|
||
|
// shouldquit.c
|
||
|
extern int shouldQuit(void);
|
||
|
|
||
|
// areaevents.c
|
||
|
typedef struct clickCounter clickCounter;
|
||
|
// you should call Reset() to zero-initialize a new instance
|
||
|
// it doesn't matter that all the non-count fields are zero: the first click will fail the curButton test straightaway, so it'll return 1 and set the rest of the structure accordingly
|
||
|
struct clickCounter {
|
||
|
int curButton;
|
||
|
int rectX0;
|
||
|
int rectY0;
|
||
|
int rectX1;
|
||
|
int rectY1;
|
||
|
uintptr_t prevTime;
|
||
|
int count;
|
||
|
};
|
||
|
int clickCounterClick(clickCounter *c, int button, int x, int y, uintptr_t time, uintptr_t maxTime, int32_t xdist, int32_t ydist);
|
||
|
extern void clickCounterReset(clickCounter *);
|
||
|
extern int fromScancode(uintptr_t, uiAreaKeyEvent *);
|
||
|
|
||
|
// matrix.c
|
||
|
extern void fallbackSkew(uiDrawMatrix *, double, double, double, double);
|
||
|
extern void scaleCenter(double, double, double *, double *);
|
||
|
extern void fallbackTransformSize(uiDrawMatrix *, double *, double *);
|
||
|
|
||
|
// OS-specific text.* files
|
||
|
extern int uiprivStricmp(const char *a, const char *b);
|