aboutsummaryrefslogtreecommitdiff
path: root/src/SlitTheme.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/SlitTheme.hh')
-rw-r--r--src/SlitTheme.hh48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/SlitTheme.hh b/src/SlitTheme.hh
new file mode 100644
index 0000000..2d65f27
--- /dev/null
+++ b/src/SlitTheme.hh
@@ -0,0 +1,48 @@
1// SlitTheme.hh for fluxbox
2// Copyright (c) 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net)
3//
4// Permission is hereby granted, free of charge, to any person obtaining a
5// copy of this software and associated documentation files (the "Software"),
6// to deal in the Software without restriction, including without limitation
7// the rights to use, copy, modify, merge, publish, distribute, sublicense,
8// and/or sell copies of the Software, and to permit persons to whom the
9// Software is furnished to do so, subject to the following conditions:
10//
11// The above copyright notice and this permission notice shall be included in
12// all copies or substantial portions of the Software.
13//
14// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE.
21
22// $Id: SlitTheme.hh,v 1.4 2003/08/29 10:34:41 fluxgen Exp $
23
24#ifndef SLITTHEME_HH
25#define SLITTHEME_HH
26
27#include "FbTk/Theme.hh"
28#include "FbTk/Texture.hh"
29#include "FbTk/Color.hh"
30
31class SlitTheme:public FbTk::Theme {
32public:
33 explicit SlitTheme(int screen_num);
34
35 void reconfigTheme();
36 bool fallback(FbTk::ThemeItem_base &item);
37
38 const FbTk::Texture &texture() const { return *m_texture; }
39 const FbTk::Color &borderColor() const { return *m_border_color; }
40 int borderWidth() const { return *m_border_width; }
41 int bevelWidth() const { return *m_bevel_width; }
42private:
43 FbTk::ThemeItem<FbTk::Texture> m_texture;
44 FbTk::ThemeItem<int> m_border_width, m_bevel_width;
45 FbTk::ThemeItem<FbTk::Color> m_border_color;
46};
47
48#endif // SLITTHEME_HH