SProgressBar::ComputeDesiredSize

Overwritten from [SWidget](API\Runtime\SlateCore\Widgets\SWidget).

Windows
MacOS
Linux

Override Hierarchy

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Notifications/SProgressBar.h

Include

#include "Widgets/Notifications/SProgressBar.h"

Source

/Engine/Source/Runtime/Slate/Private/Widgets/Notifications/SProgressBar.cpp

Syntax

virtual FVector2D ComputeDesiredSize
(
    float
) const

Remarks

Overwritten from SWidget.

LeafWidgets should compute their DesiredSize based solely on their visual representation. There is no need to take child widgets into account as LeafWidgets have none by definition. For example, the TextBlock widget simply measures the area necessary to display its text with the given font and font size.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss