PortalList

Struct PortalList 

Source
pub struct PortalList { /* private fields */ }

Implementations§

Source§

impl PortalList

Source

pub fn next_visible_item(&mut self, cx: &mut Cx2d<'_, '_>) -> Option<usize>

Returns the index of the next visible item that will be drawn by this PortalList.

Source

pub fn item( &mut self, cx: &mut Cx, entry_id: usize, template: LiveId, ) -> WidgetRef

Creates a new widget from the given template or returns an existing widget, if one already exists with the same entry_id.

If you care whether the widget already existed or not, use PortalList::item_with_existed() instead.

§Return
  • If a widget already existed for the given entry_id and template, this returns a reference to that widget.
  • If a new widget was created successfully, this returns a reference to that new widget.
  • If the given template could not be found, this returns None.
Source

pub fn item_with_existed( &mut self, cx: &mut Cx, entry_id: usize, template: LiveId, ) -> (WidgetRef, bool)

Creates a new widget from the given template or returns an existing widget, if one already exists with the same entry_id and template.

  • If you only want to check whether the item already existed without creating one, use PortalList::get_item() instead.
  • If you don’t care whether the widget already existed or not, use PortalList::item() instead.
§Return
  • If a widget of the same template already existed for the given entry_id, this returns a tuple of that widget and true.
  • If a new widget was created successfully, either because an item with the given entry_id did not exist or because the existing item with the given entry_id did not use the given template, this returns a tuple of that widget and false.
  • If the given template could not be found, this returns None.
Source

pub fn position_of_item(&self, cx: &Cx, entry_id: usize) -> Option<f64>

Returns the “start” position of the item with the given entry_id relative to the “start” position of the PortalList.

  • For vertical lists, the start position is the top of the item relative to the top of the PortalList.
  • For horizontal lists, the start position is the left side of the item relative to the left side of the PortalList.

Returns None if the item with the given entry_id does not exist or if the item’s area rectangle is zero.

TODO: FIXME: this may not properly handle bottom-up lists or lists that go from right to left.

Source

pub fn get_item(&self, entry_id: usize) -> Option<(LiveId, WidgetRef)>

Returns a reference to the template and widget for the given entry_id.

Source

pub fn set_item_range( &mut self, cx: &mut Cx, range_start: usize, range_end: usize, )

Source

pub fn update_scroll_bar(&mut self, cx: &mut Cx)

Source

pub fn is_at_end(&self) -> bool

Returns true if currently at the end of the list, meaning that the lasat item is visible in the viewport.

Source

pub fn visible_items(&self) -> usize

Returns the number of items that are currently visible in the viewport, including partially visible items.

Source

pub fn fails_sanity_check_first_id_within_item_range(&self) -> bool

Returns true if this sanity check fails: the first item ID is within the item range.

Returns false if the sanity check passes as expected.

Source

pub fn smooth_scroll_to( &mut self, cx: &mut Cx, target_id: usize, speed: f64, max_items_to_show: Option<usize>, )

Initiates a smooth scrolling animation to the specified target item in the list.

§Arguments
  • target_id: The ID (index) of the item to scroll to.
  • speed: A positive floating-point value that controls the speed of the animation. The speed will always be treated as an absolute value, with the direction of the scroll (up or down) determined by whether target_id is above or below the current item.
  • max_items_to_show: The maximum number of items to show during the scrolling animation. If None, the default value of 20 is used.
§Example
// Scrolls to item 42 at speed 100.0, including at most 30 items in the scroll animation.
smooth_scroll_to(&mut cx, 42, 100.0, Some(30));
Source

pub fn smooth_scroll_to_end( &mut self, cx: &mut Cx, speed: f64, max_items_to_show: Option<usize>, )

Trigger an scrolling animation to the end of the list

§Arguments
  • speed: This value controls how fast the scrolling animation is. Note: This number should be large enough to reach the end, so it is important to test the passed number. TODO provide a better implementation to ensure that the end is always reached, no matter the speed value.
  • max_items_to_show: The maximum number of items to show during the scrolling animation. If None, the default value of 20 is used.

