----- Original Message ----- > From: "Carsten Haitzler" <ras...@rasterman.com> > To: "Enlightenment developer list" <enlightenment-de...@lists.sourceforge.net> > Cc: "enlightenment-users" <enlightenment-users@lists.sourceforge.net> > Sent: Thursday, July 7, 2016 10:34:47 PM > Subject: Re: [e-users] [E-devel] Elementary application / render to memory > buffer
> On Tue, 5 Jul 2016 10:20:24 -0700 Cedric BAIL <cedric.b...@free.fr> said: (snip) >> > This program would eventually run on a Linux system without a display, so >> > there is no framebuffer or graphics hardware available. For now I would run >> > it on a desktop Ubuntu 15.10 system and send the buffer contents via IPC to >> > a separate program for viewing the contents. >> >> Not to sure of your goal, but I think that Ecore_Evas extn backend >> does exactly what you are describing. You can also look at elementary >> ELM_WIN_SOCKET_IMAGE that does use Ecore_Evas extn infrastructure to >> do this. > > what cedric said - this is already done with shm memory and local unix socket > ipc as above. you can start an elm app with a buffer canvas. it's perfectly > possible. there are evas events fro pre/post render too... there are various > examples in git - rage for example creates an elm win and sets the engine to > buffer before to have an offscreen in-m,emory elm window, inside this window > it > can do whatever it likes. it uses an inline window that exposes an image > object > that can get the pixel data. this inline window can be whatever content/window > you like. you technically can get the ecore_evas handle from an elm win but > this is not portable or guaranteed to keep working in future. we dont have > callbacks/events on elm windows when they render atm. BUT if you > evas_object_evas_get() there are evas canvas events for pre/post render, flush > etc. etc.and you can use those on the inline window. :) you can get pixel data > ptr from it.... :) Thank you for the suggestion to look in the Rage program. Good progress so far: (1) able to access raw pixels of rendered Elementary GUI frames (2) able to manually feed keyboard input events into EFL / Elementary The problem now is that the Elementary GUI behaves strangely. - no animations - no focus rectangle appears when I select list items with arrow keys - the genlist does not autoscroll when the selected item is out of view I want to preserve the Elementary GUI look and feel, with animations, under this setup. To better illustrate, I've set up a small demo project: https://github.com/villains/elmtesting Sorry about the mix of C and C++... I'm trying to get something working very quickly, using some existing code from another project. Thank you & best regards, Markus > > -- > ------------- Codito, ergo sum - "I code, therefore I am" -------------- > The Rasterman (Carsten Haitzler) ras...@rasterman.com > > > ------------------------------------------------------------------------------ > Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San > Francisco, CA to explore cutting-edge tech and listen to tech luminaries > present their vision of the future. This family event has something for > everyone, including kids. Get more information and register today. > http://sdm.link/attshape > _______________________________________________ > enlightenment-users mailing list > enlightenment-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-users ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users