Enum font_types::PenCommand
source · pub enum PenCommand {
MoveTo {
x: f32,
y: f32,
},
LineTo {
x: f32,
y: f32,
},
QuadTo {
cx0: f32,
cy0: f32,
x: f32,
y: f32,
},
CurveTo {
cx0: f32,
cy0: f32,
cx1: f32,
cy1: f32,
x: f32,
y: f32,
},
Close,
}
Expand description
Captures commands to Pen to facilitate implementations that buffer commands.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for PenCommand
impl Clone for PenCommand
source§fn clone(&self) -> PenCommand
fn clone(&self) -> PenCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PenCommand
impl Debug for PenCommand
source§impl PartialEq<PenCommand> for PenCommand
impl PartialEq<PenCommand> for PenCommand
source§fn eq(&self, other: &PenCommand) -> bool
fn eq(&self, other: &PenCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.