Trait Implementations§

Source§

impl LiveApply for PortalList

Source§

fn apply( &mut self, cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, start_index: usize, nodes: &[LiveNode], ) -> usize

Source§

fn apply_over(&mut self, cx: &mut Cx, nodes: &[LiveNode])

Source§

impl LiveApplyReset for PortalList

Source§

fn apply_reset( &mut self, cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, start_index: usize, nodes: &[LiveNode], )

Source§

impl LiveApplyValue for PortalList

Source§

fn apply_value( &mut self, cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], ) -> usize

Source§

impl LiveHook for PortalList

Source§

fn before_apply( &mut self, _cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, _index: usize, _nodes: &[LiveNode], )

Source§

fn apply_value_instance( &mut self, cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], ) -> usize

Source§

fn after_apply( &mut self, _cx: &mut Cx, _applyl: &mut Apply<'_, '_, '_>, _index: usize, _nodes: &[LiveNode], )

Source§

fn apply_value_unknown( &mut self, cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], ) -> usize

Source§

fn skip_apply_animator( &mut self, _cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, _index: usize, _nodes: &[LiveNode], ) -> bool

Source§

fn skip_apply( &mut self, _cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, _index: usize, _nodes: &[LiveNode], ) -> Option<usize>

Source§

fn after_apply_from(&mut self, cx: &mut Cx, apply: &mut Apply<'_, '_, '_>)

Source§

fn after_new_from_doc(&mut self, _cx: &mut Cx)

Source§

fn after_update_from_doc(&mut self, _cx: &mut Cx)

Source§

fn after_apply_from_doc(&mut self, _cx: &mut Cx)

Source§

fn after_new_before_apply(&mut self, _cx: &mut Cx)

Source§

impl LiveHookDeref for PortalList

Source§

fn deref_before_apply( &mut self, cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], )

Source§

fn deref_after_apply( &mut self, cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], )

Source§

impl LiveNew for PortalList

Source§

fn live_type_info(cx: &mut Cx) -> LiveTypeInfo

Source§

fn live_design_with(cx: &mut Cx)

Source§

fn new(cx: &mut Cx) -> Self

Source§

fn new_apply( cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], ) -> Self
where Self: Sized,

Source§

fn new_apply_over(cx: &mut Cx, nodes: &[LiveNode]) -> Self
where Self: Sized,

Source§

fn new_apply_mut_index( cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: &mut usize, nodes: &[LiveNode], ) -> Self
where Self: Sized,

Source§

fn new_from_ptr(cx: &mut Cx, live_ptr: Option<LivePtr>) -> Self
where Self: Sized,

Source§

fn update_from_ptr(&mut self, cx: &mut Cx, live_ptr: Option<LivePtr>)

Source§

fn update_from_ptr_with_scope( &mut self, cx: &mut Cx, live_ptr: Option<LivePtr>, scope: &mut Scope<'_, '_>, )

Source§

fn new_from_ptr_with_scope( cx: &mut Cx, live_ptr: Option<LivePtr>, scope: &mut Scope<'_, '_>, ) -> Self
where Self: Sized,

Source§

fn new_main(cx: &mut Cx) -> Option<Self>
where Self: Sized,

Source§

fn register_main_module(cx: &mut Cx)

Source§

fn update_main(&mut self, cx: &mut Cx)

Source§

fn new_local(cx: &mut Cx) -> Self
where Self: Sized,

Source§

fn new_from_module( cx: &mut Cx, module_id: LiveModuleId, id: LiveId, ) -> Option<Self>
where Self: Sized,

Source§

fn update_from_module( &mut self, cx: &mut Cx, module_id: LiveModuleId, id: LiveId, )

Source§

impl LiveRegister for PortalList

Source§

impl Widget for PortalList

Source§

fn handle_event( &mut self, cx: &mut Cx, event: &Event, scope: &mut Scope<'_, '_>, )

Source§

fn draw_walk( &mut self, cx: &mut Cx2d<'_, '_>, _scope: &mut Scope<'_, '_>, walk: Walk, ) -> DrawStep

