Struct bracket_terminal::prelude::DrawBatch [−][src]
pub struct DrawBatch { /* fields omitted */ }Expand description
Represents a batch of drawing commands, designed to be submitted together.
Implementations
Submits a batch to the global drawing buffer, and empties the batch.
Adds a CLS (clear screen) to the drawing batch
Sets an individual cell glyph
Pushes a fancy terminal character
Sets an individual cell glyph
Prints formatted text, using the doryen_rs convention. For example: “#[blue]This blue text contains a #[pink]pink#[] word”
Prints text in the default colors at a given location
Prints text in the default colors at a given location
Prints text, centered to the whole console width, at vertical location y.
Prints text, centered to the whole console width, at vertical location y.
Prints text, centered to the whole console width, at vertical location y.
Prints text, centered to the whole console width, at vertical location y.
Prints right aligned text
Prints right aligned text
Draws a box, starting at x/y with the extents width/height using CP437 line characters
Draws a non-filled (hollow) box, starting at x/y with the extents width/height using CP437 line characters
Draws a double-lined box, starting at x/y with the extents width/height using CP437 line characters
Draws a non-filled (hollow) double-lined box, starting at x/y with the extents width/height using CP437 line characters
pub fn fill_region<G: TryInto<FontCharType>>(
&mut self,
pos: Rect,
color: ColorPair,
glyph: G
) -> &mut Self
pub fn fill_region<G: TryInto<FontCharType>>(
&mut self,
pos: Rect,
color: ColorPair,
glyph: G
) -> &mut SelfFills a region with a glyph/color combination.
Draw a horizontal progress bar
Draw a horizontal progress bar
Sets a clipping rectangle for the current console
Apply an alpha channel value to all cells’ foregrounds in the current terminal.
Apply an alpha channel value to all cells’ backgrounds in the current terminal.
Apply fg/bg alpha channel values to all cells in the current terminal.
Auto Trait Implementations
impl RefUnwindSafe for DrawBatchimpl UnwindSafe for DrawBatch