[][src]Struct glerminal::TermCursor

pub struct TermCursor {
    pub style: TextStyle,
    // some fields omitted
}

The cursor on the TextBuffer that you can move around and change it's style.
Determines where and with what style the TextBuffer writes characters

Fields

style: TextStyle

The style of the cursor. Determines what style is used when writing characters.

Methods

impl TermCursor
[src]

pub fn set_limits(
    &mut self,
    x_min: Option<u32>,
    x_max: Option<u32>,
    y_min: Option<u32>,
    y_max: Option<u32>
)
[src]

Set the limits for drawing, other than the current screen. None means no limit in this direction.

pub fn get_limits(&self) -> TermLimits
[src]

Get the current term limits of the cursor.

pub fn move_to(&mut self, x: u32, y: u32)
[src]

Moves the cursor to a specified location in the terminal. Clamp cursor location to current limits or text_buffer boundaries if limits do not exist.

Trait Implementations

impl Clone for TermCursor
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for TermCursor
[src]

Auto Trait Implementations

impl Send for TermCursor

impl Sync for TermCursor

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T

impl<T> Downcast for T where
    T: Any