ecore-evas-drm: Add support for setting focus_in & focus_out callbacks
authorChris Michael <cp.michael@samsung.com>
Tue, 18 Mar 2014 10:18:58 +0000 (10:18 +0000)
committerChris Michael <cp.michael@samsung.com>
Tue, 18 Mar 2014 10:18:58 +0000 (10:18 +0000)
@feature: Add support for setting the focus in & focus out callbacks
of the ecore_evas.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/ecore_evas/engines/drm/ecore_evas_drm.c

index deed0928b4168ba7eafe728b1db9a9ef6afe7543..71ae2a612c2c506638b43cb48545349958a76e7d 100644 (file)
@@ -27,6 +27,8 @@ static Ecore_Evas_Interface_Drm *_ecore_evas_drm_interface_new(void);
 static void _ecore_evas_drm_free(Ecore_Evas *ee);
 static void _ecore_evas_drm_callback_resize_set(Ecore_Evas *ee, Ecore_Evas_Event_Cb func);
 static void _ecore_evas_drm_callback_move_set(Ecore_Evas *ee, Ecore_Evas_Event_Cb func);
+static void _ecore_evas_drm_callback_focus_in_set(Ecore_Evas *ee, Ecore_Evas_Event_Cb func);
+static void _ecore_evas_drm_callback_focus_out_set(Ecore_Evas *ee, Ecore_Evas_Event_Cb func);
 static void _ecore_evas_drm_delete_request_set(Ecore_Evas *ee, Ecore_Evas_Event_Cb func);
 static void _ecore_evas_drm_resize(Ecore_Evas *ee, int w, int h);
 static void _ecore_evas_drm_show(Ecore_Evas *ee);
@@ -48,8 +50,8 @@ static Ecore_Evas_Engine_Func _ecore_evas_drm_engine_func =
    NULL, //void (*fn_callback_hide_set) (Ecore_Evas *ee, Ecore_Evas_Event_Cb func);
    _ecore_evas_drm_delete_request_set,
    NULL, //void (*fn_callback_destroy_set) (Ecore_Evas *ee, Ecore_Evas_Event_Cb func);
-   NULL, //void (*fn_callback_focus_in_set) (Ecore_Evas *ee, Ecore_Evas_Event_Cb func);
-   NULL, //void (*fn_callback_focus_out_set) (Ecore_Evas *ee, Ecore_Evas_Event_Cb func);
+   _ecore_evas_drm_callback_focus_in_set,
+   _ecore_evas_drm_callback_focus_out_set,
    NULL, //void (*fn_callback_mouse_in_set) (Ecore_Evas *ee, Ecore_Evas_Event_Cb func);
    NULL, //void (*fn_callback_mouse_out_set) (Ecore_Evas *ee, Ecore_Evas_Event_Cb func);
    NULL, //void (*fn_callback_sticky_set) (Ecore_Evas *ee, Ecore_Evas_Event_Cb func);
@@ -366,6 +368,18 @@ _ecore_evas_drm_callback_move_set(Ecore_Evas *ee, Ecore_Evas_Event_Cb func)
    ee->func.fn_move = func;
 }
 
+static void 
+_ecore_evas_drm_callback_focus_in_set(Ecore_Evas *ee, Ecore_Evas_Event_Cb func)
+{
+   ee->func.fn_focus_in = func;
+}
+
+static void 
+_ecore_evas_drm_callback_focus_out_set(Ecore_Evas *ee, Ecore_Evas_Event_Cb func)
+{
+   ee->func.fn_focus_out = func;
+}
+
 static void 
 _ecore_evas_drm_delete_request_set(Ecore_Evas *ee, Ecore_Evas_Event_Cb func)
 {