pub trait Point2dFormatter {
    fn point(&self, size: impl Size2d) -> IVec2;
fn pivot(self, pivot: Pivot) -> FormattedPoint;
fn relative_point(&self, xy: impl Point2d) -> IVec2; }
Expand description

A trait for aligning a 2d point with a sized rectangle.

Required methods

Return the pivot-adjusted point.

Set the pivot for this point.

Retrieve a point relative to this one given the current pivot.

Implementations on Foreign Types

Set the pivot for this point.

Implementors