removed unused structs
This commit is contained in:
parent
7d8fe76ea7
commit
fa2c7a7c28
@ -198,7 +198,7 @@ while (1) {
|
|||||||
```
|
```
|
||||||
For the purpose of implementing overlapping panels sub buffers were implemented.
|
For the purpose of implementing overlapping panels sub buffers were implemented.
|
||||||
With sub buffers you can create one global buffer which owns the allocated memory
|
With sub buffers you can create one global buffer which owns the allocated memory
|
||||||
and a number of sub buffers which directly reference the global buffer. Biggest
|
and sub buffers which directly reference the global buffer. Biggest
|
||||||
advantage is that you do not have to allocate a buffer for each panel and boil
|
advantage is that you do not have to allocate a buffer for each panel and boil
|
||||||
down the memory management to a single buffer.
|
down the memory management to a single buffer.
|
||||||
|
|
||||||
|
20
gui.h
20
gui.h
@ -395,8 +395,6 @@ struct gui_panel {
|
|||||||
gui_bool minimized;
|
gui_bool minimized;
|
||||||
struct gui_font font;
|
struct gui_font font;
|
||||||
const struct gui_config *config;
|
const struct gui_config *config;
|
||||||
struct gui_panel *next;
|
|
||||||
struct gui_panel *prev;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct gui_panel_layout {
|
struct gui_panel_layout {
|
||||||
@ -419,24 +417,6 @@ struct gui_panel_layout {
|
|||||||
const struct gui_canvas *canvas;
|
const struct gui_canvas *canvas;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct gui_pool_page {
|
|
||||||
struct gui_pool_page *next;
|
|
||||||
void *memory;
|
|
||||||
gui_size capacity;
|
|
||||||
gui_size count;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct gui_pool {
|
|
||||||
struct gui_allocator allocator;
|
|
||||||
struct gui_pool_page base;
|
|
||||||
struct gui_pool_page *pages;
|
|
||||||
gui_size page_count;
|
|
||||||
gui_size page_size;
|
|
||||||
gui_size panel_size;
|
|
||||||
gui_size panel_offset;
|
|
||||||
struct gui_panel *free_list;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Input */
|
/* Input */
|
||||||
gui_size gui_utf_decode(const gui_char*, gui_long*, gui_size);
|
gui_size gui_utf_decode(const gui_char*, gui_long*, gui_size);
|
||||||
gui_size gui_utf_encode(gui_long, gui_char*, gui_size);
|
gui_size gui_utf_encode(gui_long, gui_char*, gui_size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user