Trait nannou::draw::properties::spatial::dimension::SetDimensions
source · pub trait SetDimensions: Sized {
// Required method
fn properties(&mut self) -> &mut Properties;
// Provided methods
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§
sourcefn properties(&mut self) -> &mut Properties
fn properties(&mut self) -> &mut Properties
Provide a mutable reference to the dimension::Properties for updating.
Provided Methods§
Object Safety§
This trait is not object safe.