screen.h 880 B

12345678910111213141516171819202122232425262728293031323334
  1. typedef struct Cursor Cursor;
  2. typedef struct Cursorinfo Cursorinfo;
  3. struct Cursorinfo {
  4. Cursor;
  5. Lock;
  6. };
  7. extern Cursorinfo cursor;
  8. extern Cursor arrow;
  9. extern Memimage *gscreen;
  10. extern int cursorver;
  11. extern Point cursorpos;
  12. Point mousexy(void);
  13. int cursoron(int);
  14. void cursoroff(int);
  15. void setcursor(Cursor*);
  16. void flushmemscreen(Rectangle r);
  17. Rectangle cursorrect(void);
  18. void cursordraw(Memimage *dst, Rectangle r);
  19. void drawactive(int);
  20. void drawlock(void);
  21. void drawunlock(void);
  22. int candrawlock(void);
  23. void getcolor(ulong, ulong*, ulong*, ulong*);
  24. int setcolor(ulong, ulong, ulong, ulong);
  25. #define TK2SEC(x) 0
  26. extern void blankscreen(int);
  27. void screeninit(int x, int y, char *chanstr);
  28. void mousetrack(int x, int y, int b, int msec);
  29. uchar *attachscreen(Rectangle*, ulong*, int*, int*, int*);
  30. void fsinit(char *mntpt, int x, int y, char *chanstr);