mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2025-01-15 17:02:52 +08:00
66 lines
1.1 KiB
C++
66 lines
1.1 KiB
C++
#ifndef GUILITE_CORE_INCLUDE_THEME_H
|
|
#define GUILITE_CORE_INCLUDE_THEME_H
|
|
|
|
typedef struct struct_font_info FONT_INFO;
|
|
typedef struct struct_color_rect COLOR_RECT;
|
|
typedef struct struct_bitmap_info BITMAP_INFO;
|
|
|
|
//Rebuild gui library once you change this file
|
|
enum FONT_TYPE
|
|
{
|
|
FONT_NULL,
|
|
FONT_DEFAULT,
|
|
FONT_CUSTOM1,
|
|
FONT_CUSTOM2,
|
|
FONT_CUSTOM3,
|
|
FONT_CUSTOM4,
|
|
FONT_CUSTOM5,
|
|
FONT_CUSTOM6,
|
|
FONT_MAX
|
|
};
|
|
|
|
enum BITMAP_TYPE
|
|
{
|
|
BITMAP_CUSTOM1,
|
|
BITMAP_CUSTOM2,
|
|
BITMAP_CUSTOM3,
|
|
BITMAP_CUSTOM4,
|
|
BITMAP_CUSTOM5,
|
|
BITMAP_CUSTOM6,
|
|
|
|
BITMAP_MAX
|
|
};
|
|
|
|
enum COLOR_TYPE
|
|
{
|
|
COLOR_WND_FONT,
|
|
COLOR_WND_NORMAL,
|
|
COLOR_WND_PUSHED,
|
|
COLOR_WND_FOCUS,
|
|
COLOR_WND_BORDER,
|
|
|
|
COLOR_CUSTOME1,
|
|
COLOR_CUSTOME2,
|
|
COLOR_CUSTOME3,
|
|
COLOR_CUSTOME4,
|
|
COLOR_CUSTOME5,
|
|
COLOR_CUSTOME6,
|
|
|
|
COLOR_MAX
|
|
};
|
|
|
|
class c_theme
|
|
{
|
|
public:
|
|
static int add_font(FONT_TYPE index, const FONT_INFO* font);
|
|
static const FONT_INFO* get_font(FONT_TYPE index);
|
|
|
|
static int add_bitmap(BITMAP_TYPE index, const BITMAP_INFO* bmp);
|
|
static const BITMAP_INFO* get_bmp(BITMAP_TYPE index);
|
|
|
|
static int add_color(COLOR_TYPE index, const unsigned int color);
|
|
static const unsigned int get_color(COLOR_TYPE index);
|
|
};
|
|
|
|
#endif
|