FSlateDrawElement::MakeBox

Creates a box element based on the following diagram.

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Rendering/DrawElements.h

Include

#include "Rendering/DrawElements.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Rendering/DrawElements.cpp

Syntax

static void MakeBox
(
    FSlateWindowElementList & ElementList,
    uint32 InLayer,
    const FPaintGeometry & PaintGeometry,
    const FSlateBrush * InBrush,
    ESlateDrawEffect InDrawEffects,
    const FLinearColor & InTint
)

Remarks

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 ++----------++

Parameters

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss