expo: Support object alignment
authorSimon Glass <sjg@chromium.org>
Fri, 2 May 2025 14:46:45 +0000 (08:46 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 30 May 2025 08:49:32 +0000 (09:49 +0100)
commit09f6f915fea90ea21a1a7b6a0a6907f89034dae1
treee7b855cd35bedf1d58ce914051d6960423a8a1fa
parent0635004e2228dea0aab023d7c56b0b74633e8a3c
expo: Support object alignment

Add support for left, right and centred alignment for text, in the
horizontal dimension.

Also support top, bottom and centred in the vertical dimension, for the
text object as a whole.

Alignment is not yet implemented for images. It has no meaning for
menus. A textline object uses a text object internally, so alignment
is supported there.

Provide some documentation to explain how objects are positioned.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/scene.c
doc/develop/expo.rst
include/expo.h
test/boot/expo.c