On Mon, Feb 2, 2009 at 2:28 PM, Viktor Kojouharov <[email protected]> wrote: > On Mon, 2009-02-02 at 14:03 -0200, Gustavo Sverzut Barbieri wrote: >> On Mon, Feb 2, 2009 at 12:35 PM, Viktor Kojouharov >> <[email protected]> wrote: >> > Hi, >> > >> > There are a few things about the edje_box (and maybe edje_table as well) >> > that really looks like they are broken or unfinished. >> > >> > To start off, why does edje_box totally ignore min and max sizes of the >> > items? I currently have to calc the min size of an item and then set >> > that size using evas_object_resize. Why is that necessary? This isn't >> > evas_box, so edje_box should be perfectly capable to limiting the min >> > and max size of each item. >> >> This is because Edje is pending proper use of size_hints. When that's >> fixed, not only edje_box will work, but evas_box, elementary, etc... > These size hints have been mentioned before, at least for evas_box. What > exactly do they do? Are they some flags that smart objects _should_ take > into account? Possibly a replacement for edje's min|max size functions? > What currently uses these hints correctly?
You got it, they're flags that should be used as hint by smart objects. We designed that while developing box/table since they would be required in both and can replace min/max in Edje. Actually Edje already uses it in swallow with edje_extern_object_*_set(), but it should start to define these and also listen to their changes. When everything uses the same set of flags, it would be trivial to exchange objects between containers in Elementary, Etk, Ewl... -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: [email protected] Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
