expo: Allow checking if a position is within a textline
For a textline it is possible to click into the edit field. Provide a function to check whether a position is within this field. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -175,6 +175,12 @@ int scene_textline_send_key(struct scene *scn, struct scene_obj_textline *tline,
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool scene_textline_within(const struct scene *scn,
|
||||
struct scene_obj_textline *tline, int x, int y)
|
||||
{
|
||||
return scene_within(scn, tline->edit_id, x, y);
|
||||
}
|
||||
|
||||
int scene_textline_render_deps(struct scene *scn,
|
||||
struct scene_obj_textline *tline)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user