00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef THEME_H
00030 #define THEME_H
00031
00032 #ifdef SWIG
00033 %module theme
00034 %{
00035 #include "theme.h"
00036 %}
00037 #endif
00038
00039 #include "paragui.h"
00040
00041 #define THEME_SUFFIX ".theme"
00042
00043 class DECLSPEC SDLTheme {
00044 public:
00045 virtual TTF_Font* FindDefaultFont() = 0;
00046 virtual TTF_Font* FindFont(const char* widgettype, const char* objectname) = 0;
00047 virtual SDL_Surface* FindSurface(const char* widgettype, const char* object, const char* name) = 0;
00048 virtual SDL_Gradient* FindGradient(const char* widgettype, const char* object, const char* name) = 0;
00049 virtual long FindProperty(const char* widgettype, const char* object, const char* name) = 0;
00050 };
00051
00052 SDLTheme* LoadTheme(const char* path, const char* xmltheme);
00053 void UnloadTheme(SDLTheme* theme);
00054
00055 #endif // THEME_H