A simple operating system for the ESP32-based M5StickC
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
|
|
struct Window
|
|
|
|
{
|
|
|
|
int hwnd = 0;
|
|
|
|
void (*callback)(int, int, int, int, int);
|
|
|
|
int hwnd_parent = 0;
|
|
|
|
int layout_mode = 0;
|
|
|
|
bool placeholder = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define LAYOUT_MODE_NONE 0
|
|
|
|
#define LAYOUT_MODE_SPLIT_VERTICAL 1
|
|
|
|
#define LAYOUT_MODE_SPLIT_HORIZONTAL 2
|
|
|
|
|
|
|
|
int UI(int pid, unsigned int signal);
|
|
|
|
int UI_create_window(void (*callback)(int, int, int, int, int), int parent = 0, int zorder = 0, bool placeholder = false);
|
|
|
|
void UI_set_layout_mode(int hwnd, int layout_mode);
|