2003-10-13 23:41:07 +00:00
|
|
|
#ifndef BUTTONTHEME_HH
|
|
|
|
#define BUTTONTHEME_HH
|
|
|
|
|
|
|
|
#include "ToolTheme.hh"
|
|
|
|
|
|
|
|
#include "FbTk/GContext.hh"
|
|
|
|
|
|
|
|
class ButtonTheme: public ToolTheme {
|
|
|
|
public:
|
|
|
|
ButtonTheme(int screen_num,
|
|
|
|
const std::string &name, const std::string &alt_name);
|
|
|
|
virtual ~ButtonTheme() { }
|
|
|
|
|
|
|
|
bool fallback(FbTk::ThemeItem_base &item);
|
|
|
|
void reconfigTheme();
|
|
|
|
|
|
|
|
inline const FbTk::Texture &pressed() const { return *m_pressed_texture; }
|
|
|
|
inline GC gc() const { return m_gc.gc(); }
|
2004-08-26 15:09:33 +00:00
|
|
|
inline int scale() const { return *m_scale; } // scale factor for inside objects
|
2003-10-13 23:41:07 +00:00
|
|
|
private:
|
|
|
|
FbTk::ThemeItem<FbTk::Color> m_pic_color;
|
|
|
|
FbTk::ThemeItem<FbTk::Texture> m_pressed_texture;
|
|
|
|
FbTk::GContext m_gc;
|
2004-08-26 15:09:33 +00:00
|
|
|
FbTk::ThemeItem<int> m_scale;
|
2003-10-13 23:41:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BUTTONTHEME_HH
|