Struct LayoutRect
Assembly: Ritchie.Toolbox.dll
Constructors
Declaration
public LayoutRect(int left, int top, int width, int height)
Parameters
Fields
Declaration
public readonly int Height
Field Value
Declaration
Field Value
Declaration
Field Value
Declaration
public readonly int Width
Field Value
Properties
Declaration
public int Bottom { get; }
Property Value
Declaration
public Point BottomExtent { get; }
Property Value
Declaration
public Point Center { get; }
Property Value
LeftExtent
Declaration
public Point LeftExtent { get; }
Property Value
Declaration
public int Right { get; }
Property Value
RightExtent
Declaration
public Point RightExtent { get; }
Property Value
Declaration
public Point Size { get; }
Property Value
Declaration
public Point TopExtent { get; }
Property Value
Declaration
public Point TopLeft { get; }
Property Value
Methods
Declaration
public bool Contains(Point vector)
Parameters
Type |
Name |
Description |
Point |
vector |
|
Returns
Declaration
public bool Contains(Vector2 position)
Parameters
Type |
Name |
Description |
Vector2 |
position |
|
Returns
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current instance.
|
Returns
Type |
Description |
bool |
true if obj and this instance are the same type and represent the same value; otherwise, false.
|
Overrides
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A 32-bit signed integer that is the hash code for this instance.
|
Overrides
Declaration
public static LayoutRect GetIntersection(LayoutRect a, LayoutRect b)
Parameters
Returns
Declaration
public LayoutRect Nudge(NudgeDirection direction, int amount)
Parameters
Returns
Operators
Declaration
public static bool operator ==(LayoutRect left, LayoutRect right)
Parameters
Returns
Declaration
public static implicit operator Rectangle(LayoutRect rect)
Parameters
Returns
Type |
Description |
Rectangle |
|
Declaration
public static bool operator !=(LayoutRect left, LayoutRect right)
Parameters
Returns
Declaration
public static LayoutRect operator -(LayoutRect rect, Padding padding)
Parameters
Returns