pub struct BlinkCursor<CB: CursorRedrawCb> {
state: Arc<UiMutex<State<CB>>>,
mode_info: Option<ModeInfo>,
}
Fields§
§state: Arc<UiMutex<State<CB>>>
§mode_info: Option<ModeInfo>
Implementations§
Source§impl<CB: CursorRedrawCb + 'static> BlinkCursor<CB>
impl<CB: CursorRedrawCb + 'static> BlinkCursor<CB>
pub fn new(redraw_cb: Weak<UiMutex<CB>>) -> Self
pub fn set_mode_info(&mut self, mode_info: Option<ModeInfo>)
pub fn set_cursor_blink(&mut self, val: i32)
pub fn start(&mut self)
pub fn reset_state(&mut self)
pub fn enter_focus(&mut self)
pub fn leave_focus(&mut self)
pub fn busy_on(&mut self)
pub fn busy_off(&mut self)
Trait Implementations§
Source§impl<CB: CursorRedrawCb> Cursor for BlinkCursor<CB>
impl<CB: CursorRedrawCb> Cursor for BlinkCursor<CB>
Source§impl<CB: CursorRedrawCb> Drop for BlinkCursor<CB>
impl<CB: CursorRedrawCb> Drop for BlinkCursor<CB>
Auto Trait Implementations§
impl<CB> Freeze for BlinkCursor<CB>
impl<CB> !RefUnwindSafe for BlinkCursor<CB>
impl<CB> Send for BlinkCursor<CB>
impl<CB> Sync for BlinkCursor<CB>
impl<CB> Unpin for BlinkCursor<CB>
impl<CB> !UnwindSafe for BlinkCursor<CB>
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