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

Obtain a new, empty draw batch

Submits a batch to the global drawing buffer, and empties the batch.

Adds a CLS (clear screen) to the drawing batch

Adds a CLS (clear screen) to the drawing batch

Sets the target console for rendering

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

Fills 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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.