pub struct ViewportElement { /* private fields */ }Expand description
Dart’s _ViewportElement: the Viewport’s element, which keeps the render object’s
center in step with the child list.
Implementations§
Source§impl ViewportElement
impl ViewportElement
Sourcepub fn new(app: &mut App, widget: WidgetRef) -> Handle<ViewportElement>
pub fn new(app: &mut App, widget: WidgetRef) -> Handle<ViewportElement>
Creates an element that uses the given widget as its configuration.
Sourcepub fn render_object(
self: Handle<Self>,
app: &App,
) -> RenderHandle<RenderViewport>
pub fn render_object( self: Handle<Self>, app: &App, ) -> RenderHandle<RenderViewport>
The viewport this element manages.
Trait Implementations§
Source§impl Element for ViewportElement
impl Element for ViewportElement
Source§fn debug_visit_onstage_children(
self: Handle<Self>,
app: &App,
visitor: &mut dyn FnMut(AnyElement),
)
fn debug_visit_onstage_children( self: Handle<Self>, app: &App, visitor: &mut dyn FnMut(AnyElement), )
Dart’s _ViewportElement.debugVisitOnstageChildren: the slivers whose geometry is
visible.
Source§const IS_RENDER_OBJECT_ELEMENT: bool = true
const IS_RENDER_OBJECT_ELEMENT: bool = true
Dart’s
this is RenderObjectElement.Source§fn element_data(self: Handle<Self>, app: &App) -> &ElementData
fn element_data(self: Handle<Self>, app: &App) -> &ElementData
Dart’s base-class fields, held under the field
element
(element_accessors!).Source§fn element_data_mut(self: Handle<Self>, app: &mut App) -> &mut ElementData
fn element_data_mut(self: Handle<Self>, app: &mut App) -> &mut ElementData
See
element_data.Source§fn render_object(self: Handle<Self>, app: &App) -> Option<AnyRenderObject>
fn render_object(self: Handle<Self>, app: &App) -> Option<AnyRenderObject>
The render object at (or below) this location in the tree.
Source§fn render_object_attaching_child(
self: Handle<Self>,
_app: &App,
) -> Option<AnyElement>
fn render_object_attaching_child( self: Handle<Self>, _app: &App, ) -> Option<AnyElement>
Source§fn debug_doing_build(self: Handle<Self>, app: &App) -> bool
fn debug_doing_build(self: Handle<Self>, app: &App) -> bool
Whether this element is in the middle of building.
Source§fn visit_children(
self: Handle<Self>,
app: &App,
visitor: &mut dyn FnMut(AnyElement),
)
fn visit_children( self: Handle<Self>, app: &App, visitor: &mut dyn FnMut(AnyElement), )
Calls the argument for each child. Must be overridden by subclasses that support
having children. Read more
Source§fn forget_child(self: Handle<Self>, app: &mut App, child: AnyElement)
fn forget_child(self: Handle<Self>, app: &mut App, child: AnyElement)
Remove the given child from the element’s child list, in preparation for the child
being reused elsewhere in the element tree.
Source§fn mount(
self: Handle<Self>,
app: &mut App,
parent: Option<AnyElement>,
new_slot: Option<Slot>,
)
fn mount( self: Handle<Self>, app: &mut App, parent: Option<AnyElement>, new_slot: Option<Slot>, )
Add this element to the tree in the given slot of the given parent. Read more
Source§fn update(self: Handle<Self>, app: &mut App, new_widget: WidgetRef)
fn update(self: Handle<Self>, app: &mut App, new_widget: WidgetRef)
Change the widget used to configure this element. Read more
Source§fn perform_rebuild(self: Handle<Self>, app: &mut App)
fn perform_rebuild(self: Handle<Self>, app: &mut App)
Cause the widget to update itself. Read more
Source§fn deactivate(self: Handle<Self>, app: &mut App)
fn deactivate(self: Handle<Self>, app: &mut App)
Transition from the “active” to the “inactive” lifecycle state.
Source§fn unmount(self: Handle<Self>, app: &mut App)
fn unmount(self: Handle<Self>, app: &mut App)
Transition from the “inactive” to the “defunct” lifecycle state.
Source§fn update_parent_data(
self: Handle<Self>,
app: &mut App,
parent_data_element: AnyElement,
)
fn update_parent_data( self: Handle<Self>, app: &mut App, parent_data_element: AnyElement, )
RenderObjectElement._updateParentData: apply a parent-data widget to this element’s
render object.Source§fn update_slot(self: Handle<Self>, app: &mut App, new_slot: Option<Slot>)
fn update_slot(self: Handle<Self>, app: &mut App, new_slot: Option<Slot>)
Called by
AnyElement::update_slot_for_child when the slot for a child has changed.Source§fn detach_render_object(self: Handle<Self>, app: &mut App)
fn detach_render_object(self: Handle<Self>, app: &mut App)
Remove
AnyElement::render_object from the render tree. Read moreSource§fn insert_render_object_child(
self: Handle<Self>,
app: &mut App,
child: AnyRenderObject,
slot: Option<Slot>,
)
fn insert_render_object_child( self: Handle<Self>, app: &mut App, child: AnyRenderObject, slot: Option<Slot>, )
RenderObjectElement.insertRenderObjectChild.Source§fn move_render_object_child(
self: Handle<Self>,
app: &mut App,
child: AnyRenderObject,
old_slot: Option<Slot>,
new_slot: Option<Slot>,
)
fn move_render_object_child( self: Handle<Self>, app: &mut App, child: AnyRenderObject, old_slot: Option<Slot>, new_slot: Option<Slot>, )
RenderObjectElement.moveRenderObjectChild.Source§fn remove_render_object_child(
self: Handle<Self>,
app: &mut App,
child: AnyRenderObject,
slot: Option<Slot>,
)
fn remove_render_object_child( self: Handle<Self>, app: &mut App, child: AnyRenderObject, slot: Option<Slot>, )
RenderObjectElement.removeRenderObjectChild.Source§fn attach_notification_tree(self: Handle<Self>, app: &mut App)
fn attach_notification_tree(self: Handle<Self>, app: &mut App)
Source§fn on_notification(
self: Handle<Self>,
app: &mut App,
notification: &dyn Notification,
) -> bool
fn on_notification( self: Handle<Self>, app: &mut App, notification: &dyn Notification, ) -> bool
Called when a notification of the appropriate type arrives at this location in the
tree (Dart’s
NotifiableElementMixin.onNotification). Read moreSource§fn as_element(self: Handle<Self>) -> AnyElement
fn as_element(self: Handle<Self>) -> AnyElement
The type-erased handle to this element.
Source§fn activate(self: Handle<Self>, app: &mut App)
fn activate(self: Handle<Self>, app: &mut App)
Transition from the “inactive” to the “active” lifecycle state.
Source§fn debug_deactivated(self: Handle<Self>, app: &mut App)
fn debug_deactivated(self: Handle<Self>, app: &mut App)
Called, in debug mode, after children have been deactivated.
Source§fn did_change_dependencies(self: Handle<Self>, app: &mut App)
fn did_change_dependencies(self: Handle<Self>, app: &mut App)
Called when a dependency of this element changes.
Source§fn update_inheritance(self: Handle<Self>, app: &mut App)
fn update_inheritance(self: Handle<Self>, app: &mut App)
Dart’s
_updateInheritance: inherit the parent’s inherited-element map.Source§fn build_scope(self: Handle<Self>, app: &App) -> Handle<BuildScope>
fn build_scope(self: Handle<Self>, app: &App) -> Handle<BuildScope>
The
BuildScope whose dirty list this element is in. Read moreSource§fn mark_needs_build(self: Handle<Self>, app: &mut App)
fn mark_needs_build(self: Handle<Self>, app: &mut App)
Marks the element as dirty and adds it to the global list of widgets to rebuild in
the next frame. Read more
Source§fn debug_expects_render_object_for_slot(
self: Handle<Self>,
app: &App,
slot: Option<&Slot>,
) -> bool
fn debug_expects_render_object_for_slot( self: Handle<Self>, app: &App, slot: Option<&Slot>, ) -> bool
Whether the child in the provided
slot (or one of its descendants) must insert a
RenderObject into its ancestor RenderObjectElement by calling
RenderObjectElement::insert_render_object_child on it.Source§const IS_PARENT_DATA_ELEMENT: bool = false
const IS_PARENT_DATA_ELEMENT: bool = false
Dart’s
this is ParentDataElement.Source§fn apply_parent_data(
self: Handle<Self>,
app: &mut App,
render_object: AnyRenderObject,
) -> bool
fn apply_parent_data( self: Handle<Self>, app: &mut App, render_object: AnyRenderObject, ) -> bool
ParentDataWidget.applyParentData through the element that holds the widget.Source§const IS_INHERITED_ELEMENT: bool = false
const IS_INHERITED_ELEMENT: bool = false
Dart’s
this is InheritedElement.Source§fn update_dependencies(
self: Handle<Self>,
app: &mut App,
dependent: AnyElement,
aspect: Option<Rc<dyn Any>>,
)
fn update_dependencies( self: Handle<Self>, app: &mut App, dependent: AnyElement, aspect: Option<Rc<dyn Any>>, )
InheritedElement.updateDependencies.Source§fn remove_dependent(self: Handle<Self>, app: &mut App, dependent: AnyElement)
fn remove_dependent(self: Handle<Self>, app: &mut App, dependent: AnyElement)
InheritedElement.removeDependent.Source§fn state_handle_id(self: Handle<Self>, app: &App) -> Option<(TypeId, HandleId)>
fn state_handle_id(self: Handle<Self>, app: &App) -> Option<(TypeId, HandleId)>
Dart’s
this is StatefulElement && state is T: the state’s type and arena id.Source§fn debug_fill_properties(
self: Handle<Self>,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( self: Handle<Self>, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
Dart’s
debugFillProperties as an element class overrides it: the properties it adds
after Element’s, and RenderObjectElement’s for a render object element, which the
framework adds first since a trait default cannot call super.Source§fn debug_describe_children(
self: Handle<Self>,
app: &App,
) -> Vec<Rc<dyn DiagnosticsNode>>
fn debug_describe_children( self: Handle<Self>, app: &App, ) -> Vec<Rc<dyn DiagnosticsNode>>
Dart’s
debugDescribeChildren: the children a dump shows under this element, by
default every child visit_children visits.Source§impl MultiChildRenderObjectElementBase for ViewportElement
impl MultiChildRenderObjectElementBase for ViewportElement
Source§fn multi_child_data(
self: Handle<Self>,
app: &App,
) -> &MultiChildRenderObjectElementData
fn multi_child_data( self: Handle<Self>, app: &App, ) -> &MultiChildRenderObjectElementData
The child list, held under the field
multi_child.Source§fn multi_child_data_mut(
self: Handle<Self>,
app: &mut App,
) -> &mut MultiChildRenderObjectElementData
fn multi_child_data_mut( self: Handle<Self>, app: &mut App, ) -> &mut MultiChildRenderObjectElementData
See
multi_child_data.Source§fn children(self: Handle<Self>, app: &App) -> Vec<AnyElement>
fn children(self: Handle<Self>, app: &App) -> Vec<AnyElement>
The current list of children of this element. Read more
Source§fn after_render_object(
app: &App,
slot: Option<&Slot>,
) -> Option<AnyRenderObject>
fn after_render_object( app: &App, slot: Option<&Slot>, ) -> Option<AnyRenderObject>
Dart’s
slot.value?.renderObject: the child this child is inserted after, as the
container’s ChildType.Source§fn indexed_slot(slot: Option<&Slot>) -> &IndexedSlot
fn indexed_slot(slot: Option<&Slot>) -> &IndexedSlot
Dart’s
IndexedSlot<Element?> slot parameter type.Source§fn visit_children(
self: Handle<Self>,
app: &App,
visitor: &mut dyn FnMut(AnyElement),
)
fn visit_children( self: Handle<Self>, app: &App, visitor: &mut dyn FnMut(AnyElement), )
MultiChildRenderObjectElement.visitChildren.Source§fn forget_child(self: Handle<Self>, app: &mut App, child: AnyElement)
fn forget_child(self: Handle<Self>, app: &mut App, child: AnyElement)
MultiChildRenderObjectElement.forgetChild.Source§fn mount(
self: Handle<Self>,
app: &mut App,
parent: Option<AnyElement>,
new_slot: Option<Slot>,
)
fn mount( self: Handle<Self>, app: &mut App, parent: Option<AnyElement>, new_slot: Option<Slot>, )
MultiChildRenderObjectElement.mount.Source§fn update(self: Handle<Self>, app: &mut App, new_widget: WidgetRef)
fn update(self: Handle<Self>, app: &mut App, new_widget: WidgetRef)
MultiChildRenderObjectElement.update.Source§fn insert_render_object_child(
self: Handle<Self>,
app: &mut App,
child: AnyRenderObject,
slot: Option<Slot>,
)
fn insert_render_object_child( self: Handle<Self>, app: &mut App, child: AnyRenderObject, slot: Option<Slot>, )
MultiChildRenderObjectElement.insertRenderObjectChild.Source§fn move_render_object_child(
self: Handle<Self>,
app: &mut App,
child: AnyRenderObject,
_old_slot: Option<Slot>,
new_slot: Option<Slot>,
)
fn move_render_object_child( self: Handle<Self>, app: &mut App, child: AnyRenderObject, _old_slot: Option<Slot>, new_slot: Option<Slot>, )
MultiChildRenderObjectElement.moveRenderObjectChild.Source§fn remove_render_object_child(
self: Handle<Self>,
app: &mut App,
child: AnyRenderObject,
_slot: Option<Slot>,
)
fn remove_render_object_child( self: Handle<Self>, app: &mut App, child: AnyRenderObject, _slot: Option<Slot>, )
MultiChildRenderObjectElement.removeRenderObjectChild.Source§impl RenderObjectElement for ViewportElement
impl RenderObjectElement for ViewportElement
Source§fn render_object_element_data(
self: Handle<Self>,
app: &App,
) -> &RenderObjectElementData
fn render_object_element_data( self: Handle<Self>, app: &App, ) -> &RenderObjectElementData
The render object slot, held under the field
render_object_element.Source§fn render_object_element_data_mut(
self: Handle<Self>,
app: &mut App,
) -> &mut RenderObjectElementData
fn render_object_element_data_mut( self: Handle<Self>, app: &mut App, ) -> &mut RenderObjectElementData
Source§fn render_object(self: Handle<Self>, app: &App) -> AnyRenderObject
fn render_object(self: Handle<Self>, app: &App) -> AnyRenderObject
The underlying
RenderObject for this element.Source§fn typed_render_object(
self: Handle<Self>,
app: &App,
) -> RenderHandle<<<Self as RenderObjectElementWidget>::Widget as RenderObjectWidget>::RenderObject>where
Self: RenderObjectElementWidget,
fn typed_render_object(
self: Handle<Self>,
app: &App,
) -> RenderHandle<<<Self as RenderObjectElementWidget>::Widget as RenderObjectWidget>::RenderObject>where
Self: RenderObjectElementWidget,
The typed render object.
fn find_ancestor_render_object_element( self: Handle<Self>, app: &App, ) -> Option<AnyElement>
fn find_ancestor_parent_data_elements( self: Handle<Self>, app: &App, ) -> Vec<AnyElement>
Source§fn mount(
self: Handle<Self>,
app: &mut App,
parent: Option<AnyElement>,
new_slot: Option<Slot>,
)where
Self: RenderObjectWidgetCalls,
fn mount(
self: Handle<Self>,
app: &mut App,
parent: Option<AnyElement>,
new_slot: Option<Slot>,
)where
Self: RenderObjectWidgetCalls,
RenderObjectElement.mount: the base mount, create the render object, attach it.Source§fn update(self: Handle<Self>, app: &mut App, new_widget: WidgetRef)where
Self: RenderObjectWidgetCalls,
fn update(self: Handle<Self>, app: &mut App, new_widget: WidgetRef)where
Self: RenderObjectWidgetCalls,
RenderObjectElement.update.Source§fn perform_rebuild(self: Handle<Self>, app: &mut App)where
Self: RenderObjectWidgetCalls,
fn perform_rebuild(self: Handle<Self>, app: &mut App)where
Self: RenderObjectWidgetCalls,
RenderObjectElement._performRebuild: push the widget’s configuration.Source§fn deactivate(self: Handle<Self>, app: &mut App)
fn deactivate(self: Handle<Self>, app: &mut App)
RenderObjectElement.deactivate.Source§fn unmount(self: Handle<Self>, app: &mut App)where
Self: RenderObjectWidgetCalls,
fn unmount(self: Handle<Self>, app: &mut App)where
Self: RenderObjectWidgetCalls,
RenderObjectElement.unmount.Source§fn update_parent_data(
self: Handle<Self>,
app: &mut App,
parent_data_element: AnyElement,
)
fn update_parent_data( self: Handle<Self>, app: &mut App, parent_data_element: AnyElement, )
RenderObjectElement._updateParentData.Source§fn update_slot(self: Handle<Self>, app: &mut App, new_slot: Option<Slot>)
fn update_slot(self: Handle<Self>, app: &mut App, new_slot: Option<Slot>)
RenderObjectElement.updateSlot.Source§fn attach_render_object(
self: Handle<Self>,
app: &mut App,
new_slot: Option<Slot>,
)
fn attach_render_object( self: Handle<Self>, app: &mut App, new_slot: Option<Slot>, )
RenderObjectElement.attachRenderObject.Source§fn detach_render_object(self: Handle<Self>, app: &mut App)
fn detach_render_object(self: Handle<Self>, app: &mut App)
RenderObjectElement.detachRenderObject.Source§impl ViewportElementMixin for ViewportElement
impl ViewportElementMixin for ViewportElement
Source§fn attach_notification_tree(self: Handle<Self>, app: &mut App)
fn attach_notification_tree(self: Handle<Self>, app: &mut App)
NotifiableElementMixin.attachNotificationTree: a node for this element.Source§fn on_notification(
self: Handle<Self>,
app: &mut App,
notification: &dyn Notification,
) -> bool
fn on_notification( self: Handle<Self>, app: &mut App, notification: &dyn Notification, ) -> bool
Counts this viewport, then lets the notification keep bubbling.
Auto Trait Implementations§
impl !RefUnwindSafe for ViewportElement
impl !Send for ViewportElement
impl !Sync for ViewportElement
impl !UnwindSafe for ViewportElement
impl Forget for ViewportElement
impl Freeze for ViewportElementwhere
NonZero<u32>: Freeze,
&'static ElementVTable: Freeze,
*const RcInner<dyn Any> is !null: Freeze,
PhantomData<RcInner<dyn Any>>: Freeze,
*const RcInner<dyn Widget> is !null: Freeze,
PhantomData<RcInner<dyn Widget>>: Freeze,
PhantomData<fn() -> BuildOwner>: Freeze,
PhantomData<fn() -> BuildScope>: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
*const RcInner<HashMap<TypeId, AnyElement>> is !null: Freeze,
PhantomData<RcInner<HashMap<TypeId, AnyElement>>>: Freeze,
*const RcInner<NotificationNode> is !null: Freeze,
PhantomData<RcInner<NotificationNode>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(AnyElement, ())>: Freeze,
PhantomData<(EntityId, Subscription)>: Freeze,
&'static RenderObjectVTable: Freeze,
PhantomData<AnyElement>: Freeze,
impl Move for ViewportElement
impl Unpin for ViewportElement
impl UnsafeUnpin for ViewportElementwhere
NonZeroU32Inner: UnsafeUnpin,
&'static ElementVTable: UnsafeUnpin,
*const RcInner<dyn Any> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Any>>: UnsafeUnpin,
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: UnsafeUnpin,
PhantomData<fn() -> BuildOwner>: UnsafeUnpin,
PhantomData<fn() -> BuildScope>: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: UnsafeUnpin,
*const RcInner<HashMap<TypeId, AnyElement>> is !null: UnsafeUnpin,
PhantomData<RcInner<HashMap<TypeId, AnyElement>>>: UnsafeUnpin,
*const RcInner<NotificationNode> is !null: UnsafeUnpin,
PhantomData<RcInner<NotificationNode>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(AnyElement, ())>: UnsafeUnpin,
PhantomData<(EntityId, Subscription)>: UnsafeUnpin,
&'static RenderObjectVTable: UnsafeUnpin,
PhantomData<AnyElement>: 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> ElementBase for Twhere
T: Element,
impl<T> ElementBase for Twhere
T: Element,
Source§fn rebuild(self: Handle<Self>, app: &mut App, force: bool)
fn rebuild(self: Handle<Self>, app: &mut App, force: bool)
Element.rebuild for an element whose type is known: calls its
perform_rebuild directly rather than through the vtable,
so a first build adds no frame on the way down the tree.Source§fn render_object_attaching_child(
self: Handle<Self>,
app: &App,
) -> Option<AnyElement>
fn render_object_attaching_child( self: Handle<Self>, app: &App, ) -> Option<AnyElement>
Element.renderObjectAttachingChild: the single child, if any.Source§fn mount(
self: Handle<Self>,
app: &mut App,
parent: Option<AnyElement>,
new_slot: Option<Slot>,
)
fn mount( self: Handle<Self>, app: &mut App, parent: Option<AnyElement>, new_slot: Option<Slot>, )
Element.mount.Source§fn attach_render_object(
self: Handle<Self>,
app: &mut App,
new_slot: Option<Slot>,
)
fn attach_render_object( self: Handle<Self>, app: &mut App, new_slot: Option<Slot>, )
Element.attachRenderObject.Source§fn detach_render_object(self: Handle<Self>, app: &mut App)
fn detach_render_object(self: Handle<Self>, app: &mut App)
Element.detachRenderObject.Source§fn deactivate(self: Handle<Self>, app: &mut App)
fn deactivate(self: Handle<Self>, app: &mut App)
Element.deactivate.Source§fn perform_rebuild(self: Handle<Self>, app: &mut App)
fn perform_rebuild(self: Handle<Self>, app: &mut App)
Element.performRebuild: clears the dirty flag.Source§fn did_change_dependencies(self: Handle<Self>, app: &mut App)
fn did_change_dependencies(self: Handle<Self>, app: &mut App)
Element.didChangeDependencies.Source§fn attach_notification_tree(self: Handle<Self>, app: &mut App)
fn attach_notification_tree(self: Handle<Self>, app: &mut App)
Element.attachNotificationTree: inherit the parent’s notification chain.Source§fn build_scope(self: Handle<Self>, app: &App) -> Handle<BuildScope>
fn build_scope(self: Handle<Self>, app: &App) -> Handle<BuildScope>
Element.buildScope: the scope inherited from the parent at mount.Source§fn mark_needs_build(self: Handle<Self>, app: &mut App)
fn mark_needs_build(self: Handle<Self>, app: &mut App)
Element.markNeedsBuild.Source§fn update_inheritance(self: Handle<Self>, app: &mut App)
fn update_inheritance(self: Handle<Self>, app: &mut App)
Element._updateInheritance.Source§fn render_object(self: Handle<Self>, app: &App) -> Option<AnyRenderObject>
fn render_object(self: Handle<Self>, app: &App) -> Option<AnyRenderObject>
Element.renderObject: walk down through the attaching children.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> RenderObjectWidgetCalls for Twhere
T: RenderObjectElement + RenderObjectElementWidget,
impl<T> RenderObjectWidgetCalls for Twhere
T: RenderObjectElement + RenderObjectElementWidget,
Source§fn create_render_object(
self: Handle<T>,
app: &mut App,
widget: &Rc<dyn Widget>,
) -> AnyRenderObject
fn create_render_object( self: Handle<T>, app: &mut App, widget: &Rc<dyn Widget>, ) -> AnyRenderObject
The widget’s
createRenderObject.Source§fn update_render_object(self: Handle<T>, app: &mut App, widget: &Rc<dyn Widget>)
fn update_render_object(self: Handle<T>, app: &mut App, widget: &Rc<dyn Widget>)
The widget’s
updateRenderObject on this element’s render object.Source§fn did_unmount_render_object(
self: Handle<T>,
app: &mut App,
old_widget: &Rc<dyn Widget>,
render_object: AnyRenderObject,
)
fn did_unmount_render_object( self: Handle<T>, app: &mut App, old_widget: &Rc<dyn Widget>, render_object: AnyRenderObject, )
The old widget’s
didUnmountRenderObject on this element’s render object.