content clipping becomes a runtime attribute

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2005-03-31 05:12:46 +00:00
parent 4002a6cc0e
commit 8adc196b0e
6 changed files with 16 additions and 8 deletions

View File

@@ -209,7 +209,8 @@ public:
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 ; }
bool MacClipChildren() const { return m_clipChildren ; }
void MacSetClipChildren( bool clip ) { m_clipChildren = clip ; }
// returns true if the grandchildren have to be clipped to the children's content area (eg
// splitter window)
virtual bool MacClipGrandChildren() const { return false ; }
@@ -274,6 +275,10 @@ protected:
wxScrollBar* m_hScrollBar ;
wxScrollBar* m_vScrollBar ;
wxString m_label ;
// returns true if we do a sharp clip at the content area of this window
// must be dynamic as eg a panel normally is not clipping precisely, but if
// it becomes the target window of a scrolled window it has to...
bool m_clipChildren ;
void MacCreateScrollBars( long style ) ;
void MacRepositionScrollBars() ;