]> git.saurik.com Git - wxWidgets.git/commitdiff
wxDFB: implemented Raise() and Lower() for TLWs
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 4 Jun 2008 21:50:06 +0000 (21:50 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 4 Jun 2008 21:50:06 +0000 (21:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dfb/nonownedwnd.h
include/wx/dfb/wrapdfb.h
src/dfb/nonownedwnd.cpp

index aa1a7f410e17aa1ccba120268514b0ce8586ff23..2363c785e615092e56850048e3f2f425f53d5867 100644 (file)
@@ -59,6 +59,9 @@ public:
 
     virtual void Update();
 
+    virtual void Raise();
+    virtual void Lower();
+
     // implementation from now on
     // --------------------------
 
index 30faa3b11efbbf0442957fbe38cc531f4c616ed9..da753b6063f23000ba2dd587ade1b1f51560db00 100644 (file)
@@ -434,6 +434,12 @@ struct wxIDirectFBWindow : public wxDfbWrapper<IDirectFBWindow>
     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;
index 33f2777360767f2b8b6e3677055995b2a0c401c2..d77669378c8c0aa32c7aae08c04c767d394d7600 100644 (file)
@@ -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
 // ----------------------------------------------------------------------------