[−][src]Struct nannou::draw::properties::spatial::dimension::Properties
Dimension properties for Drawing a Node.
Fields
x: Option<Dimension<S>>
Dimension over the x axis.
y: Option<Dimension<S>>
Dimension over the y axis.
z: Option<Dimension<S>>
Dimension over the z axis.
Methods
impl<S> Properties<S> where
S: BaseFloat,
[src]
S: BaseFloat,
pub fn to_scalars(&self, draw: &Draw<S>) -> (Option<S>, Option<S>, Option<S>)
[src]
Return the Dimensions as scalar values.
Trait Implementations
impl<S: Clone> Clone for Properties<S>
[src]
fn clone(&self) -> Properties<S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S: Copy> Copy for Properties<S>
[src]
impl<S: Debug> Debug for Properties<S>
[src]
impl<S> Default for Properties<S>
[src]
impl<S: PartialEq> PartialEq<Properties<S>> for Properties<S>
[src]
fn eq(&self, other: &Properties<S>) -> bool
[src]
fn ne(&self, other: &Properties<S>) -> bool
[src]
impl<S> SetDimensions<S> for Properties<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> StructuralPartialEq for Properties<S>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for Properties<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for Properties<S> where
S: Send,
S: Send,
impl<S> Sync for Properties<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Properties<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Properties<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<T> Style for T where
T: Any + Debug + PartialEq<T>,
[src]
T: Any + Debug + PartialEq<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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,