TB2026-YDS Firmware
Loading...
Searching...
No Matches
Status bar

Permanent top bar shared by every screen: Bluetooth state, active output, battery percent. More...

Collaboration diagram for Status bar:

Macros

#define STATUS_BAR_H   16
 Height in pixels of the reserved top bar. Screens render below this.

Functions

void status_bar_draw (void)
 Paint the top status bar over the framebuffer.

Detailed Description

Permanent top bar shared by every screen: Bluetooth state, active output, battery percent.

Macro Definition Documentation

◆ STATUS_BAR_H

#define STATUS_BAR_H   16

Height in pixels of the reserved top bar. Screens render below this.

Function Documentation

◆ status_bar_draw()

void status_bar_draw ( void )

Paint the top status bar over the framebuffer.

Called by the navigator right after the active screen renders (and once for the initial paint), so the bar appears on every screen regardless of which one is on top. It owns the top STATUS_BAR_H rows: it clears that strip to black, then draws the Bluetooth antenna (left), the active output (centre) and the battery percentage (right). Screens are expected to keep their content below STATUS_BAR_H so nothing is hidden. Reads the cached snapshot from the power service; shows "--%" until the fuel gauge has produced its first reading.