📄 cursor.h
字号:
/*** $Id: cursor.h,v 1.13 2003/08/29 09:07:31 weiym Exp $**** cursor.h: the head file of Cursor Support Lib.**** Copyright (C) 2003 Feynman Software.** Copyright (C) 1999 ~ 2002 Wei Yongming.**** Create date: 1999/01/06*/#ifndef GUI_CURSOR_H #define GUI_CURSOR_H/* Struct definitions */typedef struct _CURSORDIRENTRY { BYTE bWidth; BYTE bHeight; BYTE bColorCount; BYTE bReserved; WORD wXhotspot; WORD wYhotspot; DWORD lBytesInRes; DWORD dwImageOffset;}CURSORDIRENTRY;typedef struct _CURSORDIR { WORD cdReserved; WORD cdType; // must be 2. WORD cdCount;}CURSORDIR;typedef struct _CURSOR { int xhotspot; int yhotspot; int width; int height; void* AndBits; void* XorBits;}CURSOR;typedef CURSOR* PCURSOR;#define CURSORWIDTH 32#define CURSORHEIGHT 32#define MONOSIZE (CURSORWIDTH*CURSORHEIGHT/8)#define MONOPITCH 4/* Function definitions */#ifdef __cplusplusextern "C" {#endif /* __cplusplus */#ifdef _CURSOR_SUPPORT/* Initialization and termination. */BOOL InitCursor (void);void TerminateCursor(void);#ifdef _LITE_VERSION/* show cursor hidden by client GDI function */void ReShowCursor (void);#elseUint8* GetPixelUnderCursor (int x, int y, gal_pixel* pixel);#endif#endif /* _CURSOR_SUPPORT */void ShowCursorForGDI (BOOL fShow, const RECT* prc);/* Mouse event helper. */BOOL RefreshCursor (int* x, int* y, int* button);#ifdef __cplusplus}#endif /* __cplusplus */#endif /* GUI_CURSOR_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -