Evas_Object *box;
Eina_Bool horizontal:1;
Eina_Bool homogeneous:1;
+ Eina_Bool extended:1;
};
static const char *widtype = NULL;
{
Widget_Data *wd = data;
if (!wd) return;
- _els_box_layout(o, priv, wd->horizontal, wd->homogeneous);
+ _els_box_layout_ex(o, priv, wd->horizontal, wd->homogeneous, wd->extended);
}
}
/**
+ * Set the extended mode
+ *
+ * By default box object arrange their contents vertically from top to bottom.
+ * By calling this and providing @p orizontal as true, the box will become
+ * extended arranging contents left to right.
+ *
+ * @param obj The box object
+ * @param extended The extended flag (1 = extended, 0 = normal)
+ *
+ * @ingroup Box
+ */
+EAPI void
+elm_box_extended_set(Evas_Object *obj, Eina_Bool extended)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype);
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return;
+ wd->extended = !!extended;
+ if (extended)
+ wd->horizontal = 1; /* Do NOT support vertical extended mode */
+ evas_object_smart_calculate(wd->box);
+
+}
+
+
+/**
* Set the horizontal orientation
*
* By default box object arrange their contents vertically from top to bottom.