engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | Protected 成员函数 | 所有成员列表
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. 更多...

#include <Border.h>

继承自 UContentWidget .

Public 成员函数

virtual void PostLoad () override
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
void SetDesiredSizeScale (FVector2D InScale)
 Sets the DesireSizeScale of this border. 更多...
 
virtual void SynchronizeProperties () override
 Applies all properties to the native widget if possible. 更多...
 

Public 属性

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 bShowEffectWhenDisabled:1
 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.
 
FMargin Padding
 The padding area between the slot and the content it contains.
 
TEnumAsByte< EVerticalAlignment > VerticalAlignment
 The alignment of the content vertically.
 

Protected 成员函数

const FSlateBrush * ConvertImage (TAttribute< FSlateBrush > InImageAsset) const
 Translates the bound brush data and assigns it to the cached brush used by this widget.
 
virtual TSharedRef< SWidget > RebuildWidget () override
 Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed.
 

详细描述

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.

成员函数说明

◆ PostLoad()

virtual void UBorder::PostLoad ( )
overridevirtual

Do any object-specific cleanup required immediately after loading an object.

This is not called for newly-created objects, and by default will always execute on the game thread.

重载 UPanelWidget .

◆ SetDesiredSizeScale()

void UBorder::SetDesiredSizeScale ( FVector2D  InScale)

Sets the DesireSizeScale of this border.

参数
InScaleThe X and Y multipliers for the desired size

◆ SynchronizeProperties()

virtual void UBorder::SynchronizeProperties ( )
overridevirtual

Applies all properties to the native widget if possible.

This is called after a widget is constructed. It can also be called by the editor to update modified state, so ensure all initialization to a widgets properties are performed here, or the property and visual state may become unsynced.

重载 UWidget .

类成员变量说明

◆ DesiredSizeScale

FVector2D UBorder::DesiredSizeScale

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

Useful for making things that slide open without having to hard-code their size. Note: if the parent widget is set up to ignore this widget's desired size, then changing this value will have no effect.


该类的文档由以下文件生成: