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

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

    fn width(self, w: S) -> Self { ... }
fn height(self, h: S) -> Self { ... }
fn depth(self, d: S) -> Self { ... }
fn w(self, w: S) -> Self { ... }
fn h(self, h: S) -> Self { ... }
fn d(self, d: S) -> Self { ... }
fn wh(self, v: Vector2<S>) -> Self { ... }
fn whd(self, v: Vector3<S>) -> Self { ... }
fn w_h(self, x: S, y: S) -> Self { ... }
fn w_h_d(self, x: S, y: S, z: S) -> Self { ... } }

Primitives that support different dimensions.

Required methods

fn properties(&mut self) -> &mut Properties<S>[src]

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

Loading content...

Provided methods

fn width(self, w: S) -> Self[src]

Set the absolute width for the primitive.

fn height(self, h: S) -> Self[src]

Set the absolute height for the primitive.

fn depth(self, d: S) -> Self[src]

Set the absolute depth for the primitive.

fn w(self, w: S) -> Self[src]

Short-hand for the width method.

fn h(self, h: S) -> Self[src]

Short-hand for the height method.

fn d(self, d: S) -> Self[src]

Short-hand for the depth method.

fn wh(self, v: Vector2<S>) -> Self[src]

Set the x and y dimensions for the primitive.

fn whd(self, v: Vector3<S>) -> Self[src]

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

fn w_h(self, x: S, y: S) -> Self[src]

Set the width and height for the primitive.

fn w_h_d(self, x: S, y: S, z: S) -> Self[src]

Set the width and height for the primitive.

Loading content...

Implementors

impl<S> SetDimensions<S> for Ellipse<S>[src]

impl<S> SetDimensions<S> for Quad<S>[src]

impl<S> SetDimensions<S> for Rect<S>[src]

impl<S> SetDimensions<S> for Text<S>[src]

impl<S> SetDimensions<S> for Texture<S>[src]

impl<S> SetDimensions<S> for Tri<S>[src]

impl<S> SetDimensions<S> for nannou::draw::properties::spatial::Properties<S>[src]

impl<S> SetDimensions<S> for nannou::draw::properties::spatial::dimension::Properties<S>[src]

Loading content...