Class SizeBox
A widget that allows you to specify the size it reports to have and desire.
Inherited Members
Namespace: UE4.UMG
Assembly: UE4DotNet.dll
Syntax
public class SizeBox : ContentWidget
Remarks
Not all widgets report a desired size that you actually desire. Wrapping them in a SizeBox lets you have the Size Box force them to be a particular size.
- Single Child
- Fixed Size
Properties
| Improve this Doc View SourcebOverride_HeightOverride
Declaration
public bool bOverride_HeightOverride { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
bOverride_MaxAspectRatio
Declaration
public bool bOverride_MaxAspectRatio { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
bOverride_MaxDesiredHeight
Declaration
public bool bOverride_MaxDesiredHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
bOverride_MaxDesiredWidth
Declaration
public bool bOverride_MaxDesiredWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
bOverride_MinDesiredHeight
Declaration
public bool bOverride_MinDesiredHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
bOverride_MinDesiredWidth
Declaration
public bool bOverride_MinDesiredWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
bOverride_WidthOverride
Declaration
public bool bOverride_WidthOverride { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static SizeBox DefaultObject { get; }
Property Value
Type | Description |
---|---|
SizeBox |
HeightOverride
When specified, ignore the content's desired size and report the HeightOverride as the Box's desired height.
Declaration
public float HeightOverride { get; }
Property Value
Type | Description |
---|---|
System.Single |
MaxAspectRatio
Max Aspect Ratio
Declaration
public float MaxAspectRatio { get; }
Property Value
Type | Description |
---|---|
System.Single |
MaxDesiredHeight
When specified, will report the MaxDesiredHeight if smaller than the content's desired height.
Declaration
public float MaxDesiredHeight { get; }
Property Value
Type | Description |
---|---|
System.Single |
MaxDesiredWidth
When specified, will report the MaxDesiredWidth if smaller than the content's desired width.
Declaration
public float MaxDesiredWidth { get; }
Property Value
Type | Description |
---|---|
System.Single |
MinDesiredHeight
When specified, will report the MinDesiredHeight if larger than the content's desired height.
Declaration
public float MinDesiredHeight { get; }
Property Value
Type | Description |
---|---|
System.Single |
MinDesiredWidth
When specified, will report the MinDesiredWidth if larger than the content's desired width.
Declaration
public float MinDesiredWidth { get; }
Property Value
Type | Description |
---|---|
System.Single |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
WidthOverride
When specified, ignore the content's desired size and report the WidthOverride as the Box's desired width.
Declaration
public float WidthOverride { get; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceClearHeightOverride()
Clear Height Override
Declaration
public void ClearHeightOverride()
ClearMaxAspectRatio()
Clear Max Aspect Ratio
Declaration
public void ClearMaxAspectRatio()
ClearMaxDesiredHeight()
Clear Max Desired Height
Declaration
public void ClearMaxDesiredHeight()
ClearMaxDesiredWidth()
Clear Max Desired Width
Declaration
public void ClearMaxDesiredWidth()
ClearMinDesiredHeight()
Clear Min Desired Height
Declaration
public void ClearMinDesiredHeight()
ClearMinDesiredWidth()
Clear Min Desired Width
Declaration
public void ClearMinDesiredWidth()
ClearWidthOverride()
Clear Width Override
Declaration
public void ClearWidthOverride()
New(UObject, Name)
Spawn an object of this class
Declaration
public static SizeBox New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
SizeBox |
SetHeightOverride(Single)
When specified, ignore the content's desired size and report the HeightOverride as the Box's desired height.
Declaration
public void SetHeightOverride(float InHeightOverride)
Parameters
Type | Name | Description |
---|---|---|
System.Single | InHeightOverride |
SetMaxAspectRatio(Single)
Set Max Aspect Ratio
Declaration
public void SetMaxAspectRatio(float InMaxAspectRatio)
Parameters
Type | Name | Description |
---|---|---|
System.Single | InMaxAspectRatio |
SetMaxDesiredHeight(Single)
When specified, will report the MaxDesiredHeight if smaller than the content's desired height.
Declaration
public void SetMaxDesiredHeight(float InMaxDesiredHeight)
Parameters
Type | Name | Description |
---|---|---|
System.Single | InMaxDesiredHeight |
SetMaxDesiredWidth(Single)
When specified, will report the MaxDesiredWidth if smaller than the content's desired width.
Declaration
public void SetMaxDesiredWidth(float InMaxDesiredWidth)
Parameters
Type | Name | Description |
---|---|---|
System.Single | InMaxDesiredWidth |
SetMinDesiredHeight(Single)
When specified, will report the MinDesiredHeight if larger than the content's desired height.
Declaration
public void SetMinDesiredHeight(float InMinDesiredHeight)
Parameters
Type | Name | Description |
---|---|---|
System.Single | InMinDesiredHeight |
SetMinDesiredWidth(Single)
When specified, will report the MinDesiredWidth if larger than the content's desired width.
Declaration
public void SetMinDesiredWidth(float InMinDesiredWidth)
Parameters
Type | Name | Description |
---|---|---|
System.Single | InMinDesiredWidth |
SetWidthOverride(Single)
When specified, ignore the content's desired size and report the WidthOverride as the Box's desired width.
Declaration
public void SetWidthOverride(float InWidthOverride)
Parameters
Type | Name | Description |
---|---|---|
System.Single | InWidthOverride |
Operators
| Improve this Doc View SourceImplicit(IntPtr to SizeBox)
Convert from IntPtr to UObject
Declaration
public static implicit operator SizeBox(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
SizeBox |