aboutsummaryrefslogtreecommitdiff
path: root/src/ButtonTool.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-10-13 23:38:17 (GMT)
committerfluxgen <fluxgen>2003-10-13 23:38:17 (GMT)
commitec1049e89458f67c040bff905e1df862ae1587d7 (patch)
tree10ee6485ed5a12acde1b9e13000569e757a2a9ad /src/ButtonTool.hh
parent53be8d6f67a70527990ed32efc22e8e7763af3fb (diff)
downloadfluxbox_pavel-ec1049e89458f67c040bff905e1df862ae1587d7.zip
fluxbox_pavel-ec1049e89458f67c040bff905e1df862ae1587d7.tar.bz2
helper tool class for button tools
Diffstat (limited to 'src/ButtonTool.hh')
-rw-r--r--src/ButtonTool.hh49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/ButtonTool.hh b/src/ButtonTool.hh
new file mode 100644
index 0000000..b40c5a7
--- /dev/null
+++ b/src/ButtonTool.hh
@@ -0,0 +1,49 @@
1// ButtonTool.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: ButtonTool.hh,v 1.1 2003/10/13 23:38:17 fluxgen Exp $
23
24#ifndef BUTTONTOOL_HH
25#define BUTTONTOOL_HH
26
27#include "GenericTool.hh"
28#include "FbTk/Observer.hh"
29
30class ButtonTheme;
31
32namespace FbTk {
33class Button;
34class ImageControl;
35};
36
37class ButtonTool: public GenericTool {
38public:
39 ButtonTool(FbTk::Button *button, ToolbarItem::Type type,
40 ButtonTheme &theme, FbTk::ImageControl &img_ctrl);
41 virtual ~ButtonTool();
42
43protected:
44 void renderTheme();
45 Pixmap m_cache_pm, m_cache_pressed_pm;
46 FbTk::ImageControl &m_image_ctrl;
47};
48
49#endif // BUTTONTOOL_HH