Changes in uspace/lib/ui/include/ui/menu.h [3c8c580:d92b8e8f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/include/ui/menu.h
r3c8c580 rd92b8e8f 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 39 39 #include <errno.h> 40 40 #include <gfx/coord.h> 41 #include <io/kbd_event.h> 41 42 #include <io/pos_event.h> 43 #include <stdbool.h> 44 #include <types/common.h> 45 #include <types/ui/event.h> 42 46 #include <types/ui/menu.h> 43 47 #include <types/ui/menubar.h> 44 #include <types/ui/event.h> 48 #include <types/ui/window.h> 49 #include <uchar.h> 45 50 46 extern errno_t ui_menu_create(ui_ menu_bar_t *, const char*, ui_menu_t **);51 extern errno_t ui_menu_create(ui_window_t *, ui_menu_t **); 47 52 extern void ui_menu_destroy(ui_menu_t *); 48 extern ui_menu_t *ui_menu_first(ui_menu_bar_t *); 49 extern ui_menu_t *ui_menu_next(ui_menu_t *); 50 extern const char *ui_menu_caption(ui_menu_t *); 51 extern void ui_menu_get_rect(ui_menu_t *, gfx_coord2_t *, gfx_rect_t *); 52 extern errno_t ui_menu_open(ui_menu_t *, gfx_rect_t *); 53 extern void ui_menu_set_cb(ui_menu_t *, ui_menu_cb_t *, void *); 54 extern errno_t ui_menu_open(ui_menu_t *, gfx_rect_t *, sysarg_t); 53 55 extern void ui_menu_close(ui_menu_t *); 56 extern bool ui_menu_is_open(ui_menu_t *); 54 57 extern errno_t ui_menu_paint(ui_menu_t *, gfx_coord2_t *); 58 extern ui_evclaim_t ui_menu_kbd_event(ui_menu_t *, kbd_event_t *); 55 59 extern ui_evclaim_t ui_menu_pos_event(ui_menu_t *, gfx_coord2_t *, 56 60 pos_event_t *); 61 extern sysarg_t ui_menu_get_idev_id(ui_menu_t *); 57 62 58 63 #endif
Note:
See TracChangeset
for help on using the changeset viewer.