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
fn boxed(self, width: SizeConstraint, height: SizeConstraint) -> BoxView<Self>
Wraps self
in a BoxView
with the given size constraints.
fn fixed_size<S: Into<Vec2>>(self, size: S) -> BoxView<Self>
Wraps self
into a fixed-size BoxView
.
fn fixed_width(self, width: usize) -> BoxView<Self>
Wraps self
into a fixed-width BoxView
.
fn fixed_height(self, height: usize) -> BoxView<Self>
Wraps self
into a fixed-width BoxView
.
fn full_screen(self) -> BoxView<Self>
Wraps self
into a full-screen BoxView
.
fn full_width(self) -> BoxView<Self>
Wraps self
into a full-width BoxView
.
fn full_height(self) -> BoxView<Self>
Wraps self
into a full-height BoxView
.
fn max_size<S: Into<Vec2>>(self, size: S) -> BoxView<Self>
Wraps self
into a limited-size BoxView
.
fn max_width(self, max_width: usize) -> BoxView<Self>
Wraps self
into a limited-width BoxView
.
fn max_height(self, max_height: usize) -> BoxView<Self>
Wraps self
into a limited-height BoxView
.
fn min_size<S: Into<Vec2>>(self, size: S) -> BoxView<Self>
Wraps self
into a BoxView
at least sized size
.
fn min_width(self, min_width: usize) -> BoxView<Self>
Wraps self
in a BoxView
at least min_width
wide.
fn min_height(self, min_height: usize) -> BoxView<Self>
Wraps self
in a BoxView
at least min_height
tall.
Implementors
impl<T: View> Boxable for T