Type Definition cursive::view::Position [] [src]

type Position = XY<Offset>;

Location of the view on screen

Methods

impl Position
[src]

[src]

Returns a position centered on both axis.

[src]

Returns a position absolute on both axis.

[src]

Returns a position relative to the parent on both axis.

[src]

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.