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

ref: b954c45e83a5296c1ea90fc949851984e2c2abb7 CTU-FEE-B0B35APO-Semestral-project/lib-gui/include/gui_container_info.h -rw-r--r-- 684 bytes
b954c45e — František Boháček docs: add new todos 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
#ifndef __GUI_CONTAINER_H__
#define __GUI_CONTAINER_H__

#include "gui.h"

typedef struct {
  container_type_t type;
  union {
    struct {
      uint16_t components_count;
    } group;
    struct {
      render_item render_item_fn;
      render_item render_header_fn;
      uint16_t item_height;
    } list;
  } payload;
} gui_container_info_t;

uint16_t gui_container_info_get_components_count(gui_container_info_t info);
container_t gui_container_info_create(gui_container_info_t info, component_t *components, uint16_t components_count);
void gui_container_info_init(container_t *container, void *state, uint32_t items_count, int16_t x, int16_t y);

#endif // __GUI_CONTAINER_H__
Do not follow this link