Struct nannou::draw::properties::primitive::ellipse::Ellipse [−][src]
pub struct Ellipse<S = DefaultScalar> { /* fields omitted */ }
Properties related to drawing an Ellipse.
Methods
impl<S> Ellipse<S> where
S: BaseFloat,
[src]
impl<S> Ellipse<S> where
S: BaseFloat,
pub fn radius(self, radius: S) -> Self
[src]
pub fn radius(self, radius: S) -> Self
Specify the width and height of the Ellipse via a given radius.
pub fn resolution(self, resolution: usize) -> Self
[src]
pub fn resolution(self, resolution: usize) -> Self
The number of sides used to draw the ellipse.
Trait Implementations
impl<S: Clone> Clone for Ellipse<S>
[src]
impl<S: Clone> Clone for Ellipse<S>
fn clone(&self) -> Ellipse<S>
[src]
fn clone(&self) -> Ellipse<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<S: Debug> Debug for Ellipse<S>
[src]
impl<S: Debug> Debug for Ellipse<S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S> IntoDrawn<S> for Ellipse<S> where
S: BaseFloat,
[src]
impl<S> IntoDrawn<S> for Ellipse<S> where
S: BaseFloat,
type Vertices = IterFromPoint2s<TriangleVertices<S>, S>
The iterator type yielding all unique vertices in the drawing. Read more
type Indices = TriangleIndices
The iterator type yielding all vertex indices, describing edges of the drawing.
fn into_drawn(self, draw: Draw<S>) -> Drawn<S, Self::Vertices, Self::Indices>
[src]
fn into_drawn(self, draw: Draw<S>) -> Drawn<S, Self::Vertices, Self::Indices>
Consume self
and return its Drawn form.
impl<S> Default for Ellipse<S>
[src]
impl<S> Default for Ellipse<S>
impl<S> SetOrientation<S> for Ellipse<S>
[src]
impl<S> SetOrientation<S> for Ellipse<S>
fn properties(&mut self) -> &mut Properties<S>
[src]
fn properties(&mut self) -> &mut Properties<S>
Provide a mutable reference to the orientation::Properties for updating.
fn look_at(self, target: LookAt<S>) -> Self
[src]
fn look_at(self, target: LookAt<S>) -> Self
Describe orientation via the vector that points to the given target.
fn look_at_node(self, node: Index) -> Self
[src]
fn look_at_node(self, node: Index) -> Self
Describe orientation via the vector that points to the given node.
fn look_at_point(self, point: Point3<S>) -> Self
[src]
fn look_at_point(self, point: Point3<S>) -> Self
Describe orientation via the vector that points to the given point.
fn x_orientation(self, orientation: Orientation<S>) -> Self
[src]
fn x_orientation(self, orientation: Orientation<S>) -> Self
Build with the given Orientation along the x axis.
fn y_orientation(self, orientation: Orientation<S>) -> Self
[src]
fn y_orientation(self, orientation: Orientation<S>) -> Self
Build with the given Orientation along the x axis.
fn z_orientation(self, orientation: Orientation<S>) -> Self
[src]
fn z_orientation(self, orientation: Orientation<S>) -> Self
Build with the given Orientation along the x axis.
fn x_radians(self, x: S) -> Self
[src]
fn x_radians(self, x: S) -> Self
Specify the orientation around the x axis as an absolute value in radians.
fn y_radians(self, y: S) -> Self
[src]
fn y_radians(self, y: S) -> Self
Specify the orientation around the y axis as an absolute value in radians.
fn z_radians(self, z: S) -> Self
[src]
fn z_radians(self, z: S) -> Self
Specify the orientation around the z axis as an absolute value in radians.
fn x_degrees(self, x: S) -> Self where
S: BaseFloat,
[src]
fn x_degrees(self, x: S) -> Self where
S: BaseFloat,
Specify the orientation around the x axis as an absolute value in radians.
fn y_degrees(self, y: S) -> Self where
S: BaseFloat,
[src]
fn y_degrees(self, y: S) -> Self where
S: BaseFloat,
Specify the orientation around the y axis as an absolute value in radians.
fn z_degrees(self, z: S) -> Self where
S: BaseFloat,
[src]
fn z_degrees(self, z: S) -> Self where
S: BaseFloat,
Specify the orientation around the z axis as an absolute value in radians.
fn x_turns(self, x: S) -> Self where
S: BaseFloat,
[src]
fn x_turns(self, x: S) -> Self where
S: BaseFloat,
Specify the orientation around the x axis as a number of turns around the axis.
fn y_turns(self, y: S) -> Self where
S: BaseFloat,
[src]
fn y_turns(self, y: S) -> Self where
S: BaseFloat,
Specify the orientation around the y axis as a number of turns around the axis.
fn z_turns(self, z: S) -> Self where
S: BaseFloat,
[src]
fn z_turns(self, z: S) -> Self where
S: BaseFloat,
Specify the orientation around the z axis as a number of turns around the axis.
fn radians(self, v: Vector3<S>) -> Self
[src]
fn radians(self, v: Vector3<S>) -> Self
Specify the orientation along each axis with the given Vector of radians. Read more
fn degrees(self, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
fn degrees(self, v: Vector3<S>) -> Self where
S: BaseFloat,
Specify the orientation along each axis with the given Vector of degrees. Read more
fn turns(self, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
fn turns(self, v: Vector3<S>) -> Self where
S: BaseFloat,
Specify the orientation along each axis with the given Vector of "turns". Read more
fn euler<A>(self, e: Euler<A>) -> Self where
S: BaseFloat,
A: Angle + Into<Rad<S>>,
[src]
fn euler<A>(self, e: Euler<A>) -> Self where
S: BaseFloat,
A: Angle + Into<Rad<S>>,
Specify the orientation with the given Euler. Read more
fn quaternion(self, q: Quaternion<S>) -> Self where
S: BaseFloat,
[src]
fn quaternion(self, q: Quaternion<S>) -> Self where
S: BaseFloat,
Specify the orientation with the given Quaternion.
fn x_radians_relative(self, x: S) -> Self
[src]
fn x_radians_relative(self, x: S) -> Self
Specify the orientation around the x axis as a relative value in radians.
fn y_radians_relative(self, y: S) -> Self
[src]
fn y_radians_relative(self, y: S) -> Self
Specify the orientation around the y axis as a relative value in radians.
fn z_radians_relative(self, z: S) -> Self
[src]
fn z_radians_relative(self, z: S) -> Self
Specify the orientation around the z axis as a relative value in radians.
fn x_radians_relative_to(self, other: Index, x: S) -> Self
[src]
fn x_radians_relative_to(self, other: Index, x: S) -> Self
Specify the orientation around the x axis as a relative value in radians.
fn y_radians_relative_to(self, other: Index, y: S) -> Self
[src]
fn y_radians_relative_to(self, other: Index, y: S) -> Self
Specify the orientation around the y axis as a relative value in radians.
fn z_radians_relative_to(self, other: Index, z: S) -> Self
[src]
fn z_radians_relative_to(self, other: Index, z: S) -> Self
Specify the orientation around the z axis as a relative value in radians.
fn x_degrees_relative(self, x: S) -> Self where
S: BaseFloat,
[src]
fn x_degrees_relative(self, x: S) -> Self where
S: BaseFloat,
Specify the orientation around the x axis as a relative value in degrees.
fn y_degrees_relative(self, y: S) -> Self where
S: BaseFloat,
[src]
fn y_degrees_relative(self, y: S) -> Self where
S: BaseFloat,
Specify the orientation around the y axis as a relative value in degrees.
fn z_degrees_relative(self, z: S) -> Self where
S: BaseFloat,
[src]
fn z_degrees_relative(self, z: S) -> Self where
S: BaseFloat,
Specify the orientation around the z axis as a relative value in degrees.
fn x_degrees_relative_to(self, other: Index, x: S) -> Self where
S: BaseFloat,
[src]
fn x_degrees_relative_to(self, other: Index, x: S) -> Self where
S: BaseFloat,
Specify the orientation around the x axis as a relative value in degrees.
fn y_degrees_relative_to(self, other: Index, y: S) -> Self where
S: BaseFloat,
[src]
fn y_degrees_relative_to(self, other: Index, y: S) -> Self where
S: BaseFloat,
Specify the orientation around the y axis as a relative value in degrees.
fn z_degrees_relative_to(self, other: Index, z: S) -> Self where
S: BaseFloat,
[src]
fn z_degrees_relative_to(self, other: Index, z: S) -> Self where
S: BaseFloat,
Specify the orientation around the z axis as a relative value in degrees.
fn x_turns_relative(self, x: S) -> Self where
S: BaseFloat,
[src]
fn x_turns_relative(self, x: S) -> Self where
S: BaseFloat,
Specify the relative orientation around the x axis as a number of turns around the axis.
fn y_turns_relative(self, y: S) -> Self where
S: BaseFloat,
[src]
fn y_turns_relative(self, y: S) -> Self where
S: BaseFloat,
Specify the relative orientation around the y axis as a number of turns around the axis.
fn z_turns_relative(self, z: S) -> Self where
S: BaseFloat,
[src]
fn z_turns_relative(self, z: S) -> Self where
S: BaseFloat,
Specify the relative orientation around the z axis as a number of turns around the axis.
fn x_turns_relative_to(self, other: Index, x: S) -> Self where
S: BaseFloat,
[src]
fn x_turns_relative_to(self, other: Index, x: S) -> Self where
S: BaseFloat,
Specify the relative orientation around the x axis as a number of turns around the axis.
fn y_turns_relative_to(self, other: Index, y: S) -> Self where
S: BaseFloat,
[src]
fn y_turns_relative_to(self, other: Index, y: S) -> Self where
S: BaseFloat,
Specify the relative orientation around the y axis as a number of turns around the axis.
fn z_turns_relative_to(self, other: Index, z: S) -> Self where
S: BaseFloat,
[src]
fn z_turns_relative_to(self, other: Index, z: S) -> Self where
S: BaseFloat,
Specify the relative orientation around the z axis as a number of turns around the axis.
fn radians_relative(self, v: Vector3<S>) -> Self
[src]
fn radians_relative(self, v: Vector3<S>) -> Self
Specify a relative orientation along each axis with the given Vector of radians. Read more
fn radians_relative_to(self, other: Index, v: Vector3<S>) -> Self
[src]
fn radians_relative_to(self, other: Index, v: Vector3<S>) -> Self
Specify a relative orientation along each axis with the given Vector of radians. Read more
fn degrees_relative(self, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
fn degrees_relative(self, v: Vector3<S>) -> Self where
S: BaseFloat,
Specify a relative orientation along each axis with the given Vector of degrees. Read more
fn degrees_relative_to(self, other: Index, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
fn degrees_relative_to(self, other: Index, v: Vector3<S>) -> Self where
S: BaseFloat,
Specify a relative orientation along each axis with the given Vector of degrees. Read more
fn turns_relative(self, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
fn turns_relative(self, v: Vector3<S>) -> Self where
S: BaseFloat,
Specify a relative orientation along each axis with the given Vector of "turns". Read more
fn turns_relative_to(self, other: Index, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
fn turns_relative_to(self, other: Index, v: Vector3<S>) -> Self where
S: BaseFloat,
Specify a relative orientation along each axis with the given Vector of "turns". Read more
fn euler_relative<A>(self, e: Euler<A>) -> Self where
S: BaseFloat,
A: Angle + Into<Rad<S>>,
[src]
fn euler_relative<A>(self, e: Euler<A>) -> Self where
S: BaseFloat,
A: Angle + Into<Rad<S>>,
Specify a relative orientation with the given Euler. Read more
fn euler_relative_to<A>(self, other: Index, e: Euler<A>) -> Self where
S: BaseFloat,
A: Angle + Into<Rad<S>>,
[src]
fn euler_relative_to<A>(self, other: Index, e: Euler<A>) -> Self where
S: BaseFloat,
A: Angle + Into<Rad<S>>,
Specify a relative orientation with the given Euler. Read more
fn pitch(self, pitch: S) -> Self
[src]
fn pitch(self, pitch: S) -> Self
Specify the "pitch" of the orientation in radians. Read more
fn yaw(self, yaw: S) -> Self
[src]
fn yaw(self, yaw: S) -> Self
Specify the "yaw" of the orientation in radians. Read more
fn roll(self, roll: S) -> Self
[src]
fn roll(self, roll: S) -> Self
Specify the "roll" of the orientation in radians. Read more
fn rotate(self, radians: S) -> Self
[src]
fn rotate(self, radians: S) -> Self
Assuming we're looking at a 2D plane, positive values cause a clockwise rotation where the given value is specified in radians. Read more
impl<S> SetPosition<S> for Ellipse<S>
[src]
impl<S> SetPosition<S> for Ellipse<S>
fn properties(&mut self) -> &mut Properties<S>
[src]
fn properties(&mut self) -> &mut Properties<S>
Provide a mutable reference to the position::Properties for updating.
fn x_position(self, position: Position<S>) -> Self
[src]
fn x_position(self, position: Position<S>) -> Self
Build with the given Position along the x axis.
fn y_position(self, position: Position<S>) -> Self
[src]
fn y_position(self, position: Position<S>) -> Self
Build with the given Position along the y axis.
fn z_position(self, position: Position<S>) -> Self
[src]
fn z_position(self, position: Position<S>) -> Self
Build with the given Position along the z axis.
fn x(self, x: S) -> Self
[src]
fn x(self, x: S) -> Self
Build with the given Absolute Position along the x axis.
fn y(self, y: S) -> Self
[src]
fn y(self, y: S) -> Self
Build with the given Absolute Position along the y axis.
fn z(self, y: S) -> Self
[src]
fn z(self, y: S) -> Self
Build with the given Absolute Position along the z axis.
fn xy(self, p: Point2<S>) -> Self
[src]
fn xy(self, p: Point2<S>) -> Self
Set the Position with some two-dimensional point.
fn xyz(self, p: Point3<S>) -> Self
[src]
fn xyz(self, p: Point3<S>) -> Self
Set the Position with some three-dimensional point.
fn x_y(self, x: S, y: S) -> Self
[src]
fn x_y(self, x: S, y: S) -> Self
Set the Position with x y coordinates.
fn x_y_z(self, x: S, y: S, z: S) -> Self
[src]
fn x_y_z(self, x: S, y: S, z: S) -> Self
Set the Position with x y z coordinates.
fn x_position_relative(self, x: Relative<S>) -> Self
[src]
fn x_position_relative(self, x: Relative<S>) -> Self
Set the x Position Relative to the previous node.
fn y_position_relative(self, y: Relative<S>) -> Self
[src]
fn y_position_relative(self, y: Relative<S>) -> Self
Set the y Position Relative to the previous node.
fn z_position_relative(self, z: Relative<S>) -> Self
[src]
fn z_position_relative(self, z: Relative<S>) -> Self
Set the z Position Relative to the previous node.
fn x_y_position_relative(self, x: Relative<S>, y: Relative<S>) -> Self
[src]
fn x_y_position_relative(self, x: Relative<S>, y: Relative<S>) -> Self
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]
fn x_y_z_position_relative(
self,
x: Relative<S>,
y: Relative<S>,
z: Relative<S>
) -> Self
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]
fn x_position_relative_to(self, other: Index, x: Relative<S>) -> Self
Set the x Position Relative to the given node.
fn y_position_relative_to(self, other: Index, y: Relative<S>) -> Self
[src]
fn y_position_relative_to(self, other: Index, y: Relative<S>) -> Self
Set the y Position Relative to the given node.
fn z_position_relative_to(self, other: Index, z: Relative<S>) -> Self
[src]
fn z_position_relative_to(self, other: Index, z: Relative<S>) -> Self
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]
fn x_y_position_relative_to(
self,
other: Index,
x: Relative<S>,
y: Relative<S>
) -> Self
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]
fn x_y_z_position_relative_to(
self,
other: Index,
x: Relative<S>,
y: Relative<S>,
z: Relative<S>
) -> Self
Set the x, y and z Positions Relative to the given node.
fn x_relative(self, x: S) -> Self
[src]
fn x_relative(self, x: S) -> Self
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]
fn y_relative(self, y: S) -> Self
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]
fn z_relative(self, z: S) -> Self
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]
fn xy_relative(self, p: Point2<S>) -> Self
Set the Position as a Point Relative to the middle of the previous node.
fn xyz_relative(self, p: Point3<S>) -> Self
[src]
fn xyz_relative(self, p: Point3<S>) -> Self
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]
fn x_y_relative(self, x: S, y: S) -> Self
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]
fn x_y_z_relative(self, x: S, y: S, z: S) -> Self
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]
fn x_relative_to(self, other: Index, x: S) -> Self
Set the position relative to the node with the given node::Index.
fn y_relative_to(self, other: Index, y: S) -> Self
[src]
fn y_relative_to(self, other: Index, y: S) -> Self
Set the position relative to the node with the given node::Index.
fn z_relative_to(self, other: Index, z: S) -> Self
[src]
fn z_relative_to(self, other: Index, z: S) -> Self
Set the position relative to the node with the given node::Index.
fn xy_relative_to(self, other: Index, p: Point2<S>) -> Self
[src]
fn xy_relative_to(self, other: Index, p: Point2<S>) -> Self
Set the position relative to the node with the given node::Index.
fn xyz_relative_to(self, other: Index, p: Point3<S>) -> Self
[src]
fn xyz_relative_to(self, other: Index, p: Point3<S>) -> Self
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]
fn x_y_relative_to(self, other: Index, x: S, y: S) -> Self
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]
fn x_y_z_relative_to(self, other: Index, x: S, y: S, z: S) -> Self
Set the position relative to the node with the given node::Index.
fn x_direction(self, direction: Direction, x: S) -> Self
[src]
fn x_direction(self, direction: Direction, x: S) -> Self
Build with the Position along the x axis as some distance from another node.
fn y_direction(self, direction: Direction, y: S) -> Self
[src]
fn y_direction(self, direction: Direction, y: S) -> Self
Build with the Position along the y axis as some distance from another node.
fn z_direction(self, direction: Direction, z: S) -> Self
[src]
fn z_direction(self, direction: Direction, z: S) -> Self
Build with the Position along the z axis as some distance from another node.
fn left(self, x: S) -> Self
[src]
fn left(self, x: S) -> Self
Build with the Position as some distance to the left of another node.
fn right(self, x: S) -> Self
[src]
fn right(self, x: S) -> Self
Build with the Position as some distance to the right of another node.
fn down(self, y: S) -> Self
[src]
fn down(self, y: S) -> Self
Build with the Position as some distance below another node.
fn up(self, y: S) -> Self
[src]
fn up(self, y: S) -> Self
Build with the Position as some distance above another node.
fn backwards(self, z: S) -> Self
[src]
fn backwards(self, z: S) -> Self
Build with the Position as some distance in front of another node.
fn forwards(self, z: S) -> Self
[src]
fn forwards(self, z: S) -> Self
Build with the Position as some distance behind another node.
fn x_direction_from(self, other: Index, direction: Direction, x: S) -> Self
[src]
fn x_direction_from(self, other: Index, direction: Direction, x: S) -> Self
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]
fn y_direction_from(self, other: Index, direction: Direction, y: S) -> Self
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]
fn z_direction_from(self, other: Index, direction: Direction, z: S) -> Self
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]
fn left_from(self, other: Index, x: S) -> Self
Build with the Position as some distance to the left of the given node.
fn right_from(self, other: Index, x: S) -> Self
[src]
fn right_from(self, other: Index, x: S) -> Self
Build with the Position as some distance to the right of the given node.
fn down_from(self, other: Index, y: S) -> Self
[src]
fn down_from(self, other: Index, y: S) -> Self
Build with the Position as some distance below the given node.
fn up_from(self, other: Index, y: S) -> Self
[src]
fn up_from(self, other: Index, y: S) -> Self
Build with the Position as some distance above the given node.
fn backwards_from(self, other: Index, z: S) -> Self
[src]
fn backwards_from(self, other: Index, z: S) -> Self
Build with the Position as some distance in front of the given node.
fn forwards_from(self, other: Index, z: S) -> Self
[src]
fn forwards_from(self, other: Index, z: S) -> Self
Build with the Position as some distance above the given node.
fn x_align(self, align: Align<S>) -> Self
[src]
fn x_align(self, align: Align<S>) -> Self
Align the Position of the node along the x axis.
fn y_align(self, align: Align<S>) -> Self
[src]
fn y_align(self, align: Align<S>) -> Self
Align the Position of the node along the y axis.
fn z_align(self, align: Align<S>) -> Self
[src]
fn z_align(self, align: Align<S>) -> Self
Align the Position of the node along the z axis.
fn align_left(self) -> Self
[src]
fn align_left(self) -> Self
Align the position to the left.
fn align_left_with_margin(self, margin: S) -> Self
[src]
fn align_left_with_margin(self, margin: S) -> Self
Align the position to the left.
fn align_middle_x(self) -> Self
[src]
fn align_middle_x(self) -> Self
Align the position to the middle.
fn align_right(self) -> Self
[src]
fn align_right(self) -> Self
Align the position to the right.
fn align_right_with_margin(self, margin: S) -> Self
[src]
fn align_right_with_margin(self, margin: S) -> Self
Align the position to the right.
fn align_bottom(self) -> Self
[src]
fn align_bottom(self) -> Self
Align the position to the bottom.
fn align_bottom_with_margin(self, margin: S) -> Self
[src]
fn align_bottom_with_margin(self, margin: S) -> Self
Align the position to the bottom.
fn align_middle_y(self) -> Self
[src]
fn align_middle_y(self) -> Self
Align the position to the middle.
fn align_top(self) -> Self
[src]
fn align_top(self) -> Self
Align the position to the top.
fn align_top_with_margin(self, margin: S) -> Self
[src]
fn align_top_with_margin(self, margin: S) -> Self
Align the position to the top.
fn align_front(self) -> Self
[src]
fn align_front(self) -> Self
Align the position to the front.
fn align_front_with_margin(self, margin: S) -> Self
[src]
fn align_front_with_margin(self, margin: S) -> Self
Align the position to the front.
fn align_middle_z(self) -> Self
[src]
fn align_middle_z(self) -> Self
Align the position to the middle.
fn align_back(self) -> Self
[src]
fn align_back(self) -> Self
Align the position to the back.
fn align_back_with_margin(self, margin: S) -> Self
[src]
fn align_back_with_margin(self, margin: S) -> Self
Align the position to the back.
fn x_align_to(self, other: Index, align: Align<S>) -> Self
[src]
fn x_align_to(self, other: Index, align: Align<S>) -> Self
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]
fn y_align_to(self, other: Index, align: Align<S>) -> Self
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]
fn z_align_to(self, other: Index, align: Align<S>) -> Self
Align the Position of the node with the given node along the z axis.
fn align_left_of(self, other: Index) -> Self
[src]
fn align_left_of(self, other: Index) -> Self
Align the position to the left.
fn align_left_of_with_margin(self, other: Index, margin: S) -> Self
[src]
fn align_left_of_with_margin(self, other: Index, margin: S) -> Self
Align the position to the left.
fn align_middle_x_of(self, other: Index) -> Self
[src]
fn align_middle_x_of(self, other: Index) -> Self
Align the position to the middle.
fn align_right_of(self, other: Index) -> Self
[src]
fn align_right_of(self, other: Index) -> Self
Align the position to the right.
fn align_right_of_with_margin(self, other: Index, margin: S) -> Self
[src]
fn align_right_of_with_margin(self, other: Index, margin: S) -> Self
Align the position to the right.
fn align_bottom_of(self, other: Index) -> Self
[src]
fn align_bottom_of(self, other: Index) -> Self
Align the position to the bottom.
fn align_bottom_of_with_margin(self, other: Index, margin: S) -> Self
[src]
fn align_bottom_of_with_margin(self, other: Index, margin: S) -> Self
Align the position to the bottom.
fn align_middle_y_of(self, other: Index) -> Self
[src]
fn align_middle_y_of(self, other: Index) -> Self
Align the position to the middle.
fn align_top_of(self, other: Index) -> Self
[src]
fn align_top_of(self, other: Index) -> Self
Align the position to the top.
fn align_top_of_with_margin(self, other: Index, margin: S) -> Self
[src]
fn align_top_of_with_margin(self, other: Index, margin: S) -> Self
Align the position to the top.
fn align_front_of(self, other: Index) -> Self
[src]
fn align_front_of(self, other: Index) -> Self
Align the position to the front.
fn align_front_of_with_margin(self, other: Index, margin: S) -> Self
[src]
fn align_front_of_with_margin(self, other: Index, margin: S) -> Self
Align the position to the front.
fn align_middle_z_of(self, other: Index) -> Self
[src]
fn align_middle_z_of(self, other: Index) -> Self
Align the position to the middle.
fn align_back_of(self, other: Index) -> Self
[src]
fn align_back_of(self, other: Index) -> Self
Align the position to the back.
fn align_back_of_with_margin(self, other: Index, margin: S) -> Self
[src]
fn align_back_of_with_margin(self, other: Index, margin: S) -> Self
Align the position to the back.
fn middle(self) -> Self
[src]
fn middle(self) -> Self
Align the node to the middle of the last node.
fn bottom_left(self) -> Self
[src]
fn bottom_left(self) -> Self
Align the node to the bottom left of the last node.
fn mid_left(self) -> Self
[src]
fn mid_left(self) -> Self
Align the node to the middle left of the last node.
fn top_left(self) -> Self
[src]
fn top_left(self) -> Self
Align the node to the top left of the last node.
fn mid_top(self) -> Self
[src]
fn mid_top(self) -> Self
Align the node to the middle top of the last node.
fn top_right(self) -> Self
[src]
fn top_right(self) -> Self
Align the node to the top right of the last node.
fn mid_right(self) -> Self
[src]
fn mid_right(self) -> Self
Align the node to the middle right of the last node.
fn bottom_right(self) -> Self
[src]
fn bottom_right(self) -> Self
Align the node to the bottom right of the last node.
fn mid_bottom(self) -> Self
[src]
fn mid_bottom(self) -> Self
Align the node to the middle bottom of the last node.
fn middle_of(self, other: Index) -> Self
[src]
fn middle_of(self, other: Index) -> Self
Align the node in the middle of the given Node.
fn bottom_left_of(self, other: Index) -> Self
[src]
fn bottom_left_of(self, other: Index) -> Self
Align the node to the bottom left of the given Node.
fn mid_left_of(self, other: Index) -> Self
[src]
fn mid_left_of(self, other: Index) -> Self
Align the node to the middle left of the given Node.
fn top_left_of(self, other: Index) -> Self
[src]
fn top_left_of(self, other: Index) -> Self
Align the node to the top left of the given Node.
fn mid_top_of(self, other: Index) -> Self
[src]
fn mid_top_of(self, other: Index) -> Self
Align the node to the middle top of the given Node.
fn top_right_of(self, other: Index) -> Self
[src]
fn top_right_of(self, other: Index) -> Self
Align the node to the top right of the given Node.
fn mid_right_of(self, other: Index) -> Self
[src]
fn mid_right_of(self, other: Index) -> Self
Align the node to the middle right of the given Node.
fn bottom_right_of(self, other: Index) -> Self
[src]
fn bottom_right_of(self, other: Index) -> Self
Align the node to the bottom right of the given Node.
fn mid_bottom_of(self, other: Index) -> Self
[src]
fn mid_bottom_of(self, other: Index) -> Self
Align the node to the middle bottom of the given Node.
impl<S> SetDimensions<S> for Ellipse<S>
[src]
impl<S> SetDimensions<S> for Ellipse<S>
fn properties(&mut self) -> &mut Properties<S>
[src]
fn properties(&mut self) -> &mut Properties<S>
Provide a mutable reference to the dimension::Properties for updating.
fn x_dimension(self, x: Dimension<S>) -> Self
[src]
fn x_dimension(self, x: Dimension<S>) -> Self
Set the length along the x axis.
fn y_dimension(self, y: Dimension<S>) -> Self
[src]
fn y_dimension(self, y: Dimension<S>) -> Self
Set the length along the y axis.
fn z_dimension(self, z: Dimension<S>) -> Self
[src]
fn z_dimension(self, z: Dimension<S>) -> Self
Set the length along the z axis.
fn width(self, w: S) -> Self
[src]
fn width(self, w: S) -> Self
Set the absolute width for the node.
fn height(self, h: S) -> Self
[src]
fn height(self, h: S) -> Self
Set the absolute height for the node.
fn depth(self, d: S) -> Self
[src]
fn depth(self, d: S) -> Self
Set the absolute depth for the node.
fn w(self, w: S) -> Self
[src]
fn w(self, w: S) -> Self
Short-hand for the width method.
fn h(self, h: S) -> Self
[src]
fn h(self, h: S) -> Self
Short-hand for the height method.
fn d(self, d: S) -> Self
[src]
fn d(self, d: S) -> Self
Short-hand for the depth method.
fn wh(self, v: Vector2<S>) -> Self
[src]
fn wh(self, v: Vector2<S>) -> Self
Set the x and y dimensions for the node.
fn whd(self, v: Vector3<S>) -> Self
[src]
fn whd(self, v: Vector3<S>) -> Self
Set the x, y and z dimensions for the node.
fn w_h(self, x: S, y: S) -> Self
[src]
fn w_h(self, x: S, y: S) -> Self
Set the width and height for the node.
fn w_h_d(self, x: S, y: S, z: S) -> Self
[src]
fn w_h_d(self, x: S, y: S, z: S) -> Self
Set the width and height for the node.
fn x_dimension_relative(self, other: Index, x: Relative<S>) -> Self
[src]
fn x_dimension_relative(self, other: Index, x: Relative<S>) -> Self
Some relative dimension along the x axis.
fn y_dimension_relative(self, other: Index, y: Relative<S>) -> Self
[src]
fn y_dimension_relative(self, other: Index, y: Relative<S>) -> Self
Some relative dimension along the y axis.
fn z_dimension_relative(self, other: Index, z: Relative<S>) -> Self
[src]
fn z_dimension_relative(self, other: Index, z: Relative<S>) -> Self
Some relative dimension along the z axis.
fn w_of(self, other: Index) -> Self
[src]
fn w_of(self, other: Index) -> Self
Set the x-axis dimension as the width of the node at the given index.
fn h_of(self, other: Index) -> Self
[src]
fn h_of(self, other: Index) -> Self
Set the y-axis dimension as the height of the node at the given index.
fn d_of(self, other: Index) -> Self
[src]
fn d_of(self, other: Index) -> Self
Set the z-axis dimension as the depth of the node at the given index.
fn wh_of(self, other: Index) -> Self
[src]
fn wh_of(self, other: Index) -> Self
Set the dimensions as the dimensions of the node at the given index.
fn whd_of(self, other: Index) -> Self
[src]
fn whd_of(self, other: Index) -> Self
Set the dimensions as the dimensions of the node at the given index.
fn padded_w_of(self, other: Index, pad: S) -> Self
[src]
fn padded_w_of(self, other: Index, pad: S) -> Self
Set the width as the width of the node at the given index padded at both ends by the given Scalar. Read more
fn padded_h_of(self, other: Index, pad: S) -> Self
[src]
fn padded_h_of(self, other: Index, pad: S) -> Self
Set the height as the height of the node at the given index padded at both ends by the given Scalar. Read more
fn padded_d_of(self, other: Index, pad: S) -> Self
[src]
fn padded_d_of(self, other: Index, pad: S) -> Self
Set the depth as the depth of the node at the given index padded at both ends by the given Scalar. Read more
fn padded_wh_of(self, other: Index, pad: S) -> Self where
S: Clone,
[src]
fn padded_wh_of(self, other: Index, pad: S) -> Self where
S: Clone,
Set the dimensions as the dimensions of the node at the given index with each dimension padded by the given scalar. Read more
fn padded_whd_of(self, other: Index, pad: S) -> Self where
S: Clone,
[src]
fn padded_whd_of(self, other: Index, pad: S) -> Self where
S: Clone,
Set the dimensions as the dimensions of the node at the given index with each dimension padded by the given scalar. Read more
fn scaled_w_of(self, other: Index, scale: S) -> Self
[src]
fn scaled_w_of(self, other: Index, scale: S) -> Self
Set the width as the width of the node at the given index multiplied by the given scale Scalar value. Read more
fn scaled_h_of(self, other: Index, scale: S) -> Self
[src]
fn scaled_h_of(self, other: Index, scale: S) -> Self
Set the height as the height of the node at the given index multiplied by the given scale Scalar value. Read more
fn scaled_d_of(self, other: Index, scale: S) -> Self
[src]
fn scaled_d_of(self, other: Index, scale: S) -> Self
Set the depth as the depth of the node at the given index multiplied by the given scale Scalar value. Read more
fn scaled_wh_of(self, other: Index, scale: S) -> Self where
S: Clone,
[src]
fn scaled_wh_of(self, other: Index, scale: S) -> Self where
S: Clone,
Set the dimensions as the dimensions of the node at the given index multiplied by the given scale Scalar value. Read more
fn scaled_whd_of(self, other: Index, scale: S) -> Self where
S: Clone,
[src]
fn scaled_whd_of(self, other: Index, scale: S) -> Self where
S: Clone,
Set the dimensions as the dimensions of the node at the given index multiplied by the given scale Scalar value. Read more
impl<S> SetColor<ColorScalar> for Ellipse<S>
[src]
impl<S> SetColor<ColorScalar> for Ellipse<S>
fn rgba_mut(&mut self) -> &mut Option<Rgba>
[src]
fn rgba_mut(&mut self) -> &mut Option<Rgba>
Provide a mutable reference to the RGBA field which can be used for setting colors.
fn color<C>(self, color: C) -> Self where
C: IntoRgba<S>,
[src]
fn color<C>(self, color: C) -> Self where
C: IntoRgba<S>,
Specify a color. Read more
fn rgb(self, r: S, g: S, b: S) -> Self
[src]
fn rgb(self, r: S, g: S, b: S) -> Self
Specify the color via red, green and blue channels.
fn rgba(self, r: S, g: S, b: S, a: S) -> Self
[src]
fn rgba(self, r: S, g: S, b: S, a: S) -> Self
Specify the color via red, green, blue and alpha channels.
fn hsl(self, h: S, s: S, l: S) -> Self where
S: Into<RgbHue<S>>,
[src]
fn hsl(self, h: S, s: S, l: S) -> Self where
S: Into<RgbHue<S>>,
Specify the color via hue, saturation and luminance. Read more
fn hsla(self, h: S, s: S, l: S, a: S) -> Self where
S: Into<RgbHue<S>>,
[src]
fn hsla(self, h: S, s: S, l: S, a: S) -> Self where
S: Into<RgbHue<S>>,
Specify the color via hue, saturation, luminance and an alpha channel. Read more
fn hsv(self, h: S, s: S, v: S) -> Self where
S: Into<RgbHue<S>>,
[src]
fn hsv(self, h: S, s: S, v: S) -> Self where
S: Into<RgbHue<S>>,
Specify the color via hue, saturation and value (brightness). Read more
fn hsva(self, h: S, s: S, v: S, a: S) -> Self where
S: Into<RgbHue<S>>,
[src]
fn hsva(self, h: S, s: S, v: S, a: S) -> Self where
S: Into<RgbHue<S>>,
Specify the color via hue, saturation, value (brightness) and an alpha channel. Read more
impl<S> From<Ellipse<S>> for Primitive<S>
[src]
impl<S> From<Ellipse<S>> for Primitive<S>