summaryrefslogtreecommitdiff
path: root/boot/scene_internal.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-06-01 19:22:57 +0300
committerTom Rini <trini@konsulko.com>2023-07-14 19:54:51 +0300
commit756c9559e60a0ef8434128205adced937240925d (patch)
treea9d384616c67c9f9999317a3d253ea37a5b57f5d /boot/scene_internal.h
parent3f33b9c722a41e1577df110470521a014713ce2e (diff)
downloadu-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.h7
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