Dispatcher

Trait Dispatcher 

Source
pub(crate) trait Dispatcher:
    Debug
    + Send
    + Sync {
    // Required methods
    fn wide(&self) -> &Wide;
    fn generate_wide_cmd(&mut self, strip_buf: &[Strip], paint: Paint);
    fn fill_path(
        &mut self,
        path: &BezPath,
        fill_rule: Fill,
        transform: Affine,
        paint: Paint,
        aliasing_threshold: Option<u8>,
    );
    fn stroke_path(
        &mut self,
        path: &BezPath,
        stroke: &Stroke,
        transform: Affine,
        paint: Paint,
        aliasing_threshold: Option<u8>,
    );
    fn push_layer(
        &mut self,
        clip_path: Option<&BezPath>,
        fill_rule: Fill,
        clip_transform: Affine,
        blend_mode: BlendMode,
        opacity: f32,
        aliasing_threshold: Option<u8>,
        mask: Option<Mask>,
    );
    fn pop_layer(&mut self);
    fn reset(&mut self);
    fn flush(&mut self);
    fn rasterize(
        &self,
        buffer: &mut [u8],
        render_mode: RenderMode,
        width: u16,
        height: u16,
        encoded_paints: &[EncodedPaint],
    );
    fn strip_storage_mut(&mut self) -> &mut StripStorage;
}

Required Methods§

Source

fn wide(&self) -> &Wide

Source

fn generate_wide_cmd(&mut self, strip_buf: &[Strip], paint: Paint)

Source

fn fill_path( &mut self, path: &BezPath, fill_rule: Fill, transform: Affine, paint: Paint, aliasing_threshold: Option<u8>, )

Source

fn stroke_path( &mut self, path: &BezPath, stroke: &Stroke, transform: Affine, paint: Paint, aliasing_threshold: Option<u8>, )

Source

fn push_layer( &mut self, clip_path: Option<&BezPath>, fill_rule: Fill, clip_transform: Affine, blend_mode: BlendMode, opacity: f32, aliasing_threshold: Option<u8>, mask: Option<Mask>, )

Source

fn pop_layer(&mut self)

Source

fn reset(&mut self)

Source

fn flush(&mut self)

Source

fn rasterize( &self, buffer: &mut [u8], render_mode: RenderMode, width: u16, height: u16, encoded_paints: &[EncodedPaint], )

Source

fn strip_storage_mut(&mut self) -> &mut StripStorage

Implementors§