From 091748bd46d27d66966d807c27a49ab172180672 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 15 Aug 2003 13:52:06 +0000 Subject: reparent --- src/FbTk/FbWindow.cc | 7 ++++++- src/FbTk/FbWindow.hh | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc index 5d64728..09c75d1 100644 --- a/src/FbTk/FbWindow.cc +++ b/src/FbTk/FbWindow.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWindow.cc,v 1.23 2003/08/04 12:44:43 fluxgen Exp $ +// $Id: FbWindow.cc,v 1.24 2003/08/15 13:52:06 fluxgen Exp $ #include "FbWindow.hh" @@ -319,6 +319,11 @@ void FbWindow::unsetCursor() { XUndefineCursor(s_display, window()); } +void FbWindow::reparent(const FbWindow &parent, int x, int y) { + XReparentWindow(s_display, window(), parent.window(), x, y); + m_parent = &parent; + updateGeometry(); +} bool FbWindow::property(Atom property, long long_offset, long long_length, diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh index a373e00..d6cfea8 100644 --- a/src/FbTk/FbWindow.hh +++ b/src/FbTk/FbWindow.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWindow.hh,v 1.21 2003/08/13 09:28:44 fluxgen Exp $ +// $Id: FbWindow.hh,v 1.22 2003/08/15 13:52:06 fluxgen Exp $ #ifndef FBTK_FBWINDOW_HH #define FBTK_FBWINDOW_HH @@ -101,6 +101,7 @@ public: void setCursor(Cursor cur); /// uses the parents cursor instead void unsetCursor(); + void reparent(const FbWindow &parent, int x, int y); bool property(Atom property, long long_offset, long long_length, -- cgit v0.11.2