Struct nannou::draw::properties::spatial::dimension::Properties [−][src]
pub struct Properties<S = Default> { pub x: Option<Dimension<S>>, pub y: Option<Dimension<S>>, pub z: Option<Dimension<S>>, }
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]
impl<S> Properties<S> where
S: BaseFloat,
pub fn to_scalars(&self, draw: &Draw<S>) -> (Option<S>, Option<S>, Option<S>)
[src]
pub fn to_scalars(&self, draw: &Draw<S>) -> (Option<S>, Option<S>, Option<S>)
Return the Dimensions as scalar values.
Trait Implementations
impl<S: Copy> Copy for Properties<S>
[src]
impl<S: Copy> Copy for Properties<S>
impl<S: Clone> Clone for Properties<S>
[src]
impl<S: Clone> Clone for Properties<S>
fn clone(&self) -> Properties<S>
[src]
fn clone(&self) -> Properties<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 Properties<S>
[src]
impl<S: Debug> Debug for Properties<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: PartialEq> PartialEq for Properties<S>
[src]
impl<S: PartialEq> PartialEq for Properties<S>
fn eq(&self, other: &Properties<S>) -> bool
[src]
fn eq(&self, other: &Properties<S>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Properties<S>) -> bool
[src]
fn ne(&self, other: &Properties<S>) -> bool
This method tests for !=
.
impl<S> SetDimensions<S> for Properties<S>
[src]
impl<S> SetDimensions<S> for Properties<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> Default for Properties<S>
[src]
impl<S> Default for Properties<S>
Auto Trait Implementations
impl<S> Send for Properties<S> where
S: Send,
impl<S> Send for Properties<S> where
S: Send,
impl<S> Sync for Properties<S> where
S: Sync,
impl<S> Sync for Properties<S> where
S: Sync,