[PATCH v3 03/20] expo: Place menu items to the right of all labels
Simon Glass
sjg at chromium.org
Fri Oct 18 01:11:42 CEST 2024
At present a fixed position is used for menu items, 200 pixels to the
right of the left side of the labels. This means that a menu item with
a very long label may overlap the items.
It seems better to calculate the maximum label width and then place the
items to the right of all of them.
To implement this, add a new struct to containing arrangement
information. Calculate it before doing the actual arrangement. Add a
new style item which sets the amount of space from the right side of
the labels to left side of the items.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
boot/cedit.c | 13 ++++++++---
boot/expo.c | 2 ++
boot/scene.c | 52 +++++++++++++++++++++++++++++++++++++++++--
boot/scene_internal.h | 20 +++++++++++++++--
boot/scene_menu.c | 9 +++++---
boot/scene_textline.c | 3 ++-
doc/develop/expo.rst | 4 ++++
include/expo.h | 12 ++++++++++
8 files changed, 104 insertions(+), 11 deletions(-)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list