pub enum WidgetSet {
    Inline {
        set: [Option<WidgetRef>; 4],
        len: usize,
    },
    Vec(Vec<WidgetRef>),
    Empty,
}

Variants§

§

Inline

Fields

§len: usize
§

Vec(Vec<WidgetRef>)

§

Empty

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 iter(&self) -> WidgetSetIterator<'_>

source

pub fn set_text(&self, v: &str)

source

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

Trait Implementations§

source§

impl ButtonSetWidgetSetExt for WidgetSet

source§

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

source§

fn as_button_set(&self) -> ButtonSet

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

source§

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

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

impl Default for WidgetSet

source§

fn default() -> Self

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

impl DockSetWidgetSetExt for WidgetSet

source§

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

source§

fn as_dock_set(&self) -> DockSet

source§

impl FileTreeSetWidgetSetExt for WidgetSet

source§

impl FlatListSetWidgetSetExt for WidgetSet

source§

impl ImageSetWidgetSetExt for WidgetSet

source§

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

source§

fn as_image_set(&self) -> ImageSet

source§

impl LiveApply for WidgetSet

source§

fn apply( &mut self, cx: &mut Cx, from: ApplyFrom, index: usize, nodes: &[LiveNode] ) -> usize

§

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

source§

impl LiveHook for WidgetSet

§

fn before_live_design(_cx: &mut Cx)

§

fn apply_value_unknown( &mut self, cx: &mut Cx, _apply_from: ApplyFrom, index: usize, nodes: &[LiveNode] ) -> usize

§

fn apply_value_instance( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, index: usize, nodes: &[LiveNode] ) -> usize

§

fn skip_apply( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, _index: usize, _nodes: &[LiveNode] ) -> Option<usize>

§

fn before_apply( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, _index: usize, _nodes: &[LiveNode] )

§

fn after_apply( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, _index: usize, _nodes: &[LiveNode] )

§

fn after_apply_from(&mut self, cx: &mut Cx, apply_from: ApplyFrom)

§

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

§

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

source§

impl PageFlipSetWidgetSetExt for WidgetSet

source§

impl PortalListSetWidgetSetExt for WidgetSet

source§

impl RadioButtonSetWidgetSetExt for WidgetSet

source§

impl SlidePanelSetWidgetSetExt for WidgetSet

source§

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

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. 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 Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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> WidgetAction for Twhere T: 'static + Clone + ?Sized,