Re: [e-users] Adapt canvas content when the canvas is resized

2014-05-13 Thread jcazaux
Le Sun, 11 May 2014 01:37:25 +0200, Carsten Haitzler  
 a écrit:

> 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?

Ok. This is what I have already done.

Ok for elm and widgets. For the time being, I only used EFL. I will look  
at the Elementary project.

Best regards

>
>> 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.
 

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] Adapt canvas content when the canvas is resized

2014-05-10 Thread The Rasterman
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  
>  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


Re: [e-users] Adapt canvas content when the canvas is resized

2014-05-05 Thread jcazaux
Hello,

Thank you for your response.

However with the callback way, content of the canvas will not be resized  
automatically.

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) ?

Thank you,
Best regards

Le Fri, 02 May 2014 15:41:58 +0200, Carsten Haitzler  
 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);
>
>

--
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


Re: [e-users] Adapt canvas content when the canvas is resized

2014-05-02 Thread The Rasterman
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


--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


[e-users] Adapt canvas content when the canvas is resized

2014-04-29 Thread jcazaux
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,

Best regards,
 
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users