pub struct RenderTapRegionSurface { /* private fields */ }Expand description
A render object that provides notification of a tap inside or outside of a
set of registered regions, without participating in the gesture
disambiguation system
(other than to consume tap down events if TapRegion::consume_outside_taps is
true).
See TapRegionSurface.
Implementations§
Source§impl RenderTapRegionSurface
impl RenderTapRegionSurface
Sourcepub fn new(
app: &mut App,
child: Option<AnyRenderBox>,
) -> RenderHandle<RenderTapRegionSurface>
pub fn new( app: &mut App, child: Option<AnyRenderBox>, ) -> RenderHandle<RenderTapRegionSurface>
Creates a RenderTapRegionSurface.
Sourcepub fn of(
app: &App,
context: AnyElement,
) -> RenderHandle<RenderTapRegionSurface>
pub fn of( app: &App, context: AnyElement, ) -> RenderHandle<RenderTapRegionSurface>
Dart TapRegionRegistry.of.
Sourcepub fn maybe_of(
app: &App,
context: AnyElement,
) -> Option<RenderHandle<RenderTapRegionSurface>>
pub fn maybe_of( app: &App, context: AnyElement, ) -> Option<RenderHandle<RenderTapRegionSurface>>
Dart TapRegionRegistry.maybeOf.
Trait Implementations§
Source§impl RenderBox for RenderTapRegionSurface
impl RenderBox for RenderTapRegionSurface
Source§fn render_box_data(
self: RenderHandle<RenderTapRegionSurface>,
app: &App,
) -> &RenderBoxData
fn render_box_data( self: RenderHandle<RenderTapRegionSurface>, app: &App, ) -> &RenderBoxData
Mixin field access.
Source§fn render_box_data_mut(
self: RenderHandle<RenderTapRegionSurface>,
app: &mut App,
) -> &mut RenderBoxData
fn render_box_data_mut( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, ) -> &mut RenderBoxData
See
render_box_data.Source§fn setup_parent_data(
self: RenderHandle<RenderTapRegionSurface>,
app: &mut App,
child: AnyRenderObject,
)
fn setup_parent_data( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, child: AnyRenderObject, )
Installs
BoxParentData unless the child already has it. Read moreSource§fn apply_paint_transform(
self: RenderHandle<RenderTapRegionSurface>,
app: &App,
child: AnyRenderObject,
transform: &mut Matrix,
)
fn apply_paint_transform( self: RenderHandle<RenderTapRegionSurface>, app: &App, child: AnyRenderObject, transform: &mut Matrix, )
Multiply the transform from the parent’s coordinate system to this box’s coordinate
system into the given transform. Read more
Source§fn hit_test(
self: RenderHandle<RenderTapRegionSurface>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
Determines the set of render objects located at the given position. Read more
Source§fn hit_test_self(
self: RenderHandle<RenderTapRegionSurface>,
app: &App,
position: Offset,
) -> bool
fn hit_test_self( self: RenderHandle<RenderTapRegionSurface>, app: &App, position: Offset, ) -> bool
Override this method if this render object can be hit even if its children were not hit. Read more
Source§fn hit_test_children(
self: RenderHandle<RenderTapRegionSurface>,
app: &mut App,
result: &mut BoxHitTestResult<'_>,
position: Offset,
) -> bool
fn hit_test_children( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, result: &mut BoxHitTestResult<'_>, position: Offset, ) -> bool
Override this method to check whether any children are located at the given position. Read more
Source§fn compute_min_intrinsic_width(
self: RenderHandle<RenderTapRegionSurface>,
app: &mut App,
height: f64,
) -> f64
fn compute_min_intrinsic_width( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, height: f64, ) -> f64
Computes the value returned by
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<RenderTapRegionSurface>,
app: &mut App,
height: f64,
) -> f64
fn compute_max_intrinsic_width( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, height: f64, ) -> f64
Computes the value returned by
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<RenderTapRegionSurface>,
app: &mut App,
width: f64,
) -> f64
fn compute_min_intrinsic_height( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, width: f64, ) -> f64
Computes the value returned by
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<RenderTapRegionSurface>,
app: &mut App,
width: f64,
) -> f64
fn compute_max_intrinsic_height( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, width: f64, ) -> f64
Computes the value returned by
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<RenderTapRegionSurface>,
app: &mut App,
baseline: TextBaseline,
) -> Option<f64>
fn compute_distance_to_actual_baseline( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, baseline: TextBaseline, ) -> Option<f64>
Returns the distance from the y-coordinate of the position of the box to the y-coordinate
of the first given baseline in the box’s contents, if any, or
None otherwise. Read moreSource§fn compute_dry_baseline(
self: RenderHandle<RenderTapRegionSurface>,
app: &mut App,
constraints: BoxConstraints,
baseline: TextBaseline,
) -> Option<f64>
fn compute_dry_baseline( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, constraints: BoxConstraints, baseline: TextBaseline, ) -> Option<f64>
Computes the value returned by
get_dry_baseline. Read moreSource§fn compute_dry_layout(
self: RenderHandle<RenderTapRegionSurface>,
app: &mut App,
constraints: BoxConstraints,
) -> Size
fn compute_dry_layout( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, constraints: BoxConstraints, ) -> Size
Computes the value returned by
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
The box constraints most recently supplied by the parent. Read more
Source§fn any_constraints(self: RenderHandle<Self>, app: &App) -> AnyBoxConstraints
fn any_constraints(self: RenderHandle<Self>, app: &App) -> AnyBoxConstraints
The box constraints most recently supplied by the parent, with the
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<'_>, )
Called from
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)
Mark this render object’s layout information as dirty. Read more
Source§fn perform_resize(self: RenderHandle<Self>, app: &mut App)
fn perform_resize(self: RenderHandle<Self>, app: &mut App)
Updates the box’s size using only the constraints. Read more
Source§fn paint_bounds(self: RenderHandle<Self>, app: &App) -> Rect
fn paint_bounds(self: RenderHandle<Self>, app: &App) -> Rect
An estimate of the bounds within which this render object will paint: the box’s own size.
Source§fn has_size(self: RenderHandle<Self>, app: &App) -> bool
fn has_size(self: RenderHandle<Self>, app: &App) -> bool
Whether this render object has undergone layout and has a
size.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, )
Override this method to handle pointer events that hit this render object. Read more
Source§fn set_size(self: RenderHandle<Self>, app: &mut App, size: Size)
fn set_size(self: RenderHandle<Self>, app: &mut App, size: Size)
Sets the size of this box. Call from
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, )
See
AnyRenderBox::layout.Source§fn as_box(self: RenderHandle<Self>) -> AnyRenderBox
fn as_box(self: RenderHandle<Self>) -> AnyRenderBox
The type-erased
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
The type-erased
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 RenderObject for RenderTapRegionSurface
impl RenderObject for RenderTapRegionSurface
Source§fn render_object_data(
self: RenderHandle<RenderTapRegionSurface>,
app: &App,
) -> &RenderObjectData
fn render_object_data( self: RenderHandle<RenderTapRegionSurface>, app: &App, ) -> &RenderObjectData
Mixin field access.
Source§fn render_object_data_mut(
self: RenderHandle<RenderTapRegionSurface>,
app: &mut App,
) -> &mut RenderObjectData
fn render_object_data_mut( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, ) -> &mut RenderObjectData
See
render_object_data.Source§fn debug_fill_properties(
self: RenderHandle<RenderTapRegionSurface>,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( self: RenderHandle<RenderTapRegionSurface>, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
Dart’s
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 perform_layout(self: RenderHandle<RenderTapRegionSurface>, app: &mut App)
fn perform_layout(self: RenderHandle<RenderTapRegionSurface>, app: &mut App)
Do the work of computing the layout for this render object. Read more
Source§fn paint(
self: RenderHandle<RenderTapRegionSurface>,
app: &mut App,
context: &mut PaintingContext,
offset: Offset,
)
fn paint( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, context: &mut PaintingContext, offset: Offset, )
Paint this render object into the given context at the given offset. Read more
Source§fn visit_children(
self: RenderHandle<RenderTapRegionSurface>,
app: &App,
visitor: &mut dyn FnMut(AnyRenderObject),
)
fn visit_children( self: RenderHandle<RenderTapRegionSurface>, app: &App, visitor: &mut dyn FnMut(AnyRenderObject), )
Calls
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
Dart’s implicit upcast of a concrete render object to
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)
Updates the render object’s size using only the constraints. Read more
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, )
Sets up parent data for
child if it has none. Read moreSource§fn did_attach(
self: RenderHandle<Self>,
app: &mut App,
owner: Handle<PipelineOwner>,
)
fn did_attach( self: RenderHandle<Self>, app: &mut App, owner: Handle<PipelineOwner>, )
The body of Flutter’s
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)
The body of Flutter’s
detach override after super.detach(). The default detaches
the children reported by visit_children.Source§fn redepth_children(self: RenderHandle<Self>, app: &mut App)
fn redepth_children(self: RenderHandle<Self>, app: &mut App)
Adjusts the depth of each child reported by
visit_children.Source§fn sized_by_parent(self: RenderHandle<Self>, _app: &App) -> bool
fn sized_by_parent(self: RenderHandle<Self>, _app: &App) -> bool
Whether the constraints are the only input to the sizing algorithm.
Source§fn apply_paint_transform(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
transform: &mut Matrix,
)
fn apply_paint_transform( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, transform: &mut Matrix, )
Applies the transform that would be applied when painting the given child to the
given matrix. Read more
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>
Dart’s
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
Whether this render object repaints separately from its parent. Read more
Source§fn always_needs_compositing(self: RenderHandle<Self>, _app: &App) -> bool
fn always_needs_compositing(self: RenderHandle<Self>, _app: &App) -> bool
Whether this render object always needs compositing. Read more
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, )
Dart’s
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>>
Dart’s
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 mouse_tracker_annotation(
self: RenderHandle<Self>,
_app: &App,
) -> Option<MouseTrackerAnnotation>
fn mouse_tracker_annotation( self: RenderHandle<Self>, _app: &App, ) -> Option<MouseTrackerAnnotation>
Dart’s
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 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
Update the composited layer owned by this render object. Read more
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>, )
Attempt to make (a portion of) this or a descendant
RenderObject visible on screen. Read moreSource§impl RenderObjectWithChildMixin for RenderTapRegionSurface
impl RenderObjectWithChildMixin for RenderTapRegionSurface
Source§type ChildType = AnyRenderBox
type ChildType = AnyRenderBox
Flutter’s
ChildType: the protocol of this render object’s child.Source§fn child_data(
self: RenderHandle<RenderTapRegionSurface>,
app: &App,
) -> &RenderObjectWithChildData<AnyRenderBox>
fn child_data( self: RenderHandle<RenderTapRegionSurface>, app: &App, ) -> &RenderObjectWithChildData<AnyRenderBox>
Mixin field access.
Source§fn child_data_mut(
self: RenderHandle<RenderTapRegionSurface>,
app: &mut App,
) -> &mut RenderObjectWithChildData<AnyRenderBox>
fn child_data_mut( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, ) -> &mut RenderObjectWithChildData<AnyRenderBox>
See
child_data.Source§fn child(self: RenderHandle<Self>, app: &App) -> Option<Self::ChildType>
fn child(self: RenderHandle<Self>, app: &App) -> Option<Self::ChildType>
The render object’s unique child.
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>>
Flutter’s
RenderObjectWithChildMixin.debugDescribeChildren: the child, named child.
A class with this mixin answers RenderObject::debug_describe_children with it.Source§impl RenderProxyBoxMixin for RenderTapRegionSurface
impl RenderProxyBoxMixin for RenderTapRegionSurface
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, )
A proxy child gets plain parent data, not
crate::BoxParentData.Source§fn apply_paint_transform(
self: RenderHandle<Self>,
app: &App,
child: AnyRenderObject,
transform: &mut Matrix,
)
fn apply_paint_transform( self: RenderHandle<Self>, app: &App, child: AnyRenderObject, transform: &mut Matrix, )
A proxy paints its child at its own offset: no transform to apply.
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
The child’s minimum intrinsic width, or 0 without a child.
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
The child’s maximum intrinsic width, or 0 without a child.
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
The child’s minimum intrinsic height, or 0 without a child.
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
The child’s maximum intrinsic height, or 0 without a child.
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>
The child’s baseline, or none without a child.
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>
The child’s dry baseline, or none without a child.
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
The child’s dry layout at this box’s constraints, or
compute_size_for_no_child.Source§fn perform_layout(self: RenderHandle<Self>, app: &mut App)
fn perform_layout(self: RenderHandle<Self>, app: &mut App)
Lays the child out with this box’s constraints and takes its size.
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
Calculate the size the proxy box would have when it has no child.
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
Hit tests the child at this box’s position.
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, )
Paints the child at this box’s offset.
Source§impl RenderProxyBoxWithHitTestBehavior for RenderTapRegionSurface
impl RenderProxyBoxWithHitTestBehavior for RenderTapRegionSurface
Source§fn behavior(
self: RenderHandle<RenderTapRegionSurface>,
_app: &App,
) -> HitTestBehavior
fn behavior( self: RenderHandle<RenderTapRegionSurface>, _app: &App, ) -> HitTestBehavior
How to behave during hit testing when deciding how the hit test propagates to children
and whether to consider targets behind this one.
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
Flutter’s
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
Flutter’s
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, )
Dart’s
RenderProxyBoxWithHitTestBehavior.debugFillProperties: a class that inherits
the behavior adds it before its own properties.Source§impl TapRegionRegistry for RenderTapRegionSurface
impl TapRegionRegistry for RenderTapRegionSurface
Source§fn register_tap_region(
self: RenderHandle<RenderTapRegionSurface>,
app: &mut App,
region: RenderHandle<RenderTapRegion>,
)
fn register_tap_region( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, region: RenderHandle<RenderTapRegion>, )
Register the given
RenderTapRegion with the registry.Source§fn unregister_tap_region(
self: RenderHandle<RenderTapRegionSurface>,
app: &mut App,
region: RenderHandle<RenderTapRegion>,
)
fn unregister_tap_region( self: RenderHandle<RenderTapRegionSurface>, app: &mut App, region: RenderHandle<RenderTapRegion>, )
Unregister the given
RenderTapRegion with the registry.Source§fn of(app: &App, context: AnyElement) -> RenderHandle<RenderTapRegionSurface>
fn of(app: &App, context: AnyElement) -> RenderHandle<RenderTapRegionSurface>
Source§fn maybe_of(
app: &App,
context: AnyElement,
) -> Option<RenderHandle<RenderTapRegionSurface>>
fn maybe_of( app: &App, context: AnyElement, ) -> Option<RenderHandle<RenderTapRegionSurface>>
Auto Trait Implementations§
impl !RefUnwindSafe for RenderTapRegionSurface
impl !Send for RenderTapRegionSurface
impl !Sync for RenderTapRegionSurface
impl !UnwindSafe for RenderTapRegionSurface
impl Forget for RenderTapRegionSurface
impl Freeze for RenderTapRegionSurfacewhere
&'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,
PhantomData<(RenderHandle<RenderTapRegion>, ())>: Freeze,
PhantomData<(TapRegionGroupId, HashSet<RenderHandle<RenderTapRegion>>)>: Freeze,
PhantomData<fn() -> DummyTapRecognizer>: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
impl Move for RenderTapRegionSurface
impl Unpin for RenderTapRegionSurface
impl UnsafeUnpin for RenderTapRegionSurfacewhere
&'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,
PhantomData<(RenderHandle<RenderTapRegion>, ())>: UnsafeUnpin,
PhantomData<(TapRegionGroupId, HashSet<RenderHandle<RenderTapRegion>>)>: UnsafeUnpin,
PhantomData<fn() -> DummyTapRecognizer>: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: 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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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)
Flutter’s
RenderBox.markNeedsLayout.Source§fn perform_resize(self: RenderHandle<Self>, app: &mut App)
fn perform_resize(self: RenderHandle<Self>, app: &mut App)
Flutter’s
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
Flutter’s
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)
Flutter’s
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)
Flutter’s
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>, )
Flutter’s
RenderObject.showOnScreen.