diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2013-02-06 12:47:11 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2013-02-06 12:47:17 (GMT) |
commit | 34343bb20bdb3dc94fe426f69e5db16315353d57 (patch) | |
tree | cbf01e0b2af4ca14c093ada589f82558ec7d3a66 /src/WinButtonTheme.hh | |
parent | 94fddc09c064555721dc521e3e94ed6f610653b9 (diff) | |
download | fluxbox_pavel-34343bb20bdb3dc94fe426f69e5db16315353d57.zip fluxbox_pavel-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/WinButtonTheme.hh')
-rw-r--r-- | src/WinButtonTheme.hh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/WinButtonTheme.hh b/src/WinButtonTheme.hh index 224fc6c..9e3c5ed 100644 --- a/src/WinButtonTheme.hh +++ b/src/WinButtonTheme.hh | |||
@@ -62,10 +62,18 @@ public: | |||
62 | 62 | ||
63 | const FbTk::PixmapWithMask &menuiconPixmap() const { return *m_menuicon_pm; } | 63 | const FbTk::PixmapWithMask &menuiconPixmap() const { return *m_menuicon_pm; } |
64 | FbTk::PixmapWithMask &menuiconPixmap() { return *m_menuicon_pm; } | 64 | FbTk::PixmapWithMask &menuiconPixmap() { return *m_menuicon_pm; } |
65 | 65 | ||
66 | FbTk::PixmapWithMask &titlePixmap() { return *m_title_pm; } | 66 | FbTk::PixmapWithMask &titlePixmap() { return *m_title_pm; } |
67 | const FbTk::PixmapWithMask &titlePixmap() const { return *m_title_pm; } | 67 | const FbTk::PixmapWithMask &titlePixmap() const { return *m_title_pm; } |
68 | 68 | ||
69 | |||
70 | FbTk::PixmapWithMask &leftHalfPixmap() { return *m_lefthalf_pm; } | ||
71 | const FbTk::PixmapWithMask &leftHalfPixmap() const { return *m_lefthalf_pm; } | ||
72 | |||
73 | FbTk::PixmapWithMask &rightHalfPixmap() { return *m_righthalf_pm; } | ||
74 | const FbTk::PixmapWithMask &rightHalfPixmap() const { return *m_righthalf_pm; } | ||
75 | |||
76 | |||
69 | virtual FbTk::Signal<> &reconfigSig() { return FbTk::Theme::reconfigSig(); } | 77 | virtual FbTk::Signal<> &reconfigSig() { return FbTk::Theme::reconfigSig(); } |
70 | 78 | ||
71 | virtual WinButtonTheme &operator *() { return *this; } | 79 | virtual WinButtonTheme &operator *() { return *this; } |
@@ -75,7 +83,7 @@ private: | |||
75 | 83 | ||
76 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_close_pm, m_maximize_pm, | 84 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_close_pm, m_maximize_pm, |
77 | m_iconify_pm, m_shade_pm, m_unshade_pm, m_menuicon_pm, m_title_pm, | 85 | m_iconify_pm, m_shade_pm, m_unshade_pm, m_menuicon_pm, m_title_pm, |
78 | m_stick_pm, m_stuck_pm; | 86 | m_stick_pm, m_stuck_pm, m_lefthalf_pm, m_righthalf_pm; |
79 | 87 | ||
80 | FbTk::ThemeProxy<FbWinFrameTheme> &m_frame_theme; | 88 | FbTk::ThemeProxy<FbWinFrameTheme> &m_frame_theme; |
81 | }; | 89 | }; |