Crate framebuffer_printer
source ·Expand description
This crate contains functions to print strings in a framebuffer. The coordinate in these functions is relative to the origin(top-left point) of the framebuffer.
Functions
- Fill a blank text area (left, top, right, bottom) with color. The tuple specifies the location of the area relative to the origin(top-left point) of the framebuffer.
- Prints a character to the framebuffer at position (line, column) of all characters in the text area.
- Prints a string in a framebuffer. Returns (column, line, rectangle), i.e. the position of the next symbol and an rectangle which covers the updated area. A block item (index, width) represents the index of line number and the width of charaters in this line as pixels. It can be viewed as a framebuffer block which is described in the
framebuffer_compositor
crate.