pub struct ViewSet(/* private fields */);
Implementations§
Source§impl ViewSet
impl ViewSet
pub fn animator_cut(&self, cx: &mut Cx, state: &[LiveId; 2])
pub fn animator_play(&self, cx: &mut Cx, state: &[LiveId; 2])
pub fn toggle_state( &self, cx: &mut Cx, is_state_1: bool, animate: Animate, state1: &[LiveId; 2], state2: &[LiveId; 2], )
pub fn set_visible(&self, cx: &mut Cx, visible: bool)
pub fn set_texture(&self, slot: usize, texture: &Texture)
pub fn set_uniform(&self, cx: &Cx, uniform: &[LiveId], value: &[f32])
pub fn redraw(&self, cx: &mut Cx)
pub fn finger_down(&self, actions: &Actions) -> Option<FingerDownEvent>
pub fn finger_up(&self, actions: &Actions) -> Option<FingerUpEvent>
pub fn finger_move(&self, actions: &Actions) -> Option<FingerMoveEvent>
pub fn key_down(&self, actions: &Actions) -> Option<KeyEvent>
pub fn key_up(&self, actions: &Actions) -> Option<KeyEvent>
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 ViewSet
impl !RefUnwindSafe for ViewSet
impl !Send for ViewSet
impl !Sync for ViewSet
impl Unpin for ViewSet
impl !UnwindSafe for ViewSet
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