[−][src]Trait fui::cursive::traits::Boxable
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>(self, size: S) -> BoxView<Self> where
S: Into<XY<usize>>,
S: Into<XY<usize>>,
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>(self, size: S) -> BoxView<Self> where
S: Into<XY<usize>>,
S: Into<XY<usize>>,
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>(self, size: S) -> BoxView<Self> where
S: Into<XY<usize>>,
S: Into<XY<usize>>,
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> Boxable for T where
T: View,
[src]
T: View,
fn boxed(self, width: SizeConstraint, height: SizeConstraint) -> BoxView<Self>
[src]
fn fixed_size<S>(self, size: S) -> BoxView<Self> where
S: Into<XY<usize>>,
[src]
S: Into<XY<usize>>,
fn fixed_width(self, width: usize) -> BoxView<Self>
[src]
fn fixed_height(self, height: usize) -> BoxView<Self>
[src]
fn full_screen(self) -> BoxView<Self>
[src]
fn full_width(self) -> BoxView<Self>
[src]
fn full_height(self) -> BoxView<Self>
[src]
fn max_size<S>(self, size: S) -> BoxView<Self> where
S: Into<XY<usize>>,
[src]
S: Into<XY<usize>>,
fn max_width(self, max_width: usize) -> BoxView<Self>
[src]
fn max_height(self, max_height: usize) -> BoxView<Self>
[src]
fn min_size<S>(self, size: S) -> BoxView<Self> where
S: Into<XY<usize>>,
[src]
S: Into<XY<usize>>,