summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbTk/FbWindow.hh16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh
index 88a00d8..189e6db 100644
--- a/src/FbTk/FbWindow.hh
+++ b/src/FbTk/FbWindow.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: FbWindow.hh,v 1.19 2003/07/02 05:17:30 fluxgen Exp $ 22// $Id: FbWindow.hh,v 1.20 2003/08/04 12:43:21 fluxgen Exp $
23 23
24#ifndef FBTK_FBWINDOW_HH 24#ifndef FBTK_FBWINDOW_HH
25#define FBTK_FBWINDOW_HH 25#define FBTK_FBWINDOW_HH
@@ -27,10 +27,13 @@
27#include "FbDrawable.hh" 27#include "FbDrawable.hh"
28 28
29#include <X11/Xlib.h> 29#include <X11/Xlib.h>
30#include <memory>
31
30 32
31namespace FbTk { 33namespace FbTk {
32 34
33class Color; 35class Color;
36class Transparent;
34 37
35/// Wrapper for X window 38/// Wrapper for X window
36/** 39/**
@@ -77,8 +80,13 @@ public:
77 virtual void clearArea(int x, int y, 80 virtual void clearArea(int x, int y,
78 unsigned int width, unsigned int height, 81 unsigned int width, unsigned int height,
79 bool exposures = false); 82 bool exposures = false);
83 void updateTransparent(int x = -1, int y = -1, unsigned int width = 0, unsigned int height = 0);
84
85 void setAlpha(unsigned char alpha);
86
87 FbWindow &operator = (const FbWindow &win);
80 /// assign a new X window to this 88 /// assign a new X window to this
81 virtual FbWindow &operator = (Window win); 89 virtual FbWindow &operator = (Window win);
82 virtual void hide(); 90 virtual void hide();
83 virtual void show(); 91 virtual void show();
84 virtual void showSubwindows(); 92 virtual void showSubwindows();
@@ -147,12 +155,13 @@ private:
147 static Display *s_display; ///< display connection 155 static Display *s_display; ///< display connection
148 const FbWindow *m_parent; ///< parent FbWindow 156 const FbWindow *m_parent; ///< parent FbWindow
149 int m_screen_num; ///< screen num on which this window exist 157 int m_screen_num; ///< screen num on which this window exist
150 Window m_window; ///< the X window 158 mutable Window m_window; ///< the X window
151 int m_x, m_y; ///< position of window 159 int m_x, m_y; ///< position of window
152 unsigned int m_width, m_height; ///< size of window 160 unsigned int m_width, m_height; ///< size of window
153 unsigned int m_border_width; ///< border size 161 unsigned int m_border_width; ///< border size
154 int m_depth; ///< bit depth 162 int m_depth; ///< bit depth
155 bool m_destroy; ///< wheter the x window was created before 163 bool m_destroy; ///< wheter the x window was created before
164 std::auto_ptr<FbTk::Transparent> m_transparent;
156}; 165};
157 166
158bool operator == (Window win, const FbWindow &fbwin); 167bool operator == (Window win, const FbWindow &fbwin);
@@ -175,6 +184,7 @@ private:
175 unsigned char *m_state; 184 unsigned char *m_state;
176 int m_num; 185 int m_num;
177 int m_mode; 186 int m_mode;
187
178}; 188};
179 189
180}; // end namespace FbTk 190}; // end namespace FbTk