Changeset 08d5f8b in mainline for uspace/app/nav/types/menu.h


Ignore:
Timestamp:
2021-10-19T20:54:17Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Children:
2651dc5
Parents:
bdb2a72f
Message:

Add File / Open, properly deliver menu events to Navigator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/nav/types/menu.h

    rbdb2a72f r08d5f8b  
    4141#include <ui/window.h>
    4242
     43/** Navigator menu callbacks */
     44typedef struct nav_menu_cb {
     45        /** File / Open */
     46        void (*file_open)(void *);
     47        /** File / Exit */
     48        void (*file_exit)(void *);
     49} nav_menu_cb_t;
     50
    4351/** Navigator menu */
    4452typedef struct nav_menu {
     53        /** UI */
    4554        ui_t *ui;
     55        /** Containing window */
    4656        ui_window_t *window;
     57        /** Menu bar */
    4758        ui_menu_bar_t *menubar;
     59        /** Callbacks */
     60        nav_menu_cb_t *cb;
     61        /** Callback argument */
     62        void *cb_arg;
    4863} nav_menu_t;
    4964
Note: See TracChangeset for help on using the changeset viewer.