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
RectThe control's bounds.
clip
RectThe control's clip rectangle.
transform
MatrixThe control's transform.
Properties
Bounds
Gets the control's bounds in its local coordinate space.
public Rect Bounds { get; }
Property Value
Clip
Gets the control's clip rectangle in global coordinate space.
public Rect Clip { get; }
Property Value
Transform
Gets the transform from local to global coordinate space.
public Matrix Transform { get; }
Property Value
Methods
Contains(Point)
public bool Contains(Point point)
Parameters
point
Point
Returns
Equals(TransformedBounds)
public bool Equals(TransformedBounds other)
Parameters
other
TransformedBounds
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(TransformedBounds, TransformedBounds)
public static bool operator ==(TransformedBounds left, TransformedBounds right)
Parameters
left
TransformedBoundsright
TransformedBounds
Returns
operator !=(TransformedBounds, TransformedBounds)
public static bool operator !=(TransformedBounds left, TransformedBounds right)
Parameters
left
TransformedBoundsright
TransformedBounds