aboutsummaryrefslogtreecommitdiff
path: root/src/ButtonTheme.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ButtonTheme.hh')
-rw-r--r--src/ButtonTheme.hh25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ButtonTheme.hh b/src/ButtonTheme.hh
new file mode 100644
index 0000000..2636960
--- /dev/null
+++ b/src/ButtonTheme.hh
@@ -0,0 +1,25 @@
1#ifndef BUTTONTHEME_HH
2#define BUTTONTHEME_HH
3
4#include "ToolTheme.hh"
5
6#include "FbTk/GContext.hh"
7
8class ButtonTheme: public ToolTheme {
9public:
10 ButtonTheme(int screen_num,
11 const std::string &name, const std::string &alt_name);
12 virtual ~ButtonTheme() { }
13
14 bool fallback(FbTk::ThemeItem_base &item);
15 void reconfigTheme();
16
17 inline const FbTk::Texture &pressed() const { return *m_pressed_texture; }
18 inline GC gc() const { return m_gc.gc(); }
19private:
20 FbTk::ThemeItem<FbTk::Color> m_pic_color;
21 FbTk::ThemeItem<FbTk::Texture> m_pressed_texture;
22 FbTk::GContext m_gc;
23};
24
25#endif // BUTTONTHEME_HH