Struct tuirealm::tui::layout::Rect [−][src]
Expand description
A simple rectangle used in the computation of the layout and to give widgets an hint about the area they are supposed to render to.
Fields
x: u16
y: u16
width: u16
height: u16
Implementations
Creates a new rect, with width and height limited to keep the area under max u16. If clipped, aspect ratio will be preserved.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Rect
impl UnwindSafe for Rect
Blanket Implementations
Mutably borrows from an owned value. Read more