edje_object_file_get(wd->resize_obj, file, group);
}
+
+EOLIAN static Eina_Bool
+_elm_layout_efl_file_mmap_set(Eo *obj, Elm_Layout_Smart_Data *sd, const Eina_File *file, const char *group)
+{
+ Eina_Bool int_ret = EINA_FALSE;
+
+ ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
+
+ int_ret =
+ edje_object_mmap_set(wd->resize_obj, file, group);
+
+ if (int_ret)
+ {
+ sd->file_set = EINA_TRUE;
+ _visuals_refresh(obj, sd);
+ }
+ else
+ ERR("failed to set edje mmap file %p, group '%s': %s",
+ file, group,
+ edje_load_error_str
+ (edje_object_load_error_get(wd->resize_obj)));
+
+ return int_ret;
+}
+
+EOLIAN static void
+_elm_layout_efl_file_mmap_get(Eo *obj, Elm_Layout_Smart_Data *sd EINA_UNUSED, const Eina_File **file, const char **group)
+{
+ ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
+ eo_do((Eo *) wd->resize_obj, efl_file_mmap_get(file, group));
+}
+
EOLIAN static Eina_Bool
_elm_layout_theme_set(Eo *obj, Elm_Layout_Smart_Data *sd, const char *klass, const char *group, const char *style)
{
eo_do((Eo *) obj, efl_file_get(file, group));
}
+EAPI Eina_Bool
+elm_layout_mmap_set(Eo *obj, const Eina_File *file, const char *group)
+{
+ Eina_Bool ret;
+ return eo_do_ret((Eo *) obj, ret, efl_file_mmap_set(file, group));
+}
+
+EAPI void
+elm_layout_mmap_get(Eo *obj, const Eina_File **file, const char **group)
+{
+ eo_do((Eo *) obj, efl_file_mmap_get(file, group));
+}
#include "elm_layout.eo.c"
*/
EAPI void elm_layout_file_get(Eo *obj, const char **file, const char **group);
+/**
+ * Set the mmap file that will be used as layout
+ *
+ * @return (1 = success, 0 = error)
+ *
+ * @ingroup Elm_Layout
+ *
+ * @param[in] file Eina_File (edj) that will be used as layout
+ * @param[in] group The group that the layout belongs in edje file
+ *
+ * @if MOBILE @since_tizen 3.0
+ * @elseif WEARABLE @since_tizen 3.0
+ * @endif
+ */
+EAPI Eina_Bool elm_layout_mmap_set(Eo *obj, const Eina_File *file, const char *group);
+
+/**
+ * Get the loaded mmap file
+ *
+ * @ingroup Elm_Layout
+ *
+ * @param file Eina_File (edj) used as layout
+ * @param group The group that the layout belongs in edje file
+ *
+ * @if MOBILE @since_tizen 3.0
+ * @elseif WEARABLE @since_tizen 3.0
+ * @endif
+ */
+EAPI void elm_layout_mmap_get(Eo *obj, const Eina_File **file, const char **group);
+
#include "elm_layout.eo.legacy.h"