2022-06-23 14:04:52 +02:00
|
|
|
// util: Global utility functions
|
|
|
|
|
|
|
|
#pragma once
|
2022-06-23 20:40:23 +02:00
|
|
|
#include <stdbool.h>
|
2022-06-23 14:04:52 +02:00
|
|
|
|
|
|
|
/* Show the "please wait" popup message over the current display. This gets
|
|
|
|
overridden at the next application frame. Does draw to VRAM. */
|
|
|
|
void please_wait(void);
|
|
|
|
|
2022-06-23 20:40:23 +02:00
|
|
|
/* Show the "unsaved changes" popup. */
|
|
|
|
bool confirm_discard(void);
|
|
|
|
|
2022-06-23 14:04:52 +02:00
|
|
|
/* Human version of file sizes. If str=NULL, returns a static buffer that is
|
|
|
|
overridden by further calls. */
|
|
|
|
char const *human_size(int size, char *str);
|
2022-06-24 21:08:47 +02:00
|
|
|
|
|
|
|
/* Human version of file sizes with SI units. */
|
|
|
|
char const *human_isize(int size, char *str);
|