Trait cursive::view::Boxable [] [src]

pub trait Boxable: View + Sized {
    fn boxed(self, width: SizeConstraint, height: SizeConstraint) -> BoxView<Self> { ... }
    fn fixed_size<S: Into<Vec2>>(self, size: S) -> BoxView<Self> { ... }
    fn fixed_width(self, width: usize) -> BoxView<Self> { ... }
    fn fixed_height(self, height: usize) -> BoxView<Self> { ... }
    fn full_screen(self) -> BoxView<Self> { ... }
    fn full_width(self) -> BoxView<Self> { ... }
    fn full_height(self) -> BoxView<Self> { ... }
    fn max_size<S: Into<Vec2>>(self, size: S) -> BoxView<Self> { ... }
    fn max_width(self, max_width: usize) -> BoxView<Self> { ... }
    fn max_height(self, max_height: usize) -> BoxView<Self> { ... }
    fn min_size<S: Into<Vec2>>(self, size: S) -> BoxView<Self> { ... }
    fn min_width(self, min_width: usize) -> BoxView<Self> { ... }
    fn min_height(self, min_height: usize) -> BoxView<Self> { ... }
}

Makes a view wrappable in a BoxView.

Provided Methods

Wraps self in a BoxView with the given size constraints.

Wraps self into a fixed-size BoxView.

Wraps self into a fixed-width BoxView.

Wraps self into a fixed-width BoxView.

Wraps self into a full-screen BoxView.

Wraps self into a full-width BoxView.

Wraps self into a full-height BoxView.

Wraps self into a limited-size BoxView.

Wraps self into a limited-width BoxView.

Wraps self into a limited-height BoxView.

Wraps self into a BoxView at least sized size.

Wraps self in a BoxView at least min_width wide.

Wraps self in a BoxView at least min_height tall.

Implementors