pub struct DrawBatch { /* private fields */ }
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

Sets an individual cell glyph with a specified ordering within the batch

Pushes a fancy terminal character

Sets an individual cell glyph

Sets an individual cell glyph with specified render order

Prints formatted text, using the doryen_rs convention. For example: “#[blue]This blue text contains a #[pink]pink#[] word”

Prints formatted text, using the doryen_rs convention. For example: “#[blue]This blue text contains a #[pink]pink#[] word” You can specify the render order.

Prints text in the default colors at a given location

Prints text in the default colors at a given location & render order

Prints text in the default colors at a given location

Prints text in the default colors at a given location & render order

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 text, centered to the whole console width, at vertical location y.

Prints text, centered to the whole console width, at vertical location y with render order.

Prints text, centered to the whole console width, at vertical location y.

Prints text, centered to the whole console width, at vertical location y with render order.

Prints right aligned text

Prints right aligned text with render order

Prints right aligned text

Prints right aligned text with render order

Draws a box, starting at x/y with the extents width/height using CP437 line characters

Draws a box, starting at x/y with the extents width/height using CP437 line characters. With render order.

Draws a non-filled (hollow) 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. With render order.

Draws a double-lined 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

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.

Fills a region with a glyph/color combination.

Draw a horizontal progress bar

Draw a horizontal progress bar

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.