Class Border
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.
Inherited Members
Namespace: UE4.UMG
Assembly: UE4DotNet.dll
Syntax
public class Border : ContentWidget
Remarks
- Single Child
- Image
Properties
| Improve this Doc View SourceBackground
Brush to drag as the background
Declaration
public SlateBrush Background { get; }
Property Value
| Type | Description |
|---|---|
| SlateBrush |
BrushColor
Color and opacity of the actual border image
Declaration
public LinearColor BrushColor { get; }
Property Value
| Type | Description |
|---|---|
| LinearColor |
bShowEffectWhenDisabled
Declaration
public bool bShowEffectWhenDisabled { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ContentColorAndOpacity
Color and opacity multiplier of content in the border
Declaration
public LinearColor ContentColorAndOpacity { get; }
Property Value
| Type | Description |
|---|---|
| LinearColor |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static Border DefaultObject { get; }
Property Value
| Type | Description |
|---|---|
| Border |
DesiredSizeScale
Scales the computed desired size of this border and its contents.
Declaration
public Vector2D DesiredSizeScale { get; }
Property Value
| Type | Description |
|---|---|
| Vector2D |
Remarks
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.
HorizontalAlignment
The alignment of the content horizontally.
Declaration
public byte HorizontalAlignment { get; }
Property Value
| Type | Description |
|---|---|
| System.Byte |
Padding
The padding area between the slot and the content it contains.
Declaration
public Margin Padding { get; }
Property Value
| Type | Description |
|---|---|
| Margin |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
| Type | Description |
|---|---|
| Class |
VerticalAlignment
The alignment of the content vertically.
Declaration
public byte VerticalAlignment { get; }
Property Value
| Type | Description |
|---|---|
| System.Byte |
Methods
| Improve this Doc View SourceGetDynamicMaterial()
Get Dynamic Material
Declaration
public MaterialInstanceDynamic GetDynamicMaterial()
Returns
| Type | Description |
|---|---|
| MaterialInstanceDynamic |
New(UObject, Name)
Spawn an object of this class
Declaration
public static Border New(UObject obj = null, Name name = default(Name))
Parameters
| Type | Name | Description |
|---|---|---|
| UObject | obj | |
| Name | name |
Returns
| Type | Description |
|---|---|
| Border |
SetBrush(SlateBrush)
Set Brush
Declaration
public void SetBrush(SlateBrush InBrush)
Parameters
| Type | Name | Description |
|---|---|---|
| SlateBrush | InBrush |
SetBrushColor(LinearColor)
Set Brush Color
Declaration
public void SetBrushColor(LinearColor InBrushColor)
Parameters
| Type | Name | Description |
|---|---|---|
| LinearColor | InBrushColor |
SetBrushFromAsset(SlateBrushAsset)
Set Brush from Asset
Declaration
public void SetBrushFromAsset(SlateBrushAsset Asset)
Parameters
| Type | Name | Description |
|---|---|---|
| SlateBrushAsset | Asset |
SetBrushFromMaterial(MaterialInterface)
Set Brush from Material
Declaration
public void SetBrushFromMaterial(MaterialInterface Material)
Parameters
| Type | Name | Description |
|---|---|---|
| MaterialInterface | Material |
SetBrushFromTexture(Texture2D)
Set Brush from Texture
Declaration
public void SetBrushFromTexture(Texture2D Texture)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture2D | Texture |
SetContentColorAndOpacity(LinearColor)
Set Content Color and Opacity
Declaration
public void SetContentColorAndOpacity(LinearColor InContentColorAndOpacity)
Parameters
| Type | Name | Description |
|---|---|---|
| LinearColor | InContentColorAndOpacity |
SetDesiredSizeScale(Vector2D)
Sets the DesireSizeScale of this border.
Declaration
public void SetDesiredSizeScale(Vector2D InScale)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2D | InScale |
Remarks
@param InScale The X and Y multipliers for the desired size
SetHorizontalAlignment(Byte)
Set Horizontal Alignment
Declaration
public void SetHorizontalAlignment(byte InHorizontalAlignment)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | InHorizontalAlignment |
SetPadding(Margin)
Set Padding
Declaration
public void SetPadding(Margin InPadding)
Parameters
| Type | Name | Description |
|---|---|---|
| Margin | InPadding |
SetVerticalAlignment(Byte)
Set Vertical Alignment
Declaration
public void SetVerticalAlignment(byte InVerticalAlignment)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | InVerticalAlignment |
Operators
| Improve this Doc View SourceImplicit(IntPtr to Border)
Convert from IntPtr to UObject
Declaration
public static implicit operator Border(IntPtr p)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | p |
Returns
| Type | Description |
|---|---|
| Border |