pub struct ButtonSet(/* private fields */);
Implementations§
Source§impl ButtonSet
impl ButtonSet
pub fn clicked(&self, actions: &Actions) -> bool
pub fn pressed(&self, actions: &Actions) -> bool
pub fn released(&self, actions: &Actions) -> bool
pub fn reset_hover(&self, cx: &mut Cx)
pub fn which_clicked_modifiers( &self, actions: &Actions, ) -> Option<(usize, KeyModifiers)>
pub fn set_visible(&self, cx: &mut Cx, visible: bool)
pub fn set_enabled(&self, cx: &mut Cx, enabled: bool)
Methods from Deref<Target = 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 widgets(&self, paths: &[&[LiveId]]) -> WidgetSet
pub fn contains(&self, widget: &WidgetRef) -> bool
pub fn set_text(&self, cx: &mut Cx, v: &str)
pub fn iter(&self) -> WidgetSetIterator<'_> ⓘ
pub fn filter_actions<'a>( &'a self, actions: &'a Actions, ) -> impl Iterator<Item = &'a WidgetAction>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ButtonSet
impl !RefUnwindSafe for ButtonSet
impl !Send for ButtonSet
impl !Sync for ButtonSet
impl Unpin for ButtonSet
impl !UnwindSafe for ButtonSet
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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