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:
@@ -2263,7 +2263,7 @@ void wxWindowMac::MacTopLevelWindowChangedPosition()
|
||||
}
|
||||
}
|
||||
|
||||
long wxWindowMac::MacGetLeftBorderSize() const
|
||||
long wxWindowMac::MacGetWXBorderSize() const
|
||||
{
|
||||
if ( IsTopLevel() )
|
||||
return 0 ;
|
||||
@@ -2297,22 +2297,65 @@ long wxWindowMac::MacGetLeftBorderSize() const
|
||||
return border ;
|
||||
}
|
||||
|
||||
long wxWindowMac::MacGetLeftBorderSize() const
|
||||
{
|
||||
// the wx borders are all symmetric in mac themes
|
||||
long border = MacGetWXBorderSize() ;
|
||||
|
||||
if ( m_peer )
|
||||
{
|
||||
int left, top, right, bottom;
|
||||
m_peer->GetLayoutInset( left, top, right, bottom );
|
||||
border -= left;
|
||||
}
|
||||
|
||||
return border;
|
||||
}
|
||||
|
||||
|
||||
long wxWindowMac::MacGetRightBorderSize() const
|
||||
{
|
||||
// they are all symmetric in mac themes
|
||||
return MacGetLeftBorderSize() ;
|
||||
// the wx borders are all symmetric in mac themes
|
||||
long border = MacGetWXBorderSize() ;
|
||||
|
||||
if ( m_peer )
|
||||
{
|
||||
int left, top, right, bottom;
|
||||
m_peer->GetLayoutInset( left, top, right, bottom );
|
||||
border -= right;
|
||||
}
|
||||
|
||||
return border;
|
||||
}
|
||||
|
||||
long wxWindowMac::MacGetTopBorderSize() const
|
||||
{
|
||||
// they are all symmetric in mac themes
|
||||
return MacGetLeftBorderSize() ;
|
||||
// the wx borders are all symmetric in mac themes
|
||||
long border = MacGetWXBorderSize() ;
|
||||
|
||||
if ( m_peer )
|
||||
{
|
||||
int left, top, right, bottom;
|
||||
m_peer->GetLayoutInset( left, top, right, bottom );
|
||||
border -= top;
|
||||
}
|
||||
|
||||
return border;
|
||||
}
|
||||
|
||||
long wxWindowMac::MacGetBottomBorderSize() const
|
||||
{
|
||||
// they are all symmetric in mac themes
|
||||
return MacGetLeftBorderSize() ;
|
||||
// the wx borders are all symmetric in mac themes
|
||||
long border = MacGetWXBorderSize() ;
|
||||
|
||||
if ( m_peer )
|
||||
{
|
||||
int left, top, right, bottom;
|
||||
m_peer->GetLayoutInset( left, top, right, bottom );
|
||||
border -= bottom;
|
||||
}
|
||||
|
||||
return border;
|
||||
}
|
||||
|
||||
long wxWindowMac::MacRemoveBordersFromStyle( long style )
|
||||
|
Reference in New Issue
Block a user