pub struct Modifier { /* private fields */ }Expand description
A persistent handle to a modifier chain.
Implementations§
Source§impl Modifier
impl Modifier
Sourcepub fn on_layout_size_changed<F>(self, handler: F) -> Self
pub fn on_layout_size_changed<F>(self, handler: F) -> Self
Observes measured dimensions in local layout units after initial placement and size changes. Moving or scaling an ancestor does not trigger a callback unless the local measured size changes. Hidden layouts resume observation when placed again.
Sourcepub fn on_visible_window_bounds<F>(self, handler: F) -> Self
pub fn on_visible_window_bounds<F>(self, handler: F) -> Self
Observes the window-space bounds remaining after ancestor rectangular
clipping and window boundaries. Reports None when fully clipped or
when a previously placed layout becomes unplaced. Shape bounds are
included; occlusion by other content is not considered.
Sourcepub fn layout_coordinate_space(self) -> Self
pub fn layout_coordinate_space(self) -> Self
Uses this layout’s local units as a coordinate space for descendant
Self::on_layout_rect_in_space observers, including this layout.
Nested spaces take precedence over their ancestors.
Sourcepub fn on_layout_rect_in_space<F>(self, handler: F) -> Self
pub fn on_layout_rect_in_space<F>(self, handler: F) -> Self
Observes this layout’s fractional bounds in the nearest declared
Self::layout_coordinate_space. Without a declared space, observes
window bounds. Calls after initial placement and when these bounds
change; moving or scaling the entire space does not trigger a callback.
Hidden layouts resume observation when placed again.
Sourcepub fn then(self, other: Modifier) -> Self
pub fn then(self, other: Modifier) -> Self
Appends another modifier chain after this one without flattening it.
Sourcepub fn nested_scroll(self, connection: NestedScrollConnection) -> Self
pub fn nested_scroll(self, connection: NestedScrollConnection) -> Self
Attaches a nested scroll connection to this node.
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
impl Eq for Modifier
Source§impl FocusModifierExt for Modifier
impl FocusModifierExt for Modifier
Source§fn focus_requester(self, requester: FocusRequester) -> Modifier
fn focus_requester(self, requester: FocusRequester) -> Modifier
Source§fn focus_properties(self, properties: FocusProperties) -> Modifier
fn focus_properties(self, properties: FocusProperties) -> Modifier
Source§fn preferred_tab_stop(self, preferred: bool) -> Modifier
fn preferred_tab_stop(self, preferred: bool) -> Modifier
Source§fn focus_group(self) -> Modifier
fn focus_group(self) -> Modifier
Source§fn focus_scope_with(self, scope: FocusScopeNode) -> Modifier
fn focus_scope_with(self, scope: FocusScopeNode) -> Modifier
Source§fn focus_group_with(self, group: FocusGroupNode) -> Modifier
fn focus_group_with(self, group: FocusGroupNode) -> Modifier
Source§fn focus_restorer(self, fallback: Option<FocusRequester>) -> Modifier
fn focus_restorer(self, fallback: Option<FocusRequester>) -> Modifier
Source§fn focus_restorer_with(
self,
scope: FocusScopeNode,
fallback: Option<FocusRequester>,
) -> Modifier
fn focus_restorer_with( self, scope: FocusScopeNode, fallback: Option<FocusRequester>, ) -> Modifier
Source§fn focus_traversal_policy(self, policy: FocusTraversalPolicy) -> Modifier
fn focus_traversal_policy(self, policy: FocusTraversalPolicy) -> Modifier
Source§fn on_focus_changed<F>(self, handler: F) -> Modifier
fn on_focus_changed<F>(self, handler: F) -> Modifier
Source§fn on_focus_event<F>(self, handler: F) -> Modifier
fn on_focus_event<F>(self, handler: F) -> Modifier
Source§fn focus_beyond_bounds_handler<F>(self, handler: F) -> Modifier
fn focus_beyond_bounds_handler<F>(self, handler: F) -> Modifier
Source§fn focus_reveal_handler<F>(self, handler: F) -> Modifier
fn focus_reveal_handler<F>(self, handler: F) -> Modifier
Source§fn on_globally_positioned<F>(self, handler: F) -> Modifier
fn on_globally_positioned<F>(self, handler: F) -> Modifier
Source§fn on_globally_positioned_precise<F>(self, handler: F) -> Modifier
fn on_globally_positioned_precise<F>(self, handler: F) -> Modifier
Source§fn on_local_to_window<F>(self, handler: F) -> Modifier
fn on_local_to_window<F>(self, handler: F) -> Modifier
Source§fn on_layout_coordinates<F>(self, handler: F) -> Modifier
fn on_layout_coordinates<F>(self, handler: F) -> Modifier
Source§impl ModifierCapabilityExt for Modifier
impl ModifierCapabilityExt for Modifier
Source§fn push_clipboard_input<N>(self, node: N) -> Selfwhere
N: ClipboardInputModifierNode,
fn push_clipboard_input<N>(self, node: N) -> Selfwhere
N: ClipboardInputModifierNode,
Source§fn push_layout<N>(self, node: N) -> Selfwhere
N: LayoutModifierNode + PartialEq,
fn push_layout<N>(self, node: N) -> Selfwhere
N: LayoutModifierNode + PartialEq,
Source§fn push_placement<N>(self, node: N) -> Selfwhere
N: PlacementModifierNode + PartialEq,
fn push_placement<N>(self, node: N) -> Selfwhere
N: PlacementModifierNode + PartialEq,
Source§fn push_draw<N>(self, node: N) -> Selfwhere
N: DrawModifierNode,
fn push_draw<N>(self, node: N) -> Selfwhere
N: DrawModifierNode,
Source§fn push_parent_data<N>(self, node: N) -> Selfwhere
N: ParentDataModifierNode,
fn push_parent_data<N>(self, node: N) -> Selfwhere
N: ParentDataModifierNode,
Source§fn push_build<N>(self, node: N) -> Selfwhere
N: BuildModifierNode,
fn push_build<N>(self, node: N) -> Selfwhere
N: BuildModifierNode,
Source§fn push_semantics<N>(self, node: N) -> Selfwhere
N: SemanticsModifierNode,
fn push_semantics<N>(self, node: N) -> Selfwhere
N: SemanticsModifierNode,
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,
Source§fn push_pointer_input<N>(self, node: N) -> Selfwhere
N: PointerInputModifierNode,
fn push_pointer_input<N>(self, node: N) -> Selfwhere
N: PointerInputModifierNode,
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,
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,
Source§fn push_keyboard_input<N>(self, node: N) -> Selfwhere
N: KeyboardInputModifierNode,
fn push_keyboard_input<N>(self, node: N) -> Selfwhere
N: KeyboardInputModifierNode,
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,
Source§fn push_ime_input<N>(self, node: N) -> Selfwhere
N: ImeInputModifierNode,
fn push_ime_input<N>(self, node: N) -> Selfwhere
N: ImeInputModifierNode,
Auto Trait Implementations§
impl !RefUnwindSafe for Modifier
impl !UnwindSafe for Modifier
impl Freeze for Modifier
impl Send for Modifier
impl Sync for Modifier
impl Unpin for Modifier
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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>
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)
&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)
&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>
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>
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)
&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)
&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
key and return true if they are equal.