Skip to main content

Node

Struct Node 

Source
pub struct Node(/* private fields */);

Implementations§

Source§

impl Node

Source

pub fn has_split_fill(&self) -> bool

Source

pub fn split_pane_count(&self) -> usize

Source

pub fn split_panes(&self) -> impl Iterator<Item = (usize, &Node)>

Source§

impl Node

Source

pub fn input_type(&self) -> InputType

Source

pub fn input_purpose(&self) -> InputPurpose

Source

pub fn keyboard_capitalization(&self) -> KeyboardCapitalization

Source

pub fn return_key(&self) -> ReturnKey

Source

pub fn keyboard_navigation(&self) -> bool

Whether to show the keyboard’s previous and next field controls.

Source

pub fn allows_text_edit(&self, text: &str) -> bool

Check a proposed user edit, allowing incomplete numeric drafts.

Source

pub fn accepts_text_submission(&self) -> bool

Check whether the current value can be submitted by an editor.

Source§

impl Node

Source

pub fn calendar_cells(&self) -> Option<&[Node]>

Source

pub fn is_item_delegate(&self) -> bool

Source

pub fn check_state(&self) -> CheckState

Source

pub fn date(&self, name: &str) -> Option<Date>

Source

pub fn time(&self, name: &str) -> Option<Time>

Source

pub fn new(kind: &'static str, id: Option<&'static str>) -> Self

Source

pub fn shares_storage_with(&self, other: &Self) -> bool

Source

pub fn hidden() -> Self

An empty slot keeps the generated event paths stable across conditional renders.

Source

pub fn element_id(&self) -> Option<&str>

The source ID of a named element, including elements loaded at runtime.

Source

pub fn find(&self, id: &str) -> Option<&Node>

Source

pub fn length(&self, name: &str) -> Option<f32>

Source

pub fn relative_length(&self, name: &str, reference: f32) -> Option<f32>

Source

pub fn boolean(&self, name: &str, default: bool) -> bool

Source

pub fn text(&self, name: &str) -> Option<&str>

Source

pub fn font(&self, name: &str) -> Option<&Font>

Source

pub fn font_size(&self) -> Option<f32>

Source

pub fn styled_text(&self, name: &str) -> Option<&StyledText>

Source

pub fn strings(&self, name: &str) -> &[String]

Source

pub fn float(&self, name: &str) -> Option<f32>

Source

pub fn number(&self, name: &str) -> Option<f64>

Source

pub fn opacity(&self) -> f32

Visual opacity has no effect on layout, focus or hit testing.

Source

pub fn z(&self) -> f64

Finite stacking order within an ordinary sibling list.

Source

pub fn layout_direction(&self) -> Option<LayoutDirection>

Source

pub fn orientation(&self) -> Orientation

Source

pub fn dial_input_mode(&self) -> DialInputMode

Source

pub fn scroll_bar_policy(&self, orientation: Orientation) -> ScrollBarPolicy

Source

pub fn text_wrap(&self) -> TextWrap

Source

pub fn is_password(&self) -> bool

Source

pub fn password_masked(&self) -> bool

Source

pub fn dialog_role(&self) -> DialogRole

Source

pub fn standard_button_kind(&self) -> Option<StandardButtonKind>

Source

pub fn swipe_side(&self) -> SwipeSide

Source

pub fn swipe_panel(&self, side: SwipeSide) -> Option<&Node>

Source

pub fn drawer_edge(&self) -> DrawerEdge

Source

pub fn selection_gesture(&self) -> SelectionGesture

Source

pub fn selection_hold_interval(&self) -> u64

Source

pub fn selection_target(&self) -> SelectionTarget

Source

pub fn is_visible(&self) -> bool

Source

pub fn cursor_shape(&self) -> CursorShape

Source

pub fn is_modal(&self) -> bool

Source

pub fn stack_page_index(&self) -> Option<usize>

Source

pub fn int(&self, name: &str) -> Option<i64>

Source

pub fn image(&self, name: &str) -> Option<Image>

Source

pub fn image_asset(&self, name: &str) -> Option<ImageAsset>

Source

pub fn image_fit(&self, name: &str) -> Option<ImageFit>

Source

pub fn image_tile_mode(&self, name: &str) -> ImageTileMode

Source

pub fn color(&self, name: &str) -> Option<Color>

Source

pub fn color_scheme(&self) -> Option<ColorScheme>

Source

pub fn child_at(&self, index: usize) -> Option<&Self>

Look up a child by the logical index used in scene paths.

Source

pub fn materialized_children( &self, ) -> impl DoubleEndedIterator<Item = (usize, &Self)> + ExactSizeIterator

Iterate stored children with their logical indices.

Source

pub fn at_path(&self, path: &[usize]) -> Option<&Self>

Source

pub fn interactive_at_path(&self, path: &[usize]) -> Option<&Self>

Source

pub fn group_checkable(&self) -> bool

Source

pub fn expander_collapsed(&self) -> bool

Source

pub fn group_content_enabled(&self) -> bool

Source

pub fn routing_row_key(&self) -> Option<RowKey>

Identity of the materialized row in its view, for routing and focus.

Source

pub fn dynamic_mount_key(&self) -> Option<RowKey>

Identity of this mounted component.

Source

pub fn row_key_at(&self, path: &[usize]) -> Option<RowKey>

Identity of the virtual row or mounted component containing this scene path.

Source

pub fn displayed_row_for_key( &self, key: RowKey, source_index: usize, ) -> Option<usize>

Find the displayed index of a source row identity. The source index is a lookup hint.

Trait Implementations§

Source§

impl Clone for Node

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Node

Source§

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

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

impl Deref for Node

Source§

type Target = NodeData

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for Node

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl PartialEq for Node

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Node

§

impl !Send for Node

§

impl !Sync for Node

§

impl !UnwindSafe for Node

§

impl Forget for Node

§

impl Freeze for Node

§

impl Move for Node

§

impl Unpin for Node

§

impl UnsafeUnpin for Node

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> AnyEq for T
where T: Any + PartialEq,

Source§

fn equals(&self, other: &(dyn Any + 'static)) -> bool

Source§

fn as_any(&self) -> &(dyn Any + 'static)

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> ErasedDestructor for T
where T: 'static,

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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 = !

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

fn try_from(value: U) -> Result<T, !>

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> 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