📄 nxproto.h
字号:
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
INT16 flags;
INT16 pad;
} nxLoadImageFromFileReq;
#define GrNumNewPixmap 50
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
INT16 width;
INT16 height;
/* FIXME: Add support for passing shared memory info */
} nxNewPixmapReq;
#define GrNumCopyArea 51
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE drawid;
IDTYPE gcid;
INT16 x;
INT16 y;
INT16 width;
INT16 height;
IDTYPE srcid;
INT16 srcx;
INT16 srcy;
UINT32 op;
} nxCopyAreaReq;
#define GrNumSetFontSize 52
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE fontid;
INT16 fontsize;
} nxSetFontSizeReq;
#define GrNumCreateFont 53
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
INT16 height;
INT16 lf_used;
MWLOGFONT lf;
} nxCreateFontReq;
#define GrNumDestroyFont 54
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE fontid;
} nxDestroyFontReq;
#define GrNumReqShmCmds 55
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
UINT32 size;
} nxReqShmCmdsReq;
#define GrNumShmCmdsFlush 56
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
UINT32 size;
UINT32 reply;
} nxShmCmdsFlushReq;
#define GrNumSetFontRotation 57
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE fontid;
INT16 tenthdegrees;
} nxSetFontRotationReq;
#define GrNumSetFontAttr 58
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE fontid;
INT16 setflags;
INT16 clrflags;
} nxSetFontAttrReq;
#define GrNumSetSystemPalette 59
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
INT16 first;
INT16 count;
MWPALENTRY palette[256];
} nxSetSystemPaletteReq;
#define GrNumInjectEvent 60
#define GR_INJECT_EVENT_POINTER 0
#define GR_INJECT_EVENT_KEYBOARD 1
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
union {
struct {
INT16 x;
INT16 y;
UINT16 button;
BYTE8 visible;
} pointer;
struct {
IDTYPE wid;
UINT16 keyvalue;
UINT16 modifier;
BYTE8 scancode;
BYTE8 pressed;
} keyboard;
} event;
UINT16 event_type;
} nxInjectEventReq;
#define GrNumNewRegion 61
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
} nxNewRegionReq;
#define GrNumDestroyRegion 62
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE regionid;
} nxDestroyRegionReq;
#define GrNumUnionRectWithRegion 63
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE regionid;
GR_RECT rect;
} nxUnionRectWithRegionReq;
#define GrNumUnionRegion 64
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE regionid;
IDTYPE srcregionid1;
IDTYPE srcregionid2;
} nxUnionRegionReq;
#define GrNumIntersectRegion 65
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE regionid;
IDTYPE srcregionid1;
IDTYPE srcregionid2;
} nxIntersectRegionReq;
#define GrNumSetGCRegion 66
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE gcid;
IDTYPE regionid;
} nxSetGCRegionReq;
#define GrNumSubtractRegion 67
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE regionid;
IDTYPE srcregionid1;
IDTYPE srcregionid2;
} nxSubtractRegionReq;
#define GrNumXorRegion 68
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE regionid;
IDTYPE srcregionid1;
IDTYPE srcregionid2;
} nxXorRegionReq;
#define GrNumPointInRegion 69
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE regionid;
INT16 x;
INT16 y;
} nxPointInRegionReq;
#define GrNumRectInRegion 70
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE regionid;
INT16 x;
INT16 y;
INT16 w;
INT16 h;
} nxRectInRegionReq;
#define GrNumEmptyRegion 71
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE regionid;
} nxEmptyRegionReq;
#define GrNumEqualRegion 72
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE region1;
IDTYPE region2;
} nxEqualRegionReq;
#define GrNumOffsetRegion 73
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE region;
INT16 dx;
INT16 dy;
} nxOffsetRegionReq;
#define GrNumGetRegionBox 74
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE regionid;
} nxGetRegionBoxReq;
#define GrNumNewPolygonRegion 75
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
UINT16 mode;
UINT16 pad;
/*INT16 points[];*/
} nxNewPolygonRegionReq;
#define GrNumArc 76
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE drawid;
IDTYPE gcid;
INT16 x;
INT16 y;
INT16 rx;
INT16 ry;
INT16 ax;
INT16 ay;
INT16 bx;
INT16 by;
INT16 type;
} nxArcReq;
#define GrNumArcAngle 77
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE drawid;
IDTYPE gcid;
INT16 x;
INT16 y;
INT16 rx;
INT16 ry;
INT16 angle1;
INT16 angle2;
INT16 type;
} nxArcAngleReq;
#define GrNumSetWMProperties 78
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE windowid;
/* GR_WM_PROPERTIES props */
/* GR_CHAR *title */
} nxSetWMPropertiesReq;
#define GrNumGetWMProperties 79
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE windowid;
} nxGetWMPropertiesReq;
#define GrNumCloseWindow 80
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE windowid;
} nxCloseWindowReq;
#define GrNumKillWindow 81
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE windowid;
} nxKillWindowReq;
#define GrNumDrawImageToFit 82
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE drawid;
IDTYPE gcid;
INT16 x;
INT16 y;
INT16 width;
INT16 height;
IDTYPE imageid;
} nxDrawImageToFitReq;
#define GrNumFreeImage 83
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE id;
} nxFreeImageReq;
#define GrNumGetImageInfo 84
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE id;
} nxGetImageInfoReq;
#define GrNumDrawImageBits 85
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE drawid;
IDTYPE gcid;
INT16 x;
INT16 y;
INT16 width; /* MWIMAGEHDR start*/
INT16 height;
INT16 planes;
INT16 bpp;
INT16 pitch;
INT16 bytesperpixel;
INT16 compression;
INT16 palsize;
UINT32 transcolor;
/*MWIMAGEBITS imagebits[];*/
/*MWPALENTRY palette[palsize];*/
} nxDrawImageBitsReq;
#define GrNumPoints 86
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE drawid;
IDTYPE gcid;
/*INT16 pointtable[];*/
} nxPointsReq;
#define GrNumGetFocus 87
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
} nxGetFocusReq;
#define GrNumGetSysColor 88
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
UINT16 index;
} nxGetSysColorReq;
#define GrNumSetScreenSaverTimeout 89
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
UINT32 timeout;
} nxSetScreenSaverTimeoutReq;
#define GrNumSetSelectionOwner 90
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE wid;
/* GR_CHAR *typelist */
} nxSetSelectionOwnerReq;
#define GrNumGetSelectionOwner 91
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
} nxGetSelectionOwnerReq;
#define GrNumRequestClientData 92
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE wid;
IDTYPE rid;
UINT32 serial;
UINT16 mimetype;
} nxRequestClientDataReq;
#define GrNumSendClientData 93
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE wid;
IDTYPE did;
UINT32 serial;
UINT32 len;
/* void *data */
} nxSendClientDataReq;
#define GrNumBell 94
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
} nxBellReq;
#define GrNumSetBackgroundPixmap 95
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE wid;
IDTYPE pixmap;
UINT32 flags;
} nxSetBackgroundPixmapReq;
#define GrNumDestroyCursor 96
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE cursorid;
} nxDestroyCursorReq;
#define GrNumQueryTree 97
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE windowid;
} nxQueryTreeReq;
#define GrNumCreateTimer 98
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE wid;
UINT32 period;
} nxCreateTimerReq;
#define GrNumDestroyTimer 99
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE timerid;
} nxDestroyTimerReq;
#define GrNumSetPortraitMode 100
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
UINT32 portraitmode;
} nxSetPortraitModeReq;
#define GrNumImageBufferAlloc 101
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
UINT32 size;
} nxImageBufferAllocReq;
#define GrNumImageBufferSend 102
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
UINT32 buffer_id;
UINT32 size;
} nxImageBufferSendReq;
#define GrNumLoadImageFromBuffer 103
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
UINT32 buffer;
INT16 flags;
INT16 pad;
} nxLoadImageFromBufferReq;
#define GrNumDrawImageFromBuffer 104
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE drawid;
IDTYPE gcid;
INT16 x;
INT16 y;
INT16 width;
INT16 height;
UINT32 buffer;
IDTYPE flags;
} nxDrawImageFromBufferReq;
#define GrNumGetFontList 105
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
} nxGetFontListReq;
#define GrNumSetGCClipOrigin 106
typedef struct {
BYTE8 reqType;
BYTE8 hilength;
UINT16 length;
IDTYPE gcid;
UINT32 xoff;
UINT32 yoff;
} nxSetGCClipOriginReq;
#define GrTotalNumCalls 107
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -