pub struct HitTestVisitor {
pub hit_found: bool,
pub hit_result: IntersectionResult,
pub current_point: Option<Point>,
pub live: bool,
/* private fields */
}Expand description
Hit tests recorded operations against a point or a geometry.
Fields§
§hit_found: bool§hit_result: IntersectionResult§current_point: Option<Point>§live: boolImplementations§
Trait Implementations§
Source§impl IRenderDataVisitor for HitTestVisitor
impl IRenderDataVisitor for HitTestVisitor
type Scope = HitTestScope
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) -> HitTestScope
fn on_push_geometry_clip( &mut self, geometry: Option<&Arc<dyn IGeometryImpl>>, ) -> HitTestScope
fn on_push_opacity(&mut self, _opacity: f64) -> HitTestScope
fn on_push_opacity_mask( &mut self, _brush: Option<&dyn IBrush>, _bounds: Rect, ) -> HitTestScope
fn on_push_transform(&mut self, matrix: Matrix) -> HitTestScope
fn on_push_render_options(&mut self, _options: RenderOptions) -> HitTestScope
fn on_push_text_options(&mut self, _options: TextOptions) -> HitTestScope
fn on_push_effect( &mut self, _effect: Option<&Arc<dyn IImmutableEffect>>, _bounds: Rect, ) -> HitTestScope
fn on_pop(&mut self, scope: HitTestScope)
Auto Trait Implementations§
impl !RefUnwindSafe for HitTestVisitor
impl !Send for HitTestVisitor
impl !Sync for HitTestVisitor
impl !UnwindSafe for HitTestVisitor
impl Freeze for HitTestVisitor
impl Unpin for HitTestVisitor
impl UnsafeUnpin for HitTestVisitor
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