pub struct VcgenDash { /* private fields */ }Expand description
Dash vertex generator.
Maintains a dash pattern (up to 16 dash/gap pairs) and generates dashed segments from a continuous path.
Port of C++ vcgen_dash.
Implementations§
Source§impl VcgenDash
impl VcgenDash
pub fn new() -> Self
pub fn remove_all_dashes(&mut self)
pub fn add_dash(&mut self, dash_len: f64, gap_len: f64)
pub fn dash_start(&mut self, ds: f64)
pub fn set_shorten(&mut self, s: f64)
pub fn shorten(&self) -> f64
pub fn remove_all(&mut self)
pub fn add_vertex(&mut self, x: f64, y: f64, cmd: u32)
pub fn rewind(&mut self, _path_id: u32)
pub fn vertex(&mut self, x: &mut f64, y: &mut f64) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VcgenDash
impl RefUnwindSafe for VcgenDash
impl Send for VcgenDash
impl Sync for VcgenDash
impl Unpin for VcgenDash
impl UnwindSafe for VcgenDash
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more