aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrameTheme.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-01-05 22:14:10 (GMT)
committerfluxgen <fluxgen>2003-01-05 22:14:10 (GMT)
commit4484d326807c6e1cf4ec6b6beeb099eab979723e (patch)
tree1fd6409e60fab3c9b80b3720445af27f020d8107 /src/FbWinFrameTheme.hh
parente3071d20356ddafea8cf7047bd0556fc4b74ba47 (diff)
downloadfluxbox_pavel-4484d326807c6e1cf4ec6b6beeb099eab979723e.zip
fluxbox_pavel-4484d326807c6e1cf4ec6b6beeb099eab979723e.tar.bz2
frame handling
Diffstat (limited to 'src/FbWinFrameTheme.hh')
-rw-r--r--src/FbWinFrameTheme.hh98
1 files changed, 98 insertions, 0 deletions
diff --git a/src/FbWinFrameTheme.hh b/src/FbWinFrameTheme.hh
new file mode 100644
index 0000000..4c702c4
--- /dev/null
+++ b/src/FbWinFrameTheme.hh
@@ -0,0 +1,98 @@
1// FbWinFrameTheme.hh for Fluxbox Window Manager
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: FbWinFrameTheme.hh,v 1.1 2003/01/05 22:14:10 fluxgen Exp $
23
24#ifndef FBWINFRAMETHEME_HH
25#define FBWINFRAMETHEME_HH
26
27#include "Font.hh"
28#include "Texture.hh"
29#include "Text.hh"
30#include "Color.hh"
31#include "FbTk/Theme.hh"
32
33class FbWinFrameTheme: public FbTk::Theme {
34public:
35 FbWinFrameTheme(int screen_num);
36 ~FbWinFrameTheme();
37
38 /**
39 @name textures
40 */
41 //@{
42 const FbTk::Texture &labelFocusTexture() const { return *m_label_focus; }
43 const FbTk::Texture &labelUnfocusTexture() const { return *m_label_unfocus; }
44
45 const FbTk::Texture &titleFocusTexture() const { return *m_title_focus; }
46 const FbTk::Texture &titleUnfocusTexture() const { return *m_title_unfocus; }
47
48 const FbTk::Texture &handleFocusTexture() const { return *m_handle_focus; }
49 const FbTk::Texture &handleUnfocusTexture() const { return *m_handle_unfocus; }
50
51 const FbTk::Texture &buttonFocusTexture() const { return *m_button_focus; }
52 const FbTk::Texture &buttonUnfocusTexture() const { return *m_button_unfocus; }
53 const FbTk::Texture &buttonPressedTexture() const { return *m_button_pressed; }
54
55 const FbTk::Texture &gripFocusTexture() const { return *m_grip_focus; }
56 const FbTk::Texture &gripUnfocusTexture() const { return *m_grip_unfocus; }
57 //@}
58
59 /**
60 @name colors
61 */
62 //@{
63 const FbTk::Color &labelFocusColor() const { return *m_label_focus_color; }
64 const FbTk::Color &labelUnfocusColor() const { return *m_label_unfocus_color; }
65 const FbTk::Color &frameFocuscolor() const { return *m_frame_focus_color; }
66 const FbTk::Color &frameUnfocuscolor() const { return *m_frame_unfocus_color; }
67 const FbTk::Color &buttonFocuscolor() const { return *m_button_focus_color; }
68 const FbTk::Color &buttonUnfocuscolor() const { return *m_button_unfocus_color; }
69 //@}
70 const FbTk::Font &font() const { return *m_font; }
71 FbTk::Font &font() { return *m_font; }
72
73 FbTk::Justify justify() const { return *m_textjustify; }
74
75 GC labelTextFocusGC() const { return m_label_text_focus_gc; }
76 GC labelTextUnfocusGC() const { return m_label_text_unfocus_gc; }
77
78 void reconfigTheme();
79private:
80 FbTk::ThemeItem<FbTk::Texture> m_label_focus, m_label_unfocus;
81 FbTk::ThemeItem<FbTk::Texture> m_title_focus, m_title_unfocus;
82 FbTk::ThemeItem<FbTk::Texture> m_handle_focus, m_handle_unfocus;
83 FbTk::ThemeItem<FbTk::Texture> m_button_focus, m_button_unfocus, m_button_pressed;
84 FbTk::ThemeItem<FbTk::Texture> m_grip_focus, m_grip_unfocus;
85
86 FbTk::ThemeItem<FbTk::Color> m_label_focus_color, m_label_unfocus_color;
87 FbTk::ThemeItem<FbTk::Color> m_frame_focus_color, m_frame_unfocus_color;
88 FbTk::ThemeItem<FbTk::Color> m_button_focus_color, m_button_unfocus_color;
89
90 FbTk::ThemeItem<FbTk::Font> m_font;
91 FbTk::ThemeItem<FbTk::Justify> m_textjustify;
92
93 GC m_label_text_focus_gc, m_label_text_unfocus_gc;
94};
95
96#endif // FBWINFRAMETHEME_HH
97
98