From: Ed P. <epr...@co...> - 2007-01-22 05:11:44
|
On Sun, 2007-01-14 at 20:03 -0600, Ed Presutti wrote: > How do you correctly get the window position and size when using > Ecore_Evas? > > Here's a quick code snippet to demonstrate what i'm trying to do. I've > correctly gotten the size of the object, but can't seem to get the > window position right. This could just be a coding error on my part. :-) > After further research, it appears that the width/height part always break when using XRender, but work when using the Software engine. The X/Y part always breaks on either engine. Any ideas here? > ----------------------------------------------------- > Ecore_Evas * ee; > Evas * evas; > Evas_Object * widget; > Evas_Coord x1, y1, w1, h1; > Evas_Coord x2, y2, w2, h2; > > -------- Set up and display here -------- > > ecore_evas_geometry_get(ee, &x1, &y1, &w1, &h1); > /* Returns x1 = 0, y1 = 0, w1 = 1, h1 = 1 */ > > evas_object_geometry_get(widget, &x2, &y2, &w2, &h2); > /* Returns x2 = 0, y2 = 0, w2 = 280, h2 = 375 */ > > ----------------------------------------------------- > > The ecore_evas_geometry_get() used to work for me and return the size > and position of the window. It doesn't seem to do that any more. That's > why I tried the evas_object_geometry_get() call. > > I'm running CVS on Gentoo, built yesterday. > > Thanks in advance, > Ed Presutti (ekrunch on freenode) > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > enlightenment-devel mailing list > enl...@li... > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel |