efl: add an event to notify that the View property has changed.
authorCedric BAIL <cedric.bail@free.fr>
Tue, 12 Feb 2019 18:09:43 +0000 (10:09 -0800)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 15 Mar 2019 04:23:19 +0000 (13:23 +0900)
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Reviewed-by: Lauro Neto <Lauro Moura <lauromoura@expertisesolutions.com.br>>
Differential Revision: https://phab.enlightenment.org/D7940

src/lib/efl/interfaces/efl_ui_property_bind.eo

index 5134bd2..e60de73 100644 (file)
@@ -1,5 +1,11 @@
 import eina_types;
 
+struct Efl.Ui.Property_Event {
+   [[EFL Ui property event data structure triggered when an object property change due
+     to the interaction on the object.]]
+   changed_properties: array<stringshare>; [[List of changed properties]]
+}
+
 interface @beta Efl.Ui.Property_Bind
 {
    [[Efl UI Property_Bind interface.
@@ -18,4 +24,8 @@ interface @beta Efl.Ui.Property_Bind
          return: Eina.Error; [[0 when it succeed, an error code otherwise.]]
       }
    }
+   events {
+      properties,changed: Efl.Ui.Property_Event; [[Event dispatched when a property on the object has changed due to an user interaction on the object that a model could be interested in.]]
+      property,bound: stringshare; [[Event dispatched when a property on the object is bound to a model. This is useful to not overgenerate event.]]
+   }
 }