diff --git a/legacy/edje/src/lib/Edje.h b/legacy/edje/src/lib/Edje.h index 327bb62742..d0e8a31bce 100644 --- a/legacy/edje/src/lib/Edje.h +++ b/legacy/edje/src/lib/Edje.h @@ -1794,40 +1794,6 @@ EAPI Eina_List *edje_text_class_list (void); */ EAPI Eina_Bool edje_object_text_class_set (Evas_Object *obj, const char *text_class, const char *font, Evas_Font_Size size); -/** - * @} - */ - -/** - * @addtogroup Edje_Object_Part - * - * @{ - */ - -/** - * @brief Registers a custom layout to be used in edje boxes. - * - * @param name The name of the layout - * @param func The function defining the layout - * @param layout_data_get This function gets the custom data pointer - * for func - * @param layout_data_free Passed to func to free its private data - * when needed - * @param free_data Frees data - * @param data Private pointer passed to layout_data_get - * - * This function registers custom layouts that can be referred from - * themes by the registered name. The Evas_Object_Box_Layout - * functions receive two pointers for internal use, one being private - * data, and the other the function to free that data when it's not - * longer needed. From Edje, this private data will be retrieved by - * calling layout_data_get, and layout_data_free will be the free - * function passed to func. layout_data_get will be called with data - * as its parameter, and this one will be freed by free_data whenever - * the layout is unregistered from Edje. - */ -EAPI void edje_box_layout_register (const char *name, Evas_Object_Box_Layout func, void *(*layout_data_get)(void *), void (*layout_data_free)(void *), void (*free_data)(void *), void *data); - /** * @} */ @@ -3953,6 +3919,30 @@ EAPI Eina_Bool edje_object_part_drag_page (Evas_Object *obj, const c * @{ */ +/** + * @brief Registers a custom layout to be used in edje boxes. + * + * @param name The name of the layout + * @param func The function defining the layout + * @param layout_data_get This function gets the custom data pointer + * for func + * @param layout_data_free Passed to func to free its private data + * when needed + * @param free_data Frees data + * @param data Private pointer passed to layout_data_get + * + * This function registers custom layouts that can be referred from + * themes by the registered name. The Evas_Object_Box_Layout + * functions receive two pointers for internal use, one being private + * data, and the other the function to free that data when it's not + * longer needed. From Edje, this private data will be retrieved by + * calling layout_data_get, and layout_data_free will be the free + * function passed to func. layout_data_get will be called with data + * as its parameter, and this one will be freed by free_data whenever + * the layout is unregistered from Edje. + */ +EAPI void edje_box_layout_register (const char *name, Evas_Object_Box_Layout func, void *(*layout_data_get)(void *), void (*layout_data_free)(void *), void (*free_data)(void *), void *data); + /** * @brief Appends an object to the box. *