diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-28 04:39:31 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-28 04:39:31 (GMT) |
commit | 00ceefd8846bda6f4dc43a5a990086545ea28727 (patch) | |
tree | a87c37dbb853e3604b52198e6a64e8d45711fb27 /src/FbTk/BorderTheme.cc | |
parent | b5c354b994bc06667abe35e2d528c0f025703c4e (diff) | |
download | fluxbox_pavel-00ceefd8846bda6f4dc43a5a990086545ea28727.zip fluxbox_pavel-00ceefd8846bda6f4dc43a5a990086545ea28727.tar.bz2 |
moved BorderTheme and TextTheme to FbTk
Diffstat (limited to 'src/FbTk/BorderTheme.cc')
-rw-r--r-- | src/FbTk/BorderTheme.cc | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/FbTk/BorderTheme.cc b/src/FbTk/BorderTheme.cc new file mode 100644 index 0000000..1223954 --- /dev/null +++ b/src/FbTk/BorderTheme.cc | |||
@@ -0,0 +1,36 @@ | |||
1 | // BorderTheme.cc | ||
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 | #include "BorderTheme.hh" | ||
24 | |||
25 | namespace FbTk { | ||
26 | |||
27 | BorderTheme::BorderTheme(Theme &theme, const std::string &name, | ||
28 | const std::string &altname): | ||
29 | m_width(theme, name + ".borderWidth", altname + ".BorderWidth"), | ||
30 | m_color(theme, name + ".borderColor", altname + ".BorderColor") { | ||
31 | // set default values | ||
32 | *m_width = 0; | ||
33 | m_color->setFromString("black", theme.screenNum()); | ||
34 | } | ||
35 | |||
36 | }; // end namespace FbTk | ||