Inheritance
System.Object
Alignment
public class Alignment : IEquatable<Alignment>
Constructors
Declaration
public Alignment(float x, float y)
Parameters
| Type |
Name |
Description |
| System.Single |
x |
|
| System.Single |
y |
|
Fields
Declaration
public static readonly Alignment bottomCenter
Field Value
Declaration
public static readonly Alignment bottomLeft
Field Value
Declaration
public static readonly Alignment bottomRight
Field Value
Declaration
public static readonly Alignment center
Field Value
Declaration
public static readonly Alignment centerLeft
Field Value
Declaration
public static readonly Alignment centerRight
Field Value
Declaration
public static readonly Alignment topCenter
Field Value
Declaration
public static readonly Alignment topLeft
Field Value
Declaration
public static readonly Alignment topRight
Field Value
Declaration
Field Value
| Type |
Description |
| System.Single |
|
Declaration
Field Value
| Type |
Description |
| System.Single |
|
Methods
Declaration
public Offset alongOffset(Offset other)
Parameters
| Type |
Name |
Description |
| Offset |
other |
|
Returns
Declaration
public Offset alongSize(Size other)
Parameters
| Type |
Name |
Description |
| Size |
other |
|
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(Alignment other)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public Rect inscribe(Size size, Rect rect)
Parameters
| Type |
Name |
Description |
| Size |
size |
|
| Rect |
rect |
|
Returns
Declaration
public static Alignment lerp(Alignment a, Alignment b, float t)
Parameters
Returns
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.Object.ToString()
Declaration
public Offset withinRect(Rect rect)
Parameters
| Type |
Name |
Description |
| Rect |
rect |
|
Returns
Operators
Declaration
public static Alignment operator +(Alignment a, Alignment b)
Parameters
Returns
Declaration
public static Alignment operator /(Alignment a, float b)
Parameters
| Type |
Name |
Description |
| Alignment |
a |
|
| System.Single |
b |
|
Returns
Declaration
public static bool operator ==(Alignment a, Alignment b)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool operator !=(Alignment a, Alignment b)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static Alignment operator %(Alignment a, float b)
Parameters
| Type |
Name |
Description |
| Alignment |
a |
|
| System.Single |
b |
|
Returns
Declaration
public static Alignment operator *(Alignment a, float b)
Parameters
| Type |
Name |
Description |
| Alignment |
a |
|
| System.Single |
b |
|
Returns
Declaration
public static Alignment operator -(Alignment a, Alignment b)
Parameters
Returns
Declaration
public static Alignment operator -(Alignment a)
Parameters
Returns