Changeset 1c6c3e1d in mainline for uspace/lib/ui/private/menu.h
- Timestamp:
- 2023-10-22T17:55:33Z (17 months ago)
- Branches:
- ticket/834-toolchain-update
- Children:
- 350ec74
- Parents:
- 315d487 (diff), 133461c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/private/menu.h
r315d487 r1c6c3e1d 1 1 /* 2 * Copyright (c) 202 2Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 41 41 #include <gfx/coord.h> 42 42 #include <stdbool.h> 43 #include <types/common.h> 43 44 #include <types/ui/menu.h> 44 45 #include <types/ui/resource.h> … … 49 50 */ 50 51 struct ui_menu { 51 /** Containing menu bar */ 52 struct ui_menu_bar *mbar; 53 /** Link to @c bar->menus */ 54 link_t lmenus; 52 /** Parent window */ 53 struct ui_window *parent; 55 54 /** Caption */ 56 55 char *caption; … … 67 66 /** Menu entries (ui_menu_entry_t) */ 68 67 list_t entries; 68 /** Callbacks */ 69 struct ui_menu_cb *cb; 70 /** Callback argument */ 71 void *arg; 69 72 }; 70 73 … … 86 89 extern void ui_menu_up(ui_menu_t *); 87 90 extern void ui_menu_down(ui_menu_t *); 91 extern void ui_menu_left(ui_menu_t *, sysarg_t); 92 extern void ui_menu_right(ui_menu_t *, sysarg_t); 93 extern void ui_menu_close_req(ui_menu_t *); 94 extern void ui_menu_press_accel(ui_menu_t *, char32_t, sysarg_t); 88 95 89 96 #endif
Note:
See TracChangeset
for help on using the changeset viewer.