SGraphBar::OnPaint

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 int32 OnPaint
(
    const [FPaintArgs](API\Runtime\SlateCore\Types\FPaintArgs) & Args,
    const [FGeometry](API\Runtime\SlateCore\Layout\FGeometry) & AllottedGeometry,
    const [FSlateRect](API\Runtime\SlateCore\Layout\FSlateRect) & MyCullingRect,
    [FSlateWindowElementList](API\Runtime\SlateCore\Rendering\FSlateWindowElementList) & OutDrawElements,
    int32 LayerId,
    const [FWidgetStyle](API\Runtime\SlateCore\Styling\FWidgetStyle) & InWidgetStyle,
    bool bParentEnabled
) const

Remarks

Overwritten from SWidget.

LeafWidgets provide a visual representation of themselves. They do so by adding DrawElement(s) to the OutDrawElements. DrawElements should have their positions set to absolute coordinates in Window space; for this purpose the Slate system provides the AllottedGeometry parameter. AllottedGeometry describes the space allocated for the visualization of this widget.

Whenever possible, LeafWidgets should avoid dealing with layout properties. See TextBlock for an example.


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library