pub struct Node(/* private fields */);Implementations§
Source§impl Node
impl Node
pub fn has_split_fill(&self) -> bool
pub fn split_pane_count(&self) -> usize
pub fn split_panes(&self) -> impl Iterator<Item = (usize, &Node)>
Source§impl Node
impl Node
pub fn input_type(&self) -> InputType
Sourcepub fn allows_text_edit(&self, text: &str) -> bool
pub fn allows_text_edit(&self, text: &str) -> bool
Check a proposed user edit, allowing incomplete numeric drafts.
Sourcepub fn accepts_text_submission(&self) -> bool
pub fn accepts_text_submission(&self) -> bool
Check whether the current value can be submitted by an editor.
Source§impl Node
impl Node
pub fn calendar_cells(&self) -> Option<&[Node]>
pub fn is_item_delegate(&self) -> bool
pub fn check_state(&self) -> CheckState
pub fn date(&self, name: &str) -> Option<Date>
pub fn time(&self, name: &str) -> Option<Time>
pub fn new(kind: &'static str, id: Option<&'static str>) -> Self
An empty slot keeps the generated event paths stable across conditional renders.
Sourcepub fn element_id(&self) -> Option<&str>
pub fn element_id(&self) -> Option<&str>
The source ID of a named element, including elements loaded at runtime.
pub fn find(&self, id: &str) -> Option<&Node>
pub fn length(&self, name: &str) -> Option<f32>
pub fn relative_length(&self, name: &str, reference: f32) -> Option<f32>
pub fn boolean(&self, name: &str, default: bool) -> bool
pub fn text(&self, name: &str) -> Option<&str>
pub fn font(&self, name: &str) -> Option<&Font>
pub fn font_size(&self) -> Option<f32>
pub fn styled_text(&self, name: &str) -> Option<&StyledText>
pub fn strings(&self, name: &str) -> &[String]
pub fn float(&self, name: &str) -> Option<f32>
pub fn number(&self, name: &str) -> Option<f64>
pub fn layout_direction(&self) -> Option<LayoutDirection>
pub fn orientation(&self) -> Orientation
pub fn dial_input_mode(&self) -> DialInputMode
pub fn scroll_bar_policy(&self, orientation: Orientation) -> ScrollBarPolicy
pub fn text_wrap(&self) -> TextWrap
pub fn is_password(&self) -> bool
pub fn password_masked(&self) -> bool
pub fn dialog_role(&self) -> DialogRole
pub fn swipe_side(&self) -> SwipeSide
pub fn swipe_panel(&self, side: SwipeSide) -> Option<&Node>
pub fn drawer_edge(&self) -> DrawerEdge
pub fn selection_gesture(&self) -> SelectionGesture
pub fn selection_hold_interval(&self) -> u64
pub fn selection_target(&self) -> SelectionTarget
pub fn is_visible(&self) -> bool
pub fn cursor_shape(&self) -> CursorShape
pub fn is_modal(&self) -> bool
pub fn stack_page_index(&self) -> Option<usize>
pub fn int(&self, name: &str) -> Option<i64>
pub fn image(&self, name: &str) -> Option<Image>
pub fn image_asset(&self, name: &str) -> Option<ImageAsset>
pub fn image_fit(&self, name: &str) -> Option<ImageFit>
pub fn image_tile_mode(&self, name: &str) -> ImageTileMode
pub fn color(&self, name: &str) -> Option<Color>
pub fn color_scheme(&self) -> Option<ColorScheme>
Sourcepub fn child_at(&self, index: usize) -> Option<&Self>
pub fn child_at(&self, index: usize) -> Option<&Self>
Look up a child by the logical index used in scene paths.
Sourcepub fn materialized_children(
&self,
) -> impl DoubleEndedIterator<Item = (usize, &Self)> + ExactSizeIterator
pub fn materialized_children( &self, ) -> impl DoubleEndedIterator<Item = (usize, &Self)> + ExactSizeIterator
Iterate stored children with their logical indices.
pub fn at_path(&self, path: &[usize]) -> Option<&Self>
pub fn interactive_at_path(&self, path: &[usize]) -> Option<&Self>
pub fn group_checkable(&self) -> bool
pub fn expander_collapsed(&self) -> bool
pub fn group_content_enabled(&self) -> bool
Sourcepub fn routing_row_key(&self) -> Option<RowKey>
pub fn routing_row_key(&self) -> Option<RowKey>
Identity of the materialized row in its view, for routing and focus.
Sourcepub fn dynamic_mount_key(&self) -> Option<RowKey>
pub fn dynamic_mount_key(&self) -> Option<RowKey>
Identity of this mounted component.
Sourcepub fn row_key_at(&self, path: &[usize]) -> Option<RowKey>
pub fn row_key_at(&self, path: &[usize]) -> Option<RowKey>
Identity of the virtual row or mounted component containing this scene path.
Trait Implementations§
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> 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