[−][src]Struct nannou::draw::primitive::quad::Quad
Properties related to drawing a Quad.
Methods
impl<S> Quad<S>
[src]
pub fn stroke<C>(self, color: C) -> Self where
C: IntoLinSrgba<ColorScalar>,
[src]
C: IntoLinSrgba<ColorScalar>,
Stroke the outline with the given color.
pub fn points<P>(self, a: P, b: P, c: P, d: P) -> Self where
P: Into<Point2<S>>,
[src]
P: Into<Point2<S>>,
Use the given four points as the vertices (corners) of the quad.
Trait Implementations
impl<S> SetPolygon<S> for Quad<S>
[src]
fn polygon_options_mut(&mut self) -> &mut PolygonOptions<S>
[src]
fn no_fill(self) -> Self
[src]
fn stroke_color<C>(self, color: C) -> Self where
C: IntoLinSrgba<ColorScalar>,
[src]
C: IntoLinSrgba<ColorScalar>,
fn polygon_options(self, opts: PolygonOptions<S>) -> Self
[src]
impl<S> SetColor<f32> for Quad<S>
[src]
fn rgba_mut(&mut self) -> &mut Option<LinSrgba>
[src]
fn color<C>(self, color: C) -> Self where
C: IntoLinSrgba<S>,
[src]
C: IntoLinSrgba<S>,
fn rgb<T>(self, r: T, g: T, b: T) -> Self where
T: Component,
S: Float,
[src]
T: Component,
S: Float,
fn rgba<T>(self, r: T, g: T, b: T, a: T) -> Self where
T: Component,
S: Float,
[src]
T: Component,
S: Float,
fn hsl(self, h: S, s: S, l: S) -> Self where
S: Float + Into<RgbHue<S>>,
[src]
S: Float + Into<RgbHue<S>>,
fn hsla(self, h: S, s: S, l: S, a: S) -> Self where
S: Float + Into<RgbHue<S>>,
[src]
S: Float + Into<RgbHue<S>>,
fn hsv(self, h: S, s: S, v: S) -> Self where
S: Float,
[src]
S: Float,
fn hsva(self, h: S, s: S, v: S, a: S) -> Self where
S: Float,
[src]
S: Float,
impl<S> SetDimensions<S> for Quad<S>
[src]
fn properties(&mut self) -> &mut Properties<S>
[src]
fn x_dimension(self, x: Dimension<S>) -> Self
[src]
fn y_dimension(self, y: Dimension<S>) -> Self
[src]
fn z_dimension(self, z: Dimension<S>) -> Self
[src]
fn width(self, w: S) -> Self
[src]
fn height(self, h: S) -> Self
[src]
fn depth(self, d: S) -> Self
[src]
fn w(self, w: S) -> Self
[src]
fn h(self, h: S) -> Self
[src]
fn d(self, d: S) -> Self
[src]
fn wh(self, v: Vector2<S>) -> Self
[src]
fn whd(self, v: Vector3<S>) -> Self
[src]
fn w_h(self, x: S, y: S) -> Self
[src]
fn w_h_d(self, x: S, y: S, z: S) -> Self
[src]
fn x_dimension_relative(self, other: Index, x: Relative<S>) -> Self
[src]
fn y_dimension_relative(self, other: Index, y: Relative<S>) -> Self
[src]
fn z_dimension_relative(self, other: Index, z: Relative<S>) -> Self
[src]
fn w_of(self, other: Index) -> Self
[src]
fn h_of(self, other: Index) -> Self
[src]
fn d_of(self, other: Index) -> Self
[src]
fn wh_of(self, other: Index) -> Self
[src]
fn whd_of(self, other: Index) -> Self
[src]
fn padded_w_of(self, other: Index, pad: S) -> Self
[src]
fn padded_h_of(self, other: Index, pad: S) -> Self
[src]
fn padded_d_of(self, other: Index, pad: S) -> Self
[src]
fn padded_wh_of(self, other: Index, pad: S) -> Self where
S: Clone,
[src]
S: Clone,
fn padded_whd_of(self, other: Index, pad: S) -> Self where
S: Clone,
[src]
S: Clone,
fn scaled_w_of(self, other: Index, scale: S) -> Self
[src]
fn scaled_h_of(self, other: Index, scale: S) -> Self
[src]
fn scaled_d_of(self, other: Index, scale: S) -> Self
[src]
fn scaled_wh_of(self, other: Index, scale: S) -> Self where
S: Clone,
[src]
S: Clone,
fn scaled_whd_of(self, other: Index, scale: S) -> Self where
S: Clone,
[src]
S: Clone,
impl<S> SetOrientation<S> for Quad<S>
[src]
fn properties(&mut self) -> &mut Properties<S>
[src]
fn look_at(self, target: LookAt<S>) -> Self
[src]
fn look_at_node(self, node: Index) -> Self
[src]
fn look_at_point(self, point: Point3<S>) -> Self
[src]
fn x_orientation(self, orientation: Orientation<S>) -> Self
[src]
fn y_orientation(self, orientation: Orientation<S>) -> Self
[src]
fn z_orientation(self, orientation: Orientation<S>) -> Self
[src]
fn x_radians(self, x: S) -> Self
[src]
fn y_radians(self, y: S) -> Self
[src]
fn z_radians(self, z: S) -> Self
[src]
fn x_degrees(self, x: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn y_degrees(self, y: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn z_degrees(self, z: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn x_turns(self, x: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn y_turns(self, y: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn z_turns(self, z: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn radians(self, v: Vector3<S>) -> Self
[src]
fn degrees(self, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn turns(self, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn euler<A>(self, e: Euler<A>) -> Self where
S: BaseFloat,
A: Angle + Into<Rad<S>>,
[src]
S: BaseFloat,
A: Angle + Into<Rad<S>>,
fn quaternion(self, q: Quaternion<S>) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn x_radians_relative(self, x: S) -> Self
[src]
fn y_radians_relative(self, y: S) -> Self
[src]
fn z_radians_relative(self, z: S) -> Self
[src]
fn x_radians_relative_to(self, other: Index, x: S) -> Self
[src]
fn y_radians_relative_to(self, other: Index, y: S) -> Self
[src]
fn z_radians_relative_to(self, other: Index, z: S) -> Self
[src]
fn x_degrees_relative(self, x: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn y_degrees_relative(self, y: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn z_degrees_relative(self, z: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn x_degrees_relative_to(self, other: Index, x: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn y_degrees_relative_to(self, other: Index, y: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn z_degrees_relative_to(self, other: Index, z: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn x_turns_relative(self, x: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn y_turns_relative(self, y: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn z_turns_relative(self, z: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn x_turns_relative_to(self, other: Index, x: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn y_turns_relative_to(self, other: Index, y: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn z_turns_relative_to(self, other: Index, z: S) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn radians_relative(self, v: Vector3<S>) -> Self
[src]
fn radians_relative_to(self, other: Index, v: Vector3<S>) -> Self
[src]
fn degrees_relative(self, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn degrees_relative_to(self, other: Index, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn turns_relative(self, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn turns_relative_to(self, other: Index, v: Vector3<S>) -> Self where
S: BaseFloat,
[src]
S: BaseFloat,
fn euler_relative<A>(self, e: Euler<A>) -> Self where
S: BaseFloat,
A: Angle + Into<Rad<S>>,
[src]
S: BaseFloat,
A: Angle + Into<Rad<S>>,
fn euler_relative_to<A>(self, other: Index, e: Euler<A>) -> Self where
S: BaseFloat,
A: Angle + Into<Rad<S>>,
[src]
S: BaseFloat,
A: Angle + Into<Rad<S>>,
fn pitch(self, pitch: S) -> Self
[src]
fn yaw(self, yaw: S) -> Self
[src]
fn roll(self, roll: S) -> Self
[src]
fn rotate(self, radians: S) -> Self
[src]
impl<S> SetPosition<S> for Quad<S>
[src]
fn properties(&mut self) -> &mut Properties<S>
[src]
fn x_position(self, position: Position<S>) -> Self
[src]
fn y_position(self, position: Position<S>) -> Self
[src]
fn z_position(self, position: Position<S>) -> Self
[src]
fn x(self, x: S) -> Self
[src]
fn y(self, y: S) -> Self
[src]
fn z(self, y: S) -> Self
[src]
fn xy(self, p: Point2<S>) -> Self
[src]
fn xyz(self, p: Point3<S>) -> Self
[src]
fn x_y(self, x: S, y: S) -> Self
[src]
fn x_y_z(self, x: S, y: S, z: S) -> Self
[src]
fn x_position_relative(self, x: Relative<S>) -> Self
[src]
fn y_position_relative(self, y: Relative<S>) -> Self
[src]
fn z_position_relative(self, z: Relative<S>) -> Self
[src]
fn x_y_position_relative(self, x: Relative<S>, y: Relative<S>) -> Self
[src]
fn x_y_z_position_relative(
self,
x: Relative<S>,
y: Relative<S>,
z: Relative<S>
) -> Self
[src]
self,
x: Relative<S>,
y: Relative<S>,
z: Relative<S>
) -> Self
fn x_position_relative_to(self, other: Index, x: Relative<S>) -> Self
[src]
fn y_position_relative_to(self, other: Index, y: Relative<S>) -> Self
[src]
fn z_position_relative_to(self, other: Index, z: Relative<S>) -> Self
[src]
fn x_y_position_relative_to(
self,
other: Index,
x: Relative<S>,
y: Relative<S>
) -> Self
[src]
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
[src]
self,
other: Index,
x: Relative<S>,
y: Relative<S>,
z: Relative<S>
) -> Self
fn x_relative(self, x: S) -> Self
[src]
fn y_relative(self, y: S) -> Self
[src]
fn z_relative(self, z: S) -> Self
[src]
fn xy_relative(self, p: Point2<S>) -> Self
[src]
fn xyz_relative(self, p: Point3<S>) -> Self
[src]
fn x_y_relative(self, x: S, y: S) -> Self
[src]
fn x_y_z_relative(self, x: S, y: S, z: S) -> Self
[src]
fn x_relative_to(self, other: Index, x: S) -> Self
[src]
fn y_relative_to(self, other: Index, y: S) -> Self
[src]
fn z_relative_to(self, other: Index, z: S) -> Self
[src]
fn xy_relative_to(self, other: Index, p: Point2<S>) -> Self
[src]
fn xyz_relative_to(self, other: Index, p: Point3<S>) -> Self
[src]
fn x_y_relative_to(self, other: Index, x: S, y: S) -> Self
[src]
fn x_y_z_relative_to(self, other: Index, x: S, y: S, z: S) -> Self
[src]
fn x_direction(self, direction: Direction, x: S) -> Self
[src]
fn y_direction(self, direction: Direction, y: S) -> Self
[src]
fn z_direction(self, direction: Direction, z: S) -> Self
[src]
fn left(self, x: S) -> Self
[src]
fn right(self, x: S) -> Self
[src]
fn down(self, y: S) -> Self
[src]
fn up(self, y: S) -> Self
[src]
fn backwards(self, z: S) -> Self
[src]
fn forwards(self, z: S) -> Self
[src]
fn x_direction_from(self, other: Index, direction: Direction, x: S) -> Self
[src]
fn y_direction_from(self, other: Index, direction: Direction, y: S) -> Self
[src]
fn z_direction_from(self, other: Index, direction: Direction, z: S) -> Self
[src]
fn left_from(self, other: Index, x: S) -> Self
[src]
fn right_from(self, other: Index, x: S) -> Self
[src]
fn down_from(self, other: Index, y: S) -> Self
[src]
fn up_from(self, other: Index, y: S) -> Self
[src]
fn backwards_from(self, other: Index, z: S) -> Self
[src]
fn forwards_from(self, other: Index, z: S) -> Self
[src]
fn x_align(self, align: Align<S>) -> Self
[src]
fn y_align(self, align: Align<S>) -> Self
[src]
fn z_align(self, align: Align<S>) -> Self
[src]
fn align_left(self) -> Self
[src]
fn align_left_with_margin(self, margin: S) -> Self
[src]
fn align_middle_x(self) -> Self
[src]
fn align_right(self) -> Self
[src]
fn align_right_with_margin(self, margin: S) -> Self
[src]
fn align_bottom(self) -> Self
[src]
fn align_bottom_with_margin(self, margin: S) -> Self
[src]
fn align_middle_y(self) -> Self
[src]
fn align_top(self) -> Self
[src]
fn align_top_with_margin(self, margin: S) -> Self
[src]
fn align_front(self) -> Self
[src]
fn align_front_with_margin(self, margin: S) -> Self
[src]
fn align_middle_z(self) -> Self
[src]
fn align_back(self) -> Self
[src]
fn align_back_with_margin(self, margin: S) -> Self
[src]
fn x_align_to(self, other: Index, align: Align<S>) -> Self
[src]
fn y_align_to(self, other: Index, align: Align<S>) -> Self
[src]
fn z_align_to(self, other: Index, align: Align<S>) -> Self
[src]
fn align_left_of(self, other: Index) -> Self
[src]
fn align_left_of_with_margin(self, other: Index, margin: S) -> Self
[src]
fn align_middle_x_of(self, other: Index) -> Self
[src]
fn align_right_of(self, other: Index) -> Self
[src]
fn align_right_of_with_margin(self, other: Index, margin: S) -> Self
[src]
fn align_bottom_of(self, other: Index) -> Self
[src]
fn align_bottom_of_with_margin(self, other: Index, margin: S) -> Self
[src]
fn align_middle_y_of(self, other: Index) -> Self
[src]
fn align_top_of(self, other: Index) -> Self
[src]
fn align_top_of_with_margin(self, other: Index, margin: S) -> Self
[src]
fn align_front_of(self, other: Index) -> Self
[src]
fn align_front_of_with_margin(self, other: Index, margin: S) -> Self
[src]
fn align_middle_z_of(self, other: Index) -> Self
[src]
fn align_back_of(self, other: Index) -> Self
[src]
fn align_back_of_with_margin(self, other: Index, margin: S) -> Self
[src]
fn middle(self) -> Self
[src]
fn bottom_left(self) -> Self
[src]
fn mid_left(self) -> Self
[src]
fn top_left(self) -> Self
[src]
fn mid_top(self) -> Self
[src]
fn top_right(self) -> Self
[src]
fn mid_right(self) -> Self
[src]
fn bottom_right(self) -> Self
[src]
fn mid_bottom(self) -> Self
[src]
fn middle_of(self, other: Index) -> Self
[src]
fn bottom_left_of(self, other: Index) -> Self
[src]
fn mid_left_of(self, other: Index) -> Self
[src]
fn top_left_of(self, other: Index) -> Self
[src]
fn mid_top_of(self, other: Index) -> Self
[src]
fn top_right_of(self, other: Index) -> Self
[src]
fn mid_right_of(self, other: Index) -> Self
[src]
fn bottom_right_of(self, other: Index) -> Self
[src]
fn mid_bottom_of(self, other: Index) -> Self
[src]
impl<S> SetStroke for Quad<S>
[src]
fn stroke_options_mut(&mut self) -> &mut StrokeOptions
[src]
fn stroke_opts(self, opts: StrokeOptions) -> Self
[src]
fn start_cap(self, cap: LineCap) -> Self
[src]
fn end_cap(self, cap: LineCap) -> Self
[src]
fn caps(self, cap: LineCap) -> Self
[src]
fn start_cap_butt(self) -> Self
[src]
fn start_cap_square(self) -> Self
[src]
fn start_cap_round(self) -> Self
[src]
fn end_cap_butt(self) -> Self
[src]
fn end_cap_square(self) -> Self
[src]
fn end_cap_round(self) -> Self
[src]
fn caps_butt(self) -> Self
[src]
fn caps_square(self) -> Self
[src]
fn caps_round(self) -> Self
[src]
fn join(self, join: LineJoin) -> Self
[src]
fn join_miter(self) -> Self
[src]
fn join_miter_clip(self) -> Self
[src]
fn join_round(self) -> Self
[src]
fn join_bevel(self) -> Self
[src]
fn stroke_weight(self, stroke_weight: f32) -> Self
[src]
fn miter_limit(self, limit: f32) -> Self
[src]
fn stroke_tolerance(self, tolerance: f32) -> Self
[src]
impl<S> IntoDrawn<S> for Quad<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Vertices = VerticesChain<VerticesFromRanges, VerticesFromRanges>
The iterator type yielding all unique vertices in the drawing. Read more
type Indices = IndicesChain<IndicesFromRange, IndicesFromRange>
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]
impl<S> From<Quad<Vector2<S>>> for Quad<S> where
S: BaseFloat,
[src]
S: BaseFloat,
impl<S> From<Quad<S>> for Primitive<S>
[src]
impl<S: Clone> Clone for Quad<S>
[src]
impl<S> Default for Quad<S> where
S: BaseFloat,
[src]
S: BaseFloat,
impl<S: Debug> Debug for Quad<S>
[src]
Auto Trait Implementations
impl<S> Send for Quad<S> where
S: Send,
S: Send,
impl<S> Sync for Quad<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Quad<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Quad<S> where
S: UnwindSafe,
S: UnwindSafe,
impl<S> RefUnwindSafe for Quad<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<S, T> SetSpatial<S> for T where
T: SetDimensions<S> + SetPosition<S> + SetOrientation<S>,
[src]
T: SetDimensions<S> + SetPosition<S> + SetOrientation<S>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> SafeBorrow<T> for T
[src]
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,