[][src]Struct nannou::draw::properties::spatial::position::Properties

pub struct Properties<S = Default> {
    pub x: Option<Position<S>>,
    pub y: Option<Position<S>>,
    pub z: Option<Position<S>>,
}

Position properties for Drawing a Node.

Fields

x: Option<Position<S>>

Position along the x axis.

y: Option<Position<S>>

Position along the y axis.

z: Option<Position<S>>

Position along the z axis.

Trait Implementations

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

fn x_position(self, position: Position<S>) -> Self[src]

Build with the given Position along the x axis.

fn y_position(self, position: Position<S>) -> Self[src]

Build with the given Position along the y axis.

fn z_position(self, position: Position<S>) -> Self[src]

Build with the given Position along the z axis.

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, y: 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.

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

Set the x Position Relative to the previous node.

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

Set the y Position Relative to the previous node.

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

Set the z Position Relative to the previous node.

fn x_y_position_relative(self, x: Relative<S>, y: Relative<S>) -> Self[src]

Set the x and y Positions Relative to the previous node.

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

Set the x, y and z Positions Relative to the previous node.

fn x_position_relative_to(self, other: Index, x: Relative<S>) -> Self[src]

Set the x Position Relative to the given node.

fn y_position_relative_to(self, other: Index, y: Relative<S>) -> Self[src]

Set the y Position Relative to the given node.

fn z_position_relative_to(self, other: Index, z: Relative<S>) -> Self[src]

Set the y Position Relative to the given node.

fn x_y_position_relative_to(
    self,
    other: Index,
    x: Relative<S>,
    y: Relative<S>
) -> Self
[src]

Set the x and y Positions Relative to the given node.

fn x_y_z_position_relative_to(
    self,
    other: Index,
    x: Relative<S>,
    y: Relative<S>,
    z: Relative<S>
) -> Self
[src]

Set the x, y and z Positions Relative to the given node.

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

Set the Position as a Scalar along the x axis Relative to the middle of previous node. Read more

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

Set the Position as a Scalar along the y axis Relative to the middle of previous node. Read more

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

Set the Position as a Scalar along the z axis Relative to the middle of previous node. Read more

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

Set the Position as a Point Relative to the middle of the previous node.

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

Set the Position as a Point Relative to the middle of the previous node.

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

Set the Position as Scalars along the x and y axes Relative to the middle of the previous node. Read more

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

Set the Position as Scalars along the x, y and z axes Relative to the middle of the previous node. Read more

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

Set the position relative to the node with the given node::Index.

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

Set the position relative to the node with the given node::Index.

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

Set the position relative to the node with the given node::Index.

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

Set the position relative to the node with the given node::Index.

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

Set the position relative to the node with the given node::Index.

fn x_y_relative_to(self, other: Index, x: S, y: S) -> Self[src]

Set the position relative to the node with the given node::Index.

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

Set the position relative to the node with the given node::Index.

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

Build with the Position along the x axis as some distance from another node.

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

Build with the Position along the y axis as some distance from another node.

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

Build with the Position along the z axis as some distance from another node.

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

Build with the Position as some distance to the left of another node.

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

Build with the Position as some distance to the right of another node.

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

Build with the Position as some distance below another node.

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

Build with the Position as some distance above another node.

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

Build with the Position as some distance in front of another node.

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

Build with the Position as some distance behind another node.

fn x_direction_from(self, other: Index, direction: Direction, x: S) -> Self[src]

Build with the Position along the x axis as some distance from the given node.

fn y_direction_from(self, other: Index, direction: Direction, y: S) -> Self[src]

Build with the Position along the y axis as some distance from the given node.

fn z_direction_from(self, other: Index, direction: Direction, z: S) -> Self[src]

Build with the Position along the z axis as some distance from the given node.

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

Build with the Position as some distance to the left of the given node.

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

Build with the Position as some distance to the right of the given node.

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

Build with the Position as some distance below the given node.

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

Build with the Position as some distance above the given node.

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

Build with the Position as some distance in front of the given node.

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

Build with the Position as some distance above the given node.

fn x_align(self, align: Align<S>) -> Self[src]

Align the Position of the node along the x axis.

fn y_align(self, align: Align<S>) -> Self[src]

Align the Position of the node along the y axis.

fn z_align(self, align: Align<S>) -> Self[src]

Align the Position of the node along the z axis.

fn align_left(self) -> Self[src]

Align the position to the left.

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

Align the position to the left.

fn align_middle_x(self) -> Self[src]

Align the position to the middle.

fn align_right(self) -> Self[src]

Align the position to the right.

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

Align the position to the right.

