UBorder

A border is a container widget that can contain one child widget, providing an opportunity to surround it with a background image and adjustable padding.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Components/Border.h

Include

#include "Components/Border.h"

Syntax

class UBorder : public UContentWidget

Remarks

A border is a container widget that can contain one child widget, providing an opportunity to surround it with a background image and adjustable padding.

  • Single Child

  • Image

Variables

Name Description

Public variable

FSlateBrush

 

Background

Brush to drag as the background

Public variable

FGetSlateBrush

 

BackgroundDelegate

A bindable delegate for the Brush.

Public variable

bool

 

bFlipForRightToLeftFlowDirection

Flips the background image if the localization's flow direction is RightToLeft

Public variable

FLinearColor

 

BrushColor

Color and opacity of the actual border image

Public variable

FGetLinearColor

 

BrushColorDelegate

A bindable delegate for the BrushColor.

Public variable

uint8: 1

 

bShowEffectWhenDisabled

Whether or not to show the disabled effect when this border is disabled

Public variable

FLinearColor

 

ContentColorAndOpacity

Color and opacity multiplier of content in the border

Public variable

FGetLinearColor

 

ContentColorAndOpacityDelegate

A bindable delegate for the ContentColorAndOpacity.

Public variable

FVector2D

 

DesiredSizeScale

Scales the computed desired size of this border and its contents.

Public variable

TEnumAsByte< EH...

 

HorizontalAlignment

The alignment of the content horizontally.

Protected variable

FLinearColor

 

K2_Cache_ContentColorAndOpacity

Protected variable

TSharedPtr< SBo...

 

MyBorder

Public variable

FOnPointerEvent

 

OnMouseButtonDownEvent

Public variable

FOnPointerEvent

 

OnMouseButtonUpEvent

Public variable

FOnPointerEvent

 

OnMouseDoubleClickEvent

Public variable

FOnPointerEvent

 

OnMouseMoveEvent

Public variable

FMargin

 

Padding

The padding area between the slot and the content it contains.

Public variable

TEnumAsByte< EV...

 

VerticalAlignment

The alignment of the content vertically.

Constructors

Name Description

Public function

UBorder

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Protected function Const

const FSlate...

 

ConvertImage

(
    TAttribute< FSlateBrush > InImageAs...
)

Translates the bound brush data and assigns it to the cached brush used by this widget.

Public function

UMaterialIns...

 

GetDynamicMaterial()

Protected function

FReply

 

HandleMouseButtonDown

(
    const FGeometry& Geometry,
    const FPointerEvent& MouseEvent
)

Protected function

FReply

 

HandleMouseButtonUp

(
    const FGeometry& Geometry,
    const FPointerEvent& MouseEvent
)

Protected function

FReply

 

HandleMouseDoubleClick

(
    const FGeometry& Geometry,
    const FPointerEvent& MouseEvent
)

Protected function

FReply

 

HandleMouseMove

(
    const FGeometry& Geometry,
    const FPointerEvent& MouseEvent
)

Protected function

FLinearColor

 

K2_Gate_ContentColorAndOpacity()

Public function

void

 

SetBrush

(
    const FSlateBrush& InBrush
)

Public function

void

 

SetBrushColor

(
    FLinearColor InBrushColor
)

Public function

void

 

SetBrushFromAsset

(
    USlateBrushAsset* Asset
)

Public function

void

 

SetBrushFromMaterial

(
    UMaterialInterface* Material
)

Public function

void

 

SetBrushFromTexture

(
    UTexture2D* Texture
)

Public function

void

 

SetContentColorAndOpacity

(
    FLinearColor InContentColorAndOpaci...
)

Public function

void

 

SetDesiredSizeScale

(
    FVector2D InScale
)

Sets the DesireSizeScale of this border.

Public function

void

 

SetHorizontalAlignment

(
    EHorizontalAlignment InHorizontalAl...
)

Public function

void

 

SetPadding

(
    FMargin InPadding
)

Public function

void

 

SetVerticalAlignment

(
    EVerticalAlignment InVerticalAlignm...
)

Overridden from UPanelWidget

Name Description

Protected function Virtual Const

UClass *

 

GetSlotClass()

UPanelWidget.

Protected function Virtual

void

 

OnSlotAdded

(
    UPanelSlot* Slot
)

Protected function Virtual

void

 

OnSlotRemoved

(
    UPanelSlot* Slot
)

Overridden from UWidget

Name Description

Public function Virtual

const FText

 

GetPaletteCategory()

Gets the palette category of the widget

Protected function Virtual

TSharedRef< ...

 

RebuildWidget()

Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed.

Public function Virtual

void

 

SynchronizeProperties()

Applies all properties to the native widget if possible.

Overridden from UVisual

Name Description

Public function Virtual

void

 

ReleaseSlateResources

(
    bool bReleaseChildren
)

Overridden from UObject

Name Description

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally

Public function Virtual

void

 

PostLoad()

Begin UObject.

Deprecated Variables

Name Description

Protected variable

USlateBrushAsse...

 

Brush_DEPRECATED

Image to use for the border

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