Class DrawingRect
public class DrawingRect
- Inheritance
-
DrawingRect
- Inherited Members
- Extension Methods
Constructors
DrawingRect()
public DrawingRect()
DrawingRect(SKRect)
public DrawingRect(SKRect rect)
Parameters
rectSKRect
DrawingRect(float, float)
public DrawingRect(float width, float height)
Parameters
DrawingRect(float, float, float, float)
public DrawingRect(float left, float top, float right, float bottom)
Parameters
Properties
Bottom
public float Bottom { get; set; }
Property Value
Empty
public static DrawingRect Empty { get; }
Property Value
Height
public float Height { get; set; }
Property Value
Left
public float Left { get; set; }
Property Value
MidX
public float MidX { get; }
Property Value
MidY
public float MidY { get; }
Property Value
Right
public float Right { get; set; }
Property Value
Top
public float Top { get; set; }
Property Value
Width
public float Width { get; set; }
Property Value
Methods
Clone()
public DrawingRect Clone()
Returns
Compare(DrawingRect)
public bool Compare(DrawingRect b)
Parameters
Returns
Contains(DrawingRect)
public bool Contains(DrawingRect other)
Parameters
otherDrawingRect
Returns
Contains(float, float)
public bool Contains(float x, float y)
Parameters
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IntersectsWith(DrawingRect)
public bool IntersectsWith(DrawingRect other)
Parameters
otherDrawingRect
Returns
IntersectsWith(SKRect)
public bool IntersectsWith(SKRect other)
Parameters
otherSKRect
Returns
IntersectsWith(float, float, float, float)
public bool IntersectsWith(float left, float top, float right, float bottom)
Parameters
Returns
Offset(float, float)
public void Offset(float x, float y)
Parameters
Set(float, float, float, float)
public void Set(float left, float top, float right, float bottom)
Parameters
ToRect()
public Rect ToRect()
Returns
ToSkia()
public SKRect ToSkia()