summaryrefslogtreecommitdiff
path: root/src/FbTk/FbWindow.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/FbWindow.hh')
-rw-r--r--src/FbTk/FbWindow.hh13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh
index edeffe1..e5298b0 100644
--- a/src/FbTk/FbWindow.hh
+++ b/src/FbTk/FbWindow.hh
@@ -57,7 +57,9 @@ public:
57 bool overrride_redirect = false, 57 bool overrride_redirect = false,
58 bool save_unders = false, 58 bool save_unders = false,
59 unsigned int depth = CopyFromParent, 59 unsigned int depth = CopyFromParent,
60 int class_type = InputOutput); 60 int class_type = InputOutput,
61 Visual *visual = CopyFromParent,
62 Colormap cmap = CopyFromParent);
61 63
62 FbWindow(const FbWindow &parent, 64 FbWindow(const FbWindow &parent,
63 int x, int y, 65 int x, int y,
@@ -202,10 +204,14 @@ public:
202 /// updates x,y, width, height and screen num from X window 204 /// updates x,y, width, height and screen num from X window
203 bool updateGeometry(); 205 bool updateGeometry();
204 206
207 Visual *visual();
208
205protected: 209protected:
206 /// creates a window with x window client (m_window = client) 210 /// creates a window with x window client (m_window = client)
207 explicit FbWindow(Window client); 211 explicit FbWindow(Window client);
208 212
213 void setDepth(unsigned int depth) { m_depth = depth; }
214
209private: 215private:
210 /// sets new X window and destroys old 216 /// sets new X window and destroys old
211 void setNew(Window win); 217 void setNew(Window win);
@@ -215,7 +221,9 @@ private:
215 bool override_redirect, 221 bool override_redirect,
216 bool save_unders, 222 bool save_unders,
217 unsigned int depth, 223 unsigned int depth,
218 int class_type); 224 int class_type,
225 Visual *visual,
226 Colormap cmap);
219 227
220 const FbWindow *m_parent; ///< parent FbWindow 228 const FbWindow *m_parent; ///< parent FbWindow
221 int m_screen_num; ///< screen num on which this window exist 229 int m_screen_num; ///< screen num on which this window exist
@@ -249,7 +257,6 @@ public:
249 virtual ~FbWindowRenderer() { } 257 virtual ~FbWindowRenderer() { }
250}; 258};
251 259
252
253} // end namespace FbTk 260} // end namespace FbTk
254 261
255#endif // FBTK_FBWINDOW_HH 262#endif // FBTK_FBWINDOW_HH