Table of Contents

Class DrawingRect

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll
public class DrawingRect
Inheritance
DrawingRect
Inherited Members
Extension Methods

Constructors

DrawingRect()

public DrawingRect()

DrawingRect(SKRect)

public DrawingRect(SKRect rect)

Parameters

rect SKRect

DrawingRect(float, float)

public DrawingRect(float width, float height)

Parameters

width float
height float

DrawingRect(float, float, float, float)

public DrawingRect(float left, float top, float right, float bottom)

Parameters

left float
top float
right float
bottom float

Properties

Bottom

public float Bottom { get; set; }

Property Value

float

Empty

public static DrawingRect Empty { get; }

Property Value

DrawingRect

Height

public float Height { get; set; }

Property Value

float

Left

public float Left { get; set; }

Property Value

float

MidX

public float MidX { get; }

Property Value

float

MidY

public float MidY { get; }

Property Value

float

Right

public float Right { get; set; }

Property Value

float

Top

public float Top { get; set; }

Property Value

float

Width

public float Width { get; set; }

Property Value

float

Methods

Clone()

public DrawingRect Clone()

Returns

DrawingRect

Compare(DrawingRect)

public bool Compare(DrawingRect b)

Parameters

b DrawingRect

Returns

bool

Contains(DrawingRect)

public bool Contains(DrawingRect other)

Parameters

other DrawingRect

Returns

bool

Contains(float, float)

public bool Contains(float x, float y)

Parameters

x float
y float

Returns

bool

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

other DrawingRect

Returns

bool

IntersectsWith(SKRect)

public bool IntersectsWith(SKRect other)

Parameters

other SKRect

Returns

bool

IntersectsWith(float, float, float, float)

public bool IntersectsWith(float left, float top, float right, float bottom)

Parameters

left float
top float
right float
bottom float

Returns

bool

Offset(float, float)

public void Offset(float x, float y)

Parameters

x float
y float

Set(float, float, float, float)

public void Set(float left, float top, float right, float bottom)

Parameters

left float
top float
right float
bottom float

ToRect()

public Rect ToRect()

Returns

Rect

ToSkia()

public SKRect ToSkia()

Returns

SKRect