aboutsummaryrefslogtreecommitdiff
path: root/src/ButtonTheme.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-10-13 23:41:07 (GMT)
committerfluxgen <fluxgen>2003-10-13 23:41:07 (GMT)
commit9911b38f8df93871542e3a7cdd5611e42e9bd106 (patch)
tree321b831e3bf697f36ad921d032198a4c77a986f1 /src/ButtonTheme.hh
parentec1049e89458f67c040bff905e1df862ae1587d7 (diff)
downloadfluxbox_pavel-9911b38f8df93871542e3a7cdd5611e42e9bd106.zip
fluxbox_pavel-9911b38f8df93871542e3a7cdd5611e42e9bd106.tar.bz2
extends tooltheme with picColor and pressed texture for toolbar buttons
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