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.
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.