Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
- UObject
- UVisual
- UWidget
- UPanelWidget
- UContentWidget
- UBorder
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/Border.h |
| Include | #include "Components/Border.h" |
Syntax
UCLASS (MinimalAPI)
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
| Type | Name | Description | |
|---|---|---|---|
| FSlateBrush | Background | Brush to drag as the background | |
| FGetSlateBrush | BackgroundDelegate | A bindable delegate for the Brush. | |
| bool | bFlipForRightToLeftFlowDirection | Flips the background image if the localization's flow direction is RightToLeft | |
| FLinearColor | BrushColor | Color and opacity of the actual border image | |
| FGetLinearColor | BrushColorDelegate | A bindable delegate for the BrushColor. | |
| uint8: 1 | bShowEffectWhenDisabled | Whether or not to show the disabled effect when this border is disabled | |
| FLinearColor | ContentColorAndOpacity | Color and opacity multiplier of content in the border | |
| FGetLinearColor | ContentColorAndOpacityDelegate | A bindable delegate for the ContentColorAndOpacity. | |
| FVector2D | DesiredSizeScale | Scales the computed desired size of this border and its contents. | |
| TEnumAsByte< EHorizontalAlignment > | HorizontalAlignment | The alignment of the content horizontally. | |
| FLinearColor | K2_Cache_ContentColorAndOpacity | ||
| TSharedPtr< SBorder > | MyBorder | ||
| FOnPointerEvent | OnMouseButtonDownEvent | ||
| FOnPointerEvent | OnMouseButtonUpEvent | ||
| FOnPointerEvent | OnMouseDoubleClickEvent | ||
| FOnPointerEvent | OnMouseMoveEvent | ||
| FMargin | Padding | The padding area between the slot and the content it contains. | |
| TEnumAsByte< EVerticalAlignment > | VerticalAlignment | The alignment of the content vertically. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UBorder
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const FSlateBrush * | ConvertImage
(
TAttribute< FSlateBrush > InImageAsset |
Translates the bound brush data and assigns it to the cached brush used by this widget. | |
| FLinearColor | |||
| FLinearColor | |||
| FVector2D | Gets the DesiredSizeScale of this border. | ||
| UMaterialInstanceDynamic * | |||
| EHorizontalAlignment | |||
| FMargin | GetPadding () |
||
| bool | |||
| EVerticalAlignment | |||
| FReply | HandleMouseButtonDown
(
const FGeometry& Geometry, |
||
| FReply | HandleMouseButtonUp
(
const FGeometry& Geometry, |
||
| FReply | HandleMouseDoubleClick
(
const FGeometry& Geometry, |
||
| FReply | HandleMouseMove
(
const FGeometry& Geometry, |
||
| FLinearColor | |||
| void | SetBrush
(
const FSlateBrush& InBrush |
||
| void | SetBrushColor
(
FLinearColor InBrushColor |
||
| void | SetBrushFromAsset
(
USlateBrushAsset* Asset |
||
| void | SetBrushFromMaterial
(
UMaterialInterface* Material |
||
| void | SetBrushFromTexture
(
UTexture2D* Texture |
||
| void | SetContentColorAndOpacity
(
FLinearColor InContentColorAndOpacity |
||
| void | SetDesiredSizeScale
(
FVector2D InScale |
Sets the DesiredSizeScale of this border. | |
| void | SetHorizontalAlignment
(
EHorizontalAlignment InHorizontalAlignment |
||
| void | SetPadding
(
FMargin InPadding |
||
| void | SetShowEffectWhenDisabled
(
bool bInShowEffectWhenDisabled |
||
| void | SetVerticalAlignment
(
EVerticalAlignment InVerticalAlignment |
Overridden from UPanelWidget
| Type | Name | Description | |
|---|---|---|---|
| UClass * | GetSlotClass () |
UPanelWidget. | |
| void | OnSlotAdded
(
UPanelSlot* Slot |
||
| void | OnSlotRemoved
(
UPanelSlot* Slot |
||
| void | PostLoad () |
Begin UObject. |
Overridden from UWidget
| Type | Name | Description | |
|---|---|---|---|
| const FText | Gets the palette category of the widget | ||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
||
| TSharedRef< SWidget > | Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | ||
| void | Applies all properties to the native widget if possible. |
Overridden from UVisual
| Type | Name | Description | |
|---|---|---|---|
| void | ReleaseSlateResources
(
bool bReleaseChildren |