SWindow::ComputeWindowSizeForContent

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

static FVector2D ComputeWindowSizeForContent
(
    FVector2D ContentSize
)

Parameters

Parameter

Description

ContentSize

The size of content that we want to accommodate @return The size of the window necessary to accommodate the given content