diff options
author | Jim Ramsay <jim.ramsay@motorola.com> | 2010-05-25 12:19:52 (GMT) |
---|---|---|
committer | Jim Ramsay <jim.ramsay@motorola.com> | 2010-05-25 12:19:52 (GMT) |
commit | ba487cb11e5c1310dc61f7ed6b344a9dc07b0d61 (patch) | |
tree | 1e03585ed396783853d9ff2984e8e02e3aa5566c /src/AttentionTheme.hh | |
parent | 0935a8d5564e1aee5fd0f7dd5d21f3fc69d15562 (diff) | |
download | fluxbox_lack-ClientMenu-borders.zip fluxbox_lack-ClientMenu-borders.tar.bz2 |
TEMPORARY WIPClientMenu-borders
Diffstat (limited to 'src/AttentionTheme.hh')
-rw-r--r-- | src/AttentionTheme.hh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/AttentionTheme.hh b/src/AttentionTheme.hh new file mode 100644 index 0000000..d5d539a --- /dev/null +++ b/src/AttentionTheme.hh | |||
@@ -0,0 +1,28 @@ | |||
1 | #include <FocusableTheme.hh> | ||
2 | |||
3 | class AttentionTheme: public FocusableTheme { | ||
4 | public: | ||
5 | AttentionTheme(Focusable &win, FbTk::ThemeProxy<BaseTheme> &focused, | ||
6 | FbTk::ThemeProxy<BaseTheme> &unfocused, | ||
7 | FbTk::ThemeProxy<BaseTheme> &attention): | ||
8 | FocusableTheme(win, focused, unfocused), m_attention_theme(attention) | ||
9 | {} | ||
10 | |||
11 | AttentionTheme(Focusable &win, FbTk::ThemeProxy<BaseTheme> &focused, | ||
12 | FbTk::ThemeProxy<BaseTheme> &unfocused): | ||
13 | AttentionTheme(win, focused, unfocused, focused) | ||
14 | {} | ||
15 | |||
16 | FbTk::ThemeProxy<BaseTheme> &attentionTheme() { return m_attention_theme; } | ||
17 | const FbTk::ThemeProxy<BaseTheme> &attentionTheme() const { return m_attention_theme; } | ||
18 | |||
19 | virtual BaseTheme &operator *() { | ||
20 | return (m_win.getAttentionState() ? *m_attention_theme : FocusableTheme::()); | ||
21 | } | ||
22 | virtual const BaseTheme &operator *() const { | ||
23 | return (m_win.getAttentionState() ? *m_attention_theme : FocusableTheme::()); | ||
24 | } | ||
25 | |||
26 | private: | ||
27 | FbTk::ThemeProxy<BaseTheme> &m_attention_theme; | ||
28 | }; | ||