~ruther/CTU-FEE-B0B35APO-Semestral-project

ref: 286b8dca2f346b213da3aa2116787e340dba14e0 CTU-FEE-B0B35APO-Semestral-project/lib-gui/include/gui_window_info.h -rw-r--r-- 802 bytes
286b8dca — František Boháček feat: support unicode, modify font types so no big changes are needed 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __GUI_WINDOW_H__
#define __GUI_WINDOW_H__

#include <stdint.h>
#include "gui.h"
#include "gui_container_info.h"

typedef void *(*construct_window_structure_fn)(window_t *window, void *state);
typedef bool (*gui_loop_running_fn)(void *state);
typedef void (*gui_loop_job_fn)(void *state);

typedef struct {
  uint32_t containers_count;
  construct_window_structure_fn construct;

  gui_container_info_t *containers;
} window_info_t;

bool gui_window_init_and_loop(gui_t *gui, void *state, window_info_t info,
                              gui_loop_running_fn loop_running,
                              gui_loop_job_fn job);

void gui_window_start_loop(gui_t * gui, gui_loop_running_fn loop_running,
                           gui_loop_job_fn job, void *loop_state);

#endif // __GUI_WINDOW_H__
Do not follow this link