adding support for layout coordinates via insets from framecoordinates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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; }
|
||||
|
@@ -182,6 +182,7 @@ public:
|
||||
WXWindow MacGetTopLevelWindowRef() const ;
|
||||
wxNonOwnedWindow* MacGetTopLevelWindow() const ;
|
||||
|
||||
virtual long MacGetWXBorderSize() const;
|
||||
virtual long MacGetLeftBorderSize() const ;
|
||||
virtual long MacGetRightBorderSize() const ;
|
||||
virtual long MacGetTopBorderSize() const ;
|
||||
|
Reference in New Issue
Block a user