TB2026-YDS Firmware
Loading...
Searching...
No Matches
root_menu.c File Reference
#include "root_menu.h"
#include "now_playing.h"
#include "storage_screen.h"
#include "stats_screen.h"
#include "settings_screen.h"
#include "navigator.h"
#include "status_bar.h"
#include "gfx.h"
#include "icons.h"

Macros

#define ROW_H   40 /* 4 rows * 40 = 160 fills the panel below the bar (160 + STATUS_BAR_H = 176) */
#define N_ROWS   4
#define ICON_SZ   32 /* all menu icons are 32x32 (see icons.h) */
#define ARROW_X   2 /* caret column, left of the icon */
#define ICON_X   16
#define ICON_INSET   ((ROW_H - ICON_SZ) / 2) /* 6px: vertically center the icon in the row */
#define TEXT_X   52
#define TEXT_SCALE   2

Functions

screen_troot_menu (void)
 Get the singleton root-menu screen, ready to push onto the navigator.

Detailed Description

Note
Développé avec l'assistance de Claude Opus 4.8 (Anthropic), sous la direction de Y. Dos Santos : spécification, revue et validation sur cible par l'auteur.

Macro Definition Documentation

◆ ARROW_X

#define ARROW_X   2 /* caret column, left of the icon */

◆ ICON_INSET

#define ICON_INSET   ((ROW_H - ICON_SZ) / 2) /* 6px: vertically center the icon in the row */

◆ ICON_SZ

#define ICON_SZ   32 /* all menu icons are 32x32 (see icons.h) */

◆ ICON_X

#define ICON_X   16

◆ N_ROWS

#define N_ROWS   4

◆ ROW_H

#define ROW_H   40 /* 4 rows * 40 = 160 fills the panel below the bar (160 + STATUS_BAR_H = 176) */

◆ TEXT_SCALE

#define TEXT_SCALE   2

◆ TEXT_X

#define TEXT_X   52

Function Documentation

◆ root_menu()

screen_t * root_menu ( void )

Get the singleton root-menu screen, ready to push onto the navigator.

Returns
Pointer to the root-menu screen.