efl/src/lib/evas/canvas/efl_canvas_group_eo.legacy.h

105 lines
3.0 KiB
C

#ifndef _EFL_CANVAS_GROUP_EO_LEGACY_H_
#define _EFL_CANVAS_GROUP_EO_LEGACY_H_
#ifndef _EFL_CANVAS_GROUP_EO_CLASS_TYPE
#define _EFL_CANVAS_GROUP_EO_CLASS_TYPE
typedef Eo Efl_Canvas_Group;
#endif
#ifndef _EFL_CANVAS_GROUP_EO_TYPES
#define _EFL_CANVAS_GROUP_EO_TYPES
#endif
/**
* @brief Indicates that the group's layout needs to be recalculated.
*
* If this flag is set, then the @ref evas_object_smart_calculate function will
* be called, during rendering phase of the canvas. After that, this flag will
* be automatically unset.
*
* @note setting this flag alone will not make the canvas' whole scene dirty.
* Using evas_render() will have no effect. To force this, use
* @ref evas_object_smart_changed, which will also call this function
* automatically, with the parameter set to @c true.
*
* See also @ref evas_object_smart_calculate.
*
* @param[in] obj The object.
* @param[in] value @c true if the group layout needs to be recalculated,
* @c false otherwise
*
* @ingroup Evas_Object_Smart_Group
*/
EVAS_API void evas_object_smart_need_recalculate_set(Efl_Canvas_Group *obj, Eina_Bool value);
/**
* @brief Indicates that the group's layout needs to be recalculated.
*
* If this flag is set, then the @ref evas_object_smart_calculate function will
* be called, during rendering phase of the canvas. After that, this flag will
* be automatically unset.
*
* @note setting this flag alone will not make the canvas' whole scene dirty.
* Using evas_render() will have no effect. To force this, use
* @ref evas_object_smart_changed, which will also call this function
* automatically, with the parameter set to @c true.
*
* See also @ref evas_object_smart_calculate.
*
* @param[in] obj The object.
*
* @return @c true if the group layout needs to be recalculated, @c false
* otherwise
*
* @ingroup Evas_Object_Smart_Group
*/
EVAS_API Eina_Bool evas_object_smart_need_recalculate_get(const Efl_Canvas_Group *obj);
/**
* @brief Marks the object as dirty.
*
* This also forcefully marks the given object as needing recalculation. As an
* effect, on the next rendering cycle its @ref evas_object_smart_calculate
* method will be called.
* @param[in] obj The object.
*
* @ingroup Evas_Object_Smart_Group
*/
EVAS_API void evas_object_smart_changed(Efl_Canvas_Group *obj);
/**
* @brief Triggers an immediate recalculation of this object's geometry.
*
* This will also reset the flag @ref evas_object_smart_need_recalculate_get.
* @param[in] obj The object.
*
* @ingroup Evas_Object_Smart_Group
*/
EVAS_API void evas_object_smart_calculate(Efl_Canvas_Group *obj);
/**
* @brief Returns an iterator over the children of this object, which are
* canvas objects.
*
* This returns the list of "smart" children. This might be different from both
* the @ref Efl_Object children list as well as the @ref Efl_Container content
* list.
*
* @param[in] obj The object.
*
* @return Iterator to object children
*
* @ingroup Evas_Object_Smart_Group
*/
EVAS_API Eina_Iterator *evas_object_smart_iterator_new(const Efl_Canvas_Group *obj);
#endif