aboutsummaryrefslogtreecommitdiff
path: root/src/ButtonTheme.hh
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-08-27 14:14:42 (GMT)
committerrathnor <rathnor>2004-08-27 14:14:42 (GMT)
commitf2599d87f61ac4d2028698195024e082ed6f513a (patch)
tree5615c94f2b11262d26be54d573efaecde35246ee /src/ButtonTheme.hh
parent6ce5a31ea8bb6dbf6f64260c62d9af153e9d7f30 (diff)
downloadfluxbox-f2599d87f61ac4d2028698195024e082ed6f513a.zip
fluxbox-f2599d87f61ac4d2028698195024e082ed6f513a.tar.bz2
add a special fallback for toolbar button style
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