pub struct RawViewInternal { /* private fields */ }Expand description
Dart’s _RawViewInternal: the render object widget behind RawView, keyed by its view
so two views never share an element.
Trait Implementations§
Source§impl Debug for RawViewInternal
impl Debug for RawViewInternal
Source§impl RenderObjectWidget for RawViewInternal
impl RenderObjectWidget for RawViewInternal
Source§type RenderObject = RenderView
type RenderObject = RenderView
The render object this widget creates; Dart’s
covariant RenderObject parameter type.Source§fn create_render_object(
&self,
app: &mut App,
_context: BuildContext,
) -> AnyRenderObject
fn create_render_object( &self, app: &mut App, _context: BuildContext, ) -> AnyRenderObject
Creates an instance of the
RenderObject class that this widget represents, using the
configuration described by this widget. Read moreSource§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
Dart’s
debugFillProperties: the properties a dump shows for this widget, in Dart’s
order. Dart’s Widget base only sets the dense tree style, which the framework does.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Dart’s
toStringShort, for a widget that names itself apart from its type, as
SizedBox.expand does; see Widget::to_string_short.Source§fn debug_visit_onstage_children(
&self,
app: &App,
children: &[AnyElement],
visitor: &mut dyn FnMut(AnyElement),
)
fn debug_visit_onstage_children( &self, app: &App, children: &[AnyElement], visitor: &mut dyn FnMut(AnyElement), )
Dart’s
debugVisitOnstageChildren of the element this widget makes, for a widget whose
Dart element subclass overrides it only to hide children (_OffstageElement,
_IndexedStackElement): calls visitor for each of children, in order, that is
onstage. Waft’s generic single- and multi-child elements stand in for those subclasses
and ask their widget here; an element of a widget’s own overrides
Element::debug_visit_onstage_children instead.Source§fn update_render_object(
&self,
app: &mut App,
context: BuildContext,
render_object: RenderHandle<Self::RenderObject>,
)
fn update_render_object( &self, app: &mut App, context: BuildContext, render_object: RenderHandle<Self::RenderObject>, )
Copies the configuration described by this widget to the given render object, which
will be of the same type as returned by this object’s
create_render_object. Read moreSource§fn did_unmount_render_object(
&self,
app: &mut App,
render_object: RenderHandle<Self::RenderObject>,
)
fn did_unmount_render_object( &self, app: &mut App, render_object: RenderHandle<Self::RenderObject>, )
A render object previously associated with this widget has been removed from the tree.
The given
RenderObject will be of the same type as returned by this object’s
create_render_object.Source§impl Widget for RawViewInternal
impl Widget for RawViewInternal
Source§fn key(&self) -> Option<&KeyRef>
fn key(&self) -> Option<&KeyRef>
Controls how one widget replaces another widget in the tree. Read more
Source§fn creation_location(&self) -> Option<&'static Location<'static>>
fn creation_location(&self) -> Option<&'static Location<'static>>
Where the widget was made, in a debug build: Dart’s creation location, which the widget
inspector shows and its summary tree keeps the app’s own widgets by.
Source§fn record_creation_location(&mut self, location: CreationLocation)
fn record_creation_location(&mut self, location: CreationLocation)
Keeps where the widget was made, for
creation_location to
answer: what into_widget calls on a widget that is its own tree node, which has no
wrapper to keep it in. Such a widget keeps it in a field
(created: Option<CreationLocation>); the default keeps nothing.Source§fn create_element(&self, app: &mut App, this: WidgetRef) -> AnyElement
fn create_element(&self, app: &mut App, this: WidgetRef) -> AnyElement
Inflates this configuration to a concrete instance.
this is this widget’s shared
reference, which the element keeps.Source§fn widget_type(&self) -> TypeId
fn widget_type(&self) -> TypeId
The concrete widget’s type, Dart’s
runtimeType.Source§fn kind(&self) -> WidgetKind
fn kind(&self) -> WidgetKind
The kind of element this widget inflates to, for
Element.updateChild’s superclass
check.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Dart’s
toStringShort: the type, then the key when there is one, as
Text-[<'title'>].Source§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
Dart’s ::to_diagnostics_node) does before calling this.
debugFillProperties: the properties a dump shows for this widget, in Dart’s
order. Dart’s Widget base only sets the dense tree style, which
[to_diagnostics_node](Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
The concrete widget’s type name, as Dart’s
runtimeType prints in a message: the
type’s own name without its module path. Read moreSource§fn as_inherited_theme(&self) -> Option<&dyn InheritedTheme>
fn as_inherited_theme(&self) -> Option<&dyn InheritedTheme>
Source§fn as_render_object(&self) -> Option<&dyn AnyRenderObjectWidget>
fn as_render_object(&self) -> Option<&dyn AnyRenderObjectWidget>
This widget as a
RenderObjectWidget, when it is one of the three kinds the framework
makes elements for (leaf, single-child, multi-child): what those elements create and
update their render object through, so they are not copied per widget type.Source§fn as_single_child_render_object(
&self,
) -> Option<&dyn AnySingleChildRenderObjectWidget>
fn as_single_child_render_object( &self, ) -> Option<&dyn AnySingleChildRenderObjectWidget>
This widget as a
SingleChildRenderObjectWidget, when it is one.Source§fn as_multi_child_render_object(
&self,
) -> Option<&dyn AnyMultiChildRenderObjectWidget>
fn as_multi_child_render_object( &self, ) -> Option<&dyn AnyMultiChildRenderObjectWidget>
This widget as a
MultiChildRenderObjectWidget, when it is one.Source§fn as_parent_data(&self) -> Option<&dyn AnyParentDataWidget>
fn as_parent_data(&self) -> Option<&dyn AnyParentDataWidget>
This widget as a
ParentDataWidget, when it is one: what the one
ParentDataElement reads, so that element is not copied per widget type.Source§fn as_stateful(&self) -> Option<&dyn AnyStatefulWidget>
fn as_stateful(&self) -> Option<&dyn AnyStatefulWidget>
This widget as a
StatefulWidget, when it is one: what the one StatefulElement
creates its state through, so that element is not copied per widget type.Source§fn as_inherited(&self) -> Option<&dyn AnyInheritedWidget>
fn as_inherited(&self) -> Option<&dyn AnyInheritedWidget>
This widget as an
InheritedWidget, when it is one: what the one
InheritedElement reads, so that element is not copied per widget type.Source§fn as_stateless(&self) -> Option<&dyn StatelessWidget>
fn as_stateless(&self) -> Option<&dyn StatelessWidget>
This widget as a
StatelessWidget, when it is one: what the one
StatelessElement builds from, so that element is not copied per widget type.Source§fn as_preferred_size_widget(&self) -> Option<&dyn PreferredSizeWidget>
fn as_preferred_size_widget(&self) -> Option<&dyn PreferredSizeWidget>
Dart’s
widget is PreferredSizeWidget: this widget as a PreferredSizeWidget, when
it is one. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for RawViewInternal
impl !Send for RawViewInternal
impl !Sync for RawViewInternal
impl !UnwindSafe for RawViewInternal
impl Forget for RawViewInternal
impl Freeze for RawViewInternalwhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
*const RcInner<dyn View> is !null: Freeze,
PhantomData<RcInner<dyn View>>: Freeze,
*const RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<PipelineOwner>>) -> Rc<dyn Widget>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<PipelineOwner>>) -> Rc<dyn Widget>>>: Freeze,
&'static Location<'static>: Freeze,
impl Move for RawViewInternal
impl Unpin for RawViewInternal
impl UnsafeUnpin for RawViewInternalwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
*const RcInner<dyn View> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn View>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<PipelineOwner>>) -> Rc<dyn Widget>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<PipelineOwner>>) -> Rc<dyn Widget>>>: UnsafeUnpin,
&'static Location<'static>: 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<W> IntoWidget<TreeNodeKind> for Wwhere
W: Widget,
impl<W> IntoWidget<TreeNodeKind> for Wwhere
W: Widget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
The widget as a tree node, made where this is called: its
creation_location.