[]Enum rltk::DrawCommand

pub enum DrawCommand {
    ClearScreen,
    ClearToColor {
        color: RGB,
    },
    SetTarget {
        console: usize,
    },
    Set {
        pos: Point,
        color: ColorPair,
        glyph: u8,
    },
    SetBackground {
        pos: Point,
        bg: RGB,
    },
    Print {
        pos: Point,
        text: String,
    },
    PrintColor {
        pos: Point,
        text: String,
        color: ColorPair,
    },
    PrintCentered {
        y: i32,
        text: String,
    },
    PrintColorCentered {
        y: i32,
        text: String,
        color: ColorPair,
    },
    Box {
        pos: Rect,
        color: ColorPair,
    },
    HollowBox {
        pos: Rect,
        color: ColorPair,
    },
    DoubleBox {
        pos: Rect,
        color: ColorPair,
    },
    HollowDoubleBox {
        pos: Rect,
        color: ColorPair,
    },
    FillRegion {
        pos: Rect,
        color: ColorPair,
        glyph: u8,
    },
    BarHorizontal {
        pos: Point,
        width: i32,
        n: i32,
        max: i32,
        color: ColorPair,
    },
    BarVertical {
        pos: Point,
        height: i32,
        n: i32,
        max: i32,
        color: ColorPair,
    },
}

Represents a buffered drawing command that can be asynconously submitted to the drawing buffer, for application at the end of the frame.

Variants

ClearScreen
ClearToColor

Fields of ClearToColor

color: RGB
SetTarget

Fields of SetTarget

console: usize
Set

Fields of Set

pos: Pointcolor: ColorPairglyph: u8
SetBackground

Fields of SetBackground

pos: Pointbg: RGB
Print

Fields of Print

pos: Pointtext: String
PrintColor

Fields of PrintColor

pos: Pointtext: Stringcolor: ColorPair
PrintCentered

Fields of PrintCentered

y: i32text: String
PrintColorCentered

Fields of PrintColorCentered

y: i32text: Stringcolor: ColorPair
Box

Fields of Box

pos: Rectcolor: ColorPair
HollowBox

Fields of HollowBox

pos: Rectcolor: ColorPair
DoubleBox

Fields of DoubleBox

pos: Rectcolor: ColorPair
HollowDoubleBox

Fields of HollowDoubleBox

pos: Rectcolor: ColorPair
FillRegion

Fields of FillRegion

pos: Rectcolor: ColorPairglyph: u8
BarHorizontal

Fields of BarHorizontal

pos: Pointwidth: i32n: i32max: i32color: ColorPair
BarVertical

Fields of BarVertical

pos: Pointheight: i32n: i32max: i32color: ColorPair

Trait Implementations

impl Clone for DrawCommand

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,