X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02e8b2f9fbdfcd25080c42082d637da257c20094..16c1f7f345e1850f590cfbf67c3b00fbb6d2e62e:/include/wx/motif/window.h diff --git a/include/wx/motif/window.h b/include/wx/motif/window.h index f85c06aef7..031695ff67 100644 --- a/include/wx/motif/window.h +++ b/include/wx/motif/window.h @@ -85,8 +85,8 @@ class WXDLLEXPORT wxWindow: public wxEvtHandler { DECLARE_ABSTRACT_CLASS(wxWindow) - friend class wxDC; - friend class wxPaintDC; + friend class WXDLLEXPORT wxDC; + friend class WXDLLEXPORT wxWindowDC; public: wxWindow(); @@ -480,6 +480,11 @@ public: virtual WXWindow GetXWindow() const; virtual WXDisplay *GetXDisplay() const; + virtual WXPixmap GetBackingPixmap() const { return m_backingPixmap; } + inline int GetPixmapWidth() const { return m_pixmapWidth; } + inline int GetPixmapHeight() const { return m_pixmapHeight; } + virtual WXRegion GetPaintRegion() const { return m_paintRegion; } + // Change properties virtual void ChangeColour(WXWidget widget); virtual void ChangeFont(WXWidget widget); @@ -546,6 +551,8 @@ public: long m_lastTS; // last timestamp int m_lastButton; // last pressed button wxList m_updateRects; // List of wxRectangles representing damaged region + bool m_isShown; + WXRegion m_paintRegion; // Clip region generated by expose event protected: WXWidget m_mainWidget; WXWidget m_hScrollBar; @@ -554,7 +561,6 @@ protected: WXWidget m_scrolledWindow; WXWidget m_drawingArea; bool m_winCaptured; - bool m_isShown; bool m_hScroll; bool m_vScroll; bool m_hScrollingEnabled;