aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbWinFrame.hh')
-rw-r--r--src/FbWinFrame.hh20
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
39class Shape; 39class Shape;
40class FbWinFrameTheme; 40class FbWinFrameTheme;
41class TextButton;
42
41namespace FbTk { 43namespace FbTk {
42class ImageControl; 44class ImageControl;
43class Command; 45class 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