Enum ransid::Event

source ·
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

x: usize
y: usize
c: char
bold: bool
italic: bool
underlined: bool
strikethrough: bool
color: Color

Input

Fields

data: &'a [u8]

Rect

Fields

x: usize
y: usize
w: usize
h: usize
color: Color

ScreenBuffer

Fields

alternate: bool
clear: bool

Move

Fields

from_x: usize
from_y: usize
to_x: usize
to_y: usize
w: usize
h: usize

Resize

Fields

w: usize
h: usize

Title

Fields

title: String

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.