Struct PromptInput

Source
pub struct PromptInput {
    pub send_icon: LiveValue,
    pub stop_icon: LiveValue,
    pub task: Task,
    pub interactivity: Interactivity,
    pub bot_capabilities: Option<BotCapabilities>,
    /* private fields */
}
Expand description

A prepared text input for conversation with bots.

This is mostly a dummy widget. Prefer using and adapting crate::widgets::chat::Chat instead.

Fields§

§send_icon: LiveValue

Icon used by this widget when the task is set to Task::Send.

§stop_icon: LiveValue

Icon used by this widget when the task is set to Task::Stop.

§task: Task

If this widget should provoke sending a message or stopping the current response.

§interactivity: Interactivity

If this widget should be interactive or not.

§bot_capabilities: Option<BotCapabilities>

Capabilities of the currently selected bot

Implementations§

Source§

impl PromptInput

Source

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

Reset this prompt input erasing text, removing attachments, etc.

Shadows the [CommandTextInput::reset] method.

Source

pub fn submitted(&self, actions: &Actions) -> bool

Check if the submit button or the return key was pressed.

Note: To know what the button submission means, check Self::task or the utility methods.

Source

pub fn call_pressed(&self, actions: &Actions) -> bool

Source

pub fn has_send_task(&self) -> bool

Shorthand to check if Self::task is set to Task::Send.

Source

pub fn has_stop_task(&self) -> bool

Shorthand to check if Self::task is set to Task::Stop.

Source

pub fn enable(&mut self)

Allows submission.

Source

pub fn disable(&mut self)

Disallows submission.

Source

pub fn set_send(&mut self)

Shorthand to set Self::task to Task::Send.

Source

pub fn set_stop(&mut self)

Shorthand to set Self::task to Task::Stop.

Source

pub fn set_bot_capabilities( &mut self, cx: &mut Cx, capabilities: Option<BotCapabilities>, )

Set the capabilities of the currently selected bot

Methods from Deref<Target = CommandTextInput>§

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

pub fn set_keyboard_focus_index(&mut self, idx: usize)

Sets the keyboard focus index for the list of selectable items Only updates the visual highlight state of the dropdown items

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

Clear all text and hide the popup going back to initial state.

pub fn clear_items(&mut self)

Clears the list of items.

Normally called as response to should_build_items.

pub fn add_item(&mut self, widget: WidgetRef)

Add a custom selectable item to the list.

Normally called after clearing the previous items.

pub fn add_unselectable_item(&mut self, widget: WidgetRef)

Add a custom unselectable item to the list.

Ex: Headers, dividers, etc.

Normally called after clearing the previous items.

pub fn search_text(&self) -> String

Get the current search query.

You probably want this for filtering purposes when updating the items.

pub fn item_selected( &self, actions: &[Box<dyn ActionTrait>], ) -> Option<WidgetRef>

Checks if any item has been selected in the given actions and returns a reference to the selected item as a widget.

pub fn should_build_items(&self, actions: &[Box<dyn ActionTrait>]) -> bool

Returns true if an action in the given actions indicates that the items to display need to be recomputed again.

For example, this returns true if the trigger character was typed, if the search filter changes, etc.

pub fn text_input_ref(&self) -> TextInputRef

Returns a reference to the inner TextInput widget.

pub fn search_input_ref(&self) -> TextInputRef

Returns a reference to the inner TextInput widget used for search.

pub fn request_text_input_focus(&mut self)

Obtain focus in the main TextInput widget as soon as possible.

Methods from Deref<Target = View>§

pub fn swap_child(&mut self, pos_a: usize, pos_b: usize)

pub fn child_index(&mut self, comp: &WidgetRef) -> Option<usize>

pub fn child_at_index(&mut self, index: usize) -> Option<&WidgetRef>

pub fn set_scroll_pos(&mut self, cx: &mut Cx, v: DVec2)

pub fn area(&self) -> Area

pub fn walk_from_previous_size(&self, walk: Walk) -> Walk

pub fn child_count(&self) -> usize

