[][src]Enum ransid::Event

pub enum Event<'a> {
    Char {
        x: usize,
        y: usize,
        c: char,
        bold: bool,
        italic: bool,
        underlined: bool,
        strikethrough: bool,
        color: Color,
    },
    Input {
        data: &'a [u8],
    },
    Rect {
        x: usize,
        y: usize,
        w: usize,
        h: usize,
        color: Color,
    },
    ScreenBuffer {
        alternate: bool,
        clear: bool,
    },
    Move {
        from_x: usize,
        from_y: usize,
        to_x: usize,
        to_y: usize,
        w: usize,
        h: usize,
    },
    Resize {
        w: usize,
        h: usize,
    },
    Title {
        title: String,
    },
}

Variants

Char

Fields of Char

x: usizey: usizec: charbold: boolitalic: boolunderlined: boolstrikethrough: boolcolor: Color
Input

Fields of Input

data: &'a [u8]
Rect

Fields of Rect

x: usizey: usizew: usizeh: usizecolor: Color
ScreenBuffer

Fields of ScreenBuffer

alternate: boolclear: bool
Move

Fields of Move

from_x: usizefrom_y: usizeto_x: usizeto_y: usizew: usizeh: usize
Resize

Fields of Resize

w: usizeh: usize
Title

Fields of Title

title: String

Auto Trait Implementations

impl<'a> Sync for Event<'a>

impl<'a> Send for Event<'a>

impl<'a> Unpin for Event<'a>

impl<'a> RefUnwindSafe for Event<'a>

impl<'a> UnwindSafe for Event<'a>

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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