Source§

fn handle_event_with( &mut self, cx: &mut Cx, event: &Event, scope: &mut Scope<'_, '_>, _sweep_area: Area, )

Source§

fn widget(&self, path: &[LiveId]) -> WidgetRef

Source§

fn widgets(&self, paths: &[&[LiveId]]) -> WidgetSet

Source§

fn widget_uid(&self) -> WidgetUid

Source§

fn widget_to_data( &self, _cx: &mut Cx, _actions: &Actions, _nodes: &mut LiveNodeVec, _path: &[LiveId], ) -> bool

Source§

fn data_to_widget( &mut self, _cx: &mut Cx, _nodes: &[LiveNode], _path: &[LiveId], )

Source§

fn draw_3d( &mut self, _cx: &mut Cx3d<'_, '_>, _scope: &mut Scope<'_, '_>, ) -> DrawStep

Source§

fn draw_3d_all(&mut self, cx: &mut Cx3d<'_, '_>, scope: &mut Scope<'_, '_>)

Source§

fn draw(&mut self, cx: &mut Cx2d<'_, '_>, scope: &mut Scope<'_, '_>) -> DrawStep

Source§

fn draw_walk_all( &mut self, cx: &mut Cx2d<'_, '_>, scope: &mut Scope<'_, '_>, walk: Walk, )

Source§

fn draw_all(&mut self, cx: &mut Cx2d<'_, '_>, scope: &mut Scope<'_, '_>)

Source§

fn draw_unscoped(&mut self, cx: &mut Cx2d<'_, '_>) -> DrawStep

Source§

fn draw_all_unscoped(&mut self, cx: &mut Cx2d<'_, '_>)

Source§

fn text(&self) -> String

Source§

fn set_text(&mut self, _cx: &mut Cx, _v: &str)

Source§

fn set_key_focus(&self, cx: &mut Cx)

Source§

fn key_focus(&self, cx: &Cx) -> bool

Source§

fn set_disabled(&mut self, _cx: &mut Cx, _disabled: bool)

Source§

fn disabled(&self, _cx: &Cx) -> bool

Source§

fn ref_cast_type_id(&self) -> LiveType
where Self: 'static,

Source§

fn ui_runner(&self) -> UiRunner<Self>
where Self: Sized + 'static,

Source§

impl WidgetNode for PortalList

Source§

fn area(&self) -> Area

Source§

fn walk(&mut self, _cx: &mut Cx) -> Walk

Source§

fn redraw(&mut self, cx: &mut Cx)

Source§

fn find_widgets( &self, path: &[LiveId], cached: WidgetCache, results: &mut WidgetSet, )

Source§

fn uid_to_widget(&self, uid: WidgetUid) -> WidgetRef

Source§

fn widget_design(&mut self) -> Option<&mut dyn WidgetDesign>

Source§

fn set_action_data(&mut self, _data: Arc<dyn ActionTrait>)

Source§

fn action_data(&self) -> Option<Arc<dyn ActionTrait>>

Source§

fn set_visible(&mut self, _cx: &mut Cx, _visible: bool)

Source§

fn visible(&self) -> bool

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AdaptiveViewWidgetExt for T
where T: Widget,

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> BareStepSetWidgetExt for T
where T: Widget,

Source§

fn bare_step_set(&mut self, paths: &[&[LiveId]]) -> BareStepSet

Source§

impl<T> BareStepWidgetExt for T
where T: Widget,

Source§

fn bare_step(&self, path: &[LiveId]) -> BareStepRef

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> ButtonSetWidgetExt for T
where T: Widget,

Source§

fn button_set(&mut self, paths: &[&[LiveId]]) -> ButtonSet

Source§

impl<T> ButtonWidgetExt for T
where T: Widget,

Source§

fn button(&self, path: &[LiveId]) -> ButtonRef

Source§

impl<T> CachedWidgetWidgetExt for T
where T: Widget,

Source§

impl<T> CheckBoxSetWidgetExt for T
where T: Widget,

