Table of Contents

Struct TransformedBounds

Namespace
Avalonia.VisualTree
Assembly
Avalonia.Base.dll

Holds information about the bounds of a control, together with a transform and a clip.

public readonly struct TransformedBounds : IEquatable<TransformedBounds>
Implements
Inherited Members

Constructors

TransformedBounds(Rect, Rect, Matrix)

Initializes a new instance of the TransformedBounds struct.

public TransformedBounds(Rect bounds, Rect clip, Matrix transform)

Parameters

bounds Rect

The control's bounds.

clip Rect

The control's clip rectangle.

transform Matrix

The control's transform.

Properties

Bounds

Gets the control's bounds in its local coordinate space.

public Rect Bounds { get; }

Property Value

Rect

Clip

Gets the control's clip rectangle in global coordinate space.

public Rect Clip { get; }

Property Value

Rect

Transform

Gets the transform from local to global coordinate space.

public Matrix Transform { get; }

Property Value

Matrix

Methods

Contains(Point)

public bool Contains(Point point)

Parameters

point Point

Returns

bool

Equals(TransformedBounds)

public bool Equals(TransformedBounds other)

Parameters

other TransformedBounds

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TransformedBounds, TransformedBounds)

public static bool operator ==(TransformedBounds left, TransformedBounds right)

Parameters

left TransformedBounds
right TransformedBounds

Returns

bool

operator !=(TransformedBounds, TransformedBounds)

public static bool operator !=(TransformedBounds left, TransformedBounds right)

Parameters

left TransformedBounds
right TransformedBounds

Returns

bool