Functions for menu_line_str() formatting.
More...
|
const char * | rb_str (int val) |
| Returns 'dot' selection string.
|
|
const char * | sel_str (int val) |
| Returns 'cross' selection string.
|
|
char * | opt_str (char *s, char const *txt, int val) |
| Format selection string.
|
|
char * | date_str (char *s, const char *txt) |
| Formats text followed by date.
|
|
char * | time_str (char *s, const char *txt) |
| Formats text followed by time.
|
|
Functions for menu_line_str() formatting.
◆ date_str()
char * date_str |
( |
char * | s, |
|
|
const char * | txt ) |
Formats text followed by date.
- Parameters
-
s | Buffer for resulting string |
txt | Text to format |
- Returns
- Into resulting string
s
formats txt
followed by date string in square brackets
◆ opt_str()
char * opt_str |
( |
char * | s, |
|
|
char const * | txt, |
|
|
int | val ) |
Format selection string.
- Parameters
-
s | Buffer for resulting string |
txt | Text to format |
val | Selection value |
- Returns
- Into resulting string
s
formats txt
preceded with selection marker given by sel_str(val)
◆ rb_str()
const char * rb_str |
( |
int | val | ) |
|
Returns 'dot' selection string.
- Parameters
-
- Returns
- "(*)" if
val
> 0, "(_)" otherwise
◆ sel_str()
const char * sel_str |
( |
int | val | ) |
|
Returns 'cross' selection string.
- Parameters
-
- Returns
- "(X)" if
val
> 0, "(_)" otherwise
◆ time_str()
char * time_str |
( |
char * | s, |
|
|
const char * | txt ) |
Formats text followed by time.
- Parameters
-
s | Buffer for resulting string |
txt | Text to format |
- Returns
- Into resulting string
s
formats txt
followed by time string in square brackets