mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-17 08:53:06 +08:00
Reformat recently added wxOSX border code to follow wx style
Put "{" opening a block on its own line.
No real changes.
This commit is contained in:
+12
-6
@@ -946,7 +946,8 @@ void wxWindowMac::MacInvalidateBorders()
|
||||
wxRect topupdate( tx-outerBorder, ty-outerBorder, tw + 2 * outerBorder, outerBorder );
|
||||
wxRect bottomupdate( tx-outerBorder, ty + th, tw + 2 * outerBorder, outerBorder );
|
||||
|
||||
if (GetParent()) {
|
||||
if (GetParent())
|
||||
{
|
||||
GetParent()->GetPeer()->SetNeedsDisplay(&leftupdate);
|
||||
GetParent()->GetPeer()->SetNeedsDisplay(&rightupdate);
|
||||
GetParent()->GetPeer()->SetNeedsDisplay(&topupdate);
|
||||
@@ -2328,23 +2329,28 @@ wxMacBorderSize wxWindowMac::MacGetBorderSize() const
|
||||
return border;
|
||||
}
|
||||
|
||||
long wxWindowMac::MacGetLeftBorderSize() const {
|
||||
long wxWindowMac::MacGetLeftBorderSize() const
|
||||
{
|
||||
return MacGetBorderSize().left;
|
||||
}
|
||||
|
||||
long wxWindowMac::MacGetRightBorderSize() const {
|
||||
long wxWindowMac::MacGetRightBorderSize() const
|
||||
{
|
||||
return MacGetBorderSize().right;
|
||||
}
|
||||
|
||||
long wxWindowMac::MacGetTopBorderSize() const {
|
||||
long wxWindowMac::MacGetTopBorderSize() const
|
||||
{
|
||||
return MacGetBorderSize().top;
|
||||
}
|
||||
|
||||
long wxWindowMac::MacGetBottomBorderSize() const {
|
||||
long wxWindowMac::MacGetBottomBorderSize() const
|
||||
{
|
||||
return MacGetBorderSize().bottom;
|
||||
}
|
||||
|
||||
void wxWindowMac::MacInvalidateInsetCache() const {
|
||||
void wxWindowMac::MacInvalidateInsetCache() const
|
||||
{
|
||||
if ( GetPeer() )
|
||||
GetPeer()->InvalidateLayoutInset();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user