pub struct RenderMouseRegion { /* private fields */ }Expand description
Calls callbacks in response to pointer events that are exclusive to mice.
It responds to events that are related to hovering, i.e. when the mouse enters, exits (with or without pressing buttons), or moves over a region without pressing buttons.
It does not respond to common events that construct gestures, such as when
the pointer is pressed, moved, then released or canceled. For these events,
use RenderPointerListener.
If it has a child, it defers to the child for sizing behavior.
If it does not have a child, it grows to fit the parent-provided constraints.
Flutter’s RenderMouseRegion implements MouseTrackerAnnotation: here it answers
RenderObject::mouse_tracker_annotation with its current callbacks, cursor, and validity.
Its members are RenderMouseRegionBase’s.
See also:
MouseRegion, a widget that listens to hover events usingRenderMouseRegion.
Implementations§
Source§impl RenderMouseRegion
impl RenderMouseRegion
Sourcepub fn new(
app: &mut App,
valid_for_mouse_tracker: bool,
child: Option<AnyRenderBox>,
) -> RenderHandle<Self>
pub fn new( app: &mut App, valid_for_mouse_tracker: bool, child: Option<AnyRenderBox>, ) -> RenderHandle<Self>
Creates a render object that forwards pointer events to callbacks.
Dart’s remaining constructor arguments have setters: the callbacks, cursor
(MouseCursor.defer), opaque (true), and hit_test_behavior (opaque).
valid_for_mouse_tracker has none, so it is a parameter (Dart’s default is true).
Trait Implementations§
Source§impl RenderBox for RenderMouseRegion
impl RenderBox for RenderMouseRegion
Source§fn render_box_data(self: RenderHandle<Self>, app: &App) -> &RenderBoxData
fn render_box_data(self: RenderHandle<Self>, app: &App) -> &RenderBoxData
Source§fn render_box_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderBoxData
fn render_box_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderBoxData
render_box_data.Source§fn setup_parent_data(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderObject,
)
fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, )
BoxParentData unless the child already has it. Read moreSource§fn apply_paint_transform(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
transform: &mut Matrix4,
)
fn apply_paint_transform( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, transform: &mut Matrix4, )
Source§fn hit_test(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
Source§fn hit_test_self(self: RenderHandle<Self>, app: &App, position: Offset) -> bool
fn hit_test_self(self: RenderHandle<Self>, app: &App, position: Offset) -> bool
Source§fn hit_test_children(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test_children( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
Source§fn handle_event(
self: RenderHandle<Self>,
app: &mut App,
event: &PointerEvent,
_entry: &BoxHitTestEntry,
)
fn handle_event( self: RenderHandle<Self>, app: &mut App, event: &PointerEvent, _entry: &BoxHitTestEntry, )
Source§fn compute_min_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64
fn compute_min_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64
get_min_intrinsic_width.
Do not call this function directly, instead, call
get_min_intrinsic_width. Read moreSource§fn compute_max_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64
fn compute_max_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64
get_max_intrinsic_width.
Do not call this function directly, instead, call
get_max_intrinsic_width. Read moreSource§fn compute_min_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn compute_min_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
get_min_intrinsic_height. Do not call this function
directly, instead, call get_min_intrinsic_height. Read moreSource§fn compute_max_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn compute_max_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
get_max_intrinsic_height. Do not call this function
directly, instead, call get_max_intrinsic_height. Read moreSource§fn compute_distance_to_actual_baseline(
self: RenderHandle<Self>,
app: &mut App,
baseline: TextBaseline,
) -> Option<f64>
fn compute_distance_to_actual_baseline( self: RenderHandle<Self>, app: &mut App, baseline: TextBaseline, ) -> Option<f64>
None otherwise. Read moreSource§fn compute_dry_baseline(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
baseline: TextBaseline,
) -> Option<f64>
fn compute_dry_baseline( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, baseline: TextBaseline, ) -> Option<f64>
get_dry_baseline. Read moreSource§fn compute_dry_layout(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
) -> Size
fn compute_dry_layout( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, ) -> Size
get_dry_layout. Do not call this
function directly, instead, call get_dry_layout. Read moreSource§fn constraints(self: RenderHandle<Self>, app: &App) -> BoxConstraints
fn constraints(self: RenderHandle<Self>, app: &App) -> BoxConstraints
Source§fn any_constraints(self: RenderHandle<Self>, app: &App) -> AnyBoxConstraints
fn any_constraints(self: RenderHandle<Self>, app: &App) -> AnyBoxConstraints
BoxConstraints
subclass they may be an instance of: Dart’s constraints getter, for a reader that
type-checks it. Read moreSource§fn get_min_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64
fn get_min_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64
Source§fn get_max_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64
fn get_max_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64
Source§fn get_min_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn get_min_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
Source§fn get_max_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn get_max_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
Source§fn get_dry_layout(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
) -> Size
fn get_dry_layout( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, ) -> Size
Source§fn get_dry_baseline(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
baseline: TextBaseline,
) -> Option<f64>
fn get_dry_baseline( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, baseline: TextBaseline, ) -> Option<f64>
Source§fn debug_cannot_compute_dry_layout(
self: RenderHandle<Self>,
failure: DryLayoutFailure<'_>,
)
fn debug_cannot_compute_dry_layout( self: RenderHandle<Self>, failure: DryLayoutFailure<'_>, )
compute_dry_layout or
compute_dry_baseline if this box does not support
calculating a dry layout. Read moreSource§fn get_distance_to_baseline(
self: RenderHandle<Self>,
app: &mut App,
baseline: TextBaseline,
only_real: bool,
) -> Option<f64>
fn get_distance_to_baseline( self: RenderHandle<Self>, app: &mut App, baseline: TextBaseline, only_real: bool, ) -> Option<f64>
Source§fn get_distance_to_actual_baseline(
self: RenderHandle<Self>,
app: &mut App,
baseline: TextBaseline,
) -> Option<f64>
fn get_distance_to_actual_baseline( self: RenderHandle<Self>, app: &mut App, baseline: TextBaseline, ) -> Option<f64>
Source§fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
Source§fn perform_resize(self: RenderHandle<Self>, app: &mut App)
fn perform_resize(self: RenderHandle<Self>, app: &mut App)
Source§fn paint_bounds(self: RenderHandle<Self>, app: &App) -> Rect
fn paint_bounds(self: RenderHandle<Self>, app: &App) -> Rect
Source§fn has_size(self: RenderHandle<Self>, app: &App) -> bool
fn has_size(self: RenderHandle<Self>, app: &App) -> bool
size.Source§fn set_size(self: RenderHandle<Self>, app: &mut App, size: Size)
fn set_size(self: RenderHandle<Self>, app: &mut App, size: Size)
RenderObject::perform_layout or
RenderObject::perform_resize.Source§fn layout(
self: RenderHandle<Self>,
app: &mut App,
constraints: impl Into<AnyBoxConstraints>,
parent_uses_size: bool,
)
fn layout( self: RenderHandle<Self>, app: &mut App, constraints: impl Into<AnyBoxConstraints>, parent_uses_size: bool, )
AnyRenderBox::layout.Source§fn as_box(self: RenderHandle<Self>) -> AnyRenderBox
fn as_box(self: RenderHandle<Self>) -> AnyRenderBox
RenderBox handle. Free: the vtable is a const, and the id is copied.Source§fn as_object(self: RenderHandle<Self>) -> AnyRenderObject
fn as_object(self: RenderHandle<Self>) -> AnyRenderObject
RenderObject handle, through as_box.Source§fn adopt_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject)
fn adopt_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject)
Source§fn drop_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject)
fn drop_child(self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject)
Source§fn mark_needs_paint(self: RenderHandle<Self>, app: &mut App)
fn mark_needs_paint(self: RenderHandle<Self>, app: &mut App)
Source§fn mark_needs_composited_layer_update(self: RenderHandle<Self>, app: &mut App)
fn mark_needs_composited_layer_update(self: RenderHandle<Self>, app: &mut App)
Source§fn mark_needs_compositing_bits_update(self: RenderHandle<Self>, app: &mut App)
fn mark_needs_compositing_bits_update(self: RenderHandle<Self>, app: &mut App)
Source§fn schedule_initial_layout(self: RenderHandle<Self>, app: &mut App)
fn schedule_initial_layout(self: RenderHandle<Self>, app: &mut App)
Source§fn parent(self: RenderHandle<Self>, app: &App) -> Option<AnyRenderObject>
fn parent(self: RenderHandle<Self>, app: &App) -> Option<AnyRenderObject>
Source§fn owner(self: RenderHandle<Self>, app: &App) -> Option<Handle<PipelineOwner>>
fn owner(self: RenderHandle<Self>, app: &App) -> Option<Handle<PipelineOwner>>
Source§fn debug_needs_layout(self: RenderHandle<Self>, app: &App) -> bool
fn debug_needs_layout(self: RenderHandle<Self>, app: &App) -> bool
Source§impl RenderMouseRegionBase for RenderMouseRegion
impl RenderMouseRegionBase for RenderMouseRegion
Source§fn mouse_region_data(
self: RenderHandle<Self>,
app: &App,
) -> &RenderMouseRegionData
fn mouse_region_data( self: RenderHandle<Self>, app: &App, ) -> &RenderMouseRegionData
Source§fn mouse_region_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderMouseRegionData
fn mouse_region_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderMouseRegionData
mouse_region_data.Source§fn debug_fill_properties(
self: RenderHandle<Self>,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( self: RenderHandle<Self>, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
RenderMouseRegion.debugFillProperties, which a subclass reaches through its super
call.Source§fn opaque(self: RenderHandle<Self>, app: &App) -> bool
fn opaque(self: RenderHandle<Self>, app: &App) -> bool
RenderMouseRegions visually behind it
from detecting the pointer, thus affecting how their on_hover, on_enter,
and on_exit behave. Read moreSource§fn set_opaque(self: RenderHandle<Self>, app: &mut App, value: bool)
fn set_opaque(self: RenderHandle<Self>, app: &mut App, value: bool)
opaque.Source§fn hit_test_behavior(
self: RenderHandle<Self>,
app: &App,
) -> Option<HitTestBehavior>
fn hit_test_behavior( self: RenderHandle<Self>, app: &App, ) -> Option<HitTestBehavior>
Source§fn set_hit_test_behavior(
self: RenderHandle<Self>,
app: &mut App,
value: Option<HitTestBehavior>,
)
fn set_hit_test_behavior( self: RenderHandle<Self>, app: &mut App, value: Option<HitTestBehavior>, )
hit_test_behavior.Source§fn on_enter(
self: RenderHandle<Self>,
app: &App,
) -> Option<PointerEnterEventListener>
fn on_enter( self: RenderHandle<Self>, app: &App, ) -> Option<PointerEnterEventListener>
valid_for_mouse_tracker is true.Source§fn set_on_enter(
self: RenderHandle<Self>,
app: &mut App,
value: Option<PointerEnterEventListener>,
)
fn set_on_enter( self: RenderHandle<Self>, app: &mut App, value: Option<PointerEnterEventListener>, )
on_enter.Source§fn on_hover(
self: RenderHandle<Self>,
app: &App,
) -> Option<PointerHoverEventListener>
fn on_hover( self: RenderHandle<Self>, app: &App, ) -> Option<PointerHoverEventListener>
Source§fn set_on_hover(
self: RenderHandle<Self>,
app: &mut App,
value: Option<PointerHoverEventListener>,
)
fn set_on_hover( self: RenderHandle<Self>, app: &mut App, value: Option<PointerHoverEventListener>, )
on_hover.Source§fn on_exit(
self: RenderHandle<Self>,
app: &App,
) -> Option<PointerExitEventListener>
fn on_exit( self: RenderHandle<Self>, app: &App, ) -> Option<PointerExitEventListener>
valid_for_mouse_tracker is true.Source§fn set_on_exit(
self: RenderHandle<Self>,
app: &mut App,
value: Option<PointerExitEventListener>,
)
fn set_on_exit( self: RenderHandle<Self>, app: &mut App, value: Option<PointerExitEventListener>, )
on_exit.Source§fn cursor(self: RenderHandle<Self>, app: &App) -> MouseCursorRef
fn cursor(self: RenderHandle<Self>, app: &App) -> MouseCursorRef
Source§fn set_cursor(self: RenderHandle<Self>, app: &mut App, value: MouseCursorRef)
fn set_cursor(self: RenderHandle<Self>, app: &mut App, value: MouseCursorRef)
cursor.Source§fn valid_for_mouse_tracker(self: RenderHandle<Self>, app: &App) -> bool
fn valid_for_mouse_tracker(self: RenderHandle<Self>, app: &App) -> bool
MouseTracker collects the list of
annotations: true while attached to a pipeline owner.Source§fn did_attach(
self: RenderHandle<Self>,
app: &mut App,
owner: Handle<PipelineOwner>,
)
fn did_attach( self: RenderHandle<Self>, app: &mut App, owner: Handle<PipelineOwner>, )
attach override; call it from RenderObject::did_attach.Source§fn did_detach(self: RenderHandle<Self>, app: &mut App)
fn did_detach(self: RenderHandle<Self>, app: &mut App)
detach override; call it from RenderObject::did_detach.Source§fn mouse_tracker_annotation(
self: RenderHandle<Self>,
app: &App,
) -> Option<MouseTrackerAnnotation>
fn mouse_tracker_annotation( self: RenderHandle<Self>, app: &App, ) -> Option<MouseTrackerAnnotation>
implements MouseTrackerAnnotation; call it from
RenderObject::mouse_tracker_annotation.Source§fn hit_test(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
hitTest override: the proxy box’s hit test, stopped by an opaque region.Source§fn handle_event(self: RenderHandle<Self>, app: &mut App, event: &PointerEvent)
fn handle_event(self: RenderHandle<Self>, app: &mut App, event: &PointerEvent)
handleEvent override; call it from RenderBox::handle_event.Source§impl RenderObject for RenderMouseRegion
impl RenderObject for RenderMouseRegion
Source§fn render_object_data(self: RenderHandle<Self>, app: &App) -> &RenderObjectData
fn render_object_data(self: RenderHandle<Self>, app: &App) -> &RenderObjectData
Source§fn render_object_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderObjectData
fn render_object_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderObjectData
render_object_data.Source§fn debug_fill_properties(
self: RenderHandle<Self>,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( self: RenderHandle<Self>, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
debugFillProperties: the properties this class shows in a dump, after its base
classes’. A trait default cannot call super, so the framework adds RenderObject’s and
RenderBox’s or RenderSliver’s properties first and an override adds only its own,
in Dart’s order.Source§fn did_attach(
self: RenderHandle<Self>,
app: &mut App,
owner: Handle<PipelineOwner>,
)
fn did_attach( self: RenderHandle<Self>, app: &mut App, owner: Handle<PipelineOwner>, )
attach override after super.attach(owner); the base body has
already run. The default attaches the children reported by
visit_children.Source§fn did_detach(self: RenderHandle<Self>, app: &mut App)
fn did_detach(self: RenderHandle<Self>, app: &mut App)
detach override after super.detach(). The default detaches
the children reported by visit_children.Source§fn perform_layout(self: RenderHandle<Self>, app: &mut App)
fn perform_layout(self: RenderHandle<Self>, app: &mut App)
Source§fn mouse_tracker_annotation(
self: RenderHandle<Self>,
app: &App,
) -> Option<MouseTrackerAnnotation>
fn mouse_tracker_annotation( self: RenderHandle<Self>, app: &App, ) -> Option<MouseTrackerAnnotation>
this is MouseTrackerAnnotation: the annotation this render object implements,
read live each time the mouse tracker consults it. None for a render object that is
not an annotation, which is the default.Source§fn paint(
self: RenderHandle<Self>,
app: &mut App,
context: &mut PaintingContext,
offset: Offset,
)
fn paint( self: RenderHandle<Self>, app: &mut App, context: &mut PaintingContext, offset: Offset, )
Source§fn visit_children(
self: RenderHandle<Self>,
app: &App,
visitor: &mut dyn FnMut(AnyRenderObject),
)
fn visit_children( self: RenderHandle<Self>, app: &App, visitor: &mut dyn FnMut(AnyRenderObject), )
visitor for each immediate child.Source§fn as_render_object(self: RenderHandle<Self>, app: &App) -> AnyRenderObject
fn as_render_object(self: RenderHandle<Self>, app: &App) -> AnyRenderObject
RenderObject: this object’s
type-erased handle, through the vtable the protocol recorded when it created it.Source§fn perform_resize(self: RenderHandle<Self>, _app: &mut App)
fn perform_resize(self: RenderHandle<Self>, _app: &mut App)
Source§fn setup_parent_data(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderObject,
)
fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, )
child if it has none. Read moreSource§fn redepth_children(self: RenderHandle<Self>, app: &mut App)
fn redepth_children(self: RenderHandle<Self>, app: &mut App)
visit_children.Source§fn sized_by_parent(self: RenderHandle<Self>, _app: &App) -> bool
fn sized_by_parent(self: RenderHandle<Self>, _app: &App) -> bool
Source§fn apply_paint_transform(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
transform: &mut Matrix4,
)
fn apply_paint_transform( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, transform: &mut Matrix4, )
Source§fn describe_approximate_paint_clip(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
) -> Option<Rect>
fn describe_approximate_paint_clip( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, ) -> Option<Rect>
describeApproximatePaintClip: the rectangle, in this object’s coordinates, that
it clips child’s painting to, or None where it does not clip it. An estimate, for the
inspector’s screenshot bounds: a clip it may apply is enough.Source§fn paints_child(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
) -> bool
fn paints_child( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, ) -> bool
Source§fn is_repaint_boundary(self: RenderHandle<Self>, _app: &App) -> bool
fn is_repaint_boundary(self: RenderHandle<Self>, _app: &App) -> bool
Source§fn always_needs_compositing(self: RenderHandle<Self>, _app: &App) -> bool
fn always_needs_compositing(self: RenderHandle<Self>, _app: &App) -> bool
Source§fn debug_fill_base_properties(
self: RenderHandle<Self>,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_base_properties( self: RenderHandle<Self>, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
super.debugFillProperties as a class’s override calls it: RenderObject’s
properties, then RenderBox’s or RenderSliver’s, which the framework adds before
debug_fill_properties. A class whose Dart override leaves
the super call out, as RenderView’s does, overrides this to add nothing.Source§fn debug_describe_children(
self: RenderHandle<Self>,
app: &App,
) -> Vec<Rc<dyn DiagnosticsNode>>
fn debug_describe_children( self: RenderHandle<Self>, app: &App, ) -> Vec<Rc<dyn DiagnosticsNode>>
debugDescribeChildren: the children a dump shows under this object. Dart’s
default shows none and its child mixins name theirs (child; child 1, child 2, …);
this default shows the children visit_children visits, named
child when there is one and child 1, child 2, … when there are more, so a dump never
drops a child of a class that has not described its own.Source§fn update_composited_layer(
self: RenderHandle<Self>,
app: &mut App,
old_layer: Option<AnyOffsetLayer>,
) -> AnyOffsetLayer
fn update_composited_layer( self: RenderHandle<Self>, app: &mut App, old_layer: Option<AnyOffsetLayer>, ) -> AnyOffsetLayer
Source§fn show_on_screen(
self: RenderHandle<Self>,
app: &mut App,
descendant: Option<AnyRenderObject>,
rect: Option<Rect>,
duration: Duration,
curve: Rc<dyn Curve>,
)
fn show_on_screen( self: RenderHandle<Self>, app: &mut App, descendant: Option<AnyRenderObject>, rect: Option<Rect>, duration: Duration, curve: Rc<dyn Curve>, )
RenderObject visible on screen. Read moreSource§impl RenderObjectWithChildMixin for RenderMouseRegion
impl RenderObjectWithChildMixin for RenderMouseRegion
Source§type ChildType = AnyRenderBox
type ChildType = AnyRenderBox
ChildType: the protocol of this render object’s child.Source§fn child_data(
self: RenderHandle<Self>,
app: &App,
) -> &RenderObjectWithChildData<AnyRenderBox>
fn child_data( self: RenderHandle<Self>, app: &App, ) -> &RenderObjectWithChildData<AnyRenderBox>
Source§fn child_data_mut(
self: RenderHandle<Self>,
app: &mut App,
) -> &mut RenderObjectWithChildData<AnyRenderBox>
fn child_data_mut( self: RenderHandle<Self>, app: &mut App, ) -> &mut RenderObjectWithChildData<AnyRenderBox>
child_data.Source§fn child(self: RenderHandle<Self>, app: &App) -> Option<Self::ChildType>
fn child(self: RenderHandle<Self>, app: &App) -> Option<Self::ChildType>
Source§fn debug_describe_children(
self: RenderHandle<Self>,
app: &App,
) -> Vec<Rc<dyn DiagnosticsNode>>
fn debug_describe_children( self: RenderHandle<Self>, app: &App, ) -> Vec<Rc<dyn DiagnosticsNode>>
RenderObjectWithChildMixin.debugDescribeChildren: the child, named child.
A class with this mixin answers RenderObject::debug_describe_children with it.Source§impl RenderProxyBoxMixin for RenderMouseRegion
impl RenderProxyBoxMixin for RenderMouseRegion
Source§fn compute_size_for_no_child(
self: RenderHandle<Self>,
_app: &App,
constraints: BoxConstraints,
) -> Size
fn compute_size_for_no_child( self: RenderHandle<Self>, _app: &App, constraints: BoxConstraints, ) -> Size
Source§fn setup_parent_data(
self: RenderHandle<Self>,
app: &mut App,
child: AnyRenderObject,
)
fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, )
crate::BoxParentData.Source§fn apply_paint_transform(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
transform: &mut Matrix4,
)
fn apply_paint_transform( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, transform: &mut Matrix4, )
Source§fn compute_min_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64
fn compute_min_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64
Source§fn compute_max_intrinsic_width(
self: RenderHandle<Self>,
app: &mut App,
height: f64,
) -> f64
fn compute_max_intrinsic_width( self: RenderHandle<Self>, app: &mut App, height: f64, ) -> f64
Source§fn compute_min_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn compute_min_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
Source§fn compute_max_intrinsic_height(
self: RenderHandle<Self>,
app: &mut App,
width: f64,
) -> f64
fn compute_max_intrinsic_height( self: RenderHandle<Self>, app: &mut App, width: f64, ) -> f64
Source§fn compute_distance_to_actual_baseline(
self: RenderHandle<Self>,
app: &mut App,
baseline: TextBaseline,
) -> Option<f64>
fn compute_distance_to_actual_baseline( self: RenderHandle<Self>, app: &mut App, baseline: TextBaseline, ) -> Option<f64>
Source§fn compute_dry_baseline(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
baseline: TextBaseline,
) -> Option<f64>
fn compute_dry_baseline( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, baseline: TextBaseline, ) -> Option<f64>
Source§fn compute_dry_layout(
self: RenderHandle<Self>,
app: &mut App,
constraints: BoxConstraints,
) -> Size
fn compute_dry_layout( self: RenderHandle<Self>, app: &mut App, constraints: BoxConstraints, ) -> Size
compute_size_for_no_child.Source§fn perform_layout(self: RenderHandle<Self>, app: &mut App)
fn perform_layout(self: RenderHandle<Self>, app: &mut App)
Source§fn hit_test_children(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test_children( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
Source§fn paint(
self: RenderHandle<Self>,
app: &mut App,
context: &mut PaintingContext,
offset: Offset,
)
fn paint( self: RenderHandle<Self>, app: &mut App, context: &mut PaintingContext, offset: Offset, )
Source§impl RenderProxyBoxWithHitTestBehavior for RenderMouseRegion
impl RenderProxyBoxWithHitTestBehavior for RenderMouseRegion
Source§fn behavior(self: RenderHandle<Self>, app: &App) -> HitTestBehavior
fn behavior(self: RenderHandle<Self>, app: &App) -> HitTestBehavior
Source§fn hit_test(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
hitTest: a translucent box is added even when nothing was hit.Source§fn hit_test_self(self: RenderHandle<Self>, app: &App, _position: Offset) -> bool
fn hit_test_self(self: RenderHandle<Self>, app: &App, _position: Offset) -> bool
hitTestSelf: an opaque box is hit by itself.Source§fn debug_fill_properties(
self: RenderHandle<Self>,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( self: RenderHandle<Self>, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
RenderProxyBoxWithHitTestBehavior.debugFillProperties: a class that inherits
the behavior adds it before its own properties.Auto Trait Implementations§
impl !RefUnwindSafe for RenderMouseRegion
impl !Send for RenderMouseRegion
impl !Sync for RenderMouseRegion
impl !UnwindSafe for RenderMouseRegion
impl Forget for RenderMouseRegion
impl Freeze for RenderMouseRegionwhere
&'static RenderObjectVTable: Freeze,
NonZero<u32>: Freeze,
PhantomData<fn() -> PipelineOwner>: Freeze,
*const dyn ParentData is !null: Freeze,
PhantomData<dyn ParentData>: Freeze,
&'static ContainerLayerVTable: Freeze,
*const RcInner<dyn BoxConstraintsExtension> is !null: Freeze,
PhantomData<RcInner<dyn BoxConstraintsExtension>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<((IntrinsicDimension, DoubleKey), f64)>: Freeze,
PhantomData<(BoxConstraints, Size)>: Freeze,
PhantomData<(BoxConstraints, BaselineOffset)>: Freeze,
&'static RenderBoxVTable: Freeze,
*const RcInner<dyn Fn(&mut App, PointerEnterEvent)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, PointerEnterEvent)>>: Freeze,
*const RcInner<dyn Fn(&mut App, PointerHoverEvent)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, PointerHoverEvent)>>: Freeze,
*const RcInner<dyn Fn(&mut App, PointerExitEvent)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, PointerExitEvent)>>: Freeze,
*const RcInner<dyn MouseCursor> is !null: Freeze,
PhantomData<RcInner<dyn MouseCursor>>: Freeze,
impl Move for RenderMouseRegion
impl Unpin for RenderMouseRegionwhere
&'static RenderObjectVTable: Unpin,
NonZero<u32>: Unpin,
Box<dyn ParentData>: Unpin,
&'static ContainerLayerVTable: Unpin,
Rc<dyn BoxConstraintsExtension>: Unpin,
*const u8 is !null: Unpin,
&'static RenderBoxVTable: Unpin,
Rc<dyn Fn(&mut App, PointerEnterEvent)>: Unpin,
Rc<dyn Fn(&mut App, PointerHoverEvent)>: Unpin,
Rc<dyn Fn(&mut App, PointerExitEvent)>: Unpin,
Rc<dyn MouseCursor>: Unpin,
impl UnsafeUnpin for RenderMouseRegionwhere
&'static RenderObjectVTable: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
PhantomData<fn() -> PipelineOwner>: UnsafeUnpin,
*const dyn ParentData is !null: UnsafeUnpin,
PhantomData<dyn ParentData>: UnsafeUnpin,
&'static ContainerLayerVTable: UnsafeUnpin,
*const RcInner<dyn BoxConstraintsExtension> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn BoxConstraintsExtension>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<((IntrinsicDimension, DoubleKey), f64)>: UnsafeUnpin,
PhantomData<(BoxConstraints, Size)>: UnsafeUnpin,
PhantomData<(BoxConstraints, BaselineOffset)>: UnsafeUnpin,
&'static RenderBoxVTable: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, PointerEnterEvent)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, PointerEnterEvent)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, PointerHoverEvent)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, PointerHoverEvent)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, PointerExitEvent)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, PointerExitEvent)>>: UnsafeUnpin,
*const RcInner<dyn MouseCursor> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn MouseCursor>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> RenderBoxBase for Twhere
T: RenderBox,
impl<T> RenderBoxBase for Twhere
T: RenderBox,
Source§fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
RenderBox.markNeedsLayout.Source§fn perform_resize(self: RenderHandle<Self>, app: &mut App)
fn perform_resize(self: RenderHandle<Self>, app: &mut App)
RenderBox.performResize.Source§fn hit_test(
self: RenderHandle<Self>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test( self: RenderHandle<Self>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
RenderBox.hitTest.Source§impl<T> RenderObjectBase for Twhere
T: RenderObject,
impl<T> RenderObjectBase for Twhere
T: RenderObject,
Source§fn dispose(self: RenderHandle<Self>, app: &mut App)
fn dispose(self: RenderHandle<Self>, app: &mut App)
RenderObject.dispose body: releases the layer handle. An override calls it
last, where Dart writes super.dispose().Source§fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
fn mark_needs_layout(self: RenderHandle<Self>, app: &mut App)
RenderObject.markNeedsLayout body; an override calls it where Dart writes
super.markNeedsLayout().Source§fn show_on_screen(
self: RenderHandle<Self>,
app: &mut App,
descendant: Option<AnyRenderObject>,
rect: Option<Rect>,
duration: Duration,
curve: Rc<dyn Curve>,
)
fn show_on_screen( self: RenderHandle<Self>, app: &mut App, descendant: Option<AnyRenderObject>, rect: Option<Rect>, duration: Duration, curve: Rc<dyn Curve>, )
RenderObject.showOnScreen.