pub struct State { /* private fields */ }Expand description
Represents a message sender and receiver for passing actions between threads.
Implementations§
Source§impl State
impl State
Sourcepub fn render_slice(&self) -> Arc<Mutex<RenderSlice>>
pub fn render_slice(&self) -> Arc<Mutex<RenderSlice>>
Clone the render slice.
Sourcepub fn scroll_top(&self)
pub fn scroll_top(&self)
Queue a scroll up action.
Sourcepub fn scroll_bottom(&self)
pub fn scroll_bottom(&self)
Queue a scroll up action.
Sourcepub fn scroll_down(&self)
pub fn scroll_down(&self)
Queue a scroll down action.
Sourcepub fn scroll_left(&self)
pub fn scroll_left(&self)
Queue a scroll left action.
Sourcepub fn scroll_right(&self)
pub fn scroll_right(&self)
Queue a scroll right action.
Sourcepub fn scroll_page_up(&self)
pub fn scroll_page_up(&self)
Queue a scroll up a page action.
Sourcepub fn scroll_page_down(&self)
pub fn scroll_page_down(&self)
Queue a scroll down a page action.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl !RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl !UnwindSafe for State
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