Struct rin::gl::vao_path::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]

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]

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]

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]

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]

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]

pub fn to_line_strips<F>(&self, resolution: u32, f: F) where
    F: FnMut(Point<f32, U2>, bool), 
[src]

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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]