pub trait DrawFuncs {
// Required methods
fn move_to(&mut self, st: &DrawState, to_x: f32, to_y: f32);
fn line_to(&mut self, st: &DrawState, to_x: f32, to_y: f32);
fn quadratic_to(
&mut self,
st: &DrawState,
control_x: f32,
control_y: f32,
to_x: f32,
to_y: f32,
);
fn cubic_to(
&mut self,
st: &DrawState,
control1_x: f32,
control1_y: f32,
control2_x: f32,
control2_y: f32,
to_x: f32,
to_y: f32,
);
fn close_path(&mut self, st: &DrawState);
}Expand description
This Trait specifies the font callbacks that harfbuzz uses when asked to draw a glyph.
Required Methods§
fn move_to(&mut self, st: &DrawState, to_x: f32, to_y: f32)
fn line_to(&mut self, st: &DrawState, to_x: f32, to_y: f32)
fn quadratic_to( &mut self, st: &DrawState, control_x: f32, control_y: f32, to_x: f32, to_y: f32, )
fn cubic_to( &mut self, st: &DrawState, control1_x: f32, control1_y: f32, control2_x: f32, control2_y: f32, to_x: f32, to_y: f32, )
fn close_path(&mut self, st: &DrawState)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".