pub struct WindowScope { /* private fields */ }Expand description
Provides the window a view is in to the widgets below it.
Implementations§
Source§impl WindowScope
impl WindowScope
Trait Implementations§
Source§impl Debug for WindowScope
impl Debug for WindowScope
Source§impl InheritedWidget for WindowScope
impl InheritedWidget for WindowScope
Source§fn update_should_notify(&self, old_widget: &WindowScope) -> bool
fn update_should_notify(&self, old_widget: &WindowScope) -> bool
Whether the framework should notify widgets that inherit from this widget. Read more
Source§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 as_inherited_theme(&self) -> Option<&dyn InheritedTheme>
fn as_inherited_theme(&self) -> Option<&dyn InheritedTheme>
Dart’s
this is InheritedTheme: an inherited widget that is an InheritedTheme
answers with itself, which is what InheritedTheme::capture collects.Auto Trait Implementations§
impl !RefUnwindSafe for WindowScope
impl !Send for WindowScope
impl !Sync for WindowScope
impl !UnwindSafe for WindowScope
impl Forget for WindowScope
impl Freeze for WindowScopewhere
*const RcInner<dyn HostWindow> is !null: Freeze,
PhantomData<RcInner<dyn HostWindow>>: Freeze,
*const RcInner<dyn Widget> is !null: Freeze,
PhantomData<RcInner<dyn Widget>>: Freeze,
impl Move for WindowScope
impl Unpin for WindowScope
impl UnsafeUnpin for WindowScopewhere
*const RcInner<dyn HostWindow> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn HostWindow>>: UnsafeUnpin,
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: 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<InheritedKind> for Wwhere
W: InheritedWidget,
impl<W> IntoWidget<InheritedKind> for Wwhere
W: InheritedWidget,
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.