Trait nannou::draw::properties::spatial::position::SetPosition[][src]

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

    fn x(self, x: S) -> Self { ... }
fn y(self, y: S) -> Self { ... }
fn z(self, z: S) -> Self { ... }
fn xy(self, p: Point2<S>) -> Self { ... }
fn xyz(self, p: Point3<S>) -> Self { ... }
fn x_y(self, x: S, y: S) -> Self { ... }
fn x_y_z(self, x: S, y: S, z: S) -> Self { ... } }

An API for setting the position::Properties.

Required methods

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

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

Loading content...

Provided methods

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

Build with the given Absolute Position along the x axis.

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

Build with the given Absolute Position along the y axis.

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

Build with the given Absolute Position along the z axis.

fn xy(self, p: Point2<S>) -> Self[src]

Set the Position with some two-dimensional point.

fn xyz(self, p: Point3<S>) -> Self[src]

Set the Position with some three-dimensional point.

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

Set the Position with x y coordinates.

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

Set the Position with x y z coordinates.

Loading content...

Implementors

impl<S> SetPosition<S> for Arrow<S>[src]

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

impl<S> SetPosition<S> for Line<S>[src]

impl<S> SetPosition<S> for Mesh<S>[src]

impl<S> SetPosition<S> for Path<S>[src]

impl<S> SetPosition<S> for Polygon<S>[src]

impl<S> SetPosition<S> for PolygonInit<S>[src]

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

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

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

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

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

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

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

impl<T, S> SetPosition<S> for PathOptions<T, S>[src]

Loading content...