include/vcl/window.hxx | 1 + vcl/source/window/window.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-)
New commits: commit 0f53e4237dd7e16783f039b8ffee184513f4c86b Author: Christopher Sherlock <chris.sherloc...@gmail.com> AuthorDate: Tue Feb 18 00:34:28 2025 +1100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Tue Feb 18 09:24:46 2025 +0100 vcl: add comments for Window::GetBorder() Change-Id: I8113aa5c047bd96c6400044a9dfa34e5381fb001 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181788 Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> Tested-by: Jenkins diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 9ea6cd449bb2..f49c33107906 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -781,6 +781,7 @@ public: void SetBorderStyle( WindowBorderStyle nBorderStyle ); WindowBorderStyle GetBorderStyle() const; + /// Get the left, top, right and bottom widths of the window border void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder, sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const; Size CalcWindowSize( const Size& rOutSz ) const; diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 265abdaf0f95..92170e88f385 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -621,10 +621,10 @@ WindowImpl::WindowImpl( vcl::Window& rWindow, WindowType nType ) mpAccessibleInfos = nullptr; maControlForeground = COL_TRANSPARENT; // no foreground set maControlBackground = COL_TRANSPARENT; // no background set - mnLeftBorder = 0; // left border - mnTopBorder = 0; // top border - mnRightBorder = 0; // right border - mnBottomBorder = 0; // bottom border + mnLeftBorder = 0; // width of left border + mnTopBorder = 0; // width of top border + mnRightBorder = 0; // width of right border + mnBottomBorder = 0; // width of bottom border mnWidthRequest = -1; // width request mnHeightRequest = -1; // height request mnOptimalWidthCache = -1; // optimal width cache