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

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

    fn x_position(self, position: Position<S>) -> Self { ... }
fn y_position(self, position: Position<S>) -> Self { ... }
fn z_position(self, position: Position<S>) -> Self { ... }
fn x(self, x: S) -> Self { ... }
fn y(self, y: S) -> Self { ... }
fn z(self, y: 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 { ... }
fn x_position_relative(self, x: Relative<S>) -> Self { ... }
fn y_position_relative(self, y: Relative<S>) -> Self { ... }
fn z_position_relative(self, z: Relative<S>) -> Self { ... }
fn x_y_position_relative(self, x: Relative<S>, y: Relative<S>) -> Self { ... }
fn x_y_z_position_relative(
        self,
        x: Relative<S>,
        y: Relative<S>,
        z: Relative<S>
    ) -> Self { ... }
fn x_position_relative_to(self, other: Index, x: Relative<S>) -> Self { ... }
fn y_position_relative_to(self, other: Index, y: Relative<S>) -> Self { ... }
fn z_position_relative_to(self, other: Index, z: Relative<S>) -> Self { ... }
fn x_y_position_relative_to(
        self,
        other: Index,
        x: Relative<S>,
        y: Relative<S>
    ) -> Self { ... }
fn x_y_z_position_relative_to(
        self,
        other: Index,
        x: Relative<S>,
        y: Relative<S>,
        z: Relative<S>
    ) -> Self { ... }
fn x_relative(self, x: S) -> Self { ... }
fn y_relative(self, y: S) -> Self { ... }
fn z_relative(self, z: S) -> Self { ... }
fn xy_relative(self, p: Point2<S>) -> Self { ... }
fn xyz_relative(self, p: Point3<S>) -> Self { ... }
fn x_y_relative(self, x: S, y: S) -> Self { ... }
fn x_y_z_relative(self, x: S, y: S, z: S) -> Self { ... }
fn x_relative_to(self, other: Index, x: S) -> Self { ... }
fn y_relative_to(self, other: Index, y: S) -> Self { ... }
fn z_relative_to(self, other: Index, z: S) -> Self { ... }
fn xy_relative_to(self, other: Index, p: Point2<S>) -> Self { ... }
fn xyz_relative_to(self, other: Index, p: Point3<S>) -> Self { ... }
fn x_y_relative_to(self, other: Index, x: S, y: S) -> Self { ... }
fn x_y_z_relative_to(self, other: Index, x: S, y: S, z: S) -> Self { ... }
fn x_direction(self, direction: Direction, x: S) -> Self { ... }
fn y_direction(self, direction: Direction, y: S) -> Self { ... }
fn z_direction(self, direction: Direction, z: S) -> Self { ... }
fn left(self, x: S) -> Self { ... }
fn right(self, x: S) -> Self { ... }
fn down(self, y: S) -> Self { ... }
fn up(self, y: S) -> Self { ... }
fn backwards(self, z: S) -> Self { ... }
fn forwards(self, z: S) -> Self { ... }
fn x_direction_from(self, other: Index, direction: Direction, x: S) -> Self { ... }
fn y_direction_from(self, other: Index, direction: Direction, y: S) -> Self { ... }
fn z_direction_from(self, other: Index, direction: Direction, z: S) -> Self { ... }
fn left_from(self, other: Index, x: S) -> Self { ... }
fn right_from(self, other: Index, x: S) -> Self { ... }
fn down_from(self, other: Index, y: S) -> Self { ... }
fn up_from(self, other: Index, y: S) -> Self { ... }
fn backwards_from(self, other: Index, z: S) -> Self { ... }
fn forwards_from(self, other: Index, z: S) -> Self { ... }
fn x_align(self, align: Align<S>) -> Self { ... }
fn y_align(self, align: Align<S>) -> Self { ... }
fn z_align(self, align: Align<S>) -> Self { ... }
fn align_left(self) -> Self { ... }
fn align_left_with_margin(self, margin: S) -> Self { ... }
fn align_middle_x(self) -> Self { ... }
fn align_right(self) -> Self { ... }
fn align_right_with_margin(self, margin: S) -> Self { ... }
fn align_bottom(self) -> Self { ... }
fn align_bottom_with_margin(self, margin: S) -> Self { ... }
fn align_middle_y(self) -> Self { ... }
fn align_top(self) -> Self { ... }
fn align_top_with_margin(self, margin: S) -> Self { ... }
fn align_front(self) -> Self { ... }
fn align_front_with_margin(self, margin: S) -> Self { ... }
fn align_middle_z(self) -> Self { ... }
fn align_back(self) -> Self { ... }
fn align_back_with_margin(self, margin: S) -> Self { ... }
fn x_align_to(self, other: Index, align: Align<S>) -> Self { ... }
fn y_align_to(self, other: Index, align: Align<S>) -> Self { ... }
fn z_align_to(self, other: Index, align: Align<S>) -> Self { ... }
fn align_left_of(self, other: Index) -> Self { ... }
fn align_left_of_with_margin(self, other: Index, margin: S) -> Self { ... }
fn align_middle_x_of(self, other: Index) -> Self { ... }
fn align_right_of(self, other: Index) -> Self { ... }
fn align_right_of_with_margin(self, other: Index, margin: S) -> Self { ... }
fn align_bottom_of(self, other: Index) -> Self { ... }
fn align_bottom_of_with_margin(self, other: Index, margin: S) -> Self { ... }
fn align_middle_y_of(self, other: Index) -> Self { ... }
fn align_top_of(self, other: Index) -> Self { ... }
fn align_top_of_with_margin(self, other: Index, margin: S) -> Self { ... }
fn align_front_of(self, other: Index) -> Self { ... }
fn align_front_of_with_margin(self, other: Index, margin: S) -> Self { ... }
fn align_middle_z_of(self, other: Index) -> Self { ... }
fn align_back_of(self, other: Index) -> Self { ... }
fn align_back_of_with_margin(self, other: Index, margin: S) -> Self { ... }
fn middle(self) -> Self { ... }
fn bottom_left(self) -> Self { ... }
fn mid_left(self) -> Self { ... }
fn top_left(self) -> Self { ... }
fn mid_top(self) -> Self { ... }
fn top_right(self) -> Self { ... }
fn mid_right(self) -> Self { ... }
fn bottom_right(self) -> Self { ... }
fn mid_bottom(self) -> Self { ... }
fn middle_of(self, other: Index) -> Self { ... }
fn bottom_left_of(self, other: Index) -> Self { ... }
fn mid_left_of(self, other: Index) -> Self { ... }
fn top_left_of(self, other: Index) -> Self { ... }
fn mid_top_of(self, other: Index) -> Self { ... }
fn top_right_of(self, other: Index) -> Self { ... }
fn mid_right_of(self, other: Index) -> Self { ... }
fn bottom_right_of(self, other: Index) -> Self { ... }
fn mid_bottom_of(self, other: Index) -> Self { ... } }

