Changeset 61784ed in mainline for uspace/app/nav/panel.h
- Timestamp:
- 2021-10-25T00:32:45Z (2 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0e80e40
- Parents:
- b36ebb42
- git-author:
- Jiri Svoboda <jiri@…> (2021-10-05 17:07:26)
- git-committer:
- jxsvoboda <5887334+jxsvoboda@…> (2021-10-25 00:32:45)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nav/panel.h
rb36ebb42 r61784ed 37 37 #define PANEL_H 38 38 39 #include <adt/list.h> 39 40 #include <errno.h> 40 41 #include <gfx/color.h> … … 43 44 #include <ui/control.h> 44 45 #include <ui/window.h> 46 #include <stdint.h> 45 47 #include "nav.h" 46 48 #include "panel.h" … … 62 64 /** Panel color */ 63 65 gfx_color_t *color; 66 67 /** Panel entries (list of panel_entry_t) */ 68 list_t entries; 64 69 } panel_t; 70 71 /** Panel entry */ 72 typedef struct { 73 /** Containing panel */ 74 panel_t *panel; 75 /** Link to @c panel->entries */ 76 link_t lentries; 77 /** File name */ 78 char *name; 79 /** File size */ 80 uint64_t size; 81 } panel_entry_t; 65 82 66 83 extern errno_t panel_create(ui_window_t *, panel_t **); … … 70 87 extern ui_control_t *panel_ctl(panel_t *); 71 88 extern void panel_set_rect(panel_t *, gfx_rect_t *); 89 extern errno_t panel_entry_append(panel_t *, const char *, uint64_t); 90 extern void panel_entry_delete(panel_entry_t *); 91 extern panel_entry_t *panel_first(panel_t *); 92 extern panel_entry_t *panel_next(panel_entry_t *); 72 93 73 94 #endif
Note:
See TracChangeset
for help on using the changeset viewer.