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
fn properties(&mut self) -> &mut Properties
fn properties(&mut self) -> &mut Properties
Provide a mutable reference to the dimension::Properties for updating.