SBorder::OnPaint

The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children.

Windows
MacOS
Linux

Override Hierarchy

SWidget::OnPaint()

SCompoundWidget::OnPaint()

SBorder::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

SButton::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

STableRow::OnPaint()

SSceneOutlinerTreeRow::OnPaint()

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Layout/SBorder.h

Include

#include "Widgets/Layout/SBorder.h"

Source

/Engine/Source/Runtime/Slate/Private/Widgets/Layout/SBorder.cpp

Syntax

virtual int32 OnPaint
(
    const FPaintArgs & Args,
    const FGeometry & AllottedGeometry,
    const FSlateRect & MyCullingRect,
    FSlateWindowElementList & OutDrawElements,
    int32 LayerId,
    const FWidgetStyle & InWidgetStyle,
    bool bParentEnabled
) const

Remarks

The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. Called by the non-virtual OnPaint to enforce pre/post conditions during OnPaint.

Returns

The maximum layer ID attained by this widget or any of its children.

Parameters

Parameter

Description

Args

All the arguments necessary to paint this widget (

AllottedGeometry

The FGeometry that describes an area in which the widget should appear.

MyCullingRect

The rectangle representing the bounds currently being used to completely cull widgets. Unless IsChildWidgetCulled(...) returns true, you should paint the widget.

OutDrawElements

A list of FDrawElements to populate with the output.

LayerId

The Layer onto which this widget should be rendered.

InColorAndOpacity

Color and Opacity to be applied to all the descendants of the widget being painted

bParentEnabled

True if the parent of this widget is enabled.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback