Changeset 344f8b9 in mainline for uspace/lib/ui/private/menu.h


Ignore:
Timestamp:
2021-05-20T15:34:03Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Children:
f2416ec3
Parents:
da15002
Message:

Open menu in separate popup window (WIP)

File:
1 edited

Legend:

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

    rda15002 r344f8b9  
    4242#include <stdbool.h>
    4343#include <types/ui/menu.h>
     44#include <types/ui/resource.h>
    4445
    4546/** Actual structure of menu.
     
    5455        /** Caption */
    5556        char *caption;
    56         /** Menu is currently open */
    57         bool open;
     57        /** Popup window or @c NULL if menu is not currently open */
     58        struct ui_popup *popup;
    5859        /** Selected menu entry or @c NULL */
    5960        struct ui_menu_entry *selected;
     
    8081
    8182extern void ui_menu_get_geom(ui_menu_t *, gfx_coord2_t *, ui_menu_geom_t *);
     83extern ui_resource_t *ui_menu_get_res(ui_menu_t *);
    8284
    8385#endif
Note: See TracChangeset for help on using the changeset viewer.