aboutsummaryrefslogtreecommitdiff
path: root/src/ButtonTheme.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ButtonTheme.hh')
-rw-r--r--src/ButtonTheme.hh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ButtonTheme.hh b/src/ButtonTheme.hh
index 0df252c..cba4282 100644
--- a/src/ButtonTheme.hh
+++ b/src/ButtonTheme.hh
@@ -8,7 +8,9 @@
8class ButtonTheme: public ToolTheme { 8class ButtonTheme: public ToolTheme {
9public: 9public:
10 ButtonTheme(int screen_num, 10 ButtonTheme(int screen_num,
11 const std::string &name, const std::string &alt_name); 11 const std::string &name, const std::string &alt_name,
12 const std::string &extra_fallback,
13 const std::string &extra_fallback_alt);
12 virtual ~ButtonTheme() { } 14 virtual ~ButtonTheme() { }
13 15
14 bool fallback(FbTk::ThemeItem_base &item); 16 bool fallback(FbTk::ThemeItem_base &item);
@@ -17,11 +19,16 @@ public:
17 inline const FbTk::Texture &pressed() const { return *m_pressed_texture; } 19 inline const FbTk::Texture &pressed() const { return *m_pressed_texture; }
18 inline GC gc() const { return m_gc.gc(); } 20 inline GC gc() const { return m_gc.gc(); }
19 inline int scale() const { return *m_scale; } // scale factor for inside objects 21 inline int scale() const { return *m_scale; } // scale factor for inside objects
22 inline const std::string &name() { return m_name; }
23
20private: 24private:
21 FbTk::ThemeItem<FbTk::Color> m_pic_color; 25 FbTk::ThemeItem<FbTk::Color> m_pic_color;
22 FbTk::ThemeItem<FbTk::Texture> m_pressed_texture; 26 FbTk::ThemeItem<FbTk::Texture> m_pressed_texture;
23 FbTk::GContext m_gc; 27 FbTk::GContext m_gc;
24 FbTk::ThemeItem<int> m_scale; 28 FbTk::ThemeItem<int> m_scale;
29 const std::string m_name;
30 const std::string m_fallbackname;
31 const std::string m_altfallbackname;
25}; 32};
26 33
27#endif // BUTTONTHEME_HH 34#endif // BUTTONTHEME_HH