Struct nannou::draw::properties::Draw [−][src]
pub struct Draw<'a, S = DefaultScalar> where
S: 'a + BaseFloat, { /* fields omitted */ }
A wrapper around the draw::State
for the IntoDrawn trait implementations.
Methods
impl<'a, S> Draw<'a, S> where
S: BaseFloat,
[src]
impl<'a, S> Draw<'a, S> where
S: BaseFloat,
pub fn new(state: &'a mut State<S>) -> Self
[src]
pub fn new(state: &'a mut State<S>) -> Self
Create a new Draw.
pub fn untransformed_dimension_of<F>(
&self,
n: &Index,
point_axis: &F
) -> Option<S> where
F: Fn(&Point<S>) -> S,
[src]
pub fn untransformed_dimension_of<F>(
&self,
n: &Index,
point_axis: &F
) -> Option<S> where
F: Fn(&Point<S>) -> S,
The length of the untransformed node at the given index along the axis returned by the
given point_axis
function.
Note: If this node's Drawing is not yet complete, this method will cause it to finish and submit the Drawn state to the inner geometry graph and mesh.
pub fn untransformed_x_dimension_of(&self, n: &Index) -> Option<S>
[src]
pub fn untransformed_x_dimension_of(&self, n: &Index) -> Option<S>
The length of the untransformed node at the given index along the x axis.
pub fn untransformed_y_dimension_of(&self, n: &Index) -> Option<S>
[src]
pub fn untransformed_y_dimension_of(&self, n: &Index) -> Option<S>
The length of the untransformed node at the given index along the y axis.
pub fn untransformed_z_dimension_of(&self, n: &Index) -> Option<S>
[src]
pub fn untransformed_z_dimension_of(&self, n: &Index) -> Option<S>
The length of the untransformed node at the given index along the y axis.
pub fn dimension_of<F>(&mut self, n: &Index, point_axis: &F) -> Option<S> where
F: Fn(&Point<S>) -> S,
[src]
pub fn dimension_of<F>(&mut self, n: &Index, point_axis: &F) -> Option<S> where
F: Fn(&Point<S>) -> S,
The length of the transformed node at the given index along the axis returned by the given
point_axis
function.
Note: If this node's Drawing is not yet complete, this method will cause it to finish and submit the Drawn state to the inner geometry graph and mesh.
pub fn x_dimension_of(&self, n: &Index) -> Option<S>
[src]
pub fn x_dimension_of(&self, n: &Index) -> Option<S>
The length of the transformed node at the given index along the x axis.
pub fn y_dimension_of(&self, n: &Index) -> Option<S>
[src]
pub fn y_dimension_of(&self, n: &Index) -> Option<S>
The length of the transformed node at the given index along the y axis.
pub fn z_dimension_of(&self, n: &Index) -> Option<S>
[src]
pub fn z_dimension_of(&self, n: &Index) -> Option<S>
The length of the transformed node at the given index along the z axis.
pub fn theme<F, T>(&self, get: F) -> T where
F: FnOnce(&Theme) -> T,
[src]
pub fn theme<F, T>(&self, get: F) -> T where
F: FnOnce(&Theme) -> T,
Retrieve the given element from the inner Theme.