pub struct Update { /* private fields */ }Expand description
What a View::update changed, plus what it can ask of the host.
Implementations§
Source§impl Update
impl Update
pub fn needs_relayout(&self) -> bool
pub fn needs_repaint(&self) -> bool
Sourcepub fn set_text_box(&mut self, slot: u16, text: &str)
pub fn set_text_box(&mut self, slot: u16, text: &str)
Sets text box slot’s text (kept if it’s already that, so the caret
doesn’t jump while typing).
Sourcepub fn reset_scroll(&mut self, scroller: u16)
pub fn reset_scroll(&mut self, scroller: u16)
Scrolls scroller i back to the top.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Update
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnsafeUnpin for Update
impl UnwindSafe for Update
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