Source§

fn check_box_set(&mut self, paths: &[&[LiveId]]) -> CheckBoxSet

Source§

impl<T> CheckBoxWidgetExt for T
where T: Widget,

Source§

fn check_box(&self, path: &[LiveId]) -> CheckBoxRef

Source§

impl<T> ColorPickerSetWidgetExt for T
where T: Widget,

Source§

fn color_picker_set(&mut self, paths: &[&[LiveId]]) -> ColorPickerSet

Source§

impl<T> ColorPickerWidgetExt for T
where T: Widget,

Source§

impl<T> CommandTextInputSetWidgetExt for T
where T: Widget,

Source§

impl<T> CommandTextInputWidgetExt for T
where T: Widget,

Source§

impl<T> DesignerContainerSetWidgetExt for T
where T: Widget,

Source§

impl<T> DesignerContainerWidgetExt for T
where T: Widget,

Source§

impl<T> DesignerOutlineSetWidgetExt for T
where T: Widget,

Source§

impl<T> DesignerOutlineTreeSetWidgetExt for T
where T: Widget,

Source§

impl<T> DesignerOutlineTreeWidgetExt for T
where T: Widget,

Source§

impl<T> DesignerOutlineWidgetExt for T
where T: Widget,

Source§

impl<T> DesignerSetWidgetExt for T
where T: Widget,

Source§

fn designer_set(&mut self, paths: &[&[LiveId]]) -> DesignerSet

Source§

impl<T> DesignerToolboxSetWidgetExt for T
where T: Widget,

Source§

impl<T> DesignerToolboxWidgetExt for T
where T: Widget,

Source§

impl<T> DesignerViewSetWidgetExt for T
where T: Widget,

Source§

fn designer_view_set(&mut self, paths: &[&[LiveId]]) -> DesignerViewSet

Source§

impl<T> DesignerViewWidgetExt for T
where T: Widget,

Source§

impl<T> DesignerWidgetExt for T
where T: Widget,

Source§

fn designer(&self, path: &[LiveId]) -> DesignerRef

Source§

impl<T> DesktopButtonSetWidgetExt for T
where T: Widget,

Source§

fn desktop_button_set(&mut self, paths: &[&[LiveId]]) -> DesktopButtonSet

Source§

impl<T> DesktopButtonWidgetExt for T
where T: Widget,

Source§

impl<T> DockSetWidgetExt for T
where T: Widget,

Source§

fn dock_set(&mut self, paths: &[&[LiveId]]) -> DockSet

Source§

impl<T> DockWidgetExt for T
where T: Widget,

Source§

fn dock(&self, path: &[LiveId]) -> DockRef

Source§

impl<T> DropDownSetWidgetExt for T
where T: Widget,

Source§

fn drop_down_set(&mut self, paths: &[&[LiveId]]) -> DropDownSet

Source§

impl<T> DropDownWidgetExt for T
where T: Widget,

Source§

fn drop_down(&self, path: &[LiveId]) -> DropDownRef

Source§

impl<T> ExpandablePanelSetWidgetExt for T
where T: Widget,

Source§

impl<T> ExpandablePanelWidgetExt for T
where T: Widget,

Source§

impl<T> FileTreeSetWidgetExt for T
where T: Widget,

Source§

fn file_tree_set(&mut self, paths: &[&[LiveId]]) -> FileTreeSet

Source§

impl<T> FileTreeWidgetExt for T
where T: Widget,

Source§

fn file_tree(&self, path: &[LiveId]) -> FileTreeRef

Source§

impl<T> FlatListSetWidgetExt for T
where T: Widget,

Source§

fn flat_list_set(&mut self, paths: &[&[LiveId]]) -> FlatListSet

Source§

impl<T> FlatListWidgetExt for T
where T: Widget,

Source§

fn flat_list(&self, path: &[LiveId]) -> FlatListRef

Source§

impl<T> FoldButtonSetWidgetExt for T
where T: Widget,

Source§

fn fold_button_set(&mut self, paths: &[&[LiveId]]) -> FoldButtonSet

