aboutsummaryrefslogtreecommitdiff
path: root/src/ToolbarTheme.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ToolbarTheme.hh')
-rw-r--r--src/ToolbarTheme.hh59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/ToolbarTheme.hh b/src/ToolbarTheme.hh
new file mode 100644
index 0000000..c33dbe8
--- /dev/null
+++ b/src/ToolbarTheme.hh
@@ -0,0 +1,59 @@
1// ToolbarTheme.hh a theme class for Toolbar
2// Copyright (c) 2002 - 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: ToolbarTheme.hh,v 1.10 2003/10/13 23:47:38 fluxgen Exp $
23
24#ifndef TOOLBARTHEME_HH
25#define TOOLBARTHEME_HH
26
27#include "FbTk/Theme.hh"
28#include "FbTk/Texture.hh"
29#include "FbTk/Color.hh"
30
31#include "BorderTheme.hh"
32
33/// toolbar theme class container
34class ToolbarTheme: public FbTk::Theme {
35public:
36 explicit ToolbarTheme(int screen_num);
37 virtual ~ToolbarTheme();
38
39 void reconfigTheme();
40
41
42 inline const BorderTheme &border() const { return m_border; }
43 inline const FbTk::Texture &toolbar() const { return *m_toolbar; }
44
45 inline int bevelWidth() const { return *m_bevel_width; }
46 inline bool shape() const { return *m_shape; }
47 inline unsigned char alpha() const { return *m_alpha; }
48 inline int height() const { return *m_height; }
49 inline int buttonSize() const { return *m_button_size; }
50private:
51 FbTk::ThemeItem<FbTk::Texture> m_toolbar;
52 BorderTheme m_border;
53
54 FbTk::ThemeItem<int> m_bevel_width;
55 FbTk::ThemeItem<bool> m_shape;
56 FbTk::ThemeItem<int> m_alpha, m_height, m_button_size;
57};
58
59#endif // TOOLBARTHEME_HH