diff options
author | Simon Glass <sjg@chromium.org> | 2023-06-01 19:22:57 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-07-14 19:54:51 +0300 |
commit | 756c9559e60a0ef8434128205adced937240925d (patch) | |
tree | a9d384616c67c9f9999317a3d253ea37a5b57f5d /boot/scene_internal.h | |
parent | 3f33b9c722a41e1577df110470521a014713ce2e (diff) | |
download | u-boot-756c9559e60a0ef8434128205adced937240925d.tar.xz |
expo: Draw popup menus in both opened and closed states
When a popup menu is closed it shows only the selected item. When it is
open it shows a background and all items, with a highlight that can be
moved between the items.
Add the drawing logic for this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/scene_internal.h')
-rw-r--r-- | boot/scene_internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/boot/scene_internal.h b/boot/scene_internal.h index 3387a90761..2544c961da 100644 --- a/boot/scene_internal.h +++ b/boot/scene_internal.h @@ -154,6 +154,13 @@ int scene_render(struct scene *scn); int scene_send_key(struct scene *scn, int key, struct expo_action *event); /** + * scene_menu_render() - Render the background behind a menu + * + * @menu: Menu to render + */ +void scene_menu_render(struct scene_obj_menu *menu); + +/** * scene_menu_calc_dims() - Calculate the dimensions of a menu * * Updates the width and height of the menu based on its contents |