pub struct Modifier { /* private fields */ }Expand description
A persistent handle to a modifier chain.
Implementations§
Trait Implementations§
Source§impl CursorModifierExt for Modifier
impl CursorModifierExt for Modifier
Source§fn hover_cursor_icon(self, icon: CursorIcon) -> Modifier
fn hover_cursor_icon(self, icon: CursorIcon) -> Modifier
Sets the cursor icon used while the pointer hovers this node.
Source§impl FocusModifierExt for Modifier
impl FocusModifierExt for Modifier
Source§fn focus_requester(self, requester: FocusRequester) -> Modifier
fn focus_requester(self, requester: FocusRequester) -> Modifier
Binds an explicit focus requester to this subtree.
Source§fn focus_properties(self, properties: FocusProperties) -> Modifier
fn focus_properties(self, properties: FocusProperties) -> Modifier
Applies explicit focus properties to this subtree.
Source§fn focus_group(self) -> Modifier
fn focus_group(self) -> Modifier
Registers a traversal-only focus group for this subtree.
Source§fn focus_scope_with(self, scope: FocusScopeNode) -> Modifier
fn focus_scope_with(self, scope: FocusScopeNode) -> Modifier
Registers an explicit focus scope handle for this subtree.
Source§fn focus_group_with(self, group: FocusGroupNode) -> Modifier
fn focus_group_with(self, group: FocusGroupNode) -> Modifier
Registers an explicit focus group handle for this subtree.
Source§fn focus_restorer(self, fallback: Option<FocusRequester>) -> Modifier
fn focus_restorer(self, fallback: Option<FocusRequester>) -> Modifier
Registers a focus scope with restore behavior for this subtree.
Source§fn focus_restorer_with(
self,
scope: FocusScopeNode,
fallback: Option<FocusRequester>,
) -> Modifier
fn focus_restorer_with( self, scope: FocusScopeNode, fallback: Option<FocusRequester>, ) -> Modifier
Registers an explicit focus restorer scope for this subtree.
Source§fn focus_traversal_policy(self, policy: FocusTraversalPolicy) -> Modifier
fn focus_traversal_policy(self, policy: FocusTraversalPolicy) -> Modifier
Applies a traversal policy to the current focus group or scope.
Source§fn on_focus_changed<F>(self, handler: F) -> Modifier
fn on_focus_changed<F>(self, handler: F) -> Modifier
Registers a callback that runs when the subtree focus state changes.
Source§fn on_focus_event<F>(self, handler: F) -> Modifier
fn on_focus_event<F>(self, handler: F) -> Modifier
Registers a callback that observes focus events for this subtree.
Source§fn focus_beyond_bounds_handler<F>(self, handler: F) -> Modifier
fn focus_beyond_bounds_handler<F>(self, handler: F) -> Modifier
Registers a callback that moves focus beyond the current viewport.
Source§fn focus_reveal_handler<F>(self, handler: F) -> Modifier
fn focus_reveal_handler<F>(self, handler: F) -> Modifier
Registers a callback that reveals the focused target within the
viewport.
Source§impl ModifierCapabilityExt for Modifier
impl ModifierCapabilityExt for Modifier
Source§fn push_layout<N>(self, node: N) -> Selfwhere
N: LayoutModifierNode,
fn push_layout<N>(self, node: N) -> Selfwhere
N: LayoutModifierNode,
Appends a layout modifier node to the current modifier chain.
Source§fn push_draw<N>(self, node: N) -> Selfwhere
N: DrawModifierNode,
fn push_draw<N>(self, node: N) -> Selfwhere
N: DrawModifierNode,
Appends a draw modifier node to the current modifier chain.
Source§fn push_parent_data<N>(self, node: N) -> Selfwhere
N: ParentDataModifierNode,
fn push_parent_data<N>(self, node: N) -> Selfwhere
N: ParentDataModifierNode,
Appends a parent-data modifier node to the current modifier chain.
Source§fn push_build<N>(self, node: N) -> Selfwhere
N: BuildModifierNode,
fn push_build<N>(self, node: N) -> Selfwhere
N: BuildModifierNode,
Appends a build modifier node to the current modifier chain.
Source§fn push_semantics<N>(self, node: N) -> Selfwhere
N: SemanticsModifierNode,
fn push_semantics<N>(self, node: N) -> Selfwhere
N: SemanticsModifierNode,
Appends a semantics modifier node to the current modifier chain.
Source§fn push_pointer_preview_input<N>(self, node: N) -> Selfwhere
N: PointerInputModifierNode,
fn push_pointer_preview_input<N>(self, node: N) -> Selfwhere
N: PointerInputModifierNode,
Appends a preview pointer-input modifier node to the current modifier
chain.
Source§fn push_pointer_input<N>(self, node: N) -> Selfwhere
N: PointerInputModifierNode,
fn push_pointer_input<N>(self, node: N) -> Selfwhere
N: PointerInputModifierNode,
Appends a pointer-input modifier node to the current modifier chain.
Source§fn push_pointer_final_input<N>(self, node: N) -> Selfwhere
N: PointerInputModifierNode,
fn push_pointer_final_input<N>(self, node: N) -> Selfwhere
N: PointerInputModifierNode,
Appends a final pointer-input modifier node to the current modifier
chain.
Source§fn push_keyboard_preview_input<N>(self, node: N) -> Selfwhere
N: KeyboardInputModifierNode,
fn push_keyboard_preview_input<N>(self, node: N) -> Selfwhere
N: KeyboardInputModifierNode,
Appends a preview keyboard-input modifier node to the current modifier
chain.
Source§fn push_keyboard_input<N>(self, node: N) -> Selfwhere
N: KeyboardInputModifierNode,
fn push_keyboard_input<N>(self, node: N) -> Selfwhere
N: KeyboardInputModifierNode,
Appends a keyboard-input modifier node to the current modifier chain.
Source§fn push_ime_preview_input<N>(self, node: N) -> Selfwhere
N: ImeInputModifierNode,
fn push_ime_preview_input<N>(self, node: N) -> Selfwhere
N: ImeInputModifierNode,
Appends a preview IME-input modifier node to the current modifier chain.
Source§fn push_ime_input<N>(self, node: N) -> Selfwhere
N: ImeInputModifierNode,
fn push_ime_input<N>(self, node: N) -> Selfwhere
N: ImeInputModifierNode,
Appends an IME-input modifier node to the current modifier chain.
impl Eq for Modifier
Auto Trait Implementations§
impl Freeze for Modifier
impl !RefUnwindSafe for Modifier
impl Send for Modifier
impl Sync for Modifier
impl Unpin for Modifier
impl !UnwindSafe for Modifier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.