[][src]Trait conrod::position::Sizeable

pub trait Sizeable: Sized {
    fn x_dimension(self, x: Dimension) -> Self;
fn y_dimension(self, x: Dimension) -> Self;
fn get_x_dimension(&self, ui: &Ui) -> Dimension;
fn get_y_dimension(&self, ui: &Ui) -> Dimension; fn w(self, w: Scalar) -> Self { ... }
fn h(self, h: Scalar) -> Self { ... }
fn wh(self, wh: Dimensions) -> Self { ... }
fn w_h(self, width: Scalar, height: Scalar) -> Self { ... }
fn w_of(self, idx: Id) -> Self { ... }
fn padded_w_of(self, idx: Id, pad: Scalar) -> Self { ... }
fn h_of(self, idx: Id) -> Self { ... }
fn padded_h_of(self, idx: Id, pad: Scalar) -> Self { ... }
fn wh_of(self, idx: Id) -> Self { ... }
fn padded_wh_of(self, idx: Id, pad: Scalar) -> Self { ... }
fn kid_area_w_of(self, idx: Id) -> Self { ... }
fn padded_kid_area_w_of(self, idx: Id, pad: Scalar) -> Self { ... }
fn kid_area_h_of(self, idx: Id) -> Self { ... }
fn padded_kid_area_h_of(self, idx: Id, pad: Scalar) -> Self { ... }
fn kid_area_wh_of(self, idx: Id) -> Self { ... }
fn padded_kid_area_wh_of(self, idx: Id, pad: Scalar) -> Self { ... }
fn get_w(&self, ui: &Ui) -> Option<Scalar> { ... }
fn get_h(&self, ui: &Ui) -> Option<Scalar> { ... }
fn get_wh(&self, ui: &Ui) -> Option<Dimensions> { ... } }

Widgets that support different dimensions.

Required Methods

Set the length along the x axis.

Set the length along the y axis.

The widget's length along the x axis as a Dimension.

The widget's length along the y axis as a Dimension.

Provided Methods

Set the absolute width for the widget.

Set the absolute height for the widget.

Set the dimensions for the widget.

Set the width and height for the widget.

Set the width as the width of the widget at the given index.

Set the width as the width of the widget at the given index padded at both ends by the given Scalar.

Set the height as the height of the widget at the given index.

Set the height as the height of the widget at the given index padded at both ends by the given Scalar.

Set the dimensions as the dimensions of the widget at the given index.

Set the dimensions as the dimensions of the widget at the given index with all four edges padded by the given scalar.

Set the width as the width of the padded area of the widget at the given index.

Set the width as the KidArea width for the widget at the given index, padded at both ends by the given scalar.

Set the height as the KidArea height of the widget at the given index.

Set the height as the KidArea height of the widget at the given index, padded at both ends by the given scalar.

Set the dimensions as the KidArea dimensions of the widget at the given index.

Set the dimensions as the KidArea dimensions of the widget at the given index, padded at all four edges by the given scalar.

Get the absolute width of the widget as a Scalar value.

Get the height of the widget.

The dimensions for the widget.

Implementors

impl<W> Sizeable for W where
    W: Widget
[src]

We attempt to retrieve the x Dimension for the widget via the following:

  • Check for specified value at maybe_x_dimension
  • Otherwise, use the default returned by Widget::default_x_dimension.

We attempt to retrieve the y Dimension for the widget via the following:

  • Check for specified value at maybe_y_dimension
  • Otherwise, use the default returned by Widget::default_y_dimension.