From e2f865d857892feed9f63a8f49da90ac5c0d6430 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 23 Feb 2005 15:39:15 +0000 Subject: [PATCH] moving all border invalidations into one area, also opening peer access for all git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mac/carbon/window.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/wx/mac/carbon/window.h b/include/wx/mac/carbon/window.h index 0890ca5cb5..97d3c3cfd7 100644 --- a/include/wx/mac/carbon/window.h +++ b/include/wx/mac/carbon/window.h @@ -171,6 +171,9 @@ public: // this should not be overriden in classes above wxWindowMac because it is called from its destructor via DeleteChildren virtual void RemoveChild( wxWindowBase *child ); virtual void MacPaintBorders( int left , int top ) ; + // invalidates the borders and focus area around the control + // must not be virtual as it will be called during destruction + void MacInvalidateBorders() ; WXWindow MacGetTopLevelWindowRef() const ; wxTopLevelWindowMac* MacGetTopLevelWindow() const ; @@ -180,7 +183,7 @@ public: virtual long MacGetBottomBorderSize() const ; static long MacRemoveBordersFromStyle( long style ) ; - + virtual void MacSuperChangedPosition() ; // the absolute coortinates of this window's root have changed virtual void MacTopLevelWindowChangedPosition() ; @@ -243,6 +246,9 @@ public: // flash the current invalid area, useful for debugging in OSX double buffered situation void MacFlashInvalidAreas() ; + + // the 'true' OS level control for this wxWindow + wxMacControl* GetPeer() const { return m_peer ; } #if wxMAC_USE_CORE_GRAPHICS void * MacGetCGContextRef() { return m_cgContextRef ; } void MacSetCGContextRef(void * cg) { m_cgContextRef = cg ; } -- 2.45.2