pub struct BoxHitTestEntry { /* private fields */ }Expand description
A hit test entry used by RenderBox.
Dart’s BoxHitTestEntry subclasses HitTestEntry; here it is the entry’s target, carrying
the box and the position of the hit test in the local coordinates of the box. It becomes a
HitTestEntry with From.
Implementations§
Source§impl BoxHitTestEntry
impl BoxHitTestEntry
Sourcepub fn new(target: AnyRenderBox, local_position: Offset) -> BoxHitTestEntry
pub fn new(target: AnyRenderBox, local_position: Offset) -> BoxHitTestEntry
Creates a box hit test entry.
Sourcepub fn target(&self) -> AnyRenderBox
pub fn target(&self) -> AnyRenderBox
The RenderBox that was hit.
Sourcepub fn local_position(&self) -> Offset
pub fn local_position(&self) -> Offset
The position of the hit test in the local coordinates of target.
Trait Implementations§
Source§impl Clone for BoxHitTestEntry
impl Clone for BoxHitTestEntry
impl Copy for BoxHitTestEntry
Source§impl Debug for BoxHitTestEntry
impl Debug for BoxHitTestEntry
Source§impl From<BoxHitTestEntry> for HitTestEntry
impl From<BoxHitTestEntry> for HitTestEntry
Source§fn from(entry: BoxHitTestEntry) -> HitTestEntry
fn from(entry: BoxHitTestEntry) -> HitTestEntry
Converts to this type from the input type.
Source§impl HitTestTarget for BoxHitTestEntry
impl HitTestTarget for BoxHitTestEntry
Source§fn handle_event(
&self,
app: &mut App,
event: &PointerEvent,
_entry: &HitTestEntry,
)
fn handle_event( &self, app: &mut App, event: &PointerEvent, _entry: &HitTestEntry, )
Override this method to receive events.
Auto Trait Implementations§
impl Freeze for BoxHitTestEntry
impl RefUnwindSafe for BoxHitTestEntry
impl Send for BoxHitTestEntry
impl Sync for BoxHitTestEntry
impl Unpin for BoxHitTestEntry
impl UnsafeUnpin for BoxHitTestEntry
impl UnwindSafe for BoxHitTestEntry
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