On Mon, 05 May 2014 09:06:34 +0200 jcaz...@sirlan.com said: > Hello, > > Thank you for your response. > > However with the callback way, content of the canvas will not be resized > automatically.
that's your job in the callback - to resize it accordingly. elm provides widgets and infra that does this for you (how do you thing resizing of a window magically adjust content properly?) > When the canvas is resized (according to the TV resolution), I would like > that its content be resized automatically. > > Is there a way in Evas/Evas-Core to intercept the content (pixels) of a > canvas before it's send to the framebuffer (in order to apply an alpha to > it) ? no. alpha is added based on content if you enable alpha and the engine supports an alpha destination (gl-x11, software-x11, wayland_egl and wayland_shm all support shm destinations). ie withe these, where there is no content, it is transparent. > Thank you, > Best regards > > Le Fri, 02 May 2014 15:41:58 +0200, Carsten Haitzler > <ras...@rasterman.com> a écrit: > > > On Tue, 29 Apr 2014 09:56:00 +0200 jcaz...@sirlan.com said: > > > >> Hello, > >> > >> Is there a way in Evas/Ecore to automatically adapt the canvas content > >> (size of each Evas object, font size, ...) when the canvas is resized ? > >> Does this feature is supported in Evas/Ecore ? How to achieve that? > >> > >> Typical use case: the user change the resolution of the screen. > >> > >> Thank you for your help, > > > > if using ecore_evas - there is a resize callback on the ecore_evas./ if > > using > > elementary - see the docs for elm_win - there is a resize event callback > > on the > > window object. > > > > ecore_evas: > > > > ecore_evas_callback_resize_set(ee, callback_resize); > > > > elm: > > > > evas_object_event_callback_add(win, EVAS_CALLBACK_RESIZE, > > callback_resize, > > NULL); > > > > > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users