Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Rendering/DrawElements.h |
Include |
#include "Rendering/DrawElements.h" |
Source |
/Engine/Source/Runtime/SlateCore/Private/Rendering/DrawElements.cpp |
static void MakeBox
(
FSlateWindowElementList & ElementList,
uint32 InLayer,
const FPaintGeometry & PaintGeometry,
const FSlateBrush * InBrush,
ESlateDrawEffect InDrawEffects,
const FLinearColor & InTint
)
Creates a box element based on the following diagram. Allows for this element to be resized while maintain the border of the image If there are no margins the resulting box is simply a quad LeftMargin RightMargin / / ++----------++ | |c1 |c2| TopMargin +o----------o+ | | | | | |c3 |c4| +o----------o+ | | | | BottomMargin ++----------++
Parameter |
Description |
---|---|
ElementList |
The list in which to add elements |
InLayer |
The layer to draw the element on |
PaintGeometry |
DrawSpace position and dimensions; see FPaintGeometry |
InBrush |
Brush to apply to this element |
InDrawEffects |
Optional draw effects to apply |
InTint |
Color to tint the element |