termio: add termio_is_focused()

devs/simotek/colorschemes
Boris Faure 11 months ago
parent 4b92a24651
commit 0901c85da4
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
  1. 9
      src/bin/termio.c
  2. 1
      src/bin/termio.h
  3. 6
      src/bin/tytest_common.c

@ -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)
{

@ -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,

@ -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)
{

Loading…
Cancel
Save