rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
settings_rows_int.h File Reference

SETUP's list rows: what settings_rows.c, settings_screen.c and settings_draw.c share and nobody else sees. A row is a setting, a heading above the next one, a part's heading on SENSORS (sensors_rows.h), or a string. More...

#include <stdint.h>
#include "settings.h"
#include "ui_text.h"

Go to the source code of this file.

Data Structures

struct  settings_row_t
 One row of a list: a setting, a heading, a string or a part's heading. More...

Functions

settings_row_t settings_rows_entry (setting_cat_t cat, int index)
 Returns row index of cat's list; a setting of id 0 with every index -1 past the last.
ui_text_id_t settings_rows_heading_text (int heading)
 Returns the words of section heading heading.
int settings_rows_listed (setting_cat_t cat)
 Counts the settings and strings cat lists: its rows less its headings.

Detailed Description

SETUP's list rows: what settings_rows.c, settings_screen.c and settings_draw.c share and nobody else sees. A row is a setting, a heading above the next one, a part's heading on SENSORS (sensors_rows.h), or a string.

SPDX-License-Identifier: MIT

Function Documentation

◆ settings_rows_entry()

settings_row_t settings_rows_entry ( setting_cat_t cat,
int index )

Returns row index of cat's list; a setting of id 0 with every index -1 past the last.

Parameters
catthe category
indexthe row
Returns
the row

◆ settings_rows_heading_text()

ui_text_id_t settings_rows_heading_text ( int heading)

Returns the words of section heading heading.

Parameters
headingthe heading's index
Returns
the text id

◆ settings_rows_listed()

int settings_rows_listed ( setting_cat_t cat)

Counts the settings and strings cat lists: its rows less its headings.

Parameters
catthe category
Returns
the count