Table of Contents

Class RoundedRect

Namespace
Gsk
Assembly
Gsk-4.0.dll
public sealed class RoundedRect
Inheritance
RoundedRect
Inherited Members

Constructors

RoundedRect()

public RoundedRect()

RoundedRect(RoundedRectOwnedHandle)

public RoundedRect(RoundedRectOwnedHandle handle)

Parameters

handle RoundedRectOwnedHandle

Properties

Handle

public RoundedRectOwnedHandle Handle { get; }

Property Value

RoundedRectOwnedHandle

Methods

ContainsPoint(Point)

public bool ContainsPoint(Point point)

Parameters

point Point

Returns

bool

ContainsRect(Rect)

public bool ContainsRect(Rect rect)

Parameters

rect Rect

Returns

bool

Equals(RoundedRect?)

public bool Equals(RoundedRect? other)

Parameters

other RoundedRect

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.

Init(Rect, Size, Size, Size, Size)

public RoundedRect Init(Rect bounds, Size topLeft, Size topRight, Size bottomRight, Size bottomLeft)

Parameters

bounds Rect
topLeft Size
topRight Size
bottomRight Size
bottomLeft Size

Returns

RoundedRect

InitCopy(RoundedRect)

public RoundedRect InitCopy(RoundedRect src)

Parameters

src RoundedRect

Returns

RoundedRect

InitFromRect(Rect, float)

public RoundedRect InitFromRect(Rect bounds, float radius)

Parameters

bounds Rect
radius float

Returns

RoundedRect

IntersectsRect(Rect)

public bool IntersectsRect(Rect rect)

Parameters

rect Rect

Returns

bool

IsRectilinear()

public bool IsRectilinear()

Returns

bool

Normalize()

public RoundedRect Normalize()

Returns

RoundedRect

Offset(float, float)

public RoundedRect Offset(float dx, float dy)

Parameters

dx float
dy float

Returns

RoundedRect

Shrink(float, float, float, float)

public RoundedRect Shrink(float top, float right, float bottom, float left)

Parameters

top float
right float
bottom float
left float

Returns

RoundedRect