Changeset 46bd63c9 in mainline for uspace/lib/ui/include/types


Ignore:
Timestamp:
2023-09-08T08:47:30Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1af103e
Parents:
0b6fad9
git-author:
Jiri Svoboda <jiri@…> (2023-09-07 18:47:09)
git-committer:
Jiri Svoboda <jiri@…> (2023-09-08 08:47:30)
Message:

Split drop-down menu into two classes: drop-down and menu

Naming is clearly the hardest problem in computer science.

Location:
uspace/lib/ui/include/types/ui
Files:
1 added
1 edited

Legend:

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

    r0b6fad9 r46bd63c9  
    11/*
    2  * Copyright (c) 2021 Jiri Svoboda
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3737#define _UI_TYPES_MENU_H
    3838
     39#include <types/common.h>
     40
    3941struct ui_menu;
    4042typedef struct ui_menu ui_menu_t;
     43
     44/** Menu callbacks */
     45typedef struct ui_menu_cb {
     46        /** Left arrow pressed */
     47        void (*left)(ui_menu_t *, void *, sysarg_t);
     48        /** Right arrow pressed */
     49        void (*right)(ui_menu_t *, void *, sysarg_t);
     50        /** Request menu closure */
     51        void (*close_req)(ui_menu_t *, void *);
     52        /** Accelerator key pressed */
     53        void (*press_accel)(ui_menu_t *, void *, char32_t, sysarg_t);
     54} ui_menu_cb_t;
    4155
    4256#endif
Note: See TracChangeset for help on using the changeset viewer.