Struct rin::gl::VaoPath [−][src]
pub struct VaoPath { /* fields omitted */ }
Keeps a RAM version of a Path2D and a tesselation in the gpu and updates the gpu tesselation if the RAM version changed
See Path2D for more info
Implementations
impl VaoPath
[src]
impl VaoPath
[src]pub fn set_line_width(&mut self, w: f32)
[src]
pub fn line_width(&self) -> f32
[src]
pub fn set_line_cap(&mut self, cap: LineCap)
[src]
pub fn line_cap(&self) -> LineCap
[src]
pub fn set_line_color<C>(&mut self, c: &C) where
C: ToRgba,
[src]
C: ToRgba,
pub fn line_color(&self) -> AlphaColor<f32, Rgb<f32, Srgb>>
[src]
pub fn set_fill_color<C>(&mut self, c: &C) where
C: ToRgba,
[src]
C: ToRgba,
pub fn fill_color(&self) -> AlphaColor<f32, Rgb<f32, Srgb>>
[src]
pub fn set_changed(&mut self)
[src]
pub fn move_to(&mut self, to: Point<f32, U2>)
[src]
pub fn line_to(&mut self, to: Point<f32, U2>)
[src]
pub fn bezier_to(
&mut self,
cp1: Point<f32, U2>,
cp2: Point<f32, U2>,
to: Point<f32, U2>
)
[src]
&mut self,
cp1: Point<f32, U2>,
cp2: Point<f32, U2>,
to: Point<f32, U2>
)
pub fn quad_bezier_to(&mut self, cp1: Point<f32, U2>, to: Point<f32, U2>)
[src]
pub fn catmull_rom_to(&mut self, to: Point<f32, U2>)
[src]
pub fn arc(
&mut self,
center: Point<f32, U2>,
w: f32,
h: f32,
init_angle: Deg<f32>,
angle: Deg<f32>
)
[src]
&mut self,
center: Point<f32, U2>,
w: f32,
h: f32,
init_angle: Deg<f32>,
angle: Deg<f32>
)
pub fn close(&mut self)
[src]
pub fn append(&mut self, path: Path2D<Point<f32, U2>>)
[src]
pub fn set(&mut self, path: Path2D<Point<f32, U2>>)
[src]
pub fn clear(&mut self)
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn to_lines<F>(&self, resolution: u32, f: F) where
F: FnMut(Point<f32, U2>, Point<f32, U2>, bool),
[src]
F: FnMut(Point<f32, U2>, Point<f32, U2>, bool),
pub fn to_line_strips<F>(&self, resolution: u32, f: F) where
F: FnMut(Point<f32, U2>, bool),
[src]
F: FnMut(Point<f32, U2>, bool),
pub fn path(&'a self) -> &'a Path2D<Point<f32, U2>>
[src]
pub fn path_mut(&'a mut self) -> &'a mut Path2D<Point<f32, U2>>
[src]
pub fn fill(&self, resolution: u32) -> VaoPathFill<'_>
[src]
pub fn contour(&self, resolution: u32) -> VaoPathContour<'_>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for VaoPath
impl !Send for VaoPath
impl !Sync for VaoPath
impl Unpin for VaoPath
impl !UnwindSafe for VaoPath
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]