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

📄 icon.h

📁 在ADS环境下MiniGUI的源码
💻 H
字号:
/*
** $Id: icon.h,v 1.5 2003/08/12 07:46:18 weiym Exp $
**
** icon.h: the head file of Icon Support Lib.
**
** Copyright (c) 2003 Feynman Software.
** Copyright (c) 1999 ~ 2002 Wei Yongming.
**
** Create date: 1999/01/06
*/

#ifndef GUI_ICON_H
    #define GUI_ICON_H

/* Struct definitions */
typedef struct _ICONDIRENTRY {
    BYTE bWidth;
    BYTE bHeight;
    BYTE bColorCount;
    BYTE bReserved;
    WORD wPlanes;
    WORD wBitCount;
    DWORD dwBytesInRes;
    DWORD dwImageOffset;
}ICONDIRENTRY;

#define SIZEOF_ICONDIRENTRY 16
typedef struct _ICONDIR {
    WORD cdReserved;
    WORD cdType;    // must be 1.
    WORD cdCount;
}ICONDIR;

#ifdef _USE_NEWGAL

typedef struct _ICON {
    Uint32  width;
    Uint32  height;
    Uint32  pitch;
    BYTE*   AndBits;
    BYTE*   XorBits;
}ICON;

#else

typedef struct _ICON {
    int     width;
    int     height;
    void*   AndBits;
    void*   XorBits;
}ICON;

#endif /* _USE_NEWGAL */

typedef ICON* PICON;

/* Function definitions */
#ifdef __cplusplus
extern "C" {
#endif  /* __cplusplus */

/* Initialization and termination. */

#ifdef __cplusplus
}
#endif  /* __cplusplus */

#endif // GUI_ICON_H

⌨️ 快捷键说明

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