Inheritance
System.Object
BoxConstraints
public class BoxConstraints : Constraints, IEquatable<BoxConstraints>
Constructors
Declaration
public BoxConstraints(float minWidth = 0F, float maxWidth = InfinityF, float minHeight = 0F, float maxHeight = InfinityF)
Parameters
Type |
Name |
Description |
System.Single |
minWidth |
|
System.Single |
maxWidth |
|
System.Single |
minHeight |
|
System.Single |
maxHeight |
|
Fields
Declaration
public readonly float maxHeight
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly float maxWidth
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly float minHeight
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly float minWidth
Field Value
Type |
Description |
System.Single |
|
Properties
Declaration
public Size biggest { get; }
Property Value
Declaration
public BoxConstraints flipped { get; }
Property Value
Declaration
public bool hasBoundedHeight { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool hasBoundedWidth { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool hasInfiniteHeight { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool hasInfiniteWidth { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool hasTightHeight { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool hasTightWidth { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public override bool isNormalized { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override bool isTight { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public Size smallest { get; }
Property Value
Methods
Declaration
public Size constrain(Size size)
Parameters
Type |
Name |
Description |
Size |
size |
|
Returns
Declaration
public Size constrainDimensions(float width, float height)
Parameters
Type |
Name |
Description |
System.Single |
width |
|
System.Single |
height |
|
Returns
Declaration
public float constrainHeight(float height = InfinityF)
Parameters
Type |
Name |
Description |
System.Single |
height |
|
Returns
Type |
Description |
System.Single |
|
Declaration
public Size constrainSizeAndAttemptToPreserveAspectRatio(Size size)
Parameters
Type |
Name |
Description |
Size |
size |
|
Returns
Declaration
public float constrainWidth(float width = InfinityF)
Parameters
Type |
Name |
Description |
System.Single |
width |
|
Returns
Type |
Description |
System.Single |
|
Declaration
public BoxConstraints copyWith(float? minWidth = default(float? ), float? maxWidth = default(float? ), float? minHeight = default(float? ), float? maxHeight = default(float? ))
Parameters
Type |
Name |
Description |
System.Nullable<System.Single> |
minWidth |
|
System.Nullable<System.Single> |
maxWidth |
|
System.Nullable<System.Single> |
minHeight |
|
System.Nullable<System.Single> |
maxHeight |
|
Returns
Declaration
public override bool debugAssertIsValid(bool isAppliedConstraint = false, InformationCollector informationCollector = null)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public BoxConstraints deflate(EdgeInsets edges)
Parameters
Returns
Declaration
public BoxConstraints enforce(BoxConstraints constraints)
Parameters
Returns
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
public bool Equals(BoxConstraints other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static BoxConstraints expand(float? width = default(float? ), float? height = default(float? ))
Parameters
Type |
Name |
Description |
System.Nullable<System.Single> |
width |
|
System.Nullable<System.Single> |
height |
|
Returns
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public BoxConstraints heightConstraints()
Returns
Declaration
public bool isSatisfiedBy(Size size)
Parameters
Type |
Name |
Description |
Size |
size |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static BoxConstraints lerp(BoxConstraints a, BoxConstraints b, float t)
Parameters
Returns
Declaration
public static BoxConstraints loose(Size size)
Parameters
Type |
Name |
Description |
Size |
size |
|
Returns
Declaration
public BoxConstraints loosen()
Returns
Declaration
public BoxConstraints normalize()
Returns
Declaration
public static BoxConstraints tight(Size size)
Parameters
Type |
Name |
Description |
Size |
size |
|
Returns
Declaration
public BoxConstraints tighten(float? width = default(float? ), float? height = default(float? ))
Parameters
Type |
Name |
Description |
System.Nullable<System.Single> |
width |
|
System.Nullable<System.Single> |
height |
|
Returns
Declaration
public static BoxConstraints tightFor(float? width = default(float? ), float? height = default(float? ))
Parameters
Type |
Name |
Description |
System.Nullable<System.Single> |
width |
|
System.Nullable<System.Single> |
height |
|
Returns
Declaration
public static BoxConstraints tightForFinite(float width = InfinityF, float height = InfinityF)
Parameters
Type |
Name |
Description |
System.Single |
width |
|
System.Single |
height |
|
Returns
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Declaration
public BoxConstraints widthConstraints()
Returns
Operators
Declaration
public static BoxConstraints operator /(BoxConstraints it, float factor)
Parameters
Returns
Declaration
public static bool operator ==(BoxConstraints left, BoxConstraints right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(BoxConstraints left, BoxConstraints right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static BoxConstraints operator %(BoxConstraints it, float value)
Parameters
Returns
Declaration
public static BoxConstraints operator *(BoxConstraints it, float factor)
Parameters
Returns