summaryrefslogtreecommitdiff
path: root/src/ButtonTool.hh
diff options
context:
space:
mode:
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