SWindow::GetWindowBorderSize

Returns the margins used for the window border. This varies based on whether it's maximized or not.

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/SWindow.h

Include

#include "Widgets/SWindow.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Widgets/SWindow.cpp

Syntax

FMargin GetWindowBorderSize
(
    bool bIncTitleBar
) const

Remarks

Returns the margins used for the window border. This varies based on whether it's maximized or not.