From 84e455807ee62925c98e18d2848954125b128018 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 4 Jun 2008 21:50:06 +0000 Subject: [PATCH] wxDFB: implemented Raise() and Lower() for TLWs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/dfb/nonownedwnd.h | 3 +++ include/wx/dfb/wrapdfb.h | 6 ++++++ src/dfb/nonownedwnd.cpp | 10 ++++++++++ 3 files changed, 19 insertions(+) diff --git a/include/wx/dfb/nonownedwnd.h b/include/wx/dfb/nonownedwnd.h index aa1a7f410e..2363c785e6 100644 --- a/include/wx/dfb/nonownedwnd.h +++ b/include/wx/dfb/nonownedwnd.h @@ -59,6 +59,9 @@ public: virtual void Update(); + virtual void Raise(); + virtual void Lower(); + // implementation from now on // -------------------------- diff --git a/include/wx/dfb/wrapdfb.h b/include/wx/dfb/wrapdfb.h index 30faa3b11e..da753b6063 100644 --- a/include/wx/dfb/wrapdfb.h +++ b/include/wx/dfb/wrapdfb.h @@ -434,6 +434,12 @@ struct wxIDirectFBWindow : public wxDfbWrapper bool SetStackingClass(DFBWindowStackingClass klass) { return Check(m_ptr->SetStackingClass(m_ptr, klass)); } + bool RaiseToTop() + { return Check(m_ptr->RaiseToTop(m_ptr)); } + + bool LowerToBottom() + { return Check(m_ptr->LowerToBottom(m_ptr)); } + wxIDirectFBSurfacePtr GetSurface() { IDirectFBSurface *s; diff --git a/src/dfb/nonownedwnd.cpp b/src/dfb/nonownedwnd.cpp index 33f2777360..d77669378c 100644 --- a/src/dfb/nonownedwnd.cpp +++ b/src/dfb/nonownedwnd.cpp @@ -259,6 +259,16 @@ bool wxNonOwnedWindow::Show(bool show) return true; } +void wxNonOwnedWindow::Raise() +{ + m_dfbwin->RaiseToTop(); +} + +void wxNonOwnedWindow::Lower() +{ + m_dfbwin->LowerToBottom(); +} + // ---------------------------------------------------------------------------- // surfaces and painting // ---------------------------------------------------------------------------- -- 2.45.2