screen.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. typedef struct Cursor Cursor;
  10. typedef struct Cursorinfo Cursorinfo;
  11. struct Cursorinfo {
  12. Cursor;
  13. Lock;
  14. };
  15. extern Cursorinfo cursor;
  16. extern Cursor arrow;
  17. extern Memimage *gscreen;
  18. extern int cursorver;
  19. extern Point cursorpos;
  20. Point mousexy(void);
  21. int cursoron(int);
  22. void cursoroff(int);
  23. void setcursor(Cursor*);
  24. void flushmemscreen(Rectangle r);
  25. Rectangle cursorrect(void);
  26. void cursordraw(Memimage *dst, Rectangle r);
  27. void drawactive(int);
  28. void drawlock(void);
  29. void drawunlock(void);
  30. int candrawlock(void);
  31. void getcolor(ulong, uint32_t*, uint32_t*, uint32_t*);
  32. int setcolor(ulong, ulong, ulong, ulong);
  33. #define TK2SEC(x) 0
  34. extern void blankscreen(int);
  35. void screeninit(int x, int y, char *chanstr);
  36. void mousetrack(int x, int y, int b, int msec);
  37. uchar *attachscreen(Rectangle*, uint32_t*, int*, int*, int*);
  38. void fsinit(char *mntpt, int x, int y, char *chanstr);