aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/BorderTheme.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2007-12-28 04:39:31 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2007-12-28 04:39:31 (GMT)
commit00ceefd8846bda6f4dc43a5a990086545ea28727 (patch)
treea87c37dbb853e3604b52198e6a64e8d45711fb27 /src/FbTk/BorderTheme.hh
parentb5c354b994bc06667abe35e2d528c0f025703c4e (diff)
downloadfluxbox-00ceefd8846bda6f4dc43a5a990086545ea28727.zip
fluxbox-00ceefd8846bda6f4dc43a5a990086545ea28727.tar.bz2
moved BorderTheme and TextTheme to FbTk
Diffstat (limited to 'src/FbTk/BorderTheme.hh')
-rw-r--r--src/FbTk/BorderTheme.hh47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/FbTk/BorderTheme.hh b/src/FbTk/BorderTheme.hh
new file mode 100644
index 0000000..9b9ca55
--- /dev/null
+++ b/src/FbTk/BorderTheme.hh
@@ -0,0 +1,47 @@
1// BorderTheme.hh
2// Copyright (c) 2003 - 2006 Henrik Kinnunen (fluxgen at fluxbox dot org)
3// and Simon Bowden (rathnor at users.sourceforge.net)
4//
5// Permission is hereby granted, free of charge, to any person obtaining a
6// copy of this software and associated documentation files (the "Software"),
7// to deal in the Software without restriction, including without limitation
8// the rights to use, copy, modify, merge, publish, distribute, sublicense,
9// and/or sell copies of the Software, and to permit persons to whom the
10// Software is furnished to do so, subject to the following conditions:
11//
12// The above copyright notice and this permission notice shall be included in
13// all copies or substantial portions of the Software.
14//
15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE.
22
23#ifndef FBTK_BORDERTHEME_HH
24#define FBTK_BORDERTHEME_HH
25
26#include "Theme.hh"
27#include "Color.hh"
28
29namespace FbTk {
30
31/// helper class for border theme items
32class BorderTheme {
33public:
34 BorderTheme(Theme &theme, const std::string &name, const std::string &altname);
35 virtual ~BorderTheme() { }
36
37 int width() const { return *m_width; }
38 const Color &color() const { return *m_color; }
39
40private:
41 ThemeItem<int> m_width;
42 ThemeItem<Color> m_color;
43};
44
45}; // end namespace FbTk
46
47#endif // FBTK_BORDERTHEME_HH