2012-11-01 19:14:13 +01:00
|
|
|
|
|
|
|
#ifdef HAVE_DIX_CONFIG_H
|
|
|
|
#include <dix-config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _XIBARRIERS_H_
|
|
|
|
#define _XIBARRIERS_H_
|
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
extern _X_EXPORT RESTYPE PointerBarrierType;
|
|
|
|
|
|
|
|
struct PointerBarrier {
|
2012-11-27 21:31:52 +01:00
|
|
|
INT16 x1, x2, y1, y2;
|
2012-11-01 19:14:13 +01:00
|
|
|
CARD32 directions;
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
|
|
|
barrier_get_direction(int, int, int, int);
|
|
|
|
BOOL
|
|
|
|
barrier_is_blocking(const struct PointerBarrier *, int, int, int, int,
|
|
|
|
double *);
|
|
|
|
BOOL
|
|
|
|
barrier_is_blocking_direction(const struct PointerBarrier *, int);
|
|
|
|
void
|
|
|
|
barrier_clamp_to_barrier(struct PointerBarrier *barrier, int dir, int *x,
|
|
|
|
int *y);
|
|
|
|
|
|
|
|
#include <xfixesint.h>
|
|
|
|
|
|
|
|
int
|
|
|
|
XICreatePointerBarrier(ClientPtr client,
|
|
|
|
xXFixesCreatePointerBarrierReq * stuff);
|
|
|
|
|
|
|
|
int
|
|
|
|
XIDestroyPointerBarrier(ClientPtr client,
|
|
|
|
xXFixesDestroyPointerBarrierReq * stuff);
|
|
|
|
|
2013-04-24 06:59:11 +02:00
|
|
|
Bool XIBarrierInit(void);
|
|
|
|
void XIBarrierReset(void);
|
2012-11-01 19:14:13 +01:00
|
|
|
|
2012-11-01 21:06:40 +01:00
|
|
|
int SProcXIBarrierReleasePointer(ClientPtr client);
|
|
|
|
int ProcXIBarrierReleasePointer(ClientPtr client);
|
2012-11-01 19:14:13 +01:00
|
|
|
|
2012-12-12 06:41:32 +01:00
|
|
|
void XIBarrierNewMasterDevice(ClientPtr client, int deviceid);
|
|
|
|
void XIBarrierRemoveMasterDevice(ClientPtr client, int deviceid);
|
|
|
|
|
2012-11-01 21:06:40 +01:00
|
|
|
#endif /* _XIBARRIERS_H_ */
|