pub struct ReplayVisitor<'a> { /* private fields */ }Expand description
Replays recorded operations onto a platform drawing context.
Implementations§
Source§impl<'a> ReplayVisitor<'a>
impl<'a> ReplayVisitor<'a>
pub fn new(context: &'a mut dyn IDrawingContextImpl) -> Self
Trait Implementations§
Source§impl IRenderDataVisitor for ReplayVisitor<'_>
impl IRenderDataVisitor for ReplayVisitor<'_>
type Scope = ReplayScope
Source§fn stop_visiting(&self) -> bool
fn stop_visiting(&self) -> bool
Whether the walk should end early.
fn on_draw_line( &mut self, server_pen: Option<&dyn IPen>, _client_pen: Option<&dyn IPen>, p1: Point, p2: Point, )
fn on_draw_rectangle( &mut self, server_brush: Option<&dyn IBrush>, server_pen: Option<&dyn IPen>, _client_pen: Option<&dyn IPen>, rect: RoundedRect, box_shadows: &BoxShadows, )
fn on_draw_ellipse( &mut self, server_brush: Option<&dyn IBrush>, server_pen: Option<&dyn IPen>, _client_pen: Option<&dyn IPen>, rect: Rect, )
fn on_draw_geometry( &mut self, server_brush: Option<&dyn IBrush>, server_pen: Option<&dyn IPen>, _client_pen: Option<&dyn IPen>, geometry: Option<&Arc<dyn IGeometryImpl>>, )
fn on_draw_glyph_run( &mut self, server_brush: Option<&dyn IBrush>, glyph_run: Option<&Arc<dyn IGlyphRunImpl>>, )
fn on_draw_bitmap( &mut self, bitmap: Option<&Arc<SharedBitmapImpl>>, opacity: f64, source_rect: Rect, dest_rect: Rect, )
fn on_draw_custom(&mut self, operation: Option<&Arc<dyn ICustomDrawOperation>>)
fn on_push_clip(&mut self, clip: RoundedRect) -> ReplayScope
fn on_push_geometry_clip( &mut self, geometry: Option<&Arc<dyn IGeometryImpl>>, ) -> ReplayScope
fn on_push_opacity(&mut self, opacity: f64) -> ReplayScope
fn on_push_opacity_mask( &mut self, brush: Option<&dyn IBrush>, bounds: Rect, ) -> ReplayScope
fn on_push_transform(&mut self, matrix: Matrix) -> ReplayScope
fn on_push_render_options(&mut self, options: RenderOptions) -> ReplayScope
fn on_push_text_options(&mut self, options: TextOptions) -> ReplayScope
fn on_push_effect( &mut self, effect: Option<&Arc<dyn IImmutableEffect>>, bounds: Rect, ) -> ReplayScope
fn on_pop(&mut self, scope: ReplayScope)
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReplayVisitor<'a>
impl<'a> !Send for ReplayVisitor<'a>
impl<'a> !Sync for ReplayVisitor<'a>
impl<'a> !UnwindSafe for ReplayVisitor<'a>
impl<'a> Freeze for ReplayVisitor<'a>
impl<'a> Unpin for ReplayVisitor<'a>
impl<'a> UnsafeUnpin for ReplayVisitor<'a>
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more