On Fri, 30 Jul 2004 13:26:11 +0200 Moritz Angermann <[EMAIL PROTECTED]>
babbled:

> Hi everyone :)
> 
> Okay tried to get the Edje example from cuddletech and the cookbook working.
> Both use:
>  double edje_w, edje_h;
> 
> the compiler will goof out on this like:
>  test2.c: In function `main':
>  test2.c:40: warning: passing arg 2 of `edje_object_size_min_get' from
> incompatible pointer type
>  test2.c:40: warning: passing arg 3 of `edje_object_size_min_get' from
> incompatible pointer type
> 
> a qick lookup on the edje documentation reveals
> *edje_object_size_min_get* expects Evas_Coord. Wich are [after finding
> out the Online EVAS doc. on e.org is a 404!] typedef'ed to INTs.
> 
> The the correct way I guess would be to use
>  Evas_Coord edje_w, edje_h;
> or 
>  Int edje_w, edje_h;
> respectively.

correct is Evas_Coord. tyhe example using double is incorrect.

> I don't know if this is arch specific. Or has any other special deal.
> But casting an int(=Evas_Coord) to an int when calling
> ecore_evas_resize seems kinda - strange - to me.

Evas_Coord is instead to be a flexible type. it may be int, short, char, float,
double, long, long long. you don't know - its ABI dependent - BUT you should use
Evas_Coord and that way if it changes your code will always work. never RELY on
it being any particular type. you do know it will be a scalar (float or int) of
some sort and will likely be unsigned with a large range. i seriously doubt it
would ever be a char - but it could be a short, int, long, long long, float or
double. possibly other types in the future with more precision.

> I don't know if this was done intentionally or not. As I said this is
> in both: the edje documentation on cuddletech and the cookbook.
> (edje_app or so).
> 
> This is kind of annoying because with that ?bug? you get no window at
> all. With fixing it to
> Evas_Coord. I get a 10x10 or might be slightly huger Image on the
> crossfade.eet - not the best either, hmm?!
> 
> kindest regards,
>  Moritz "neofeed" Angermann
> 
> -- 
> 
> ----------------  contact info  ----------------
> Moritz Angermann        [EMAIL PROTECTED]
>                         [EMAIL PROTECTED]
> Liquid:Mint             www.liquidmint.org
> Mobile                  +49 (0) 160 9197 5880
>                         +49 (0) 160 5930 184 
> Home                    +49 (0) 4322 88 87 20
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by OSTG. Have you noticed the changes on
> Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
> one more big change to announce. We are now OSTG- Open Source Technology
> Group. Come see the changes on the new OSTG site. www.ostg.com
> _______________________________________________
> enlightenment-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
熊耳 - 車君 (数田)                  [EMAIL PROTECTED]
Tokyo, Japan (東京 日本)


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
enlightenment-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to