30 |
#define THEME_PRIV_H |
#define THEME_PRIV_H |
31 |
|
|
32 |
#include "paragui.h" |
#include "paragui.h" |
33 |
|
#include "pgcolor.h" |
34 |
|
|
35 |
#include <string> |
#include <string> |
36 |
#include <vector> |
#include <vector> |
59 |
int style; |
int style; |
60 |
}; |
}; |
61 |
|
|
|
class THEME_COLOR { |
|
|
public: |
|
|
SDL_Color c; |
|
|
Uint32 val; |
|
|
}; |
|
|
|
|
62 |
class THEME_STRING { |
class THEME_STRING { |
63 |
public: |
public: |
64 |
virtual ~THEME_STRING() {} |
virtual ~THEME_STRING() {} |
90 |
long value; |
long value; |
91 |
}; |
}; |
92 |
|
|
93 |
class THEME_GRADIENT { |
class THEME_GRADIENT : public PG_Gradient { |
94 |
public: |
public: |
95 |
string name; |
string name; |
|
THEME_COLOR color[4]; |
|
|
PG_Gradient gradient; |
|
96 |
}; |
}; |
97 |
|
|
98 |
#ifdef HASH_MAP_INC |
#ifdef HASH_MAP_INC |
180 |
|
|
181 |
SDL_Surface* FindSurface(const char* widgettype, const char* object, const char* name); |
SDL_Surface* FindSurface(const char* widgettype, const char* object, const char* name); |
182 |
PG_Gradient* FindGradient(const char* widgettype, const char* object, const char* name); |
PG_Gradient* FindGradient(const char* widgettype, const char* object, const char* name); |
183 |
long FindProperty(const char* widgettype, const char* object, const char* name); |
void GetProperty(const char* widgettype, const char* object, const char* name, long& prop); |
184 |
SDL_Color* FindColor(const char* widgettype, const char* object, const char* name); |
void GetProperty(const char* widgettype, const char* object, const char* name, Uint8& prop); |
185 |
|
void GetProperty(const char* widgettype, const char* object, const char* name, bool& prop); |
186 |
|
void GetProperty(const char* widgettype, const char* object, const char* name, int& prop); |
187 |
|
void GetColor(const char* widgettype, const char* object, const char* name, PG_Color& color); |
188 |
const char* FindString(const char* widgettype, const char* object, const char* name); |
const char* FindString(const char* widgettype, const char* object, const char* name); |
189 |
|
|
190 |
THEME_FONT* defaultfont; |
THEME_FONT* defaultfont; |