[][src]Struct crossterm_cursor::sys::winapi::Cursor

pub struct Cursor { /* fields omitted */ }

Methods

impl Cursor[src]

pub fn new() -> Result<Cursor>[src]

pub fn position(&self) -> Result<Coord>[src]

get the current cursor position.

pub fn goto(&self, x: i16, y: i16) -> Result<()>[src]

Set the cursor position to the given x and y. Note that this is 0 based.

pub fn set_visibility(&self, visable: bool) -> Result<()>[src]

change the cursor visibility.

pub fn reset_to_saved_position() -> Result<()>[src]

Reset to saved cursor position

pub fn save_cursor_pos() -> Result<()>[src]

Save current cursor position to recall later.

Trait Implementations

impl From<Handle> for Cursor[src]

impl From<*mut c_void> for Cursor[src]

Auto Trait Implementations

impl !Send for Cursor

impl !Sync for Cursor

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]