Source§

impl<T> FoldButtonWidgetExt for T
where T: Widget,

Source§

impl<T> FoldHeaderSetWidgetExt for T
where T: Widget,

Source§

fn fold_header_set(&mut self, paths: &[&[LiveId]]) -> FoldHeaderSet

Source§

impl<T> FoldHeaderWidgetExt for T
where T: Widget,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> HtmlLinkSetWidgetExt for T
where T: Widget,

Source§

impl<T> HtmlLinkWidgetExt for T
where T: Widget,

Source§

impl<T> HtmlSetWidgetExt for T
where T: Widget,

Source§

fn html_set(&mut self, paths: &[&[LiveId]]) -> HtmlSet

Source§

impl<T> HtmlWidgetExt for T
where T: Widget,

Source§

fn html(&self, path: &[LiveId]) -> HtmlRef

Source§

impl<T> IconSetWidgetExt for T
where T: Widget,

Source§

fn icon_set(&mut self, paths: &[&[LiveId]]) -> IconSet

Source§

impl<T> IconWidgetExt for T
where T: Widget,

Source§

fn icon(&self, path: &[LiveId]) -> IconRef

Source§

impl<T> ImageBlendSetWidgetExt for T
where T: Widget,

Source§

fn image_blend_set(&mut self, paths: &[&[LiveId]]) -> ImageBlendSet

Source§

impl<T> ImageBlendWidgetExt for T
where T: Widget,

Source§

impl<T> ImageSetWidgetExt for T
where T: Widget,

Source§

fn image_set(&mut self, paths: &[&[LiveId]]) -> ImageSet

Source§

impl<T> ImageWidgetExt for T
where T: Widget,

Source§

fn image(&self, path: &[LiveId]) -> ImageRef

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> KeyboardViewSetWidgetExt for T
where T: Widget,

Source§

fn keyboard_view_set(&mut self, paths: &[&[LiveId]]) -> KeyboardViewSet

Source§

impl<T> KeyboardViewWidgetExt for T
where T: Widget,

Source§

impl<T> LabelSetWidgetExt for T
where T: Widget,

Source§

fn label_set(&mut self, paths: &[&[LiveId]]) -> LabelSet

Source§

impl<T> LabelWidgetExt for T
where T: Widget,

Source§

fn label(&self, path: &[LiveId]) -> LabelRef

Source§

impl<T> LinkLabelSetWidgetExt for T
where T: Widget,

Source§

impl<T> LinkLabelWidgetExt for T
where T: Widget,

Source§

impl<T> ListSetWidgetExt for T
where T: Widget,

Source§

fn list_set(&mut self, paths: &[&[LiveId]]) -> ListSet

Source§

impl<T> ListWidgetExt for T
where T: Widget,

Source§

fn list(&self, path: &[LiveId]) -> ListRef

Source§

impl<T> MarkdownLinkSetWidgetExt for T
where T: Widget,

Source§

impl<T> MarkdownLinkWidgetExt for T
where T: Widget,

Source§

impl<T> MarkdownSetWidgetExt for T
where T: Widget,

Source§

fn markdown_set(&mut self, paths: &[&[LiveId]]) -> MarkdownSet

Source§

impl<T> MarkdownWidgetExt for T
where T: Widget,

Source§

fn markdown(&self, path: &[LiveId]) -> MarkdownRef

Source§

impl<T> ModalSetWidgetExt for T
where T: Widget,

Source§

fn modal_set(&mut self, paths: &[&[LiveId]]) -> ModalSet

Source§

impl<T> ModalWidgetExt for T
where T: Widget,

Source§

fn modal(&self, path: &[LiveId]) -> ModalRef

Source§

impl<T> MultiImageSetWidgetExt for T
where T: Widget,

Source§

fn multi_image_set(&mut self, paths: &[&[LiveId]]) -> MultiImageSet

Source§

impl<T> MultiImageWidgetExt for T
where T: Widget,

Source§

impl<T> MultiWindowWidgetExt for T
where T: Widget,

