[−][src]Trait nannou::draw::properties::spatial::dimension::SetDimensions
Primitives that support different dimensions.
Required methods
fn properties(&mut self) -> &mut Properties<S>
Provide a mutable reference to the dimension::Properties for updating.
Provided methods
fn width(self, w: S) -> Self
Set the absolute width for the primitive.
fn height(self, h: S) -> Self
Set the absolute height for the primitive.
fn depth(self, d: S) -> Self
Set the absolute depth for the primitive.
fn w(self, w: S) -> Self
Short-hand for the width method.
fn h(self, h: S) -> Self
Short-hand for the height method.
fn d(self, d: S) -> Self
Short-hand for the depth method.
fn wh(self, v: Vector2<S>) -> Self
Set the x and y dimensions for the primitive.
fn whd(self, v: Vector3<S>) -> Self
Set the x, y and z dimensions for the primitive.
fn w_h(self, x: S, y: S) -> Self
Set the width and height for the primitive.
fn w_h_d(self, x: S, y: S, z: S) -> Self
Set the width and height for the primitive.