Trait nannou::draw::properties::spatial::dimension::SetDimensions[][src]

pub trait SetDimensions: Sized {
    fn properties(&mut self) -> &mut Properties;

    fn width(self, w: f32) -> Self { ... }
fn height(self, h: f32) -> Self { ... }
fn depth(self, d: f32) -> Self { ... }
fn w(self, w: f32) -> Self { ... }
fn h(self, h: f32) -> Self { ... }
fn d(self, d: f32) -> Self { ... }
fn wh(self, v: Vec2) -> Self { ... }
fn whd(self, v: Vec3) -> Self { ... }
fn w_h(self, x: f32, y: f32) -> Self { ... }
fn w_h_d(self, x: f32, y: f32, z: f32) -> Self { ... } }
Expand description

Primitives that support different dimensions.

Required methods

Provide a mutable reference to the dimension::Properties for updating.

Provided methods

Set the absolute width for the primitive.

Set the absolute height for the primitive.

Set the absolute depth for the primitive.

Short-hand for the width method.

Short-hand for the height method.

Short-hand for the depth method.

Set the x and y dimensions for the primitive.

Set the x, y and z dimensions for the primitive.

Set the width and height for the primitive.

Set the width and height for the primitive.

Implementors