Source§

impl<T> PageFlipSetWidgetExt for T
where T: Widget,

Source§

fn page_flip_set(&mut self, paths: &[&[LiveId]]) -> PageFlipSet

Source§

impl<T> PageFlipWidgetExt for T
where T: Widget,

Source§

fn page_flip(&self, path: &[LiveId]) -> PageFlipRef

Source§

impl<T> PerformanceLiveGraphSetWidgetExt for T
where T: Widget,

Source§

impl<T> PerformanceLiveGraphWidgetExt for T
where T: Widget,

Source§

impl<T> PerformanceViewSetWidgetExt for T
where T: Widget,

Source§

impl<T> PerformanceViewWidgetExt for T
where T: Widget,

Source§

impl<T> PopupNotificationSetWidgetExt for T
where T: Widget,

Source§

impl<T> PopupNotificationWidgetExt for T
where T: Widget,

Source§

impl<T> PortalList2SetWidgetExt for T
where T: Widget,

Source§

fn portal_list2_set(&mut self, paths: &[&[LiveId]]) -> PortalList2Set

Source§

impl<T> PortalList2WidgetExt for T
where T: Widget,

Source§

impl<T> PortalListSetWidgetExt for T
where T: Widget,

Source§

fn portal_list_set(&mut self, paths: &[&[LiveId]]) -> PortalListSet

Source§

impl<T> PortalListWidgetExt for T
where T: Widget,

Source§

impl<T> RadioButtonGroupSetWidgetExt for T
where T: Widget,

Source§

impl<T> RadioButtonGroupWidgetExt for T
where T: Widget,

Source§

impl<T> RadioButtonSetWidgetExt for T
where T: Widget,

Source§

fn radio_button_set(&mut self, paths: &[&[LiveId]]) -> RadioButtonSet

Source§

impl<T> RadioButtonWidgetExt for T
where T: Widget,

Source§

impl<T> RootWidgetExt for T
where T: Widget,

Source§

fn root(&self, path: &[LiveId]) -> RootRef

Source§

impl<T> RotatedImageSetWidgetExt for T
where T: Widget,

Source§

fn rotated_image_set(&mut self, paths: &[&[LiveId]]) -> RotatedImageSet

Source§

impl<T> RotatedImageWidgetExt for T
where T: Widget,

Source§

impl<T> SlidePanelSetWidgetExt for T
where T: Widget,

Source§

fn slide_panel_set(&mut self, paths: &[&[LiveId]]) -> SlidePanelSet

Source§

impl<T> SlidePanelWidgetExt for T
where T: Widget,

Source§

impl<T> SliderSetWidgetExt for T
where T: Widget,

Source§

fn slider_set(&mut self, paths: &[&[LiveId]]) -> SliderSet

Source§

impl<T> SliderWidgetExt for T
where T: Widget,

Source§

fn slider(&self, path: &[LiveId]) -> SliderRef

Source§

impl<T> SlidesViewSetWidgetExt for T
where T: Widget,

Source§

fn slides_view_set(&mut self, paths: &[&[LiveId]]) -> SlidesViewSet

Source§

impl<T> SlidesViewWidgetExt for T
where T: Widget,

Source§

impl<T> SplitterSetWidgetExt for T
where T: Widget,

Source§

fn splitter_set(&mut self, paths: &[&[LiveId]]) -> SplitterSet

Source§

impl<T> SplitterWidgetExt for T
where T: Widget,

Source§

fn splitter(&self, path: &[LiveId]) -> SplitterRef

Source§

impl<T> StackNavigationViewSetWidgetExt for T
where T: Widget,

Source§

impl<T> StackNavigationViewWidgetExt for T
where T: Widget,

Source§

impl<T> StackNavigationWidgetExt for T
where T: Widget,

Source§

impl<T> TabBarSetWidgetExt for T
where T: Widget,

Source§

fn tab_bar_set(&mut self, paths: &[&[LiveId]]) -> TabBarSet

Source§

impl<T> TabBarWidgetExt for T
where T: Widget,

