Changeset 0e80e40 in mainline for uspace/app/nav/panel.h
- Timestamp:
- 2021-10-25T00:32:45Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9f7e9bb
- Parents:
- 61784ed
- git-author:
- Jiri Svoboda <jiri@…> (2021-10-07 17:17:36)
- git-committer:
- jxsvoboda <5887334+jxsvoboda@…> (2021-10-25 00:32:45)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nav/panel.h
r61784ed r0e80e40 48 48 #include "panel.h" 49 49 50 /** Panel entry */ 51 typedef struct { 52 /** Containing panel */ 53 struct panel *panel; 54 /** Link to @c panel->entries */ 55 link_t lentries; 56 /** File name */ 57 char *name; 58 /** File size */ 59 uint64_t size; 60 } panel_entry_t; 61 50 62 /** Navigator panel 51 63 * … … 65 77 gfx_color_t *color; 66 78 79 /** Panel cursor color */ 80 gfx_color_t *curs_color; 81 67 82 /** Panel entries (list of panel_entry_t) */ 68 83 list_t entries; 84 85 /** First entry of current page */ 86 panel_entry_t *page; 87 88 /** Cursor position */ 89 panel_entry_t *cursor; 69 90 } 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;82 91 83 92 extern errno_t panel_create(ui_window_t *, panel_t **); … … 89 98 extern errno_t panel_entry_append(panel_t *, const char *, uint64_t); 90 99 extern void panel_entry_delete(panel_entry_t *); 100 extern void panel_clear_entries(panel_t *); 101 extern errno_t panel_read_dir(panel_t *, const char *); 91 102 extern panel_entry_t *panel_first(panel_t *); 92 103 extern panel_entry_t *panel_next(panel_entry_t *);
Note:
See TracChangeset
for help on using the changeset viewer.