Changeset 59768c7 in mainline for uspace/lib/ui/include/ui/menu.h


Ignore:
Timestamp:
2022-01-10T19:29:00Z (2 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5de852c
Parents:
9754ed2
git-author:
Jiri Svoboda <jiri@…> (2022-01-10 19:27:55)
git-committer:
Jiri Svoboda <jiri@…> (2022-01-10 19:29:00)
Message:

Menu control using F10, cursor keys, Enter, Escape

File:
1 edited

Legend:

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

    r9754ed2 r59768c7  
    11/*
    2  * Copyright (c) 2021 Jiri Svoboda
     2 * Copyright (c) 2022 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4040#include <gfx/coord.h>
    4141#include <io/pos_event.h>
     42#include <stdbool.h>
    4243#include <types/ui/menu.h>
    4344#include <types/ui/menubar.h>
     
    4849extern ui_menu_t *ui_menu_first(ui_menu_bar_t *);
    4950extern ui_menu_t *ui_menu_next(ui_menu_t *);
     51extern ui_menu_t *ui_menu_last(ui_menu_bar_t *);
     52extern ui_menu_t *ui_menu_prev(ui_menu_t *);
    5053extern const char *ui_menu_caption(ui_menu_t *);
    5154extern void ui_menu_get_rect(ui_menu_t *, gfx_coord2_t *, gfx_rect_t *);
    5255extern errno_t ui_menu_open(ui_menu_t *, gfx_rect_t *);
    5356extern void ui_menu_close(ui_menu_t *);
     57extern bool ui_menu_is_open(ui_menu_t *);
    5458extern errno_t ui_menu_paint(ui_menu_t *, gfx_coord2_t *);
    5559extern ui_evclaim_t ui_menu_pos_event(ui_menu_t *, gfx_coord2_t *,
Note: See TracChangeset for help on using the changeset viewer.