Enum makepad_widgets::widget::WidgetSet
source · pub enum WidgetSet {
Inline {
set: [Option<WidgetRef>; 4],
len: usize,
},
Vec(Vec<WidgetRef>),
Empty,
}
Variants§
Implementations§
source§impl WidgetSet
impl WidgetSet
pub fn is_empty(&mut self) -> bool
pub fn push(&mut self, item: WidgetRef)
pub fn extend_from_set(&mut self, other: &WidgetSet)
pub fn into_first(self) -> WidgetRef
pub fn widgets(&self, paths: &[&[LiveId]]) -> WidgetSet
pub fn contains(&self, widget: &WidgetRef) -> bool
Trait Implementations§
source§impl ButtonSetWidgetSetExt for WidgetSet
impl ButtonSetWidgetSetExt for WidgetSet
source§impl DockSetWidgetSetExt for WidgetSet
impl DockSetWidgetSetExt for WidgetSet
source§impl FileTreeSetWidgetSetExt for WidgetSet
impl FileTreeSetWidgetSetExt for WidgetSet
fn file_tree_set(&self, paths: &[&[LiveId]]) -> FileTreeSet
fn as_file_tree_set(&self) -> FileTreeSet
source§impl FlatListSetWidgetSetExt for WidgetSet
impl FlatListSetWidgetSetExt for WidgetSet
fn flat_list_set(&self, paths: &[&[LiveId]]) -> FlatListSet
fn as_flat_list_set(&self) -> FlatListSet
source§impl ImageSetWidgetSetExt for WidgetSet
impl ImageSetWidgetSetExt for WidgetSet
source§impl LiveHook for WidgetSet
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
impl PageFlipSetWidgetSetExt for WidgetSet
fn page_flip_set(&self, paths: &[&[LiveId]]) -> PageFlipSet
fn as_page_flip_set(&self) -> PageFlipSet
source§impl PortalListSetWidgetSetExt for WidgetSet
impl PortalListSetWidgetSetExt for WidgetSet
fn portal_list_set(&self, paths: &[&[LiveId]]) -> PortalListSet
fn as_portal_list_set(&self) -> PortalListSet
source§impl SlidePanelSetWidgetSetExt for WidgetSet
impl SlidePanelSetWidgetSetExt for WidgetSet
fn slide_panel_set(&self, paths: &[&[LiveId]]) -> SlidePanelSet
fn as_slide_panel_set(&self) -> SlidePanelSet
source§impl SlidesViewSetWidgetSetExt for WidgetSet
impl SlidesViewSetWidgetSetExt for WidgetSet
fn slides_view_set(&self, paths: &[&[LiveId]]) -> SlidesViewSet
fn as_slides_view_set(&self) -> SlidesViewSet
source§impl VideoSetWidgetSetExt for WidgetSet
impl VideoSetWidgetSetExt for WidgetSet
Auto Trait Implementations§
impl !RefUnwindSafe for WidgetSet
impl !Send for WidgetSet
impl !Sync for WidgetSet
impl Unpin for WidgetSet
impl !UnwindSafe for WidgetSet
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