Source§

fn tab_bar(&self, path: &[LiveId]) -> TabBarRef

Source§

impl<T> TextFlowLinkSetWidgetExt for T
where T: Widget,

Source§

impl<T> TextFlowLinkWidgetExt for T
where T: Widget,

Source§

impl<T> TextFlowSetWidgetExt for T
where T: Widget,

Source§

fn text_flow_set(&mut self, paths: &[&[LiveId]]) -> TextFlowSet

Source§

impl<T> TextFlowWidgetExt for T
where T: Widget,

Source§

fn text_flow(&self, path: &[LiveId]) -> TextFlowRef

Source§

impl<T> TextInputSetWidgetExt for T
where T: Widget,

Source§

fn text_input_set(&mut self, paths: &[&[LiveId]]) -> TextInputSet

Source§

impl<T> TextInputWidgetExt for T
where T: Widget,

Source§

fn text_input(&self, path: &[LiveId]) -> TextInputRef

Source§

impl<T> TogglePanelSetWidgetExt for T
where T: Widget,

Source§

fn toggle_panel_set(&mut self, paths: &[&[LiveId]]) -> TogglePanelSet

Source§

impl<T> TogglePanelWidgetExt for T
where T: Widget,

Source§

impl<T> TooltipSetWidgetExt for T
where T: Widget,

Source§

fn tooltip_set(&mut self, paths: &[&[LiveId]]) -> TooltipSet

Source§

impl<T> TooltipWidgetExt for T
where T: Widget,

Source§

fn tooltip(&self, path: &[LiveId]) -> TooltipRef

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> TurtleStepSetWidgetExt for T
where T: Widget,

Source§

fn turtle_step_set(&mut self, paths: &[&[LiveId]]) -> TurtleStepSet

Source§

impl<T> TurtleStepWidgetExt for T
where T: Widget,

Source§

impl<T> VectorLineSetWidgetExt for T
where T: Widget,

Source§

fn vector_line_set(&mut self, paths: &[&[LiveId]]) -> VectorLineSet

Source§

impl<T> VectorLineWidgetExt for T
where T: Widget,

Source§

impl<T> VideoSetWidgetExt for T
where T: Widget,

Source§

fn video_set(&mut self, paths: &[&[LiveId]]) -> VideoSet

Source§

impl<T> VideoWidgetExt for T
where T: Widget,

Source§

fn video(&self, path: &[LiveId]) -> VideoRef

Source§

impl<T> ViewSetWidgetExt for T
where T: Widget,

Source§

fn view_set(&mut self, paths: &[&[LiveId]]) -> ViewSet

Source§

impl<T> ViewWidgetExt for T
where T: Widget,

Source§

fn view(&self, path: &[LiveId]) -> ViewRef

Source§

impl<T> WebViewSetWidgetExt for T
where T: Widget,

Source§

fn web_view_set(&mut self, paths: &[&[LiveId]]) -> WebViewSet

Source§

impl<T> WebViewWidgetExt for T
where T: Widget,

Source§

fn web_view(&self, path: &[LiveId]) -> WebViewRef

Source§

impl<T> WindowMenuSetWidgetExt for T
where T: Widget,

Source§

fn window_menu_set(&mut self, paths: &[&[LiveId]]) -> WindowMenuSet

Source§

impl<T> WindowMenuWidgetExt for T
where T: Widget,

Source§

impl<T> WindowSetWidgetExt for T
where T: Widget,

Source§

fn window_set(&mut self, paths: &[&[LiveId]]) -> WindowSet

Source§

impl<T> WindowWidgetExt for T
where T: Widget,

Source§

fn window(&self, path: &[LiveId]) -> WindowRef

Source§

impl<T> XrHandsSetWidgetExt for T
where T: Widget,

Source§

fn xr_hands_set(&mut self, paths: &[&[LiveId]]) -> XrHandsSet

Source§

impl<T> XrHandsWidgetExt for T
where T: Widget,

Source§

fn xr_hands(&self, path: &[LiveId]) -> XrHandsRef