⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hpext.h

📁 早期freebsd实现
💻 H
📖 第 1 页 / 共 2 页
字号:
typedef struct {    CARD8	reqType;    CARD8 	hpReqType;        /* always X_HPGetServerMode */    CARD16 	length B16;    CARD32 	screen B32;} xHPGetServerModeReq;typedef struct {    CARD8 repType;  		/* X_Reply */    CARD8 hpRepType;        	/* always X_HPGetServerMode */    CARD16 sequenceNumber B16;    CARD32 length B32;    CARD32 mode B32;    CARD32 pad1 B32;    CARD32 pad2 B32;    CARD32 pad3 B32;    CARD32 pad4 B32;    CARD32 pad5 B32;} xHPGetServerModeReply;typedef struct {    CARD8	reqType;    CARD8 	hpReqType;        /* always X_HPGetDeviceKeyMapping */    CARD16 	length B16;    XID   	deviceid;    KeyCode 	firstKeyCode;     CARD8 	count;    CARD16 	pad1 B16;} xHPGetDeviceKeyMappingReq;typedef struct {    CARD8  repType;  		/* X_Reply */    CARD8  hpRepType;        	/* always X_HPGetDeviceKeyMapping */    CARD16 sequenceNumber B16;    CARD32 length B32;    CARD8  keySymsPerKeyCode;    CARD8  pad0;    CARD16 pad1 B16;    CARD32 pad2 B32;    CARD32 pad3 B32;    CARD32 pad4 B32;    CARD32 pad5 B32;    CARD32 pad6 B32;} xHPGetDeviceKeyMappingReply;typedef struct {    CARD8	reqType;    CARD8 	hpReqType;        /* always X_HPChangeDeviceKeyMapping */    CARD16 	length B16;    XID   	deviceid;    CARD8 	keyCodes;    KeyCode 	firstKeyCode;    CARD8 	keySymsPerKeyCode;    CARD8 	pad1;} xHPChangeDeviceKeyMappingReq;typedef struct {    CARD8	reqType;    CARD8 	hpReqType;        /* always X_HPGetDeviceModifierMapping */    CARD16 	length B16;    XID   	deviceid;} xHPGetDeviceModifierMappingReq;typedef struct {    CARD8  repType;  		/* X_Reply */    CARD8  hpRepType;        	/* always X_HPGetDeviceModifierMapping */    CARD16 sequenceNumber B16;    CARD32 length B32;    CARD8  numKeyPerModifier;    CARD8  pad0;    CARD16 pad1 B16;    CARD32 pad2 B32;    CARD32 pad3 B32;    CARD32 pad4 B32;    CARD32 pad5 B32;    CARD32 pad6 B32;} xHPGetDeviceModifierMappingReply;typedef struct {    CARD8	reqType;    CARD8 	hpReqType;        /* always X_HPSetDeviceModifierMapping */    CARD16 	length B16;    CARD8   	numKeyPerModifier;    CARD8   	pad1;    CARD16  	pad2 B16;    XID   	deviceid;} xHPSetDeviceModifierMappingReq;typedef struct {    CARD8  repType;  		/* X_Reply */    CARD8  hpRepType;        	/* always X_HPSetDeviceModifierMapping */    CARD16 sequenceNumber B16;    CARD32 length B32;    CARD8  success;    CARD8  pad0;    CARD16 pad1 B16;    CARD32 pad2 B32;    CARD32 pad3 B32;    CARD32 pad4 B32;    CARD32 pad5 B32;    CARD32 pad6 B32;} xHPSetDeviceModifierMappingReply;typedef struct {    CARD8	reqType;    CARD8 	hpReqType;        /* always X_HPGetDeviceControl */    CARD16 	length B16;    XID   	deviceid;} xHPGetDeviceControlReq;typedef struct {    CARD8  repType;  		/* X_Reply */    CARD8  hpRepType;        	/* always X_HPGetDeviceControl */    CARD16 sequenceNumber B16;    CARD32 length B32;    BOOL   globalAutoRepeat;    CARD8  keyClickPercent;    CARD8  bellPercent;    CARD8  pad0;    CARD32 ledMask B32;    CARD16 bellPitch B16;    CARD16 bellDuration B16;    CARD16 accelNumerator B16;    CARD16 accelDenominator B16;    CARD16 threshold B16;    CARD16 pad1 B16;    CARD32 pad2 B32;    BYTE map[32];  /* bit masks start here */} xHPGetDeviceControlReply;typedef struct {    CARD8	reqType;    CARD8 	hpReqType;        /* always X_HPChangeDeviceControl */    CARD16 	length B16;    XID   	deviceid;    CARD32 	mask B32;} xHPChangeDeviceControlReq;typedef struct {    CARD8	reqType;    CARD8 	hpReqType;        /* always X_GetWindowCursor */    CARD16 	length B16;    Window	window B32;} xHPGetWindowCursorReq;typedef struct {    CARD8  repType;  		/* X_Reply */    CARD8  hpRepType;        	/* always X_HPGetWindowCursor */    CARD16 sequenceNumber B16;    CARD32 length B32;    Cursor cursor B32;    CARD32 pad1 B32;    CARD32 pad2 B32;    CARD32 pad3 B32;    CARD32 pad4 B32;    CARD32 pad5 B32;} xHPGetWindowCursorReply;typedef struct {    CARD8 reqType;          /* always HpReqCode */    CARD8 hpReqType;        /* always X_HPGetClipList */    CARD16 length;    CARD32 wid;		    /* window id */    CARD32 gcid;	    /* graphics context id */    CARD32 format;	    /* clip list format */} xHPGetClipListReq;typedef struct {    BYTE   type;  	/* X_Reply */    BYTE   pad0;    CARD16 sequenceNumber B16;    CARD32 length B32;    INT16  x	  B16;	/* x origin of window */    INT16  y	  B16;	/* y origin of window */    CARD16 width  B16;	/* width of window */    CARD16 height B16;	/* height of window */    CARD32 count  B32;	/* number of clipping rectanges */    CARD32 data03 B32;    CARD32 data04 B32;    CARD32 data05 B32;    } xHPGetClipListReply;/* *  X_HPRegisterWindow request/reply structures... */typedef struct {    CARD8 reqType;		/* always HpReqCode */    CARD8 hpReqType;		/* X_HPRegisterWindow or X_HPUnReg... */    CARD16 length;    CARD32 wid;			/* window id */    CARD32 accelid;		/* accelerated id */    CARD32 flags;		/* flags */} xHPRegisterWindowReq;typedef struct {    BYTE   type;		/* X_Reply */    BYTE   pad0;    CARD16 sequenceNumber B16;    CARD32 length	B32;    INT32  error	B32;	/* error status */    CARD32 flags	B32;	/* flags */    BYTE   path[80];		/* length must >= cfbPrivScreen->path */    CARD32 depth	B32;	/* depth of window */    INT32  w_class	B32;	/* window GRM_ID class */    INT32  w_screen	B32;	/* window GRM_ID screen */    INT32  w_window	B32;	/* window GRM_ID window */    BYTE   w_name[40];		/* window GRM_ID name */    } xHPRegisterWindowReply;/* *  X_HPSynchronizeColorRange Request structure (no reply) */typedef struct {    CARD8 reqType;		/* always HpReqCode */    CARD8 hpReqType;		/* X_HPRegisterWindow or X_HPUnReg... */    CARD16 length;    CARD32 cmap;		/* Colormap ID of interest */    CARD32 start;		/* Starting pixel if changes to cmap */    CARD32 ncolors;		/* number of pixels changed */} xHPSynchronizeColorRangeReq;/* *  X_HPSendDdxDriverMsg Request structure (possible reply) */typedef struct {    CARD8 reqType;		/* always HpReqCode */    CARD8 hpReqType;		/* X_HPRegisterWindow or X_HPUnReg... */    CARD16 length;    Window window;		/* window of interest */    INT32 nMsgBytes;		/* Number of bytes in message */    INT32 needReply;		/* whether or not a reply is forthcoming */} xHPSendDdxDriverMsgReq;typedef struct {    CARD8 type;		    CARD8 pad0;		    CARD16 sequenceNumber B16;    CARD32 length	B32;    INT32 nRepBytes;    CARD32 pad1		B32;    CARD32 pad2		B32;    CARD32 pad3		B32;    CARD32 pad4		B32;    CARD32 pad5		B32;    } xHPSendDdxDriverMsgReply;/* * XHPGetClipLists request (not to be confused with XHPGetClipList. * This extension gets multiple clip lists) */typedef struct {    CARD8 reqType;          /* always HpReqCode */    CARD8 hpReqType;        /* always X_HPGetClipLists */    CARD16 length;    CARD32 wid;             /* window id */    CARD32 gcid;            /* graphics context id */    CARD32 nClipLists;      /* number of clip lists requested *//* To be followed by 'nClipLists' CARD32 format longwords: */} xHPGetClipListsReq;typedef struct {    BYTE   type;        /* X_Reply */    BYTE   pad0;    CARD16 sequenceNumber B16;    CARD32 length B32;    INT16  x      B16;  /* x origin of window */    INT16  y      B16;  /* y origin of window */    CARD16 width  B16;  /* width of window */    CARD16 height B16;  /* height of window */    CARD32 count  B32;  /* number of clip lists */    CARD32 pad1		B32;    CARD32 pad2		B32;    CARD32 pad3		B32;/* To be followed by 'count' xHPGetClipListsReplyData structures: */} xHPGetClipListsReply;typedef struct {    CARD16 count  B16;  /* number of clip boxes */    CARD16 size   B16;  /* size of each clip box in bytes *//* To be followed by 'count * size' bytes: */} xHPGetClipListsReplyData;/*  X_HPGrabReset Request structure */typedef struct {    CARD8 reqType;		/* always HpReqCode */    CARD8 hpReqType;		/* X_HPGrabReset */    CARD16 length;} xHPGrabResetReq;typedef struct {    CARD8 repType;		/* always HpReqCode */    CARD8 hpRepType;		/* X_HPGrabReset */    CARD16 sequenceNumber B16;    CARD32 length	B32;    Atom   evtype	B32;	/* event type to expect */    CARD32 pad1		B32;    CARD32 pad2		B32;    CARD32 pad3		B32;    CARD32 pad4		B32;    CARD32 pad5		B32;    } xHPGrabResetReply;/*  X_HPSSChange Request structures *  Notes: *    The sz_x numbers are sizeof(struct) padded to the to 4 bytes.  This to *    make the X packets work correctly. */typedef struct {    CARD8 reqType;		/* always HpReqCode */    CARD8 hpReqType;		/* X_HPSSChange */    CARD16 length;    CARD32 flags;		/* stuff */    CARD32 wid;			/* just in case */} xHPSSChangeReq;#define sz_xHPSSChangeReq	12typedef struct {    CARD8 repType;		/* always HpReqCode */    CARD8 hpRepType;		/* X_HPSSChange */    CARD16 sequenceNumber B16;    CARD32 length	B32;    Atom   evtype	B32;	/* event type to expect */    CARD32 flags	B32;	/*  */    CARD32 pad2		B32;    CARD32 pad3		B32;    CARD32 pad4		B32;    CARD32 pad5		B32;    } xHPSSChangeReply;#define sz_xHPSSChangeReply	32/********************************************************** * * extension events. * */typedef struct     {    INT16	ax_num;    INT16	ax_val;    } XHPaxis_data;typedef struct    {    BYTE 	type;    BYTE 	count;    CARD16 	sequencenumber B16;    XID    	deviceid;    CARD32	pad00 B32;    CARD32 	pad01 B32;    CARD32 	pad02 B32;    CARD32 	pad03 B32;    CARD32 	pad04 B32;    CARD32 	pad05 B32;    }  xAnyExtensionEvent;typedef struct    {    BYTE 	type;    BYTE 	ext_type;    CARD16 	sequencenumber B16;    XID    	deviceid;    INT16  	axes_count B16;    CARD16 	pad00 B16;    XHPaxis_data data[4];    CARD32 	pad01 B32;    }  xHPExtensionEvent;typedef struct    {    xEvent		b;    xAnyExtensionEvent	x;    } xAnyEvent;typedef struct    {    xEvent		b;#ifdef XINPUT    deviceValuator	x;#else    xHPExtensionEvent	x;#endif /* XINPUT */    }  xHPEvent;typedef	struct     {    BYTE type;    BYTE pad00;    CARD16 sequencenumber B16;    INT16 detail B16;    BYTE mode; 			/* really XMode */    BYTE pad1;    XID   deviceid;    Window window B32;    CARD32 pad01 B32;    CARD32 pad02 B32;    CARD32 pad03 B32;    CARD32 pad04 B32;    } xHPdevicefocus;typedef	struct     {    BYTE type;    BYTE pad00;    CARD16 sequencenumber B16;    CARD8 request;    KeyCode firstKeyCode;    CARD8 count;    BYTE pad1;    XID   deviceid;    CARD32 pad01 B32;    CARD32 pad02 B32;    CARD32 pad03 B32;    CARD32 pad04 B32;    CARD32 pad05 B32;    } xHPDeviceMappingEvent;typedef	struct     {    BYTE type;    BYTE deviceid;    BYTE map[30];    } xHPDeviceKeymapEvent;#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -