diff options
| author | Simon Glass <[email protected]> | 2025-05-02 08:46:53 -0600 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2025-05-30 09:49:32 +0100 |
| commit | ddd1c97653560c6015f2c165de459ebfdc79f5d7 (patch) | |
| tree | 32cc48083014622a8df665945147d279500d35ac /include | |
| parent | 8d7ae52d7735ffecf34fa8b2657ee2fcfaac51b6 (diff) | |
expo: Provide a way to position things relative to display
It is often necessary to centre objects within the display area. Add a
special position value to indicate this.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/expo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/expo.h b/include/expo.h index 2addddd5012..4dee479e9a0 100644 --- a/include/expo.h +++ b/include/expo.h @@ -242,6 +242,12 @@ struct scene_obj_dims { int y; }; +/* special values for dimensions */ +enum { + /* width/height of the display */ + SCENEOB_DISPLAY_MAX = 0x7f000000, +}; + /** * enum scene_obj_halign - Horizontal alignment of objects * |
