summaryrefslogtreecommitdiff
path: root/src/lib/efl/Efl.h
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-12-07 15:51:09 -0800
committerCedric BAIL <cedric@osg.samsung.com>2018-12-20 10:44:41 -0800
commitb992cc479e35a398e15f73439eb802127cb45cc7 (patch)
tree2f0134c2704fca0461ab18e51e63be29769c5388 /src/lib/efl/Efl.h
parent3ef87a251b0324e24accfc4ef6fc0e257d0d1944 (diff)
efl: add facility to generate an event when an item is created by the factory.
Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7446
Diffstat (limited to '')
-rw-r--r--src/lib/efl/Efl.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/efl/Efl.h b/src/lib/efl/Efl.h
index 8548ac95c8..fc56d4a0b8 100644
--- a/src/lib/efl/Efl.h
+++ b/src/lib/efl/Efl.h
@@ -197,6 +197,22 @@ typedef Efl_Gfx_Path_Command_Type Efl_Gfx_Path_Command;
197 */ 197 */
198EAPI Efl_Object *efl_part(const Eo *obj, const char *name); 198EAPI Efl_Object *efl_part(const Eo *obj, const char *name);
199 199
200/**
201 * @brief This triggers the create method of a factory and trigger the item created event.
202 *
203 * @param[in] factory The factory that will provide the item
204 * @param[in] model The model to use to fetch information from
205 * @param[in] parent The parent of the newly created item
206 * @return A future that will resolve with the newly created item.
207 *
208 * @since 1.22
209 * @note This exists as we always want to trigger the event once all the logic
210 * of every factory in the chain has done what it planned to do. Basically we
211 * want the inverse of inheritance call like efl_super. So we do setup the future
212 * in this way.
213 */
214EAPI Eina_Future *efl_ui_view_factory_create_with_event(Efl_Ui_Factory *factory, Efl_Model *model, Efl_Gfx_Entity *parent);
215
200#else 216#else
201 217
202#ifndef EFL_NOLEGACY_API_SUPPORT 218#ifndef EFL_NOLEGACY_API_SUPPORT