Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/include/ui/menu.h

    r3c8c580 rd92b8e8f  
    11/*
    2  * Copyright (c) 2021 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3939#include <errno.h>
    4040#include <gfx/coord.h>
     41#include <io/kbd_event.h>
    4142#include <io/pos_event.h>
     43#include <stdbool.h>
     44#include <types/common.h>
     45#include <types/ui/event.h>
    4246#include <types/ui/menu.h>
    4347#include <types/ui/menubar.h>
    44 #include <types/ui/event.h>
     48#include <types/ui/window.h>
     49#include <uchar.h>
    4550
    46 extern errno_t ui_menu_create(ui_menu_bar_t *, const char *, ui_menu_t **);
     51extern errno_t ui_menu_create(ui_window_t *, ui_menu_t **);
    4752extern 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 *);
     53extern void ui_menu_set_cb(ui_menu_t *, ui_menu_cb_t *, void *);
     54extern errno_t ui_menu_open(ui_menu_t *, gfx_rect_t *, sysarg_t);
    5355extern void ui_menu_close(ui_menu_t *);
     56extern bool ui_menu_is_open(ui_menu_t *);
    5457extern errno_t ui_menu_paint(ui_menu_t *, gfx_coord2_t *);
     58extern ui_evclaim_t ui_menu_kbd_event(ui_menu_t *, kbd_event_t *);
    5559extern ui_evclaim_t ui_menu_pos_event(ui_menu_t *, gfx_coord2_t *,
    5660    pos_event_t *);
     61extern sysarg_t ui_menu_get_idev_id(ui_menu_t *);
    5762
    5863#endif
Note: See TracChangeset for help on using the changeset viewer.