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
impl<'a, F> Sizeable for Button<'a, F>
impl<'a, F> Sizeable for DropDownList<'a, F>
impl<'a, E, F> Sizeable for EnvelopeEditor<'a, E, F> where E: EnvelopePoint
impl Sizeable for Matrix
impl<'a, T, F> Sizeable for NumberDialer<'a, T, F>
impl<'a, T, F> Sizeable for Slider<'a, T, F>
impl<'a, F> Sizeable for TextBox<'a, F>
impl<'a, F> Sizeable for Toggle<'a, F>
impl<'a, X, Y, F> Sizeable for XYPad<'a, X, Y, F>