Adds child to the box indicated by part, in the position given by
pos.
- See also @.part_box_append(), @.part_box_prepend() and @.part_box_insert_before()]]
+ See also @.part_box_append(), @.part_box_prepend(),
+ @.part_box_insert_before() and @.part_box_insert_after()]]
return: bool; [[$true: Successfully added.
$false: An error occurred.]]
Prepends child to the box indicated by part.
- See also @.part_box_append(), @.part_box_insert_before() and @.part_box_insert_at()]]
+ See also @.part_box_append(), @.part_box_insert_before(),
+ @.part_box_insert_after and @.part_box_insert_at()]]
return: bool; [[$true: Successfully added.
$false: An error occurred.]]
Inserts child in the box given by part, in the position marked by
reference.
- See also @.part_box_append(), @.part_box_prepend() and @.part_box_insert_at()]]
+ See also @.part_box_append(), @.part_box_prepend(),
+ @.part_box_insert_after() and @.part_box_insert_at()]]
+
+ return: bool; [[$true: Successfully added.
+ $false: An error occurred.]]
+ params {
+ @in part: const(char)*; [[The part name]]
+ @in child: Evas.Object *; [[The object to insert]]
+ @in reference: const(Evas.Object)*; [[The object to be used as reference]]
+ }
+ }
+ part_box_insert_after {
+ [[Adds an object to the box.
+
+ Inserts child in the box given by part, in the position marked by
+ reference.
+
+ See also @.part_box_append(), @.part_box_prepend(),
+ @.part_box_insert_before() and @.part_box_insert_at()]]
return: bool; [[$true: Successfully added.
$false: An error occurred.]]
Appends child to the box indicated by part.
- See also @.part_box_prepend(), @.part_box_insert_before()
- and @.part_box_insert_at()]]
+ See also @.part_box_prepend(), @.part_box_insert_before(),
+ @.part_box_insert_after() and @.part_box_insert_at()]]
return: bool; [[$true: Successfully added.
$false: An error occurred.]]
Eina_Bool _edje_real_part_box_append(Edje *ed, Edje_Real_Part *rp, Evas_Object *child_obj);
Eina_Bool _edje_real_part_box_prepend(Edje *ed, Edje_Real_Part *rp, Evas_Object *child_obj);
Eina_Bool _edje_real_part_box_insert_before(Edje *ed, Edje_Real_Part *rp, Evas_Object *child_obj, const Evas_Object *ref);
+Eina_Bool _edje_real_part_box_insert_after(Edje *ed, Edje_Real_Part *rp, Evas_Object *child_obj, const Evas_Object *ref);
Eina_Bool _edje_real_part_box_insert_at(Edje *ed, Edje_Real_Part *rp, Evas_Object *child_obj, unsigned int pos);
Evas_Object *_edje_real_part_box_remove(Edje *ed, Edje_Real_Part *rp, Evas_Object *child_obj);
Evas_Object *_edje_real_part_box_remove_at(Edje *ed, Edje_Real_Part *rp, unsigned int pos);
}
EOLIAN Eina_Bool
+_edje_object_part_box_insert_after(Eo *obj EINA_UNUSED, Edje *ed, const char *part, Evas_Object *child, const Evas_Object *reference)
+{
+ Eina_Bool ret;
+ Edje_Real_Part *rp;
+ ret = EINA_FALSE;
+
+ if ((!ed) || (!part)) return ret;
+
+ rp = _edje_real_part_recursive_get(&ed, part);
+ if (!rp) return ret;
+ if (rp->part->type != EDJE_PART_TYPE_BOX) return ret;
+
+ if (_edje_real_part_box_insert_after(ed, rp, child, reference))
+ {
+ Edje_User_Defined *eud;
+
+ eud = _edje_user_definition_new(EDJE_USER_BOX_PACK, part, ed);
+ if (!eud) return ret;
+ eud->u.box.child = child;
+
+ evas_object_event_callback_add(child, EVAS_CALLBACK_DEL, _edje_user_def_del_cb, eud);
+ ret = EINA_TRUE;
+ }
+
+ return ret;
+}
+
+EOLIAN Eina_Bool
_edje_object_part_box_insert_at(Eo *obj EINA_UNUSED, Edje *ed, const char *part, Evas_Object *child, unsigned int pos)
{
Eina_Bool ret;
}
Eina_Bool
+_edje_real_part_box_insert_after(Edje *ed, Edje_Real_Part *rp, Evas_Object *child_obj, const Evas_Object *ref)
+{
+ Evas_Object_Box_Option *opt;
+
+ opt = evas_object_box_insert_after(rp->object, child_obj, ref);
+ if (!opt) return EINA_FALSE;
+
+ if (!_edje_box_layout_add_child(rp, child_obj))
+ {
+ evas_object_box_remove(rp->object, child_obj);
+ return EINA_FALSE;
+ }
+
+ _edje_child_add(ed, rp, child_obj);
+
+ return EINA_TRUE;
+}
+
+Eina_Bool
_edje_real_part_box_insert_at(Edje *ed, Edje_Real_Part *rp, Evas_Object *child_obj, unsigned int pos)
{
Evas_Object_Box_Option *opt;