Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Layout > API/Runtime/Slate/Widgets/Layout/SGridPanel
- SWidget::OnPaint()
- SPanel::OnPaint()
- SGridPanel::OnPaint()
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SGridPanel.h |
| Include | #include "Widgets/Layout/SGridPanel.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Widgets/Layout/SGridPanel.cpp |
virtual int32 OnPaint
&40;
const FPaintArgs & Args,
const FGeometry & AllottedGeometry,
const FSlateRect & MyCullingRect,
FSlateWindowElementList & OutDrawElements,
int32 LayerId,
const FWidgetStyle & InWidgetStyle,
bool bParentEnabled
&41; 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. The maximum layer ID attained by this widget or any of its children.
Parameters
| Name | 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. |