]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/osx/core/private.h
build fix, should have been part of r66615
[wxWidgets.git] / include / wx / osx / core / private.h
index ba2d659c20f09eb97a247bc7231474623c086511..5eec53c0c6d3fe4cff2653383ba664062ffc8280 100644 (file)
@@ -151,7 +151,7 @@ public :
                        wxMenu *pSubMenu );
     
     // handle OS specific menu items if they weren't handled during normal processing
-    virtual bool DoDefault() {} ;
+    virtual bool DoDefault() { return false; }
 protected :
     wxMenuItem* m_peer;
 
@@ -234,6 +234,13 @@ public :
     virtual void        GetPosition( int &x, int &y ) const = 0;
     virtual void        GetSize( int &width, int &height ) const = 0;
     virtual void        SetControlSize( wxWindowVariant variant ) = 0;
+    
+    // the native coordinates may have an 'aura' for shadows etc, if this is the case the layout
+    // inset indicates on which insets the real control is drawn
+    virtual void        GetLayoutInset(int &left , int &top , int &right, int &bottom) const
+    {
+        left = top = right = bottom = 0;
+    }
 
     // native view coordinates are topleft to bottom right (flipped regarding CoreGraphics origin)
     virtual bool        IsFlipped() const { return true; }