pub struct AccessCtx<'a> { /* private fields */ }
Implementations§
source§impl AccessCtx<'_>
impl AccessCtx<'_>
sourcepub fn skip_child(&self, child: &mut WidgetPod<impl Widget>)
pub fn skip_child(&self, child: &mut WidgetPod<impl Widget>)
Skip iterating over the given child.
Normally, container widgets are supposed to iterate over each of their child widgets in their methods. By default, the framework treats not doing so as a mistake, and panics if debug assertions are on.
This tells the framework that a child was deliberately skipped.
source§impl AccessCtx<'_>
impl AccessCtx<'_>
pub fn current_node(&mut self) -> &mut NodeBuilder
sourcepub fn is_requested(&self) -> bool
pub fn is_requested(&self) -> bool
Report whether accessibility was requested on this widget.
This method is primarily intended for containers. The accessibility
method will be called on a widget when it or any of its descendants
have seen a request. However, in many cases a container need not push
a node for itself.
Auto Trait Implementations§
impl<'a> Freeze for AccessCtx<'a>
impl<'a> !RefUnwindSafe for AccessCtx<'a>
impl<'a> !Send for AccessCtx<'a>
impl<'a> !Sync for AccessCtx<'a>
impl<'a> Unpin for AccessCtx<'a>
impl<'a> !UnwindSafe for AccessCtx<'a>
Blanket Implementations§
source§impl<T> AsAny for Twhere
T: Any,
impl<T> AsAny for Twhere
T: Any,
source§fn as_dyn_any(&self) -> &(dyn Any + 'static)
fn as_dyn_any(&self) -> &(dyn Any + 'static)
Return self.
source§fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
Return self.
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