termio: add termio_is_focused()

This commit is contained in:
Boris Faure 2021-11-02 23:26:40 +01:00
parent 4b92a24651
commit 0901c85da4
Signed by untrusted user who does not match committer: borisfaure
GPG Key ID: 35C0410516166BE8
3 changed files with 16 additions and 0 deletions

View File

@ -350,6 +350,15 @@ termio_term_get(const Evas_Object *obj)
return sd->term;
}
Eina_Bool
termio_is_focused(const Evas_Object *obj)
{
Termio *sd = evas_object_smart_data_get(obj);
EINA_SAFETY_ON_NULL_RETURN_VAL(sd, EINA_FALSE);
return term_is_focused(sd->term);
}
Evas_Object *
termio_bg_get(const Evas_Object *obj)
{

View File

@ -65,6 +65,7 @@ termio_imf_cursor_set(Evas_Object *obj, Ecore_IMF_Context *imf);
Termpty *termio_pty_get(const Evas_Object *obj);
Evas_Object * termio_miniview_get(const Evas_Object *obj);
Term* termio_term_get(const Evas_Object *obj);
Eina_Bool termio_is_focused(const Evas_Object *obj);
Evas_Object *termio_bg_get(const Evas_Object *obj);
void termio_key_down(Evas_Object *termio,

View File

@ -390,6 +390,12 @@ test_textgrid_palette_get(const Evas_Object *obj EINA_UNUSED,
}
#endif
Eina_Bool
termio_is_focused(const Evas_Object *obj EINA_UNUSED)
{
return EINA_FALSE;
}
static void
_termpty_init(Termpty *ty, Config *config)
{