pub fn debug_print_children(&self)

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

Trait Implementations§

Source§

impl Deref for PromptInput

Source§

type Target = CommandTextInput

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for PromptInput

Source§

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

Mutably dereferences the value.
Source§

impl LiveApply for PromptInput

Source§

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

§

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

Source§

impl LiveApplyReset for PromptInput

Source§

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

Source§

impl LiveApplyValue for PromptInput

Source§

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

Source§

impl LiveHook for PromptInput

Source§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

Source§

impl LiveHookDeref for PromptInput

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 PromptInput

Source§

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

Source§

fn live_design_with(cx: &mut Cx)

Source§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

fn register_main_module(cx: &mut Cx)

§

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

§

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

§

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

§

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

Source§

impl LiveRegister for PromptInput

Source§

fn live_register(cx: &mut Cx)

Source§

impl Widget for PromptInput

Source§

fn set_text(&mut self, cx: &mut Cx, v: &str)

Source§

fn text(&self) -> String

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

§

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

§

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

§

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

§

fn widget_uid(&self) -> WidgetUid

§

fn widget_to_data( &self, _cx: &mut Cx, _actions: &[Box<dyn ActionTrait>], _nodes: &mut Vec<LiveNode>, _path: &[LiveId], ) -> bool

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

Source§

impl WidgetNode for PromptInput

Source§

fn visible(&self) -> bool

Source§

fn set_visible(&mut self, cx: &mut Cx, visible: bool)

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

§

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

§

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

§

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

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn adaptive_view(&self, path: &[LiveId]) -> AdaptiveViewRef

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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
§

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

§

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

§

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

§

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

§

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

§

fn cached_widget(&self, path: &[LiveId]) -> CachedWidgetRef

Source§

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

Source§

fn chat_set(&mut self, paths: &[&[LiveId]]) -> ChatSet

Source§

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

Source§

fn chat(&self, path: &[LiveId]) -> ChatRef

§

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

§

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

§

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

§

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

§

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

§

fn code_view_set(&mut self, paths: &[&[LiveId]]) -> CodeViewSet

§

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

§

fn code_view(&self, path: &[LiveId]) -> CodeViewRef

§

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

§

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

§

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

§

fn color_picker(&self, path: &[LiveId]) -> ColorPickerRef

§

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

§

fn command_text_input_set(&mut self, paths: &[&[LiveId]]) -> CommandTextInputSet

§

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

§

fn command_text_input(&self, path: &[LiveId]) -> CommandTextInputRef

§

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

§

fn designer_container_set( &mut self, paths: &[&[LiveId]], ) -> DesignerContainerSet

§

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

§

fn designer_container(&self, path: &[LiveId]) -> DesignerContainerRef

§

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

§

fn designer_outline_set(&mut self, paths: &[&[LiveId]]) -> DesignerOutlineSet

§

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

§

fn designer_outline_tree_set( &mut self, paths: &[&[LiveId]], ) -> DesignerOutlineTreeSet

§

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

§

fn designer_outline_tree(&self, path: &[LiveId]) -> DesignerOutlineTreeRef

§

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

§

fn designer_outline(&self, path: &[LiveId]) -> DesignerOutlineRef

§

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

§

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

§

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

§

fn designer_toolbox_set(&mut self, paths: &[&[LiveId]]) -> DesignerToolboxSet

§

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

§

fn designer_toolbox(&self, path: &[LiveId]) -> DesignerToolboxRef

§

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

§

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

§

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

§

fn designer_view(&self, path: &[LiveId]) -> DesignerViewRef

§

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

§

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

§

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

§

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

§

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

§

fn desktop_button(&self, path: &[LiveId]) -> DesktopButtonRef

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

fn expandable_panel_set(&mut self, paths: &[&[LiveId]]) -> ExpandablePanelSet

§

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

§

fn expandable_panel(&self, path: &[LiveId]) -> ExpandablePanelRef

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

fn fold_button(&self, path: &[LiveId]) -> FoldButtonRef

§

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

§

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

§

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

§

