]> git.saurik.com Git - wxWidgets.git/commitdiff
Added virtual GetNonClientNSView()
authorDavid Elliott <dfe@tgwbd.org>
Mon, 8 Sep 2003 15:37:58 +0000 (15:37 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Mon, 8 Sep 2003 15:37:58 +0000 (15:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cocoa/frame.h
include/wx/cocoa/window.h
src/cocoa/frame.mm

index 91b212a2576ff18009ef100b43524356bbb27025..0cea7dbac31e0fda19dfcb2e70c95b745f9cc542 100644 (file)
@@ -52,6 +52,8 @@ protected:
 // ------------------------------------------------------------------------
 public:
     virtual wxMenuBar* GetAppMenuBar() { return GetMenuBar(); }
+    // Returns the NSView for non-client drawing
+    virtual WX_NSView GetNonClientNSView();
 protected:
     virtual void CocoaSetWxWindowSize(int width, int height);
 
index cbfc40a11bf9b69577b4012b30b7f8a5ae86bae5..30e1a12dda57ac860cc060774a30861f1a387d72 100644 (file)
@@ -65,6 +65,9 @@ public:
     WX_NSView GetNSViewForSuperview() const;
     // Returns the NSView that may be hidden/is being hidden
     WX_NSView GetNSViewForHiding() const;
+    // Returns the NSView for non-client drawing
+    virtual WX_NSView GetNonClientNSView() { return GetNSViewForSuperview(); }
+    // Add/remove children
     void CocoaAddChild(wxWindowCocoa *child);
     void CocoaRemoveFromParent(void);
 protected:
index 9d3ff26566940b3c68a5c17b3b3ee4aa4d50f510..f74bbf4a0a25279e26a0724d796c4a2e5af28762 100644 (file)
@@ -97,6 +97,13 @@ void wxFrame::CocoaSetWxWindowSize(int width, int height)
     wxTopLevelWindow::CocoaSetWxWindowSize(width,height);
 }
 
+WX_NSView wxFrame::GetNonClientNSView()
+{
+    if(m_frameNSView)
+        return m_frameNSView;
+    return GetNSViewForSuperview();
+}
+
 void wxFrame::CocoaReplaceView(WX_NSView oldView, WX_NSView newView)
 {
     // If we have the additional toolbar/statbar view, then the