Enum cursive::view::SizeConstraint[][src]

pub enum SizeConstraint {
    Free,
    Full,
    Fixed(usize),
    AtMost(usize),
    AtLeast(usize),
}

Single-dimensional constraint on a view size.

This describes a possible behaviour for a BoxView.

Variants

No constraint imposed, the child view's response is used.

Tries to take all available space, no matter what the child needs.

Always return the included size, no matter what the child needs.

Returns the minimum of the included value and the child view's size.

Returns the maximum of the included value and the child view's size.

Methods

impl SizeConstraint
[src]

Returns the size to be given to the child.

When available is offered to the BoxView.

Returns the size the child view should actually use.

When it said it wanted result.

Trait Implementations

impl Debug for SizeConstraint
[src]

Formats the value using the given formatter. Read more

impl Clone for SizeConstraint
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for SizeConstraint
[src]

Auto Trait Implementations