pub struct ViewSet(/* private fields */);Implementations§
Source§impl ViewSet
 
impl ViewSet
pub fn cut_state(&mut self, cx: &mut Cx, state: &[LiveId; 2])
pub fn animator_play(&mut self, cx: &mut Cx, state: &[LiveId; 2])
pub fn toggle_state( &mut self, cx: &mut Cx, is_state_1: bool, animate: Animate, state1: &[LiveId; 2], state2: &[LiveId; 2], )
pub fn set_visible(&self, 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: &WidgetActions) -> Option<FingerDownEvent>
pub fn finger_up(&self, actions: &WidgetActions) -> Option<FingerUpEvent>
pub fn finger_move(&self, actions: &WidgetActions) -> Option<FingerMoveEvent>
pub fn key_down(&self, actions: &WidgetActions) -> Option<KeyEvent>
pub fn key_up(&self, actions: &WidgetActions) -> 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 iter(&self) -> WidgetSetIterator<'_> ⓘ
pub fn set_text(&self, v: &str)
pub fn set_text_and_redraw(&self, cx: &mut Cx, v: &str)
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> 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