X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42b0d8b96d2b4246ccfbe985639ee40f94225b5b..9869c26285dc51d13607cddaa04f65ce983653a5:/include/wx/dfb/nonownedwnd.h diff --git a/include/wx/dfb/nonownedwnd.h b/include/wx/dfb/nonownedwnd.h index 6c4e731d5c..a4e8dcc7bc 100644 --- a/include/wx/dfb/nonownedwnd.h +++ b/include/wx/dfb/nonownedwnd.h @@ -1,10 +1,9 @@ /////////////////////////////////////////////////////////////////////////////// // Name: wx/dfb/nonownedwnd.h -// Purpose: declares wxNonTopLevelWindow class +// Purpose: declares wxNonOwnedWindow class // Author: Vaclav Slavik // Modified by: // Created: 2006-12-24 -// RCS-ID: $Id$ // Copyright: (c) 2006 TT-Solutions // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -18,6 +17,7 @@ wxDFB_DECLARE_INTERFACE(IDirectFBWindow); class wxDfbQueuedPaintRequests; struct wxDFBWindowEvent; +class wxDFBEventsHandler; //----------------------------------------------------------------------------- // wxNonOwnedWindow @@ -28,7 +28,7 @@ struct wxDFBWindowEvent; // wxFrame is non-owned, because even though it can have a parent, it's // location is independent of it. This class is for internal use only, it's // the base class for wxTopLevelWindow and wxPopupWindow. -class WXDLLIMPEXP_CORE wxNonOwnedWindow : public wxWindow +class WXDLLIMPEXP_CORE wxNonOwnedWindow : public wxNonOwnedWindowBase { public: // construction @@ -59,6 +59,9 @@ public: virtual void Update(); + virtual void Raise(); + virtual void Lower(); + // implementation from now on // -------------------------- @@ -76,7 +79,7 @@ protected: virtual wxIDirectFBSurfacePtr ObtainDfbSurface() const; - // overriden wxWindow methods + // overridden wxWindow methods virtual void DoGetPosition(int *x, int *y) const; virtual void DoGetSize(int *width, int *height) const; virtual void DoMoveWindow(int x, int y, int width, int height); @@ -88,6 +91,10 @@ protected: // wxWindows as in wx void SetDfbFocus(); + // overridden in wxTopLevelWindowDFB, there's no common handling for wxTLW + // and wxPopupWindow to be done here + virtual void HandleFocusEvent(const wxDFBWindowEvent& WXUNUSED(event_)) {} + private: // do queued painting in idle time void HandleQueuedPaintRequests(); @@ -111,8 +118,8 @@ private: // are we currently painting some area of this TLW? bool m_isPainting; - friend class wxEventLoop; // for HandleDFBWindowEvent - friend class wxWindowDFB; // for SetDfbFocus + friend class wxDFBEventsHandler; // for HandleDFBWindowEvent + friend class wxWindowDFB; // for SetDfbFocus }; #endif // _WX_DFB_NONOWNEDWND_H_