Skip to main content

Module loader

Module loader 

Source
Expand description

Loading indicators for splash and loading screens.

Pure functions operating on raw RGB565 byte buffers. All take explicit screen dimensions so they are reusable by any crate without global state.

Structs§

Rect
A screen rectangle (x, y, width, height) in pixels, for partial-refresh bounding regions.

Functions§

loading_bar_rect
Bounding rectangle of the loading bar for partial-refresh updates, with a small margin so the refresh band covers the full bar including anti-aliasing edges.
paint_loading_bar
Draw a horizontal progress bar at the bottom of the screen.
paint_spinner
Draw a rotating-arc spinner centred horizontally near the bottom.
spinner_rect
Bounding rectangle of the spinner.