SGraphBar::ComputeDesiredSize

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

Unreal Engine C++ API Reference > Developer > ProfileVisualizer > SGraphBar

References

   
Module ProfileVisualizer
Header /Engine/Source/Developer/ProfileVisualizer/Public/SGraphBar.h
Include #include "SGraphBar.h"
Source /Engine/Source/Developer/ProfileVisualizer/Private/SGraphBar.cpp
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.


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library