Inheritance
System.Object
RelativeRect
public class RelativeRect : IEquatable<RelativeRect>
Fields
Declaration
public readonly float bottom
Field Value
Type |
Description |
System.Single |
|
Declaration
public static readonly RelativeRect fill
Field Value
Declaration
public readonly float left
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly float right
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly float top
Field Value
Type |
Description |
System.Single |
|
Properties
Declaration
public bool hasInsets { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
public RelativeRect deflate(float delta)
Parameters
Type |
Name |
Description |
System.Single |
delta |
|
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(RelativeRect other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static RelativeRect fromLTRB(float left, float top, float right, float bottom)
Parameters
Type |
Name |
Description |
System.Single |
left |
|
System.Single |
top |
|
System.Single |
right |
|
System.Single |
bottom |
|
Returns
Declaration
public static RelativeRect fromRect(Rect rect, Rect container)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Rect |
container |
|
Returns
Declaration
public static RelativeRect fromSize(Rect rect, Size container)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Size |
container |
|
Returns
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public RelativeRect inflate(float delta)
Parameters
Type |
Name |
Description |
System.Single |
delta |
|
Returns
Declaration
public RelativeRect intersect(RelativeRect other)
Parameters
Returns
Declaration
public static RelativeRect lerp(RelativeRect a, RelativeRect b, float t)
Parameters
Returns
Declaration
public RelativeRect shift(Offset offset)
Parameters
Type |
Name |
Description |
Offset |
offset |
|
Returns
Declaration
public Rect toRect(Rect container)
Parameters
Type |
Name |
Description |
Rect |
container |
|
Returns
Declaration
public Rect toSize(Size container)
Parameters
Type |
Name |
Description |
Size |
container |
|
Returns
Operators
Declaration
public static bool operator ==(RelativeRect a, RelativeRect b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(RelativeRect a, RelativeRect b)
Parameters
Returns
Type |
Description |
System.Boolean |
|