Changes in uspace/lib/ui/private/menu.h [ff6e91b:d92b8e8f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/private/menu.h
rff6e91b rd92b8e8f 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2024 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; 72 /** ID of device that activated entry */ 73 sysarg_t idev_id; 69 74 }; 70 75 … … 84 89 extern errno_t ui_menu_paint_bg_gfx(ui_menu_t *, gfx_coord2_t *); 85 90 extern errno_t ui_menu_paint_bg_text(ui_menu_t *, gfx_coord2_t *); 91 extern void ui_menu_up(ui_menu_t *); 92 extern void ui_menu_down(ui_menu_t *); 93 extern void ui_menu_left(ui_menu_t *, sysarg_t); 94 extern void ui_menu_right(ui_menu_t *, sysarg_t); 95 extern void ui_menu_close_req(ui_menu_t *); 96 extern void ui_menu_press_accel(ui_menu_t *, char32_t, sysarg_t); 86 97 87 98 #endif
Note:
See TracChangeset
for help on using the changeset viewer.