aboutsummaryrefslogtreecommitdiff
path: root/src/WinButton.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-04-28 22:39:12 (GMT)
committerfluxgen <fluxgen>2003-04-28 22:39:12 (GMT)
commita61595347703bc21f8edefa7ca9c9d0453fef8f8 (patch)
tree2c2c70e86c06106107c34907721b0fdeb015f190 /src/WinButton.hh
parent64469e79828b38689a3d973fe2348b61b3efe423 (diff)
downloadfluxbox_pavel-a61595347703bc21f8edefa7ca9c9d0453fef8f8.zip
fluxbox_pavel-a61595347703bc21f8edefa7ca9c9d0453fef8f8.tar.bz2
added WinButtonTheme
Diffstat (limited to 'src/WinButton.hh')
-rw-r--r--src/WinButton.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/WinButton.hh b/src/WinButton.hh
index 207ecb9..0cbc4c1 100644
--- a/src/WinButton.hh
+++ b/src/WinButton.hh
@@ -19,12 +19,13 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22/// $Id: WinButton.hh,v 1.3 2003/04/25 17:29:58 fluxgen Exp $ 22/// $Id: WinButton.hh,v 1.4 2003/04/28 22:39:12 fluxgen Exp $
23 23
24#include "Button.hh" 24#include "Button.hh"
25#include "Observer.hh" 25#include "Observer.hh"
26 26
27class FluxboxWindow; 27class FluxboxWindow;
28class WinButtonTheme;
28 29
29/// draws and handles basic window button graphic 30/// draws and handles basic window button graphic
30class WinButton:public FbTk::Button, public FbTk::Observer { 31class WinButton:public FbTk::Button, public FbTk::Observer {
@@ -32,6 +33,7 @@ public:
32 /// draw type for the button 33 /// draw type for the button
33 enum Type {MAXIMIZE, MINIMIZE, SHADE, STICK, CLOSE}; 34 enum Type {MAXIMIZE, MINIMIZE, SHADE, STICK, CLOSE};
34 WinButton(const FluxboxWindow &listen_to, 35 WinButton(const FluxboxWindow &listen_to,
36 WinButtonTheme &theme,
35 Type buttontype, const FbTk::FbWindow &parent, int x, int y, 37 Type buttontype, const FbTk::FbWindow &parent, int x, int y,
36 unsigned int width, unsigned int height); 38 unsigned int width, unsigned int height);
37 /// override for drawing 39 /// override for drawing
@@ -44,4 +46,6 @@ private:
44 void drawType(); 46 void drawType();
45 Type m_type; ///< the button type 47 Type m_type; ///< the button type
46 const FluxboxWindow &m_listen_to; 48 const FluxboxWindow &m_listen_to;
49 WinButtonTheme &m_theme;
50
47}; 51};