Trait cursive::traits::Resizable [−][src]
Makes a view wrappable in a ResizedView
.
Provided methods
pub fn boxed(
self,
width: SizeConstraint,
height: SizeConstraint
) -> ResizedView<Self>
[src]
self,
width: SizeConstraint,
height: SizeConstraint
) -> ResizedView<Self>
👎 Deprecated:
Use Resizable::resized()
instead.
Same as resized
pub fn resized(
self,
width: SizeConstraint,
height: SizeConstraint
) -> ResizedView<Self>
[src]
self,
width: SizeConstraint,
height: SizeConstraint
) -> ResizedView<Self>
Wraps self
in a ResizedView
with the given size constraints.
pub fn fixed_size<S>(self, size: S) -> ResizedView<Self> where
S: Into<XY<usize>>,
[src]
S: Into<XY<usize>>,
Wraps self
into a fixed-size ResizedView
.
pub fn fixed_width(self, width: usize) -> ResizedView<Self>
[src]
Wraps self
into a fixed-width ResizedView
.
pub fn fixed_height(self, height: usize) -> ResizedView<Self>
[src]
Wraps self
into a fixed-width ResizedView
.
pub fn full_screen(self) -> ResizedView<Self>
[src]
Wraps self
into a full-screen ResizedView
.
pub fn full_width(self) -> ResizedView<Self>
[src]
Wraps self
into a full-width ResizedView
.
pub fn full_height(self) -> ResizedView<Self>
[src]
Wraps self
into a full-height ResizedView
.
pub fn max_size<S>(self, size: S) -> ResizedView<Self> where
S: Into<XY<usize>>,
[src]
S: Into<XY<usize>>,
Wraps self
into a limited-size ResizedView
.
pub fn max_width(self, max_width: usize) -> ResizedView<Self>
[src]
Wraps self
into a limited-width ResizedView
.
pub fn max_height(self, max_height: usize) -> ResizedView<Self>
[src]
Wraps self
into a limited-height ResizedView
.
pub fn min_size<S>(self, size: S) -> ResizedView<Self> where
S: Into<XY<usize>>,
[src]
S: Into<XY<usize>>,
Wraps self
into a ResizedView
at least sized size
.
pub fn min_width(self, min_width: usize) -> ResizedView<Self>
[src]
Wraps self
in a ResizedView
at least min_width
wide.
pub fn min_height(self, min_height: usize) -> ResizedView<Self>
[src]
Wraps self
in a ResizedView
at least min_height
tall.