Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UPanelWidget
- UContentWidget
- UBorder
- UCommonBorder
- UCommonHardwareVisibilityBorder
- UDEPRECATED_UCommonVisibilityWidgetBase
- UCommonCustomNavigation
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
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 | |
FGetLinearColor | BrushColorDelegate | A bindable delegate for the BrushColor. | |
FGetLinearColor | ContentColorAndOpacityDelegate | A bindable delegate for the ContentColorAndOpacity. | |
FLinearColor | K2_Cache_ContentColorAndOpacity | ||
TSharedPtr< SBorder > | MyBorder | ||
FOnPointerEvent | OnMouseButtonDownEvent | ||
FOnPointerEvent | OnMouseButtonUpEvent | ||
FOnPointerEvent | OnMouseDoubleClickEvent | ||
FOnPointerEvent | OnMouseMoveEvent |
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 |
Overridden from UWidget
Type | Name | Description | |
---|---|---|---|
const FText | Gets the palette category of the widget | ||
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 |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
void | PostLoad () |
Begin UObject. |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
FLinearColor | BrushColor | Direct access to BrushColor is deprecated. Please use the getter or setter. | |
uint8: 1 | bShowEffectWhenDisabled | Direct access to bShowEffectWhenDisabled is deprecated. Please use the getter or setter. | |
FLinearColor | ContentColorAndOpacity | Direct access to ContentColorAndOpacity is deprecated. Please use the getter or setter. | |
FVector2D | DesiredSizeScale | Direct access to DesiredSizeScale is deprecated. Please use the getter or setter. | |
TEnumAsByte< EHorizontalAlignment > | HorizontalAlignment | Direct access to HorizontalAlignment is deprecated. Please use the getter or setter. | |
FMargin | Padding | Direct access to Padding is deprecated. Please use the getter or setter. | |
TEnumAsByte< EVerticalAlignment > | VerticalAlignment | Direct access to VerticalAlignment is deprecated. Please use the getter or setter. |