fn fold_header(&self, path: &[LiveId]) -> FoldHeaderRef

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

fn image_blend(&self, path: &[LiveId]) -> ImageBlendRef

§

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

§

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

§

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

§

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

§

impl<T> Instrument for T

§

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

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

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.

§

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

§

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

§

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

§

fn keyboard_view(&self, path: &[LiveId]) -> KeyboardViewRef

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

Source§

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

Source§

fn messages_set(&mut self, paths: &[&[LiveId]]) -> MessagesSet

Source§

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

Source§

fn messages(&self, path: &[LiveId]) -> MessagesRef

§

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

§

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

§

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

§

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

Source§

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

Source§

fn moly_modal_set(&mut self, paths: &[&[LiveId]]) -> MolyModalSet

Source§

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

Source§

fn moly_modal(&self, path: &[LiveId]) -> MolyModalRef

§

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

§

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

§

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

§

fn multi_image(&self, path: &[LiveId]) -> MultiImageRef

§

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

§

fn multi_window(&self, path: &[LiveId]) -> MultiWindowRef

§

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

§

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

§

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

§

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

§

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

§

fn performance_live_graph_set( &mut self, paths: &[&[LiveId]], ) -> PerformanceLiveGraphSet

§

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

§

fn performance_live_graph(&self, path: &[LiveId]) -> PerformanceLiveGraphRef

§

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

§

fn performance_view_set(&mut self, paths: &[&[LiveId]]) -> PerformanceViewSet

§

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

§

fn performance_view(&self, path: &[LiveId]) -> PerformanceViewRef

§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
§

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

§

fn popup_notification_set( &mut self, paths: &[&[LiveId]], ) -> PopupNotificationSet

§

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

§

fn popup_notification(&self, path: &[LiveId]) -> PopupNotificationRef

§

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

§

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

§

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

§

fn portal_list2(&self, path: &[LiveId]) -> PortalList2Ref

§

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

§

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

§

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

§

fn portal_list(&self, path: &[LiveId]) -> PortalListRef

Source§

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

Source§

fn prompt_input_set(&mut self, paths: &[&[LiveId]]) -> PromptInputSet

Source§

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

Source§

fn prompt_input(&self, path: &[LiveId]) -> PromptInputRef

§

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

§

fn radio_button_group_set(&mut self, paths: &[&[LiveId]]) -> RadioButtonGroupSet

§

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

§

fn radio_button_group(&self, path: &[LiveId]) -> RadioButtonGroupRef

§

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

§

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

§

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

§

fn radio_button(&self, path: &[LiveId]) -> RadioButtonRef

Source§

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

Source§

fn realtime_set(&mut self, paths: &[&[LiveId]]) -> RealtimeSet

Source§

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

Source§

fn realtime(&self, path: &[LiveId]) -> RealtimeRef

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

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

§

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

§

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

§

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

§

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

§

fn rotated_image(&self, path: &[LiveId]) -> RotatedImageRef

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

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

§

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

§

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

§

fn slide_panel(&self, path: &[LiveId]) -> SlidePanelRef

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

fn slides_view(&self, path: &[LiveId]) -> SlidesViewRef

§

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

§

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

§

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

§

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

§

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

§

fn stack_navigation_view_set( &mut self, paths: &[&[LiveId]], ) -> StackNavigationViewSet

§

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

§

fn stack_navigation_view(&self, path: &[LiveId]) -> StackNavigationViewRef

§

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

§

fn stack_navigation(&self, path: &[LiveId]) -> StackNavigationRef

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

fn toggle_panel(&self, path: &[LiveId]) -> TogglePanelRef

§

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

§

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

§

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

§

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

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

§

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

§

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

§

fn turtle_step(&self, path: &[LiveId]) -> TurtleStepRef

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

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

§

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

§

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

§

fn vector_line(&self, path: &[LiveId]) -> VectorLineRef

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

fn window_menu(&self, path: &[LiveId]) -> WindowMenuRef

§

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

§

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

§

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

§

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

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> ErasedDestructor for T
where T: 'static,