Class ScaleBox
Allows you to place content with a desired size and have it scale to meet the constraints placed on this box's alloted area.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UE4.UMG
Assembly: UE4DotNet.dll
Syntax
public class ScaleBox : ContentWidget
Remarks
If you needed to have a background image scale to fill an area but not become distorted with different aspect ratios, or if you need to auto fit some text to an area, this is the control for you.
- Single Child
- Aspect Ratio
Properties
| Improve this Doc View SourcebSingleLayoutPass
Declaration
public bool bSingleLayoutPass { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static ScaleBox DefaultObject { get; }
Property Value
Type | Description |
---|---|
ScaleBox |
IgnoreInheritedScale
Declaration
public bool IgnoreInheritedScale { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Stretch
The stretching rule to apply when content is stretched
Declaration
public byte Stretch { get; }
Property Value
Type | Description |
---|---|
System.Byte |
StretchDirection
Controls in what direction content can be scaled
Declaration
public byte StretchDirection { get; }
Property Value
Type | Description |
---|---|
System.Byte |
UserSpecifiedScale
Optional scale that can be specified by the User. Used only for UserSpecified stretching.
Declaration
public float UserSpecifiedScale { get; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceNew(UObject, Name)
Spawn an object of this class
Declaration
public static ScaleBox New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
ScaleBox |
SetIgnoreInheritedScale(Boolean)
Set Ignore Inherited Scale
Declaration
public void SetIgnoreInheritedScale(bool bInIgnoreInheritedScale)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | bInIgnoreInheritedScale |
SetStretch(Byte)
Set Stretch
Declaration
public void SetStretch(byte InStretch)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | InStretch |
SetStretchDirection(Byte)
Set Stretch Direction
Declaration
public void SetStretchDirection(byte InStretchDirection)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | InStretchDirection |
SetUserSpecifiedScale(Single)
Set User Specified Scale
Declaration
public void SetUserSpecifiedScale(float InUserSpecifiedScale)
Parameters
Type | Name | Description |
---|---|---|
System.Single | InUserSpecifiedScale |
Operators
| Improve this Doc View SourceImplicit(IntPtr to ScaleBox)
Convert from IntPtr to UObject
Declaration
public static implicit operator ScaleBox(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
ScaleBox |