An API for setting the position::Properties.

Required Methods

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

Provided Methods

Build with the given Position along the x axis.

Build with the given Position along the y axis.

Build with the given Position along the z axis.

Build with the given Absolute Position along the x axis.

Build with the given Absolute Position along the y axis.

Build with the given Absolute Position along the z axis.

Set the Position with some two-dimensional point.

Set the Position with some three-dimensional point.

Set the Position with x y coordinates.

Set the Position with x y z coordinates.

Set the x Position Relative to the previous node.

Set the y Position Relative to the previous node.

Set the z Position Relative to the previous node.

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

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

Set the x Position Relative to the given node.

Set the y Position Relative to the given node.

Set the y Position Relative to the given node.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Build with the Position as some distance below another node.

Build with the Position as some distance above another node.

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

Build with the Position as some distance behind another node.

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

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

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

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

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

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

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

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

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

Align the Position of the node along the x axis.

Align the Position of the node along the y axis.

Align the Position of the node along the z axis.

Align the position to the left.

Align the position to the left.

Align the position to the middle.

Align the position to the right.

Align the position to the right.

Align the position to the bottom.

Align the position to the bottom.

Align the position to the middle.

Align the position to the top.

Align the position to the top.

Align the position to the front.

Align the position to the front.

Align the position to the middle.

Align the position to the back.

Align the position to the back.

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

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

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

Align the position to the left.

Align the position to the left.

Align the position to the middle.

Align the position to the right.

Align the position to the right.

Align the position to the bottom.

Align the position to the bottom.

Align the position to the middle.

Align the position to the top.

Align the position to the top.

Align the position to the front.

Align the position to the front.

Align the position to the middle.

Align the position to the back.

Align the position to the back.

Align the node to the middle of the last node.

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

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

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

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

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

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

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

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

Align the node in the middle of the given Node.

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

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

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

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

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

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

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

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

Implementors