diff options
author | fluxgen <fluxgen> | 2003-08-13 16:36:37 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-08-13 16:36:37 (GMT) |
commit | 884928264a5cc52c6f255478cdfa4b7d8354f0c6 (patch) | |
tree | 7309d823dc9ec9e118e0e8e309f109c2ed34b15e /src/FbWinFrame.hh | |
parent | 9ffcd43e703f0e1d669087999eac6c834da8da8a (diff) | |
download | fluxbox-884928264a5cc52c6f255478cdfa4b7d8354f0c6.zip fluxbox-884928264a5cc52c6f255478cdfa4b7d8354f0c6.tar.bz2 |
fixed rendering problem on focused textbutton
Diffstat (limited to 'src/FbWinFrame.hh')
-rw-r--r-- | src/FbWinFrame.hh | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/FbWinFrame.hh b/src/FbWinFrame.hh index 1b7b197..ce3fa2a 100644 --- a/src/FbWinFrame.hh +++ b/src/FbWinFrame.hh | |||
@@ -19,7 +19,7 @@ | |||
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: FbWinFrame.hh,v 1.11 2003/07/28 12:11:57 fluxgen Exp $ | 22 | // $Id: FbWinFrame.hh,v 1.12 2003/08/13 16:36:37 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef FBWINFRAME_HH | 24 | #ifndef FBWINFRAME_HH |
25 | #define FBWINFRAME_HH | 25 | #define FBWINFRAME_HH |
@@ -38,6 +38,8 @@ | |||
38 | 38 | ||
39 | class Shape; | 39 | class Shape; |
40 | class FbWinFrameTheme; | 40 | class FbWinFrameTheme; |
41 | class TextButton; | ||
42 | |||
41 | namespace FbTk { | 43 | namespace FbTk { |
42 | class ImageControl; | 44 | class ImageControl; |
43 | class Command; | 45 | class Command; |
@@ -91,15 +93,15 @@ public: | |||
91 | /// remove all buttons from titlebar | 93 | /// remove all buttons from titlebar |
92 | void removeAllButtons(); | 94 | void removeAllButtons(); |
93 | /// adds a button to label window | 95 | /// adds a button to label window |
94 | void addLabelButton(FbTk::Button &btn); | 96 | void addLabelButton(TextButton &btn); |
95 | /// removes a specific button from label window | 97 | /// removes a specific button from label window |
96 | void removeLabelButton(FbTk::Button &btn); | 98 | void removeLabelButton(TextButton &btn); |
97 | /// move label button to the left | 99 | /// move label button to the left |
98 | void moveLabelButtonLeft(const FbTk::Button &btn); | 100 | void moveLabelButtonLeft(const TextButton &btn); |
99 | /// move label button to the right | 101 | /// move label button to the right |
100 | void moveLabelButtonRight(const FbTk::Button &btn); | 102 | void moveLabelButtonRight(const TextButton &btn); |
101 | /// which button is to be rendered focused | 103 | /// which button is to be rendered focused |
102 | void setLabelButtonFocus(FbTk::Button &btn); | 104 | void setLabelButtonFocus(TextButton &btn); |
103 | /// attach a client window for client area | 105 | /// attach a client window for client area |
104 | void setClientWindow(Window win); | 106 | void setClientWindow(Window win); |
105 | /// same as above but with FbWindow | 107 | /// same as above but with FbWindow |
@@ -180,6 +182,8 @@ private: | |||
180 | void renderTitlebar(); | 182 | void renderTitlebar(); |
181 | void renderHandles(); | 183 | void renderHandles(); |
182 | void renderButtons(); | 184 | void renderButtons(); |
185 | void renderButtonFocus(TextButton &button); | ||
186 | void renderButtonUnfocus(TextButton &button); | ||
183 | void renderLabel(); | 187 | void renderLabel(); |
184 | /// renders to pixmap or sets color | 188 | /// renders to pixmap or sets color |
185 | void render(const FbTk::Texture &tex, FbTk::Color &col, Pixmap &pm, | 189 | void render(const FbTk::Texture &tex, FbTk::Color &col, Pixmap &pm, |
@@ -213,9 +217,9 @@ private: | |||
213 | typedef std::vector<FbTk::Button *> ButtonList; | 217 | typedef std::vector<FbTk::Button *> ButtonList; |
214 | ButtonList m_buttons_left, ///< buttons to the left | 218 | ButtonList m_buttons_left, ///< buttons to the left |
215 | m_buttons_right; ///< buttons to the right | 219 | m_buttons_right; ///< buttons to the right |
216 | typedef std::list<FbTk::Button *> LabelList; | 220 | typedef std::list<TextButton *> LabelList; |
217 | LabelList m_labelbuttons; ///< holds label buttons inside label window | 221 | LabelList m_labelbuttons; ///< holds label buttons inside label window |
218 | FbTk::Button *m_current_label; ///< which client button is focused at the moment | 222 | TextButton *m_current_label; ///< which client button is focused at the moment |
219 | std::string m_titletext; ///< text to be displayed int m_label | 223 | std::string m_titletext; ///< text to be displayed int m_label |
220 | int m_bevel; ///< bevel between titlebar items and titlebar | 224 | int m_bevel; ///< bevel between titlebar items and titlebar |
221 | bool m_use_titlebar; ///< if we should use titlebar | 225 | bool m_use_titlebar; ///< if we should use titlebar |