pub struct IgnorePointer {
pub key: Option<KeyRef>,
pub ignoring: bool,
pub child: Option<WidgetRef>,
}Expand description
A widget that is invisible during hit testing.
When ignoring is true, this widget (and its subtree) is invisible
to hit testing. It still consumes space during layout and paints its child
as usual. It just cannot be the target of located events, because it returns
false from RenderBox::hit_test.
See also:
AbsorbPointer, which also prevents its children from receiving pointer events but is itself visible to hit testing.SliverIgnorePointer, the sliver version of this widget.
Flutter’s deprecated ignoringSemantics waits on accessibility.
Fields§
§key: Option<KeyRef>§ignoring: boolWhether this widget is ignored during hit testing.
Regardless of whether this widget is ignored during hit testing, it will still consume space during layout and be visible during painting.
Defaults to true.
child: Option<WidgetRef>Implementations§
Source§impl IgnorePointer
impl IgnorePointer
Sourcepub fn new() -> IgnorePointer
pub fn new() -> IgnorePointer
Creates a widget that is invisible to hit testing; Dart’s named arguments are the setters.
Sourcepub fn key(self, key: KeyRef) -> IgnorePointer
pub fn key(self, key: KeyRef) -> IgnorePointer
Dart IgnorePointer(key:).
Sourcepub fn ignoring(self, ignoring: bool) -> IgnorePointer
pub fn ignoring(self, ignoring: bool) -> IgnorePointer
Dart IgnorePointer(ignoring:).
Sourcepub fn child<K>(self, child: impl IntoWidget<K>) -> IgnorePointer
pub fn child<K>(self, child: impl IntoWidget<K>) -> IgnorePointer
Dart IgnorePointer(child:).
Trait Implementations§
Source§impl Debug for IgnorePointer
impl Debug for IgnorePointer
Source§impl Default for IgnorePointer
impl Default for IgnorePointer
Source§fn default() -> IgnorePointer
fn default() -> IgnorePointer
Returns the “default value” for a type. Read more
Source§impl RenderObjectWidget for IgnorePointer
impl RenderObjectWidget for IgnorePointer
Source§type RenderObject = RenderIgnorePointer
type RenderObject = RenderIgnorePointer
The render object this widget creates; Dart’s
covariant RenderObject parameter type.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 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 update_render_object(
&self,
app: &mut App,
_context: BuildContext,
render_object: RenderHandle<RenderIgnorePointer>,
)
fn update_render_object( &self, app: &mut App, _context: BuildContext, render_object: RenderHandle<RenderIgnorePointer>, )
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 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 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.Auto Trait Implementations§
impl !RefUnwindSafe for IgnorePointer
impl !Send for IgnorePointer
impl !Sync for IgnorePointer
impl !UnwindSafe for IgnorePointer
impl Forget for IgnorePointer
impl Freeze for IgnorePointer
impl Move for IgnorePointer
impl Unpin for IgnorePointer
impl UnsafeUnpin for IgnorePointerwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: 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<SingleChildRenderObjectKind> for Wwhere
W: SingleChildRenderObjectWidget,
<W as RenderObjectWidget>::RenderObject: RenderObjectWithChildMixin,
impl<W> IntoWidget<SingleChildRenderObjectKind> for Wwhere
W: SingleChildRenderObjectWidget,
<W as RenderObjectWidget>::RenderObject: RenderObjectWithChildMixin,
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.