fn align_bottom(self) -> Self[src]

Align the position to the bottom.

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

Align the position to the bottom.

fn align_middle_y(self) -> Self[src]

Align the position to the middle.

fn align_top(self) -> Self[src]

Align the position to the top.

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

Align the position to the top.

fn align_front(self) -> Self[src]

Align the position to the front.

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

Align the position to the front.

fn align_middle_z(self) -> Self[src]

Align the position to the middle.

fn align_back(self) -> Self[src]

Align the position to the back.

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

Align the position to the back.

fn x_align_to(self, other: Index, align: Align<S>) -> Self[src]

Align the Position of the node with the given node along the x axis.

fn y_align_to(self, other: Index, align: Align<S>) -> Self[src]

Align the Position of the node with the given node along the y axis.

fn z_align_to(self, other: Index, align: Align<S>) -> Self[src]

Align the Position of the node with the given node along the z axis.

fn align_left_of(self, other: Index) -> Self[src]

Align the position to the left.

fn align_left_of_with_margin(self, other: Index, margin: S) -> Self[src]

Align the position to the left.

fn align_middle_x_of(self, other: Index) -> Self[src]

Align the position to the middle.

fn align_right_of(self, other: Index) -> Self[src]

Align the position to the right.

fn align_right_of_with_margin(self, other: Index, margin: S) -> Self[src]

Align the position to the right.

fn align_bottom_of(self, other: Index) -> Self[src]

Align the position to the bottom.

fn align_bottom_of_with_margin(self, other: Index, margin: S) -> Self[src]

Align the position to the bottom.

fn align_middle_y_of(self, other: Index) -> Self[src]

Align the position to the middle.

fn align_top_of(self, other: Index) -> Self[src]

Align the position to the top.

fn align_top_of_with_margin(self, other: Index, margin: S) -> Self[src]

Align the position to the top.

fn align_front_of(self, other: Index) -> Self[src]

Align the position to the front.

fn align_front_of_with_margin(self, other: Index, margin: S) -> Self[src]

Align the position to the front.

fn align_middle_z_of(self, other: Index) -> Self[src]

Align the position to the middle.

fn align_back_of(self, other: Index) -> Self[src]

Align the position to the back.

fn align_back_of_with_margin(self, other: Index, margin: S) -> Self[src]

Align the position to the back.

fn middle(self) -> Self[src]

Align the node to the middle of the last node.

fn bottom_left(self) -> Self[src]

Align the node to the bottom left of the last node.

fn mid_left(self) -> Self[src]

Align the node to the middle left of the last node.

fn top_left(self) -> Self[src]

Align the node to the top left of the last node.

fn mid_top(self) -> Self[src]

Align the node to the middle top of the last node.

fn top_right(self) -> Self[src]

Align the node to the top right of the last node.

fn mid_right(self) -> Self[src]

Align the node to the middle right of the last node.

fn bottom_right(self) -> Self[src]

Align the node to the bottom right of the last node.

fn mid_bottom(self) -> Self[src]

Align the node to the middle bottom of the last node.

fn middle_of(self, other: Index) -> Self[src]

Align the node in the middle of the given Node.

fn bottom_left_of(self, other: Index) -> Self[src]

Align the node to the bottom left of the given Node.

fn mid_left_of(self, other: Index) -> Self[src]

Align the node to the middle left of the given Node.

fn top_left_of(self, other: Index) -> Self[src]

Align the node to the top left of the given Node.

fn mid_top_of(self, other: Index) -> Self[src]

Align the node to the middle top of the given Node.

fn top_right_of(self, other: Index) -> Self[src]

Align the node to the top right of the given Node.

fn mid_right_of(self, other: Index) -> Self[src]

Align the node to the middle right of the given Node.

fn bottom_right_of(self, other: Index) -> Self[src]

Align the node to the bottom right of the given Node.

fn mid_bottom_of(self, other: Index) -> Self[src]

Align the node to the middle bottom of the given Node.

impl<S: PartialEq> PartialEq<Properties<S>> for Properties<S>[src]

impl<S: Clone> Clone for Properties<S>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<S> Default for Properties<S>[src]

impl<S: Copy> Copy for Properties<S>[src]

impl<S: Debug> Debug for Properties<S>[src]

Auto Trait Implementations

impl<S> Send for Properties<S> where
    S: Send

impl<S> Sync for Properties<S> where
    S: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Style for T where
    T: Any + Debug + PartialEq<T>, 
[src]

impl<T> Content for T[src]

impl<T> SafeBorrow<T> for T[src]

impl<T> Erased for T

impl<S> FromSample<S> for S[src]

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 
[src]

impl<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.