aboutsummaryrefslogtreecommitdiff
path: root/src/SlitTheme.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-06-20 01:25:26 (GMT)
committerfluxgen <fluxgen>2003-06-20 01:25:26 (GMT)
commit32bf14b3bd2220442696344de463b3447dd007ea (patch)
tree0b3ddf7cf7a1a87d3dac2988114b7f6bfde31225 /src/SlitTheme.hh
parent76f111395952414f6e2e9bd1b416d6e1091ec6cd (diff)
downloadfluxbox-32bf14b3bd2220442696344de463b3447dd007ea.zip
fluxbox-32bf14b3bd2220442696344de463b3447dd007ea.tar.bz2
some refactoring
Diffstat (limited to 'src/SlitTheme.hh')
-rw-r--r--src/SlitTheme.hh47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/SlitTheme.hh b/src/SlitTheme.hh
new file mode 100644
index 0000000..7266734
--- /dev/null
+++ b/src/SlitTheme.hh
@@ -0,0 +1,47 @@
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.1 2003/06/20 01:25:26 fluxgen Exp $
23
24#ifndef SLITTHEME_HH
25#define SLITTHEME_HH
26
27#include "Theme.hh"
28#include "Slit.hh"
29
30class SlitTheme:public FbTk::Theme {
31public:
32 explicit SlitTheme(Slit &slit):FbTk::Theme(slit.screen().screenNumber()),
33 m_slit(slit),
34 m_texture(*this, "slit", "Slit") {
35 // default texture type
36 m_texture->setType(FbTk::Texture::SOLID);
37 }
38 void reconfigTheme() {
39 m_slit.reconfigure();
40 }
41 const FbTk::Texture &texture() const { return *m_texture; }
42private:
43 Slit &m_slit;
44 FbTk::ThemeItem<FbTk::Texture> m_texture;
45};
46
47#endif // SLITTHEME_HH