[]Enum rltk::DrawCommand

pub enum DrawCommand {
    ClearScreen,
    ClearToColor {
        color: RGBA,
    },
    SetTarget {
        console: usize,
    },
    Set {
        pos: Point,
        color: ColorPair,
        glyph: u16,
    },
    SetBackground {
        pos: Point,
        bg: RGBA,
    },
    Print {
        pos: Point,
        text: String,
    },
    PrintColor {
        pos: Point,
        text: String,
        color: ColorPair,
    },
    PrintRight {
        pos: Point,
        text: String,
    },
    PrintColorRight {
        pos: Point,
        text: String,
        color: ColorPair,
    },
    PrintCentered {
        y: i32,
        text: String,
    },
    PrintColorCentered {
        y: i32,
        text: String,
        color: ColorPair,
    },
    PrintCenteredAt {
        pos: Point,
        text: String,
    },
    PrintColorCenteredAt {
        pos: Point,
        text: String,
        color: ColorPair,
    },
    Printer {
        pos: Point,
        text: String,
        align: TextAlign,
        background: Option<RGBA>,
    },
    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: u16,
    },
    BarHorizontal {
        pos: Point,
        width: i32,
        n: i32,
        max: i32,
        color: ColorPair,
    },
    BarVertical {
        pos: Point,
        height: i32,
        n: i32,
        max: i32,
        color: ColorPair,
    },
    SetClipping {
        clip: Option<Rect>,
    },
    SetFgAlpha {
        alpha: f32,
    },
    SetBgAlpha {
        alpha: f32,
    },
    SetAllAlpha {
        fg: f32,
        bg: f32,
    },
    SetFancy {
        position: Vec2,
        z_order: i32,
        rotation: Radians,
        color: ColorPair,
        glyph: u16,
        scale: Vec2,
    },
}

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

Variants

ClearScreen
ClearToColor

Fields of ClearToColor

color: RGBA
SetTarget

Fields of SetTarget

console: usize
Set

Fields of Set

pos: Pointcolor: ColorPairglyph: u16
SetBackground

Fields of SetBackground

pos: Pointbg: RGBA
Print

Fields of Print

pos: Pointtext: String
PrintColor

Fields of PrintColor

pos: Pointtext: Stringcolor: ColorPair
PrintRight

Fields of PrintRight

pos: Pointtext: String
PrintColorRight

Fields of PrintColorRight

pos: Pointtext: Stringcolor: ColorPair
PrintCentered

Fields of PrintCentered

y: i32text: String
PrintColorCentered

Fields of PrintColorCentered

y: i32text: Stringcolor: ColorPair
PrintCenteredAt

Fields of PrintCenteredAt

pos: Pointtext: String
PrintColorCenteredAt

Fields of PrintColorCenteredAt

pos: Pointtext: Stringcolor: ColorPair
Printer

Fields of Printer

pos: Pointtext: Stringalign: TextAlignbackground: Option<RGBA>
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: u16
BarHorizontal

Fields of BarHorizontal

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

Fields of BarVertical

pos: Pointheight: i32n: i32max: i32color: ColorPair
SetClipping

Fields of SetClipping

clip: Option<Rect>
SetFgAlpha

Fields of SetFgAlpha

alpha: f32
SetBgAlpha

Fields of SetBgAlpha

alpha: f32
SetAllAlpha

Fields of SetAllAlpha

fg: f32bg: f32
SetFancy

Fields of SetFancy

position: Vec2z_order: i32rotation: Radianscolor: ColorPairglyph: u16scale: Vec2

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>,