Laid groundwork for scrolling.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2003-08-12 02:58:04 +00:00
parent 72eef31646
commit a82b814137
2 changed files with 104 additions and 47 deletions

View File

@@ -14,6 +14,8 @@
#include "wx/cocoa/NSView.h"
class wxWindowCocoaHider;
// ========================================================================
// wxWindowCocoa
// ========================================================================
@@ -51,7 +53,12 @@ protected:
// Cocoa specifics
// ------------------------------------------------------------------------
public:
// Returns the content NSView (where children are added, drawing performed)
inline WX_NSView GetNSView() { return m_cocoaNSView; }
// Returns the NSView suitable for use as a subview
WX_NSView GetNSViewForSuperview() const;
// Returns the NSView that may be hidden/is being hidden
WX_NSView GetNSViewForHiding() const;
void CocoaAddChild(wxWindowCocoa *child);
void CocoaRemoveFromParent(void);
protected:
@@ -72,9 +79,10 @@ protected:
virtual bool Cocoa_otherMouseUp(WX_NSEvent theEvent);
void SetNSView(WX_NSView cocoaNSView);
WX_NSView m_cocoaNSView;
WX_NSView m_dummyNSView;
wxWindowCocoaHider *m_cocoaHider;
bool m_isInPaint;
static wxWindow *sm_capturedWindow;
virtual void CocoaReplaceView(WX_NSView oldView, WX_NSView newView);
// ------------------------------------------------------------------------
// Implementation
// ------------------------------------------------------------------------