Type Definition cursive::view::Position

source ·
pub type Position = XY<Offset>;
Expand description

Location of the view on screen

Implementations

Returns a position centered on both axis.

Returns a position absolute on both axis.

Returns a position relative to the parent on both axis.

Computes the offset required to draw a view.

When drawing a view with size in a container with available, and a parent with the absolute coordinates parent, drawing the child with its top-left corner at the returned coordinates will position him appropriately.