aboutsummaryrefslogtreecommitdiff
path: root/src/WinButton.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2013-02-06 12:47:11 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2013-02-06 12:47:17 (GMT)
commit34343bb20bdb3dc94fe426f69e5db16315353d57 (patch)
treecbf01e0b2af4ca14c093ada589f82558ec7d3a66 /src/WinButton.hh
parent94fddc09c064555721dc521e3e94ed6f610653b9 (diff)
downloadfluxbox-34343bb20bdb3dc94fe426f69e5db16315353d57.zip
fluxbox-34343bb20bdb3dc94fe426f69e5db16315353d57.tar.bz2
Feature #3602124: 'LHalf' and 'RHalf' buttons to the titlebar
First draft of feature request of #3602124: Having 2 buttons in the titlebar which allow quick positioning of a Window into the left or right half of the current monitor.
Diffstat (limited to 'src/WinButton.hh')
-rw-r--r--src/WinButton.hh14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/WinButton.hh b/src/WinButton.hh
index 3912a1a..f64342e 100644
--- a/src/WinButton.hh
+++ b/src/WinButton.hh
@@ -38,7 +38,17 @@ template <class T> class ThemeProxy;
38class WinButton:public FbTk::Button, public FbTk::SignalTracker { 38class WinButton:public FbTk::Button, public FbTk::SignalTracker {
39public: 39public:
40 /// draw type for the button 40 /// draw type for the button
41 enum Type {MAXIMIZE, MINIMIZE, SHADE, STICK, CLOSE, MENUICON}; 41 enum Type {
42 MAXIMIZE,
43 MINIMIZE,
44 SHADE,
45 STICK,
46 CLOSE,
47 MENUICON,
48 LEFT_HALF,
49 RIGHT_HALF
50 };
51
42 WinButton(FluxboxWindow &listen_to, 52 WinButton(FluxboxWindow &listen_to,
43 FbTk::ThemeProxy<WinButtonTheme> &theme, 53 FbTk::ThemeProxy<WinButtonTheme> &theme,
44 FbTk::ThemeProxy<WinButtonTheme> &pressed, 54 FbTk::ThemeProxy<WinButtonTheme> &pressed,
@@ -66,7 +76,7 @@ private:
66 76
67 FbTk::FbPixmap m_icon_pixmap; 77 FbTk::FbPixmap m_icon_pixmap;
68 FbTk::FbPixmap m_icon_mask; 78 FbTk::FbPixmap m_icon_mask;
69 79
70 bool overrode_bg, overrode_pressed; 80 bool overrode_bg, overrode_pressed;
71}; 81};
72 82