xibarriers.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifdef HAVE_DIX_CONFIG_H
  2. #include <dix-config.h>
  3. #endif
  4. #ifndef _XIBARRIERS_H_
  5. #define _XIBARRIERS_H_
  6. #include "resource.h"
  7. extern _X_EXPORT RESTYPE PointerBarrierType;
  8. struct PointerBarrier {
  9. INT16 x1, x2, y1, y2;
  10. CARD32 directions;
  11. };
  12. int
  13. barrier_get_direction(int, int, int, int);
  14. BOOL
  15. barrier_is_blocking(const struct PointerBarrier *, int, int, int, int,
  16. double *);
  17. BOOL
  18. barrier_is_blocking_direction(const struct PointerBarrier *, int);
  19. void
  20. barrier_clamp_to_barrier(struct PointerBarrier *barrier, int dir, int *x,
  21. int *y);
  22. #include <xfixesint.h>
  23. int
  24. XICreatePointerBarrier(ClientPtr client,
  25. xXFixesCreatePointerBarrierReq * stuff);
  26. int
  27. XIDestroyPointerBarrier(ClientPtr client,
  28. xXFixesDestroyPointerBarrierReq * stuff);
  29. Bool XIBarrierInit(void);
  30. void XIBarrierReset(void);
  31. int SProcXIBarrierReleasePointer(ClientPtr client);
  32. int ProcXIBarrierReleasePointer(ClientPtr client);
  33. void XIBarrierNewMasterDevice(ClientPtr client, int deviceid);
  34. void XIBarrierRemoveMasterDevice(ClientPtr client, int deviceid);
  35. #endif /* _XIBARRIERS_H_ */