Skip to main content

FillStack

Struct FillStack 

Source
pub struct FillStack;
Expand description

A minimal retained container that lays out all children to fill the same bounds.

Child order defines paint/input stacking (last child is on top).

Implementations§

Source§

impl FillStack

Source

pub fn create_node<H: UiHost>(ui: &mut UiTree<H>) -> NodeId

Trait Implementations§

Source§

impl Clone for FillStack

Source§

fn clone(&self) -> FillStack

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FillStack

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FillStack

Source§

fn default() -> FillStack

Returns the “default value” for a type. Read more
Source§

impl<H: UiHost> Widget<H> for FillStack

Source§

fn layout(&mut self, cx: &mut LayoutCx<'_, H>) -> Size

Source§

fn event_capture(&mut self, _cx: &mut EventCx<'_, H>, _event: &Event)

Capture-phase event dispatch (root → target). Read more
Source§

fn event_observer(&mut self, _cx: &mut ObserverCx<'_, H>, _event: &Event)

Observer-phase event dispatch (InputDispatchPhase::Preview). Read more
Source§

fn debug_type_name(&self) -> &'static str

Source§

fn event(&mut self, _cx: &mut EventCx<'_, H>, _event: &Event)

Source§

fn command(&mut self, _cx: &mut CommandCx<'_, H>, _command: &CommandId) -> bool

Source§

fn command_availability( &self, _cx: &mut CommandAvailabilityCx<'_, H>, _command: &CommandId, ) -> CommandAvailability

Pure query: does this node participate in availability for command?
Source§

fn cleanup_resources(&mut self, _services: &mut dyn UiServices)

Source§

fn render_transform(&self, _bounds: Rect) -> Option<Transform2D>

Optional affine transform applied to both paint and input for the subtree rooted at this node. Read more
Source§

fn children_render_transform(&self, _bounds: Rect) -> Option<Transform2D>

Optional affine transform applied to children only (not to this node’s own bounds). Read more
Source§

fn cursor_icon_at( &self, _bounds: Rect, _position: Point, _input_ctx: &InputContext, ) -> Option<CursorIcon>

Optional cursor icon request for a pointer position. Read more
Source§

fn clips_hit_test(&self, _bounds: Rect) -> bool

Whether hit-testing should be clipped to bounds. Read more
Source§

fn clip_hit_test_corner_radii(&self, _bounds: Rect) -> Option<Corners>

Optional rounded-rectangle clip shape for hit-testing. Read more
Source§

fn hit_test(&self, _bounds: Rect, _position: Point) -> bool

Hit-test predicate for pointer input targeting. Read more
Source§

fn hit_test_children(&self, _bounds: Rect, _position: Point) -> bool

Whether the node’s children participate in hit-testing. Read more
Source§

fn semantics_present(&self) -> bool

Whether this node should be included in the semantics snapshot. Read more
Source§

fn semantics_children(&self) -> bool

Whether semantics snapshot traversal should recurse into this node’s children. Read more
Source§

fn sync_interactivity_gate(&mut self, _present: bool, _interactive: bool)

Optional synchronization hook for declarative InteractivityGate nodes. Read more
Source§

fn sync_hit_test_gate(&mut self, _hit_test: bool)

Optional synchronization hook for declarative HitTestGate nodes. Read more
Source§

fn sync_focus_traversal_gate(&mut self, _traverse: bool)

Optional synchronization hook for declarative FocusTraversalGate nodes. Read more
Source§

fn focus_traversal_children(&self) -> bool

Whether focus traversal should recurse into this node’s children. Read more
Source§

fn is_focusable(&self) -> bool

Source§

fn is_text_input(&self) -> bool

Source§

fn platform_text_input_snapshot(&self) -> Option<WindowTextInputSnapshot>

Optional platform-facing text input snapshot for the focused widget. Read more
Source§

fn platform_text_input_selected_range_utf16(&self) -> Option<Utf16Range>

Returns the focused selection range (UTF-16 code units over the composed view).
Source§

fn platform_text_input_marked_range_utf16(&self) -> Option<Utf16Range>

Returns the marked (preedit) range (UTF-16 code units over the composed view).
Source§

fn platform_text_input_text_for_range_utf16( &self, _range: Utf16Range, ) -> Option<String>

Source§

fn platform_text_input_bounds_for_range_utf16( &mut self, _cx: &mut PlatformTextInputCx<'_, H>, _range: Utf16Range, ) -> Option<Rect>

Source§

fn platform_text_input_character_index_for_point_utf16( &mut self, _cx: &mut PlatformTextInputCx<'_, H>, _point: Point, ) -> Option<u32>

Source§

fn platform_text_input_replace_text_in_range_utf16( &mut self, _cx: &mut PlatformTextInputCx<'_, H>, _range: Utf16Range, _text: &str, ) -> bool

Source§

fn platform_text_input_replace_and_mark_text_in_range_utf16( &mut self, _cx: &mut PlatformTextInputCx<'_, H>, _range: Utf16Range, _text: &str, _marked: Option<Utf16Range>, _selected: Option<Utf16Range>, ) -> bool

Source§

fn can_scroll_by(&self) -> bool

Whether this node supports direct “scroll-by” requests (typically for accessibility).
Source§

fn scroll_by( &mut self, _cx: &mut ScrollByCx<'_, H>, _delta: Point, ) -> ScrollByResult

Source§

fn can_scroll_descendant_into_view(&self) -> bool

Whether this node can scroll a focused descendant into view. Read more
Source§

fn scroll_descendant_into_view( &mut self, _cx: &mut ScrollIntoViewCx<'_, H>, _descendant_bounds: Rect, ) -> ScrollIntoViewResult

Source§

fn measure(&mut self, _cx: &mut MeasureCx<'_, H>) -> Size

Source§

fn prepaint(&mut self, _cx: &mut PrepaintCx<'_, H>)

Prepaint hook invoked after layout, before paint. Read more
Source§

fn paint(&mut self, cx: &mut PaintCx<'_, H>)

Source§

fn semantics(&mut self, _cx: &mut SemanticsCx<'_, H>)

Source§

impl Copy for FillStack

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UiElementA11yExt for T

Source§

fn a11y(self, decoration: SemanticsDecoration) -> UiElementWithA11y<Self>

Source§

fn a11y_role(self, role: SemanticsRole) -> UiElementWithA11y<Self>

Source§

fn a11y_label(self, label: impl Into<Arc<str>>) -> UiElementWithA11y<Self>

Source§

fn a11y_value(self, value: impl Into<Arc<str>>) -> UiElementWithA11y<Self>

Source§

fn a11y_disabled(self, disabled: bool) -> UiElementWithA11y<Self>

Source§

fn a11y_selected(self, selected: bool) -> UiElementWithA11y<Self>

Source§

fn a11y_expanded(self, expanded: bool) -> UiElementWithA11y<Self>

Source§

fn a11y_checked(self, checked: Option<bool>) -> UiElementWithA11y<Self>

Source§

impl<T> UiElementKeyContextExt for T

Source§

fn key_context( self, key_context: impl Into<Arc<str>>, ) -> UiElementWithKeyContext<Self>

Source§

impl<T> UiElementTestIdExt for T

Source§

fn test_id(self, id: impl Into<Arc<str>>) -> UiElementWithTestId<Self>

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more