pub enum DrawCommand {
Show 26 variants
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,
},
}
Expand description
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
SetTarget
Set
SetBackground
PrintColor
PrintRight
PrintColorRight
PrintCentered
PrintColorCentered
PrintCenteredAt
PrintColorCenteredAt
Printer
Box
HollowBox
DoubleBox
HollowDoubleBox
FillRegion
BarHorizontal
BarVertical
SetClipping
SetFgAlpha
SetBgAlpha
SetAllAlpha
SetFancy
Trait Implementations§
Source§impl Clone for DrawCommand
impl Clone for DrawCommand
Source§fn clone(&self) -> DrawCommand
fn clone(&self) -> DrawCommand
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DrawCommand
impl RefUnwindSafe for DrawCommand
impl Send for DrawCommand
impl Sync for DrawCommand
impl Unpin for DrawCommand
impl UnwindSafe for DrawCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more