Enum rltk::DrawCommand
[−]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
Fields
color: RGBA
SetTarget
Fields
console: usize
Set
SetBackground
Print
PrintColor
PrintRight
PrintColorRight
PrintCentered
PrintColorCentered
PrintCenteredAt
PrintColorCenteredAt
Printer
Box
HollowBox
DoubleBox
HollowDoubleBox
FillRegion
BarHorizontal
BarVertical
SetClipping
SetFgAlpha
Fields
alpha: f32
SetBgAlpha
Fields
alpha: f32
SetAllAlpha
SetFancy
Trait Implementations
impl Clone for DrawCommand
impl Clone for DrawCommand
fn clone(&self) -> DrawCommand
fn clone(&self) -> DrawCommand
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for DrawCommand
impl Send for DrawCommand
impl Sync for DrawCommand
impl Unpin for DrawCommand
impl UnwindSafe for DrawCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more