Trait conrod::Sizeable [−] [src]

pub trait Sizeable: Sized {
    fn width(self, width: Scalar) -> Self;
    fn height(self, height: Scalar) -> Self;

    fn dim(self, dim: Dimensions) -> Self { ... }
    fn dimensions(self, width: Scalar, height: Scalar) -> Self { ... }
}

Widgets that support different dimensions.

Required Methods

fn width(self, width: Scalar) -> Self

Set the width for the widget.

fn height(self, height: Scalar) -> Self

Set the height for the widget.

Provided Methods

fn dim(self, dim: Dimensions) -> Self

Set the dimensions for the widget.

fn dimensions(self, width: Scalar, height: Scalar) -> Self

Set the width and height for the widget.

Implementors