Struct WidgetSet

Source
pub struct WidgetSet(pub SmallVec<[WidgetRef; 2]>);

Tuple Fields§

§0: SmallVec<[WidgetRef; 2]>

Implementations§

Source§

impl WidgetSet

Source

pub fn is_empty(&mut self) -> bool

Source

pub fn push(&mut self, item: WidgetRef)

Source

pub fn extend_from_set(&mut self, other: &WidgetSet)

Source

pub fn into_first(self) -> WidgetRef

Source

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

Source

pub fn contains(&self, widget: &WidgetRef) -> bool

Source§

impl WidgetSet

Source

pub fn empty() -> Self

Source

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

Source

pub fn iter(&self) -> WidgetSetIterator<'_>

Source

pub fn filter_actions<'a>( &'a self, actions: &'a Actions, ) -> impl Iterator<Item = &'a WidgetAction>

Trait Implementations§

Source§

impl BareStepSetWidgetSetExt for WidgetSet

Source§

impl ButtonSetWidgetSetExt for WidgetSet

Source§

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

Source§

fn as_button_set(&self) -> ButtonSet

Source§

impl CheckBoxSetWidgetSetExt for WidgetSet

Source§

impl Clone for WidgetSet

Source§

fn clone(&self) -> WidgetSet

Returns a copy 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 ColorPickerSetWidgetSetExt for WidgetSet

Source§

impl CommandTextInputSetWidgetSetExt for WidgetSet

Source§

impl Debug for WidgetSet

Source§

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

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

impl Default for WidgetSet

Source§

fn default() -> WidgetSet

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

impl DesignerContainerSetWidgetSetExt for WidgetSet

Source§

impl DesignerOutlineSetWidgetSetExt for WidgetSet

Source§

impl DesignerOutlineTreeSetWidgetSetExt for WidgetSet

Source§

impl DesignerSetWidgetSetExt for WidgetSet

Source§

impl DesignerToolboxSetWidgetSetExt for WidgetSet

Source§

impl DesignerViewSetWidgetSetExt for WidgetSet

Source§

impl DesktopButtonSetWidgetSetExt for WidgetSet

Source§

impl DockSetWidgetSetExt for WidgetSet

Source§

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

Source§

fn as_dock_set(&self) -> DockSet

Source§

impl DropDownSetWidgetSetExt for WidgetSet

Source§

impl ExpandablePanelSetWidgetSetExt for WidgetSet

Source§

impl FileTreeSetWidgetSetExt for WidgetSet

Source§

impl FlatListSetWidgetSetExt for WidgetSet

Source§

impl FoldButtonSetWidgetSetExt for WidgetSet

Source§

impl FoldHeaderSetWidgetSetExt for WidgetSet

Source§

impl HtmlLinkSetWidgetSetExt for WidgetSet

Source§

impl HtmlSetWidgetSetExt for WidgetSet

Source§

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

Source§

fn as_html_set(&self) -> HtmlSet

Source§

impl IconSetWidgetSetExt for WidgetSet

Source§

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

Source§

fn as_icon_set(&self) -> IconSet

Source§

impl ImageBlendSetWidgetSetExt for WidgetSet

Source§

impl ImageSetWidgetSetExt for WidgetSet

Source§

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

Source§

fn as_image_set(&self) -> ImageSet

Source§

impl KeyboardViewSetWidgetSetExt for WidgetSet

Source§

impl LabelSetWidgetSetExt for WidgetSet

Source§

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

Source§

fn as_label_set(&self) -> LabelSet

Source§

impl LinkLabelSetWidgetSetExt for WidgetSet

Source§

impl ListSetWidgetSetExt for WidgetSet

Source§

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

Source§

fn as_list_set(&self) -> ListSet

Source§

impl LiveApply for WidgetSet

Source§

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

Source§

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

Source§

impl LiveHook for WidgetSet

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 apply_value_instance( &mut self, _cx: &mut Cx, _apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], ) -> usize

Source§

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

Source§

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

Source§

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

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 MarkdownLinkSetWidgetSetExt for WidgetSet

Source§

impl MarkdownSetWidgetSetExt for WidgetSet

Source§

impl ModalSetWidgetSetExt for WidgetSet

Source§

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

Source§

fn as_modal_set(&self) -> ModalSet

Source§

impl MultiImageSetWidgetSetExt for WidgetSet

Source§

impl PageFlipSetWidgetSetExt for WidgetSet

Source§

impl PerformanceLiveGraphSetWidgetSetExt for WidgetSet

Source§

impl PerformanceViewSetWidgetSetExt for WidgetSet

Source§

impl PopupNotificationSetWidgetSetExt for WidgetSet

Source§

impl PortalList2SetWidgetSetExt for WidgetSet

Source§

impl PortalListSetWidgetSetExt for WidgetSet

Source§

impl RadioButtonGroupSetWidgetSetExt for WidgetSet

Source§

impl RadioButtonSetWidgetSetExt for WidgetSet

Source§

impl RotatedImageSetWidgetSetExt for WidgetSet

Source§

impl SlidePanelSetWidgetSetExt for WidgetSet

Source§

impl SliderSetWidgetSetExt for WidgetSet

Source§

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

Source§

fn as_slider_set(&self) -> SliderSet

Source§

impl SlidesViewSetWidgetSetExt for WidgetSet

Source§

impl SplitterSetWidgetSetExt for WidgetSet

Source§

impl StackNavigationViewSetWidgetSetExt for WidgetSet

Source§

impl TabBarSetWidgetSetExt for WidgetSet

Source§

impl TextFlowLinkSetWidgetSetExt for WidgetSet

Source§

impl TextFlowSetWidgetSetExt for WidgetSet

Source§

impl TextInputSetWidgetSetExt for WidgetSet

Source§

impl TogglePanelSetWidgetSetExt for WidgetSet

Source§

impl TooltipSetWidgetSetExt for WidgetSet

Source§

impl TurtleStepSetWidgetSetExt for WidgetSet

Source§

impl VectorLineSetWidgetSetExt for WidgetSet

Source§

impl VideoSetWidgetSetExt for WidgetSet

Source§

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

Source§

fn as_video_set(&self) -> VideoSet

Source§

impl ViewSetWidgetSetExt for WidgetSet

Source§

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

Source§

fn as_view_set(&self) -> ViewSet

Source§

impl WebViewSetWidgetSetExt for WidgetSet

Source§

impl WindowMenuSetWidgetSetExt for WidgetSet

Source§

impl WindowSetWidgetSetExt for WidgetSet

Source§

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

Source§

fn as_window_set(&self) -> WindowSet

Source§

impl XrHandsSetWidgetSetExt for WidgetSet

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

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

Source§

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

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