#include "rendertexture.hh"
#include "rendercolor.hh"
#include "font.hh"
+#include "ustring.hh"
-#include <string>
#include <list>
+#include <string>
namespace otk {
static void registerNotify(int screen, StyleNotify *n);
static void unregisterNotify(int screen, StyleNotify *n);
static RenderStyle *style(int screen);
+ static bool setStyle(int screen, const ustring &stylefile);
enum Justify {
LeftTopJustify,
};
private:
+ static bool loadStyle(RenderStyle *s, int screen, const ustring &stylefile);
+ static void defaultStyle(RenderStyle *s, int screen);
+
int _screen;
- std::string _file;
+ ustring _file;
- RenderColor *_root_color;
+ std::string _root_args;
RenderColor *_text_color_focus;
RenderColor *_text_color_unfocus;
int _bevel_width;
public:
- RenderStyle(int screen, const std::string &stylefile);
virtual ~RenderStyle();
inline int screen() const { return _screen; }
- inline RenderColor *rootColor() const { return _root_color; }
+ inline const std::string& rootArgs() const { return _root_args; }
inline RenderColor *textFocusColor() const { return _text_color_focus; }
inline RenderColor *textUnfocusColor() const { return _text_color_unfocus; }
}
-#endif // __rendertexture_hh
+#endif // __renderstyle_hh