[][src]Trait cursive::traits::Resizable

pub trait Resizable: View {
    pub fn boxed(
        self,
        width: SizeConstraint,
        height: SizeConstraint
    ) -> ResizedView<Self> { ... }
pub fn resized(
        self,
        width: SizeConstraint,
        height: SizeConstraint
    ) -> ResizedView<Self> { ... }
pub fn fixed_size<S>(self, size: S) -> ResizedView<Self>
    where
        S: Into<XY<usize>>
, { ... }
pub fn fixed_width(self, width: usize) -> ResizedView<Self> { ... }
pub fn fixed_height(self, height: usize) -> ResizedView<Self> { ... }
pub fn full_screen(self) -> ResizedView<Self> { ... }
pub fn full_width(self) -> ResizedView<Self> { ... }
pub fn full_height(self) -> ResizedView<Self> { ... }
pub fn max_size<S>(self, size: S) -> ResizedView<Self>
    where
        S: Into<XY<usize>>
, { ... }
pub fn max_width(self, max_width: usize) -> ResizedView<Self> { ... }
pub fn max_height(self, max_height: usize) -> ResizedView<Self> { ... }
pub fn min_size<S>(self, size: S) -> ResizedView<Self>
    where
        S: Into<XY<usize>>
, { ... }
pub fn min_width(self, min_width: usize) -> ResizedView<Self> { ... }
pub fn min_height(self, min_height: usize) -> ResizedView<Self> { ... } }

Makes a view wrappable in a ResizedView.

Provided methods

pub fn boxed(
    self,
    width: SizeConstraint,
    height: SizeConstraint
) -> ResizedView<Self>
[src]

👎 Deprecated:

Use Resizable::resized() instead.

Same as resized

pub fn resized(
    self,
    width: SizeConstraint,
    height: SizeConstraint
) -> ResizedView<Self>
[src]

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]

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]

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]

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.

Loading content...

Implementors

impl<T> Resizable for T where
    T: View
[src]

Loading content...