clipping for wxMac cleaned up

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2004-09-26 14:05:31 +00:00
parent e302e0c167
commit 5340966638
4 changed files with 15 additions and 0 deletions

View File

@ -184,6 +184,10 @@ public:
// Called by layout algorithm to retrieve information about the window.
void OnQueryLayoutInfo(wxQueryLayoutInfoEvent& event);
#ifdef __WXMAC__
virtual bool MacClipChildren() const { return true ; }
#endif
private:
void Init();

View File

@ -71,6 +71,9 @@ public:
virtual void DoSetVirtualSize(int x, int y);
#ifdef __WXMAC__
virtual bool MacClipChildren() const { return true ; }
#endif
protected:
// this is needed for wxEVT_PAINT processing hack described in
// wxScrollHelperEvtHandler::ProcessEvent()

View File

@ -212,6 +212,9 @@ public:
void SetNeedUpdating(bool needUpdating) { m_needUpdating = needUpdating; }
bool GetNeedUpdating() const { return m_needUpdating ; }
#ifdef __WXMAC__
virtual bool MacClipGrandChildren() const { return true ; }
#endif
protected:
// event handlers
#if defined(__WXMSW__) || defined(__WXMAC__)

View File

@ -201,6 +201,11 @@ public:
// returns the visible region of this control in window ie non-client coordinates
wxRegion MacGetVisibleRegion( bool includeOuterStructures = false ) ;
// returns true if children have to clipped to the content area (eg scrolled window)
virtual bool MacClipChildren() const { return false ; }
// returns true if the grandchildren have to be clipped to the children's content area (eg
// splitter window)
virtual bool MacClipGrandChildren() const { return false ; }
bool MacIsWindowScrollbar( const wxScrollBar* sb )
{ return (m_hScrollBar == sb || m_vScrollBar == sb) ; }