mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 10:56:02 +01:00
expo: Allow highlighting other scene-object types
So far only menus can be highlighted. With the coming addition of text lines we need to be able to highlight other objects. Add a function to determine whether an object can be highlighted. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -146,6 +146,8 @@ enum scene_obj_t {
|
||||
SCENEOBJT_NONE = 0,
|
||||
SCENEOBJT_IMAGE,
|
||||
SCENEOBJT_TEXT,
|
||||
|
||||
/* types from here on can be highlighted */
|
||||
SCENEOBJT_MENU,
|
||||
};
|
||||
|
||||
@@ -203,6 +205,12 @@ struct scene_obj {
|
||||
struct list_head sibling;
|
||||
};
|
||||
|
||||
/* object can be highlighted when moving around expo */
|
||||
static inline bool scene_obj_can_highlight(const struct scene_obj *obj)
|
||||
{
|
||||
return obj->type >= SCENEOBJT_MENU;
|
||||
}
|
||||
|
||||
/**
|
||||
* struct scene_obj_img - information about an image object in a scene
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user