aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbWinFrame.hh')
-rw-r--r--src/FbWinFrame.hh24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/FbWinFrame.hh b/src/FbWinFrame.hh
index 5832924..854701b 100644
--- a/src/FbWinFrame.hh
+++ b/src/FbWinFrame.hh
@@ -19,17 +19,18 @@
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.14 2003/08/24 15:18:09 fluxgen Exp $ 22// $Id: FbWinFrame.hh,v 1.15 2003/09/10 09:53:21 fluxgen Exp $
23 23
24#ifndef FBWINFRAME_HH 24#ifndef FBWINFRAME_HH
25#define FBWINFRAME_HH 25#define FBWINFRAME_HH
26 26
27#include "FbWindow.hh" 27#include "FbTk/FbWindow.hh"
28#include "EventHandler.hh" 28#include "FbTk/EventHandler.hh"
29#include "RefCount.hh" 29#include "FbTk/RefCount.hh"
30#include "Observer.hh" 30#include "FbTk/Observer.hh"
31#include "Color.hh" 31#include "FbTk/Color.hh"
32#include "FbPixmap.hh" 32#include "FbTk/FbPixmap.hh"
33#include "FbTk/Timer.hh"
33 34
34#include <vector> 35#include <vector>
35#include <list> 36#include <list>
@@ -112,7 +113,7 @@ public:
112 void setEventHandler(FbTk::EventHandler &evh); 113 void setEventHandler(FbTk::EventHandler &evh);
113 /// remove any handler for the windows 114 /// remove any handler for the windows
114 void removeEventHandler(); 115 void removeEventHandler();
115 116
116 void hideTitlebar(); 117 void hideTitlebar();
117 void showTitlebar(); 118 void showTitlebar();
118 void hideHandle(); 119 void hideHandle();
@@ -135,6 +136,9 @@ public:
135 136
136 void reconfigure(); 137 void reconfigure();
137 void setUseShape(bool value); 138 void setUseShape(bool value);
139
140 void setUpdateDelayTime(long t) { m_update_timer.setTimeout(t); }
141
138 /** 142 /**
139 @name accessors 143 @name accessors
140 */ 144 */
@@ -188,7 +192,7 @@ private:
188 /// renders to pixmap or sets color 192 /// renders to pixmap or sets color
189 void render(const FbTk::Texture &tex, FbTk::Color &col, Pixmap &pm, 193 void render(const FbTk::Texture &tex, FbTk::Color &col, Pixmap &pm,
190 unsigned int width, unsigned int height); 194 unsigned int width, unsigned int height);
191 void getUnFocusPixmap(Pixmap &label_pm, Pixmap &title_pm, 195 void getUnfocusPixmap(Pixmap &label_pm, Pixmap &title_pm,
192 FbTk::Color &label_color, FbTk::Color &title_color); 196 FbTk::Color &label_color, FbTk::Color &title_color);
193 void getCurrentFocusPixmap(Pixmap &label_pm, Pixmap &title_pm, 197 void getCurrentFocusPixmap(Pixmap &label_pm, Pixmap &title_pm,
194 FbTk::Color &label_color, FbTk::Color &title_color); 198 FbTk::Color &label_color, FbTk::Color &title_color);
@@ -199,6 +203,7 @@ private:
199 void init(); 203 void init();
200 /// initiate inserted buttons for current theme 204 /// initiate inserted buttons for current theme
201 void setupButton(FbTk::Button &btn); 205 void setupButton(FbTk::Button &btn);
206 void updateTransparent();
202 207
203 FbWinFrameTheme &m_theme; ///< theme to be used 208 FbWinFrameTheme &m_theme; ///< theme to be used
204 FbTk::ImageControl &m_imagectrl; ///< Image control for rendering 209 FbTk::ImageControl &m_imagectrl; ///< Image control for rendering
@@ -282,6 +287,7 @@ private:
282 ThemeListener m_themelistener; 287 ThemeListener m_themelistener;
283 std::auto_ptr<Shape> m_shape; 288 std::auto_ptr<Shape> m_shape;
284 bool m_disable_shape; 289 bool m_disable_shape;
290 FbTk::Timer m_update_timer;
285}; 291};
286 292
287#endif // FBWINFRAME_HH 293#endif // FBWINFRAME_HH