Changeset be1d74c1 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:
- 8c72f533
- Parents:
- 9f7e9bb
- git-author:
- Jiri Svoboda <jiri@…> (2021-10-12 17:06:35)
- git-committer:
- jxsvoboda <5887334+jxsvoboda@…> (2021-10-25 00:32:45)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nav/panel.h
r9f7e9bb rbe1d74c1 41 41 #include <gfx/color.h> 42 42 #include <gfx/coord.h> 43 #include <io/kbd_event.h> 43 44 #include <io/pos_event.h> 44 45 #include <ui/control.h> … … 83 84 list_t entries; 84 85 86 /** Number of entries */ 87 size_t entries_cnt; 88 85 89 /** First entry of current page */ 86 90 panel_entry_t *page; 87 91 92 /** Index of first entry of current page */ 93 size_t page_idx; 94 88 95 /** Cursor position */ 89 96 panel_entry_t *cursor; 97 98 /** Index of entry under cursor */ 99 size_t cursor_idx; 90 100 } panel_t; 91 101 92 102 extern errno_t panel_create(ui_window_t *, panel_t **); 93 103 extern void panel_destroy(panel_t *); 104 extern errno_t panel_entry_paint(panel_entry_t *, size_t); 94 105 extern errno_t panel_paint(panel_t *); 106 extern ui_evclaim_t panel_kbd_event(panel_t *, kbd_event_t *); 95 107 extern ui_evclaim_t panel_pos_event(panel_t *, pos_event_t *); 96 108 extern ui_control_t *panel_ctl(panel_t *); … … 101 113 extern errno_t panel_read_dir(panel_t *, const char *); 102 114 extern panel_entry_t *panel_first(panel_t *); 115 extern panel_entry_t *panel_last(panel_t *); 103 116 extern panel_entry_t *panel_next(panel_entry_t *); 117 extern panel_entry_t *panel_prev(panel_entry_t *); 118 extern void panel_cursor_move(panel_t *, panel_entry_t *, size_t); 119 extern void panel_cursor_up(panel_t *); 120 extern void panel_cursor_down(panel_t *); 121 extern void panel_cursor_top(panel_t *); 122 extern void panel_cursor_bottom(panel_t *); 104 123 105 124 #endif
Note:
See TracChangeset
for help on using the changeset viewer.