/*
|
/*
|
* Copyright (c) 1999 Greg Haerr <greg@censoft.com>
|
* Copyright (c) 1999 Greg Haerr <greg@censoft.com>
|
* Copyright (c) 2000 Alex Holden <alex@linuxhacker.org>
|
* Copyright (c) 2000 Alex Holden <alex@linuxhacker.org>
|
*
|
*
|
* Nano-X Core Protocol Header
|
* Nano-X Core Protocol Header
|
*
|
*
|
* These structures define the Nano-X client/server protocol.
|
* These structures define the Nano-X client/server protocol.
|
* Much of this has been modeled after the X11 implementation.
|
* Much of this has been modeled after the X11 implementation.
|
* Note that all NX Protocol requests should have all data quantities
|
* Note that all NX Protocol requests should have all data quantities
|
* properly aligned. This is assured by hand-coding each NX request
|
* properly aligned. This is assured by hand-coding each NX request
|
* structure. Unlike Xlib, fixed size request structs don't have to
|
* structure. Unlike Xlib, fixed size request structs don't have to
|
* be a multiple of 4 bytes, since the length field is a byte count
|
* be a multiple of 4 bytes, since the length field is a byte count
|
* and GetReq() automatically pads all requests to 4-byte boundaries.
|
* and GetReq() automatically pads all requests to 4-byte boundaries.
|
* Request structs for variable size data, however, must be hand-padded
|
* Request structs for variable size data, however, must be hand-padded
|
* to 4-byte alignment, as variable data starts after sizeof(structure).
|
* to 4-byte alignment, as variable data starts after sizeof(structure).
|
* Also, the hilength/length fields store the unaligned byte count, so
|
* Also, the hilength/length fields store the unaligned byte count, so
|
* that extra code isn't required to de-crypt extra data size or
|
* that extra code isn't required to de-crypt extra data size or
|
* big packets.
|
* big packets.
|
*/
|
*/
|
|
|
/*
|
/*
|
* The following is provided to allow limiting the maximum
|
* The following is provided to allow limiting the maximum
|
* request size that will be sent (not received) using this protocol.
|
* request size that will be sent (not received) using this protocol.
|
* The protocol allows for 2^24 byte maximum, but the
|
* The protocol allows for 2^24 byte maximum, but the
|
* server currently allocates the MAXREQUESTSZ in a stack buffer.
|
* server currently allocates the MAXREQUESTSZ in a stack buffer.
|
* Also, the client realloc's the request queue to
|
* Also, the client realloc's the request queue to
|
* the largest size asked for, and currently never reduces it.
|
* the largest size asked for, and currently never reduces it.
|
*
|
*
|
* Routines like GrArea will split packets to be <= MAXREQUESTSZ
|
* Routines like GrArea will split packets to be <= MAXREQUESTSZ
|
* automatically.
|
* automatically.
|
*
|
*
|
* NOTE: MAXREQUESTSZ must be an _aligned_ multiple of 4, meaning
|
* NOTE: MAXREQUESTSZ must be an _aligned_ multiple of 4, meaning
|
* that MAXREQUESTSZ = (MAXREQUESTSZ + 3) & ~3.
|
* that MAXREQUESTSZ = (MAXREQUESTSZ + 3) & ~3.
|
*/
|
*/
|
#define MAXREQUESTSZ 30000 /* max request size (65532)*/
|
#define MAXREQUESTSZ 30000 /* max request size (65532)*/
|
|
|
typedef unsigned char BYTE8; /* 1 byte*/
|
typedef unsigned char BYTE8; /* 1 byte*/
|
typedef unsigned short UINT16; /* 2 bytes*/
|
typedef unsigned short UINT16; /* 2 bytes*/
|
typedef short INT16; /* 2 bytes*/
|
typedef short INT16; /* 2 bytes*/
|
typedef unsigned long UINT32; /* 4 bytes*/
|
typedef unsigned long UINT32; /* 4 bytes*/
|
|
|
#if ELKS
|
#if ELKS
|
typedef UINT16 IDTYPE;
|
typedef UINT16 IDTYPE;
|
#define ALIGNSZ 2 /* 2 byte packet alignment*/
|
#define ALIGNSZ 2 /* 2 byte packet alignment*/
|
#else
|
#else
|
typedef UINT32 IDTYPE;
|
typedef UINT32 IDTYPE;
|
#define ALIGNSZ 4 /* 4 byte packet alignment*/
|
#define ALIGNSZ 4 /* 4 byte packet alignment*/
|
#endif
|
#endif
|
|
|
/* all requests share this header*/
|
/* all requests share this header*/
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType; /* request code*/
|
BYTE8 reqType; /* request code*/
|
BYTE8 hilength; /* upper 24 bits of unaligned length*/
|
BYTE8 hilength; /* upper 24 bits of unaligned length*/
|
UINT16 length; /* lower 16 bits of unaligned length*/
|
UINT16 length; /* lower 16 bits of unaligned length*/
|
} nxReq;
|
} nxReq;
|
|
|
/* Allocate a fixed size request from request buffer*/
|
/* Allocate a fixed size request from request buffer*/
|
#define AllocReq(name) \
|
#define AllocReq(name) \
|
((nx##name##Req *)nxAllocReq(GrNum##name,sizeof(nx##name##Req), 0))
|
((nx##name##Req *)nxAllocReq(GrNum##name,sizeof(nx##name##Req), 0))
|
|
|
/* Allocate a request, but allocate n extra bytes*/
|
/* Allocate a request, but allocate n extra bytes*/
|
#define AllocReqExtra(name,n) \
|
#define AllocReqExtra(name,n) \
|
((nx##name##Req *)nxAllocReq(GrNum##name,sizeof(nx##name##Req), n))
|
((nx##name##Req *)nxAllocReq(GrNum##name,sizeof(nx##name##Req), n))
|
|
|
/* return pointer to variable length data*/
|
/* return pointer to variable length data*/
|
#define GetReqData(req) ((void *)((char *)req + sizeof(* (req))))
|
#define GetReqData(req) ((void *)((char *)req + sizeof(* (req))))
|
|
|
/* FIXME fails when sizeof(int) == 2*/
|
/* FIXME fails when sizeof(int) == 2*/
|
/* get request total valid data length, including header*/
|
/* get request total valid data length, including header*/
|
#define GetReqLen(req) (((req)->hilength << 16) | (req)->length)
|
#define GetReqLen(req) (((req)->hilength << 16) | (req)->length)
|
|
|
/* get request variable data length, not including fixed size structure*/
|
/* get request variable data length, not including fixed size structure*/
|
#define GetReqVarLen(req) (GetReqLen(req) - sizeof(* (req)))
|
#define GetReqVarLen(req) (GetReqLen(req) - sizeof(* (req)))
|
|
|
/* get request total aligned length*/
|
/* get request total aligned length*/
|
#define GetReqAlignedLen(req) ((GetReqLen(req) + (ALIGNSZ-1)) & ~(ALIGNSZ-1))
|
#define GetReqAlignedLen(req) ((GetReqLen(req) + (ALIGNSZ-1)) & ~(ALIGNSZ-1))
|
|
|
void * nxAllocReq(int type, long size, long extra);
|
void * nxAllocReq(int type, long size, long extra);
|
void nxFlushReq(long newsize, int reply_needed);
|
void nxFlushReq(long newsize, int reply_needed);
|
void nxAssignReqbuffer(char *buffer, long size);
|
void nxAssignReqbuffer(char *buffer, long size);
|
void nxWriteSocket(char *buf, int todo);
|
void nxWriteSocket(char *buf, int todo);
|
int nxCalcStringBytes(void *str, int count, int flags);
|
int nxCalcStringBytes(void *str, int count, int flags);
|
|
|
#if notyet
|
#if notyet
|
/* all replies share this header*/
|
/* all replies share this header*/
|
typedef struct {
|
typedef struct {
|
BYTE8 repType; /* reply code*/
|
BYTE8 repType; /* reply code*/
|
BYTE8 hilength; /* upper 24 bits of unaligned length*/
|
BYTE8 hilength; /* upper 24 bits of unaligned length*/
|
UINT16 length; /* lower 16 bits of unaligned length*/
|
UINT16 length; /* lower 16 bits of unaligned length*/
|
} nxReply;
|
} nxReply;
|
|
|
/* reply types if not equal to request type*/
|
/* reply types if not equal to request type*/
|
#define GrNumErrorReply 255
|
#define GrNumErrorReply 255
|
#define GrNumEventReply 254
|
#define GrNumEventReply 254
|
#endif /* notyet*/
|
#endif /* notyet*/
|
|
|
#define GrNumOpen 0
|
#define GrNumOpen 0
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
UINT32 pid;
|
UINT32 pid;
|
} nxOpenReq;
|
} nxOpenReq;
|
|
|
#define GrNumClose 1
|
#define GrNumClose 1
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
} nxCloseReq;
|
} nxCloseReq;
|
|
|
#define GrNumGetScreenInfo 2
|
#define GrNumGetScreenInfo 2
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
} nxGetScreenInfoReq;
|
} nxGetScreenInfoReq;
|
|
|
#define GrNumNewWindow 3
|
#define GrNumNewWindow 3
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE parentid;
|
IDTYPE parentid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 width;
|
INT16 width;
|
INT16 height;
|
INT16 height;
|
UINT32 backgroundcolor;
|
UINT32 backgroundcolor;
|
UINT32 bordercolor;
|
UINT32 bordercolor;
|
INT16 bordersize;
|
INT16 bordersize;
|
} nxNewWindowReq;
|
} nxNewWindowReq;
|
|
|
#define GrNumNewInputWindow 4
|
#define GrNumNewInputWindow 4
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE parentid;
|
IDTYPE parentid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 width;
|
INT16 width;
|
INT16 height;
|
INT16 height;
|
} nxNewInputWindowReq;
|
} nxNewInputWindowReq;
|
|
|
#define GrNumDestroyWindow 5
|
#define GrNumDestroyWindow 5
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
} nxDestroyWindowReq;
|
} nxDestroyWindowReq;
|
|
|
#define GrNumNewGC 6
|
#define GrNumNewGC 6
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
} nxNewGCReq;
|
} nxNewGCReq;
|
|
|
#define GrNumCopyGC 7
|
#define GrNumCopyGC 7
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
} nxCopyGCReq;
|
} nxCopyGCReq;
|
|
|
#define GrNumGetGCInfo 8
|
#define GrNumGetGCInfo 8
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
} nxGetGCInfoReq;
|
} nxGetGCInfoReq;
|
|
|
#define GrNumDestroyGC 9
|
#define GrNumDestroyGC 9
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
} nxDestroyGCReq;
|
} nxDestroyGCReq;
|
|
|
#define GrNumMapWindow 10
|
#define GrNumMapWindow 10
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
} nxMapWindowReq;
|
} nxMapWindowReq;
|
|
|
#define GrNumUnmapWindow 11
|
#define GrNumUnmapWindow 11
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
} nxUnmapWindowReq;
|
} nxUnmapWindowReq;
|
|
|
#define GrNumRaiseWindow 12
|
#define GrNumRaiseWindow 12
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
} nxRaiseWindowReq;
|
} nxRaiseWindowReq;
|
|
|
#define GrNumLowerWindow 13
|
#define GrNumLowerWindow 13
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
} nxLowerWindowReq;
|
} nxLowerWindowReq;
|
|
|
#define GrNumMoveWindow 14
|
#define GrNumMoveWindow 14
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
} nxMoveWindowReq;
|
} nxMoveWindowReq;
|
|
|
#define GrNumResizeWindow 15
|
#define GrNumResizeWindow 15
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
INT16 width;
|
INT16 width;
|
INT16 height;
|
INT16 height;
|
} nxResizeWindowReq;
|
} nxResizeWindowReq;
|
|
|
#define GrNumGetWindowInfo 16
|
#define GrNumGetWindowInfo 16
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
} nxGetWindowInfoReq;
|
} nxGetWindowInfoReq;
|
|
|
#define GrNumGetFontInfo 17
|
#define GrNumGetFontInfo 17
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE fontid;
|
IDTYPE fontid;
|
} nxGetFontInfoReq;
|
} nxGetFontInfoReq;
|
|
|
#define GrNumSetFocus 18
|
#define GrNumSetFocus 18
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
} nxSetFocusReq;
|
} nxSetFocusReq;
|
|
|
#define GrNumSetWindowCursor 19
|
#define GrNumSetWindowCursor 19
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
IDTYPE cursorid;
|
IDTYPE cursorid;
|
} nxSetWindowCursorReq;
|
} nxSetWindowCursorReq;
|
|
|
#define GrNumClearArea 20
|
#define GrNumClearArea 20
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
UINT16 x;
|
UINT16 x;
|
UINT16 y;
|
UINT16 y;
|
UINT16 width;
|
UINT16 width;
|
UINT16 height;
|
UINT16 height;
|
UINT16 exposeflag;
|
UINT16 exposeflag;
|
} nxClearAreaReq;
|
} nxClearAreaReq;
|
|
|
#define GrNumSelectEvents 21
|
#define GrNumSelectEvents 21
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
UINT32 eventmask;
|
UINT32 eventmask;
|
} nxSelectEventsReq;
|
} nxSelectEventsReq;
|
|
|
#define GrNumGetNextEvent 22
|
#define GrNumGetNextEvent 22
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
} nxGetNextEventReq;
|
} nxGetNextEventReq;
|
|
|
#define GrNumCheckNextEvent 23
|
#define GrNumCheckNextEvent 23
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
} nxCheckNextEventReq;
|
} nxCheckNextEventReq;
|
|
|
#define GrNumPeekEvent 24
|
#define GrNumPeekEvent 24
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
} nxPeekEventReq;
|
} nxPeekEventReq;
|
|
|
#define GrNumLine 25
|
#define GrNumLine 25
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x1;
|
INT16 x1;
|
INT16 y1;
|
INT16 y1;
|
INT16 x2;
|
INT16 x2;
|
INT16 y2;
|
INT16 y2;
|
} nxLineReq;
|
} nxLineReq;
|
|
|
#define GrNumPoint 26
|
#define GrNumPoint 26
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
} nxPointReq;
|
} nxPointReq;
|
|
|
#define GrNumRect 27
|
#define GrNumRect 27
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 width;
|
INT16 width;
|
INT16 height;
|
INT16 height;
|
} nxRectReq;
|
} nxRectReq;
|
|
|
#define GrNumFillRect 28
|
#define GrNumFillRect 28
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 width;
|
INT16 width;
|
INT16 height;
|
INT16 height;
|
} nxFillRectReq;
|
} nxFillRectReq;
|
|
|
#define GrNumPoly 29
|
#define GrNumPoly 29
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
/*INT16 pointtable[];*/
|
/*INT16 pointtable[];*/
|
} nxPolyReq;
|
} nxPolyReq;
|
|
|
#define GrNumFillPoly 30
|
#define GrNumFillPoly 30
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
/*INT16 pointtable[];*/
|
/*INT16 pointtable[];*/
|
} nxFillPolyReq;
|
} nxFillPolyReq;
|
|
|
#define GrNumEllipse 31
|
#define GrNumEllipse 31
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 rx;
|
INT16 rx;
|
INT16 ry;
|
INT16 ry;
|
} nxEllipseReq;
|
} nxEllipseReq;
|
|
|
#define GrNumFillEllipse 32
|
#define GrNumFillEllipse 32
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 rx;
|
INT16 rx;
|
INT16 ry;
|
INT16 ry;
|
} nxFillEllipseReq;
|
} nxFillEllipseReq;
|
|
|
#define GrNumSetGCForeground 33
|
#define GrNumSetGCForeground 33
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
UINT32 color;
|
UINT32 color;
|
} nxSetGCForegroundReq;
|
} nxSetGCForegroundReq;
|
|
|
#define GrNumSetGCBackground 34
|
#define GrNumSetGCBackground 34
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
UINT32 color;
|
UINT32 color;
|
} nxSetGCBackgroundReq;
|
} nxSetGCBackgroundReq;
|
|
|
#define GrNumSetGCUseBackground 35
|
#define GrNumSetGCUseBackground 35
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
UINT16 flag;
|
UINT16 flag;
|
} nxSetGCUseBackgroundReq;
|
} nxSetGCUseBackgroundReq;
|
|
|
#define GrNumSetGCMode 36
|
#define GrNumSetGCMode 36
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
UINT16 mode;
|
UINT16 mode;
|
} nxSetGCModeReq;
|
} nxSetGCModeReq;
|
|
|
#define GrNumSetGCFont 37
|
#define GrNumSetGCFont 37
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
IDTYPE fontid;
|
IDTYPE fontid;
|
} nxSetGCFontReq;
|
} nxSetGCFontReq;
|
|
|
#define GrNumGetGCTextSize 38
|
#define GrNumGetGCTextSize 38
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
UINT16 flags;
|
UINT16 flags;
|
UINT16 pad;
|
UINT16 pad;
|
/*BYTE8 text[];*/
|
/*BYTE8 text[];*/
|
} nxGetGCTextSizeReq;
|
} nxGetGCTextSizeReq;
|
|
|
#define GrNumReadArea 39
|
#define GrNumReadArea 39
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 width;
|
INT16 width;
|
INT16 height;
|
INT16 height;
|
} nxReadAreaReq;
|
} nxReadAreaReq;
|
|
|
#define GrNumArea 40
|
#define GrNumArea 40
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 width;
|
INT16 width;
|
INT16 height;
|
INT16 height;
|
INT16 pixtype;
|
INT16 pixtype;
|
INT16 pad;
|
INT16 pad;
|
/*UINT32 pixels[];*/
|
/*UINT32 pixels[];*/
|
} nxAreaReq;
|
} nxAreaReq;
|
|
|
#define GrNumBitmap 41
|
#define GrNumBitmap 41
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 width;
|
INT16 width;
|
INT16 height;
|
INT16 height;
|
/*UINT16 bitmaptable[];*/
|
/*UINT16 bitmaptable[];*/
|
} nxBitmapReq;
|
} nxBitmapReq;
|
|
|
#define GrNumText 42
|
#define GrNumText 42
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 count;
|
INT16 count;
|
INT16 flags;
|
INT16 flags;
|
/*BYTE8 text[];*/
|
/*BYTE8 text[];*/
|
} nxTextReq;
|
} nxTextReq;
|
|
|
#define GrNumNewCursor 43
|
#define GrNumNewCursor 43
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
INT16 width;
|
INT16 width;
|
INT16 height;
|
INT16 height;
|
INT16 hotx;
|
INT16 hotx;
|
INT16 hoty;
|
INT16 hoty;
|
UINT32 fgcolor;
|
UINT32 fgcolor;
|
UINT32 bgcolor;
|
UINT32 bgcolor;
|
/*UINT16 fgbitmap[];*/
|
/*UINT16 fgbitmap[];*/
|
/*UINT16 bgbitmap[];*/
|
/*UINT16 bgbitmap[];*/
|
} nxNewCursorReq;
|
} nxNewCursorReq;
|
|
|
#define GrNumMoveCursor 44
|
#define GrNumMoveCursor 44
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
} nxMoveCursorReq;
|
} nxMoveCursorReq;
|
|
|
#define GrNumGetSystemPalette 45
|
#define GrNumGetSystemPalette 45
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
} nxGetSystemPaletteReq;
|
} nxGetSystemPaletteReq;
|
|
|
#define GrNumFindColor 46
|
#define GrNumFindColor 46
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
UINT32 color;
|
UINT32 color;
|
} nxFindColorReq;
|
} nxFindColorReq;
|
|
|
#define GrNumReparentWindow 47
|
#define GrNumReparentWindow 47
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
IDTYPE parentid;
|
IDTYPE parentid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
} nxReparentWindowReq;
|
} nxReparentWindowReq;
|
|
|
#define GrNumDrawImageFromFile 48
|
#define GrNumDrawImageFromFile 48
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 width;
|
INT16 width;
|
INT16 height;
|
INT16 height;
|
IDTYPE flags;
|
IDTYPE flags;
|
/*char path[];*/
|
/*char path[];*/
|
} nxDrawImageFromFileReq;
|
} nxDrawImageFromFileReq;
|
|
|
#define GrNumLoadImageFromFile 49
|
#define GrNumLoadImageFromFile 49
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
INT16 flags;
|
INT16 flags;
|
INT16 pad;
|
INT16 pad;
|
} nxLoadImageFromFileReq;
|
} nxLoadImageFromFileReq;
|
|
|
#define GrNumNewPixmap 50
|
#define GrNumNewPixmap 50
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
INT16 width;
|
INT16 width;
|
INT16 height;
|
INT16 height;
|
/* FIXME: Add support for passing shared memory info */
|
/* FIXME: Add support for passing shared memory info */
|
} nxNewPixmapReq;
|
} nxNewPixmapReq;
|
|
|
#define GrNumCopyArea 51
|
#define GrNumCopyArea 51
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 width;
|
INT16 width;
|
INT16 height;
|
INT16 height;
|
IDTYPE srcid;
|
IDTYPE srcid;
|
INT16 srcx;
|
INT16 srcx;
|
INT16 srcy;
|
INT16 srcy;
|
UINT32 op;
|
UINT32 op;
|
} nxCopyAreaReq;
|
} nxCopyAreaReq;
|
|
|
#define GrNumSetFontSize 52
|
#define GrNumSetFontSize 52
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE fontid;
|
IDTYPE fontid;
|
INT16 fontsize;
|
INT16 fontsize;
|
} nxSetFontSizeReq;
|
} nxSetFontSizeReq;
|
|
|
#define GrNumCreateFont 53
|
#define GrNumCreateFont 53
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
INT16 height;
|
INT16 height;
|
INT16 lf_used;
|
INT16 lf_used;
|
MWLOGFONT lf;
|
MWLOGFONT lf;
|
} nxCreateFontReq;
|
} nxCreateFontReq;
|
|
|
#define GrNumDestroyFont 54
|
#define GrNumDestroyFont 54
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE fontid;
|
IDTYPE fontid;
|
} nxDestroyFontReq;
|
} nxDestroyFontReq;
|
|
|
#define GrNumReqShmCmds 55
|
#define GrNumReqShmCmds 55
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
UINT32 size;
|
UINT32 size;
|
} nxReqShmCmdsReq;
|
} nxReqShmCmdsReq;
|
|
|
#define GrNumShmCmdsFlush 56
|
#define GrNumShmCmdsFlush 56
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
UINT32 size;
|
UINT32 size;
|
UINT32 reply;
|
UINT32 reply;
|
} nxShmCmdsFlushReq;
|
} nxShmCmdsFlushReq;
|
|
|
#define GrNumSetFontRotation 57
|
#define GrNumSetFontRotation 57
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE fontid;
|
IDTYPE fontid;
|
INT16 tenthdegrees;
|
INT16 tenthdegrees;
|
} nxSetFontRotationReq;
|
} nxSetFontRotationReq;
|
|
|
#define GrNumSetFontAttr 58
|
#define GrNumSetFontAttr 58
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE fontid;
|
IDTYPE fontid;
|
INT16 setflags;
|
INT16 setflags;
|
INT16 clrflags;
|
INT16 clrflags;
|
} nxSetFontAttrReq;
|
} nxSetFontAttrReq;
|
|
|
#define GrNumSetSystemPalette 59
|
#define GrNumSetSystemPalette 59
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
INT16 first;
|
INT16 first;
|
INT16 count;
|
INT16 count;
|
MWPALENTRY palette[256];
|
MWPALENTRY palette[256];
|
} nxSetSystemPaletteReq;
|
} nxSetSystemPaletteReq;
|
|
|
#define GrNumInjectEvent 60
|
#define GrNumInjectEvent 60
|
#define GR_INJECT_EVENT_POINTER 0
|
#define GR_INJECT_EVENT_POINTER 0
|
#define GR_INJECT_EVENT_KEYBOARD 1
|
#define GR_INJECT_EVENT_KEYBOARD 1
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
union {
|
union {
|
struct {
|
struct {
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
UINT16 button;
|
UINT16 button;
|
BYTE8 visible;
|
BYTE8 visible;
|
} pointer;
|
} pointer;
|
struct {
|
struct {
|
IDTYPE wid;
|
IDTYPE wid;
|
UINT16 keyvalue;
|
UINT16 keyvalue;
|
UINT16 modifier;
|
UINT16 modifier;
|
BYTE8 scancode;
|
BYTE8 scancode;
|
BYTE8 pressed;
|
BYTE8 pressed;
|
} keyboard;
|
} keyboard;
|
} event;
|
} event;
|
UINT16 event_type;
|
UINT16 event_type;
|
} nxInjectEventReq;
|
} nxInjectEventReq;
|
|
|
#define GrNumNewRegion 61
|
#define GrNumNewRegion 61
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
} nxNewRegionReq;
|
} nxNewRegionReq;
|
|
|
#define GrNumDestroyRegion 62
|
#define GrNumDestroyRegion 62
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE regionid;
|
IDTYPE regionid;
|
} nxDestroyRegionReq;
|
} nxDestroyRegionReq;
|
|
|
#define GrNumUnionRectWithRegion 63
|
#define GrNumUnionRectWithRegion 63
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE regionid;
|
IDTYPE regionid;
|
GR_RECT rect;
|
GR_RECT rect;
|
} nxUnionRectWithRegionReq;
|
} nxUnionRectWithRegionReq;
|
|
|
#define GrNumUnionRegion 64
|
#define GrNumUnionRegion 64
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE regionid;
|
IDTYPE regionid;
|
IDTYPE srcregionid1;
|
IDTYPE srcregionid1;
|
IDTYPE srcregionid2;
|
IDTYPE srcregionid2;
|
} nxUnionRegionReq;
|
} nxUnionRegionReq;
|
|
|
#define GrNumIntersectRegion 65
|
#define GrNumIntersectRegion 65
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE regionid;
|
IDTYPE regionid;
|
IDTYPE srcregionid1;
|
IDTYPE srcregionid1;
|
IDTYPE srcregionid2;
|
IDTYPE srcregionid2;
|
} nxIntersectRegionReq;
|
} nxIntersectRegionReq;
|
|
|
#define GrNumSetGCRegion 66
|
#define GrNumSetGCRegion 66
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
IDTYPE regionid;
|
IDTYPE regionid;
|
} nxSetGCRegionReq;
|
} nxSetGCRegionReq;
|
|
|
#define GrNumSubtractRegion 67
|
#define GrNumSubtractRegion 67
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE regionid;
|
IDTYPE regionid;
|
IDTYPE srcregionid1;
|
IDTYPE srcregionid1;
|
IDTYPE srcregionid2;
|
IDTYPE srcregionid2;
|
} nxSubtractRegionReq;
|
} nxSubtractRegionReq;
|
|
|
#define GrNumXorRegion 68
|
#define GrNumXorRegion 68
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE regionid;
|
IDTYPE regionid;
|
IDTYPE srcregionid1;
|
IDTYPE srcregionid1;
|
IDTYPE srcregionid2;
|
IDTYPE srcregionid2;
|
} nxXorRegionReq;
|
} nxXorRegionReq;
|
|
|
#define GrNumPointInRegion 69
|
#define GrNumPointInRegion 69
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE regionid;
|
IDTYPE regionid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
} nxPointInRegionReq;
|
} nxPointInRegionReq;
|
|
|
#define GrNumRectInRegion 70
|
#define GrNumRectInRegion 70
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE regionid;
|
IDTYPE regionid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 w;
|
INT16 w;
|
INT16 h;
|
INT16 h;
|
} nxRectInRegionReq;
|
} nxRectInRegionReq;
|
|
|
#define GrNumEmptyRegion 71
|
#define GrNumEmptyRegion 71
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE regionid;
|
IDTYPE regionid;
|
} nxEmptyRegionReq;
|
} nxEmptyRegionReq;
|
|
|
#define GrNumEqualRegion 72
|
#define GrNumEqualRegion 72
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE region1;
|
IDTYPE region1;
|
IDTYPE region2;
|
IDTYPE region2;
|
} nxEqualRegionReq;
|
} nxEqualRegionReq;
|
|
|
#define GrNumOffsetRegion 73
|
#define GrNumOffsetRegion 73
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE region;
|
IDTYPE region;
|
INT16 dx;
|
INT16 dx;
|
INT16 dy;
|
INT16 dy;
|
} nxOffsetRegionReq;
|
} nxOffsetRegionReq;
|
|
|
#define GrNumGetRegionBox 74
|
#define GrNumGetRegionBox 74
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE regionid;
|
IDTYPE regionid;
|
} nxGetRegionBoxReq;
|
} nxGetRegionBoxReq;
|
|
|
#define GrNumNewPolygonRegion 75
|
#define GrNumNewPolygonRegion 75
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
UINT16 mode;
|
UINT16 mode;
|
UINT16 pad;
|
UINT16 pad;
|
/*INT16 points[];*/
|
/*INT16 points[];*/
|
} nxNewPolygonRegionReq;
|
} nxNewPolygonRegionReq;
|
|
|
#define GrNumArc 76
|
#define GrNumArc 76
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 rx;
|
INT16 rx;
|
INT16 ry;
|
INT16 ry;
|
INT16 ax;
|
INT16 ax;
|
INT16 ay;
|
INT16 ay;
|
INT16 bx;
|
INT16 bx;
|
INT16 by;
|
INT16 by;
|
INT16 type;
|
INT16 type;
|
} nxArcReq;
|
} nxArcReq;
|
|
|
#define GrNumArcAngle 77
|
#define GrNumArcAngle 77
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 rx;
|
INT16 rx;
|
INT16 ry;
|
INT16 ry;
|
INT16 angle1;
|
INT16 angle1;
|
INT16 angle2;
|
INT16 angle2;
|
INT16 type;
|
INT16 type;
|
} nxArcAngleReq;
|
} nxArcAngleReq;
|
|
|
#define GrNumSetWMProperties 78
|
#define GrNumSetWMProperties 78
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
/* GR_WM_PROPERTIES props */
|
/* GR_WM_PROPERTIES props */
|
/* GR_CHAR *title */
|
/* GR_CHAR *title */
|
} nxSetWMPropertiesReq;
|
} nxSetWMPropertiesReq;
|
|
|
#define GrNumGetWMProperties 79
|
#define GrNumGetWMProperties 79
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
} nxGetWMPropertiesReq;
|
} nxGetWMPropertiesReq;
|
|
|
#define GrNumCloseWindow 80
|
#define GrNumCloseWindow 80
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
} nxCloseWindowReq;
|
} nxCloseWindowReq;
|
|
|
#define GrNumKillWindow 81
|
#define GrNumKillWindow 81
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
} nxKillWindowReq;
|
} nxKillWindowReq;
|
|
|
#define GrNumDrawImageToFit 82
|
#define GrNumDrawImageToFit 82
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 width;
|
INT16 width;
|
INT16 height;
|
INT16 height;
|
IDTYPE imageid;
|
IDTYPE imageid;
|
} nxDrawImageToFitReq;
|
} nxDrawImageToFitReq;
|
|
|
#define GrNumFreeImage 83
|
#define GrNumFreeImage 83
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE id;
|
IDTYPE id;
|
} nxFreeImageReq;
|
} nxFreeImageReq;
|
|
|
#define GrNumGetImageInfo 84
|
#define GrNumGetImageInfo 84
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE id;
|
IDTYPE id;
|
} nxGetImageInfoReq;
|
} nxGetImageInfoReq;
|
|
|
#define GrNumDrawImageBits 85
|
#define GrNumDrawImageBits 85
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 width; /* MWIMAGEHDR start*/
|
INT16 width; /* MWIMAGEHDR start*/
|
INT16 height;
|
INT16 height;
|
INT16 planes;
|
INT16 planes;
|
INT16 bpp;
|
INT16 bpp;
|
INT16 pitch;
|
INT16 pitch;
|
INT16 bytesperpixel;
|
INT16 bytesperpixel;
|
INT16 compression;
|
INT16 compression;
|
INT16 palsize;
|
INT16 palsize;
|
UINT32 transcolor;
|
UINT32 transcolor;
|
/*MWIMAGEBITS imagebits[];*/
|
/*MWIMAGEBITS imagebits[];*/
|
/*MWPALENTRY palette[palsize];*/
|
/*MWPALENTRY palette[palsize];*/
|
} nxDrawImageBitsReq;
|
} nxDrawImageBitsReq;
|
|
|
#define GrNumPoints 86
|
#define GrNumPoints 86
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
/*INT16 pointtable[];*/
|
/*INT16 pointtable[];*/
|
} nxPointsReq;
|
} nxPointsReq;
|
|
|
#define GrNumGetFocus 87
|
#define GrNumGetFocus 87
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
} nxGetFocusReq;
|
} nxGetFocusReq;
|
|
|
#define GrNumGetSysColor 88
|
#define GrNumGetSysColor 88
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
UINT16 index;
|
UINT16 index;
|
} nxGetSysColorReq;
|
} nxGetSysColorReq;
|
|
|
#define GrNumSetScreenSaverTimeout 89
|
#define GrNumSetScreenSaverTimeout 89
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
UINT32 timeout;
|
UINT32 timeout;
|
} nxSetScreenSaverTimeoutReq;
|
} nxSetScreenSaverTimeoutReq;
|
|
|
#define GrNumSetSelectionOwner 90
|
#define GrNumSetSelectionOwner 90
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE wid;
|
IDTYPE wid;
|
/* GR_CHAR *typelist */
|
/* GR_CHAR *typelist */
|
} nxSetSelectionOwnerReq;
|
} nxSetSelectionOwnerReq;
|
|
|
#define GrNumGetSelectionOwner 91
|
#define GrNumGetSelectionOwner 91
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
} nxGetSelectionOwnerReq;
|
} nxGetSelectionOwnerReq;
|
|
|
#define GrNumRequestClientData 92
|
#define GrNumRequestClientData 92
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE wid;
|
IDTYPE wid;
|
IDTYPE rid;
|
IDTYPE rid;
|
UINT32 serial;
|
UINT32 serial;
|
UINT16 mimetype;
|
UINT16 mimetype;
|
} nxRequestClientDataReq;
|
} nxRequestClientDataReq;
|
|
|
#define GrNumSendClientData 93
|
#define GrNumSendClientData 93
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE wid;
|
IDTYPE wid;
|
IDTYPE did;
|
IDTYPE did;
|
UINT32 serial;
|
UINT32 serial;
|
UINT32 len;
|
UINT32 len;
|
/* void *data */
|
/* void *data */
|
} nxSendClientDataReq;
|
} nxSendClientDataReq;
|
|
|
#define GrNumBell 94
|
#define GrNumBell 94
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
} nxBellReq;
|
} nxBellReq;
|
|
|
#define GrNumSetBackgroundPixmap 95
|
#define GrNumSetBackgroundPixmap 95
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE wid;
|
IDTYPE wid;
|
IDTYPE pixmap;
|
IDTYPE pixmap;
|
UINT32 flags;
|
UINT32 flags;
|
} nxSetBackgroundPixmapReq;
|
} nxSetBackgroundPixmapReq;
|
|
|
#define GrNumDestroyCursor 96
|
#define GrNumDestroyCursor 96
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE cursorid;
|
IDTYPE cursorid;
|
} nxDestroyCursorReq;
|
} nxDestroyCursorReq;
|
|
|
#define GrNumQueryTree 97
|
#define GrNumQueryTree 97
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE windowid;
|
IDTYPE windowid;
|
} nxQueryTreeReq;
|
} nxQueryTreeReq;
|
|
|
#define GrNumCreateTimer 98
|
#define GrNumCreateTimer 98
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE wid;
|
IDTYPE wid;
|
UINT32 period;
|
UINT32 period;
|
} nxCreateTimerReq;
|
} nxCreateTimerReq;
|
|
|
#define GrNumDestroyTimer 99
|
#define GrNumDestroyTimer 99
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE timerid;
|
IDTYPE timerid;
|
} nxDestroyTimerReq;
|
} nxDestroyTimerReq;
|
|
|
#define GrNumSetPortraitMode 100
|
#define GrNumSetPortraitMode 100
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
UINT32 portraitmode;
|
UINT32 portraitmode;
|
} nxSetPortraitModeReq;
|
} nxSetPortraitModeReq;
|
|
|
#define GrNumImageBufferAlloc 101
|
#define GrNumImageBufferAlloc 101
|
|
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
UINT32 size;
|
UINT32 size;
|
} nxImageBufferAllocReq;
|
} nxImageBufferAllocReq;
|
|
|
#define GrNumImageBufferSend 102
|
#define GrNumImageBufferSend 102
|
|
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
UINT32 buffer_id;
|
UINT32 buffer_id;
|
UINT32 size;
|
UINT32 size;
|
} nxImageBufferSendReq;
|
} nxImageBufferSendReq;
|
|
|
#define GrNumLoadImageFromBuffer 103
|
#define GrNumLoadImageFromBuffer 103
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
UINT32 buffer;
|
UINT32 buffer;
|
INT16 flags;
|
INT16 flags;
|
INT16 pad;
|
INT16 pad;
|
} nxLoadImageFromBufferReq;
|
} nxLoadImageFromBufferReq;
|
|
|
#define GrNumDrawImageFromBuffer 104
|
#define GrNumDrawImageFromBuffer 104
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE drawid;
|
IDTYPE drawid;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
INT16 x;
|
INT16 x;
|
INT16 y;
|
INT16 y;
|
INT16 width;
|
INT16 width;
|
INT16 height;
|
INT16 height;
|
UINT32 buffer;
|
UINT32 buffer;
|
IDTYPE flags;
|
IDTYPE flags;
|
} nxDrawImageFromBufferReq;
|
} nxDrawImageFromBufferReq;
|
|
|
#define GrNumGetFontList 105
|
#define GrNumGetFontList 105
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
} nxGetFontListReq;
|
} nxGetFontListReq;
|
|
|
#define GrNumSetGCClipOrigin 106
|
#define GrNumSetGCClipOrigin 106
|
|
|
typedef struct {
|
typedef struct {
|
BYTE8 reqType;
|
BYTE8 reqType;
|
BYTE8 hilength;
|
BYTE8 hilength;
|
UINT16 length;
|
UINT16 length;
|
IDTYPE gcid;
|
IDTYPE gcid;
|
UINT32 xoff;
|
UINT32 xoff;
|
UINT32 yoff;
|
UINT32 yoff;
|
} nxSetGCClipOriginReq;
|
} nxSetGCClipOriginReq;
|
|
|
#define GrTotalNumCalls 107
|
#define GrTotalNumCalls 107
|
|
|