diff options
author | fluxgen <fluxgen> | 2003-04-16 12:27:49 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-04-16 12:27:49 (GMT) |
commit | 67929002b1285897c212e1b88592d8f47ac468c1 (patch) | |
tree | 8998c0ea85a2c8c0466a8bc67eb567c2ffbb2f95 /src/FbWinFrame.hh | |
parent | 274e0a928efd7dad917e148e69e59fe84b6cefca (diff) | |
download | fluxbox-67929002b1285897c212e1b88592d8f47ac468c1.zip fluxbox-67929002b1285897c212e1b88592d8f47ac468c1.tar.bz2 |
current label button focused
Diffstat (limited to 'src/FbWinFrame.hh')
-rw-r--r-- | src/FbWinFrame.hh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/FbWinFrame.hh b/src/FbWinFrame.hh index e6bd585..590c30a 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.5 2003/04/14 14:38:21 fluxgen Exp $ | 22 | // $Id: FbWinFrame.hh,v 1.6 2003/04/16 12:24:28 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef FBWINFRAME_HH | 24 | #ifndef FBWINFRAME_HH |
25 | #define FBWINFRAME_HH | 25 | #define FBWINFRAME_HH |
@@ -42,7 +42,8 @@ namespace FbTk { | |||
42 | class ImageControl; | 42 | class ImageControl; |
43 | }; | 43 | }; |
44 | 44 | ||
45 | /// holds a window frame with a client window (see: <a href="fluxbox_fbwinframe.png">image</a>) | 45 | /// holds a window frame with a client window |
46 | /// (see: <a href="fluxbox_fbwinframe.png">image</a>) | ||
46 | class FbWinFrame:public FbTk::EventHandler { | 47 | class FbWinFrame:public FbTk::EventHandler { |
47 | public: | 48 | public: |
48 | 49 | ||
@@ -89,7 +90,8 @@ public: | |||
89 | void addLabelButton(FbTk::Button &btn); | 90 | void addLabelButton(FbTk::Button &btn); |
90 | /// removes a specific button from label window | 91 | /// removes a specific button from label window |
91 | void removeLabelButton(FbTk::Button &btn); | 92 | void removeLabelButton(FbTk::Button &btn); |
92 | 93 | /// which button is to be rendered focused | |
94 | void setLabelButtonFocus(FbTk::Button &btn); | ||
93 | /// attach a client window for client area | 95 | /// attach a client window for client area |
94 | void setClientWindow(Window win); | 96 | void setClientWindow(Window win); |
95 | /// same as above but with FbWindow | 97 | /// same as above but with FbWindow |
@@ -172,6 +174,11 @@ private: | |||
172 | /// renders to pixmap or sets color | 174 | /// renders to pixmap or sets color |
173 | void render(const FbTk::Texture &tex, FbTk::Color &col, Pixmap &pm, | 175 | void render(const FbTk::Texture &tex, FbTk::Color &col, Pixmap &pm, |
174 | unsigned int width, unsigned int height); | 176 | unsigned int width, unsigned int height); |
177 | void getUnFocusPixmap(Pixmap &label_pm, Pixmap &title_pm, | ||
178 | FbTk::Color &label_color, FbTk::Color &title_color); | ||
179 | void getCurrentFocusPixmap(Pixmap &label_pm, Pixmap &title_pm, | ||
180 | FbTk::Color &label_color, FbTk::Color &title_color); | ||
181 | void renderLabelButtons(); | ||
175 | //@} | 182 | //@} |
176 | 183 | ||
177 | /// initiate some commont variables | 184 | /// initiate some commont variables |
@@ -197,6 +204,7 @@ private: | |||
197 | ButtonList m_buttons_left, ///< buttons to the left | 204 | ButtonList m_buttons_left, ///< buttons to the left |
198 | m_buttons_right; ///< buttons to the right | 205 | m_buttons_right; ///< buttons to the right |
199 | ButtonList m_labelbuttons; ///< holds buttons inside label window | 206 | ButtonList m_labelbuttons; ///< holds buttons inside label window |
207 | FbTk::Button *m_current_label; ///< which button is focused at the moment | ||
200 | std::string m_titletext; ///< text to be displayed int m_label | 208 | std::string m_titletext; ///< text to be displayed int m_label |
201 | int m_bevel; ///< bevel between titlebar items and titlebar | 209 | int m_bevel; ///< bevel between titlebar items and titlebar |
202 | bool m_use_titlebar; ///< if we should use titlebar | 210 | bool m_use_titlebar; ///< if we should use titlebar |