SWindow::ComputeDesiredSize

The window's desired size takes into account the ratio between the slate units and the pixel size

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

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

virtual FVector2D ComputeDesiredSize
(
    float
) const

Remarks

The window's desired size takes into account the ratio between the slate units and the pixel size