Struct vectorphile::Canvas
[−]
[src]
pub struct Canvas<T> { /* fields omitted */ }
Methods
impl<T: DrawBackend> Canvas<T>
[src]
fn new(t: T) -> Canvas<T>
[src]
fn draw_line<S: Into<f64>>(
&mut self,
start: (S, S),
end: (S, S),
draw_options: Option<DrawOptions>
) -> Result<(), T::Error>
[src]
&mut self,
start: (S, S),
end: (S, S),
draw_options: Option<DrawOptions>
) -> Result<(), T::Error>
fn draw_lines<I: IntoIterator<Item = (S, S)>, S: Into<f64>>(
&mut self,
points: I,
draw_options: Option<DrawOptions>
) -> Result<(), T::Error>
[src]
&mut self,
points: I,
draw_options: Option<DrawOptions>
) -> Result<(), T::Error>
fn draw_closed_polygon<I, K>(
&mut self,
points: I,
options: DrawOptions
) -> Result<(), T::Error> where
I: IntoIterator<Item = TypedPoint2D<f32, K>>,
[src]
&mut self,
points: I,
options: DrawOptions
) -> Result<(), T::Error> where
I: IntoIterator<Item = TypedPoint2D<f32, K>>,
fn draw_holy_polygon<'a, I1, I2, K: 'static>(
&mut self,
additive: I1,
subtractive: I2,
options: DrawOptions
) -> Result<(), T::Error> where
I1: IntoIterator<Item = Vec<TypedPoint2D<f32, K>>>,
I2: IntoIterator<Item = Vec<TypedPoint2D<f32, K>>>,
[src]
&mut self,
additive: I1,
subtractive: I2,
options: DrawOptions
) -> Result<(), T::Error> where
I1: IntoIterator<Item = Vec<TypedPoint2D<f32, K>>>,
I2: IntoIterator<Item = Vec<TypedPoint2D<f32, K>>>,
fn close(self) -> Result<(), T::Error>
[src]
Trait Implementations
impl<T> Deref for Canvas<T>
[src]
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
Dereferences the value.