Re: [E-devel] edje gradient fill

2006-08-21 Thread [EMAIL PROTECTED]

Brian writes:

 Since this only makes sense for linear grads, i'll probably
 just add:
 
 gradient.rel1.relative
 gradient.rel1.offset
 gradient.rel2.relative
 gradient.rel2.offset
 
 these will only be used by linear grads, overriding fill.angle,
 fill.position.* and fill.size.* if present.
 
Here's another possible way that may be simpler:

Give the angle another parameter besides its value, namely
the line rel to which it's to be taken -- eg. let's write
angle: 30.5  rel_x;
to mean the angle is 30.5 degrees rel to the x axis - this is the
default and would be the same as
angle: 30.5;

Then besides 'rel_x', you can have 'rel_y' to mean rel to the
y-axis, so that
angle: 30.5  rel_y;
would be the same as
angle: 120.5  rel_x;

Now, also have a 'rel_xy', meaning rel to the diagonal, ie.
angle: 30.5  rel_xy;
This would then be the same as
angle: (30.5 + atan2(br_y, br_x))  rel_x;
where br_x, br_y here stand for the x,y coords of the bottom-right
point.

 (you can't use these semantics for images without an additional
 width perpendicular to orientation line parameter, which wouldn't
 really be useful in most cases. we'd still need to figure out
 some way of specifying width of image fill = height of part)

Sure you could.. there are natural candidates for default
values you can use - as to usefull.. well, that's another matter :)

 too late. i already added rel1/rel2 support to edje.
 my reasoning:
 A) linear gradient are by far the most common.
 B) origin/size filling is largely useless for linear grads (since
 its applied before the angle)
 
Not always.. but see above if it may be simpler as a means
of specifying what you want.. or not :)

 Anway, the grad wallpaper dialog works much better now.

What's a grad wallpaper dialog?

jose.



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] edje gradient fill

2006-08-21 Thread [EMAIL PROTECTED]

 B) origin/size filling is largely useless for linear grads
 (since its applied before the angle)

I should add that it's absolutely necessary for the 
resizing to be done before the rotation, or the whole thing
becomes an inconsistent mess.
The pdf spec for example makes this very clear and
explicit.

The thing that may not be obvious here is eg. the way
that grads are used in the svg spec and other such path based
object specs.
You see, there the only objects are 'paths' and they
get filled or stroked with textures like images and grads..
In evas/edje we have grads and images as objects in
their own right, and though we can take them to be as rects
filled with grads or images, the missing parts that would give
equivalence with things like the svg spec is that evas objs
themselves have angles and that things like rects can be filled
and/or stroked with an image or grad as a texture.

The angle of an image or grad obj is separate from their
fill-angle. I can add this to grads, rects, lines, poly objs to
evas tomorrow.. but not to image objs. That requires rewriting
a large part of evas' internals.

Once objs can have angles, and we add the notion of path
objs, like rects, being filled and/or stroked with a texture obj
(an image or grad obj), then you would have the ability to 'rotate
after the fill' as you want - but in the same vein as in the vgx
specs, namely you are filling a *rect* with a texture which is at
some angle.

   jose.



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] edje gradient fill

2006-08-21 Thread [EMAIL PROTECTED]

   Once objs can have angles, and we add the notion of path
 objs, like rects, being filled and/or stroked with a texture obj
 (an image or grad obj), then you would have the ability to 'rotate
 after the fill' as you want - but in the same vein as in the vgx
 specs, namely you are filling a *rect* with a texture which is at
 some angle.

Err.. that should say rotate 'before' the fill kind of
thing.
It still wouldn't really do that, it would always resize
to the fill then rotate, but the thing is that you would then
have the ability to specify the rotation angle of one obj rel to
another.. That's really the issue here, that one has these rel
notions of coords but so far only an absolute notion of an angle's
reference axis.
If really desired, one can also add a horz and vert grad
orientation to edje.. which would just mean that you would interpret
the fill size and/or angles rel to x or y axis, and do the required
things internally.. But I think having fill angles take a ref axis
should get you the same capability as what you wanted.

Be careful what you commit to in order to get some specific
thing that you may want now... you may make it very difficult to
obtain the same but more powerful and just as desirable things later.
Things like rects, lines, polys (and, in future, paths) will be able
to specify texture objects for stroking and/or filling.

   jose.



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] cleanup of evas configure.in

2006-08-21 Thread Vincent Torri


Hey,

I've done some cleanup of evas' configure.in. Mainly:

* use of AC_HELP_STRING to display help
* newer pkg.m4
* when a lib is checked with PKG_CONFIG_MODULES and is not found, then the
  result is not displayed and the next line is displayed instead of that
  result. I've fixed that (fontconfig, svg, xcb, etc...)
* cleanup of svg check
* use of AC_PATH_GENERIC for eet and edb

regards

Vincent

configure.in.diff.gz
Description: Binary data
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Resizing Edje Parts - on the road to entrance preview

2006-08-21 Thread Essien Ita Essien
Hiya Everybody,

I've been on a slow road to building a real preview object for 
entrance_edit_gui. The idea is to always show the full entrance in a 
small preview window, complete with all the edje effects that the theme 
or background may have to offer. Eventually too, complete with the 
greetings, etc.  Right now though, all i just want is to display 
(obviously :) ).

Raster and Codewarrior asked me to look thru e_livethumb subsystem. And 
I discovered i knew nothing of Esmarts and coding that the evas layer, 
so I went to fix that and I'm better in that regard now. Here I'm 
attaching  minientrance.tar.gz (NOTE: THE ENTRANCE THEME FILE I USED IS 
HARDCODED, PLEASE MODIFY B4 YOU COMPILE) which is a complete esmart 
object for entrance that i'm playing with to understand the problem 
(apparently, there's an incomplete and not used entrance_smart object in 
entrance right now, but its well... not quite in use, so its rusty).


The main problem I have with this smart object and infact, in general is 
that when I load the edje, the main login box, refuses to resize below 
its min geometry. I do not know if its possible to *force* an edje part 
to resize below its min width or so.  If you compile minientrance, and 
resize the window, you'll notice the box just refuses to resize with the 
rest of the ui.

What I was aiming at doing is to instantiate the entrance_smart obj, and 
give it a size say 100x50, and have it render itself properly as a 
preview. When I then change the theme or background in the gui config 
tool, I'll just make the esmart object refresh itself. Basically, i 
guess once the smart object works well, its all ok. the next issue will 
be loading it in an etk/ewl canvas or something. But that's another story :)

Am I on the right track? Someone, smack me on the head with a 
solution/idea :)

cheers,
Essien


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Resizing Edje Parts - on the road to entrance preview

2006-08-21 Thread The Rasterman
On Mon, 21 Aug 2006 13:55:45 +0100 Essien Ita Essien [EMAIL PROTECTED]
babbled:

no attachment :)

but - note the livethumb uses a BUFFER canvas - it sets the resolution of the
BUFFER canvas to be higher than the output. make this resolution high enough
(eg 800x600) and evas will scale that 800x600 buffer canvas down to the size
of the output of the preview. that is how the livethumb works.

 Hiya Everybody,
 
 I've been on a slow road to building a real preview object for 
 entrance_edit_gui. The idea is to always show the full entrance in a 
 small preview window, complete with all the edje effects that the theme 
 or background may have to offer. Eventually too, complete with the 
 greetings, etc.  Right now though, all i just want is to display 
 (obviously :) ).
 
 Raster and Codewarrior asked me to look thru e_livethumb subsystem. And 
 I discovered i knew nothing of Esmarts and coding that the evas layer, 
 so I went to fix that and I'm better in that regard now. Here I'm 
 attaching  minientrance.tar.gz (NOTE: THE ENTRANCE THEME FILE I USED IS 
 HARDCODED, PLEASE MODIFY B4 YOU COMPILE) which is a complete esmart 
 object for entrance that i'm playing with to understand the problem 
 (apparently, there's an incomplete and not used entrance_smart object in 
 entrance right now, but its well... not quite in use, so its rusty).
 
 
 The main problem I have with this smart object and infact, in general is 
 that when I load the edje, the main login box, refuses to resize below 
 its min geometry. I do not know if its possible to *force* an edje part 
 to resize below its min width or so.  If you compile minientrance, and 
 resize the window, you'll notice the box just refuses to resize with the 
 rest of the ui.
 
 What I was aiming at doing is to instantiate the entrance_smart obj, and 
 give it a size say 100x50, and have it render itself properly as a 
 preview. When I then change the theme or background in the gui config 
 tool, I'll just make the esmart object refresh itself. Basically, i 
 guess once the smart object works well, its all ok. the next issue will 
 be loading it in an etk/ewl canvas or something. But that's another story :)
 
 Am I on the right track? Someone, smack me on the head with a 
 solution/idea :)
 
 cheers,
 Essien
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


-- 
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler)[EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Resizing Edje Parts - on the road to entrance preview

2006-08-21 Thread Essien Ita Essien
Carsten Haitzler (The Rasterman) wrote:
 On Mon, 21 Aug 2006 13:55:45 +0100 Essien Ita Essien [EMAIL PROTECTED]
 babbled:

 no attachment :)

 but - note the livethumb uses a BUFFER canvas - it sets the resolution of the
 BUFFER canvas to be higher than the output. make this resolution high enough
 (eg 800x600) and evas will scale that 800x600 buffer canvas down to the size
 of the output of the preview. that is how the livethumb works.
   
a that was what CodeWarrior was talking about when he said I
could use a buffer... neat. ok.. i'm going back to grok e_livethumb with
an eye to steal this new information. :)

thnx.
   
 Hiya Everybody,

 I've been on a slow road to building a real preview object for 
 entrance_edit_gui. The idea is to always show the full entrance in a 
 small preview window, complete with all the edje effects that the theme 
 or background may have to offer. Eventually too, complete with the 
 greetings, etc.  Right now though, all i just want is to display 
 (obviously :) ).

 Raster and Codewarrior asked me to look thru e_livethumb subsystem. And 
 I discovered i knew nothing of Esmarts and coding that the evas layer, 
 so I went to fix that and I'm better in that regard now. Here I'm 
 attaching  minientrance.tar.gz (NOTE: THE ENTRANCE THEME FILE I USED IS 
 HARDCODED, PLEASE MODIFY B4 YOU COMPILE) which is a complete esmart 
 object for entrance that i'm playing with to understand the problem 
 (apparently, there's an incomplete and not used entrance_smart object in 
 entrance right now, but its well... not quite in use, so its rusty).


 The main problem I have with this smart object and infact, in general is 
 that when I load the edje, the main login box, refuses to resize below 
 its min geometry. I do not know if its possible to *force* an edje part 
 to resize below its min width or so.  If you compile minientrance, and 
 resize the window, you'll notice the box just refuses to resize with the 
 rest of the ui.

 What I was aiming at doing is to instantiate the entrance_smart obj, and 
 give it a size say 100x50, and have it render itself properly as a 
 preview. When I then change the theme or background in the gui config 
 tool, I'll just make the esmart object refresh itself. Basically, i 
 guess once the smart object works well, its all ok. the next issue will 
 be loading it in an etk/ewl canvas or something. But that's another story :)

 Am I on the right track? Someone, smack me on the head with a 
 solution/idea :)

 cheers,
 Essien


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

 


   


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Resizing Edje Parts - on the road to entrance preview

2006-08-21 Thread Simon TRENY
On Mon, 21 Aug 2006 14:36:05 +0100,
Essien Ita Essien [EMAIL PROTECTED] wrote :

 Carsten Haitzler (The Rasterman) wrote:
  On Mon, 21 Aug 2006 13:55:45 +0100 Essien Ita Essien
  [EMAIL PROTECTED] babbled:
 
  no attachment :)
 
  but - note the livethumb uses a BUFFER canvas - it sets the
  resolution of the BUFFER canvas to be higher than the output. make
  this resolution high enough (eg 800x600) and evas will scale that
  800x600 buffer canvas down to the size of the output of the
  preview. that is how the livethumb works. 
 a that was what CodeWarrior was talking about when he said I
 could use a buffer... neat. ok.. i'm going back to grok e_livethumb
 with an eye to steal this new information. :)

If you use the buffer engine to do that, you won't be able interact
with the mouse (I think you said you wanted that), or you'll have to
feed the events yourself (a bit painful).

Simon

 
 thnx.

  Hiya Everybody,
 
  I've been on a slow road to building a real preview object for 
  entrance_edit_gui. The idea is to always show the full entrance in
  a small preview window, complete with all the edje effects that
  the theme or background may have to offer. Eventually too,
  complete with the greetings, etc.  Right now though, all i just
  want is to display (obviously :) ).
 
  Raster and Codewarrior asked me to look thru e_livethumb
  subsystem. And I discovered i knew nothing of Esmarts and coding
  that the evas layer, so I went to fix that and I'm better in that
  regard now. Here I'm attaching  minientrance.tar.gz (NOTE: THE
  ENTRANCE THEME FILE I USED IS HARDCODED, PLEASE MODIFY B4 YOU
  COMPILE) which is a complete esmart object for entrance that i'm
  playing with to understand the problem (apparently, there's an
  incomplete and not used entrance_smart object in entrance right
  now, but its well... not quite in use, so its rusty).
 
 
  The main problem I have with this smart object and infact, in
  general is that when I load the edje, the main login box, refuses
  to resize below its min geometry. I do not know if its possible to
  *force* an edje part to resize below its min width or so.  If you
  compile minientrance, and resize the window, you'll notice the box
  just refuses to resize with the rest of the ui.
 
  What I was aiming at doing is to instantiate the entrance_smart
  obj, and give it a size say 100x50, and have it render itself
  properly as a preview. When I then change the theme or background
  in the gui config tool, I'll just make the esmart object refresh
  itself. Basically, i guess once the smart object works well, its
  all ok. the next issue will be loading it in an etk/ewl canvas or
  something. But that's another story :)
 
  Am I on the right track? Someone, smack me on the head with a 
  solution/idea :)
 
  cheers,
  Essien
 
 
  -
  Using Tomcat but need to do more? Need to support web services,
  security? Get stuff done quickly with pre-integrated technology to
  make your job easier Download IBM WebSphere Application Server
  v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  enlightenment-devel mailing list
  enlightenment-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 
  
 
 

 
 
 -
 Using Tomcat but need to do more? Need to support web services,
 security? Get stuff done quickly with pre-integrated technology to
 make your job easier Download IBM WebSphere Application Server
 v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ enlightenment-devel
 mailing list enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Resizing Edje Parts - on the road to entrance preview

2006-08-21 Thread The Rasterman
On Mon, 21 Aug 2006 16:11:52 +0200 Simon TRENY [EMAIL PROTECTED] babbled:

 On Mon, 21 Aug 2006 14:36:05 +0100,
 Essien Ita Essien [EMAIL PROTECTED] wrote :
 
  Carsten Haitzler (The Rasterman) wrote:
   On Mon, 21 Aug 2006 13:55:45 +0100 Essien Ita Essien
   [EMAIL PROTECTED] babbled:
  
   no attachment :)
  
   but - note the livethumb uses a BUFFER canvas - it sets the
   resolution of the BUFFER canvas to be higher than the output. make
   this resolution high enough (eg 800x600) and evas will scale that
   800x600 buffer canvas down to the size of the output of the
   preview. that is how the livethumb works. 
  a that was what CodeWarrior was talking about when he said I
  could use a buffer... neat. ok.. i'm going back to grok e_livethumb
  with an eye to steal this new information. :)
 
 If you use the buffer engine to do that, you won't be able interact
 with the mouse (I think you said you wanted that), or you'll have to
 feed the events yourself (a bit painful).

ecore_evas provides a buffer canvas wrapper that returns an evas image object
and does all the event feeding for you :)

 Simon
 
  
  thnx.
 
   Hiya Everybody,
  
   I've been on a slow road to building a real preview object for 
   entrance_edit_gui. The idea is to always show the full entrance in
   a small preview window, complete with all the edje effects that
   the theme or background may have to offer. Eventually too,
   complete with the greetings, etc.  Right now though, all i just
   want is to display (obviously :) ).
  
   Raster and Codewarrior asked me to look thru e_livethumb
   subsystem. And I discovered i knew nothing of Esmarts and coding
   that the evas layer, so I went to fix that and I'm better in that
   regard now. Here I'm attaching  minientrance.tar.gz (NOTE: THE
   ENTRANCE THEME FILE I USED IS HARDCODED, PLEASE MODIFY B4 YOU
   COMPILE) which is a complete esmart object for entrance that i'm
   playing with to understand the problem (apparently, there's an
   incomplete and not used entrance_smart object in entrance right
   now, but its well... not quite in use, so its rusty).
  
  
   The main problem I have with this smart object and infact, in
   general is that when I load the edje, the main login box, refuses
   to resize below its min geometry. I do not know if its possible to
   *force* an edje part to resize below its min width or so.  If you
   compile minientrance, and resize the window, you'll notice the box
   just refuses to resize with the rest of the ui.
  
   What I was aiming at doing is to instantiate the entrance_smart
   obj, and give it a size say 100x50, and have it render itself
   properly as a preview. When I then change the theme or background
   in the gui config tool, I'll just make the esmart object refresh
   itself. Basically, i guess once the smart object works well, its
   all ok. the next issue will be loading it in an etk/ewl canvas or
   something. But that's another story :)
  
   Am I on the right track? Someone, smack me on the head with a 
   solution/idea :)
  
   cheers,
   Essien
  
  
   -
   Using Tomcat but need to do more? Need to support web services,
   security? Get stuff done quickly with pre-integrated technology to
   make your job easier Download IBM WebSphere Application Server
   v.1.0.1 based on Apache Geronimo
   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   enlightenment-devel mailing list
   enlightenment-devel@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
  
   
  
  
 
  
  
  -
  Using Tomcat but need to do more? Need to support web services,
  security? Get stuff done quickly with pre-integrated technology to
  make your job easier Download IBM WebSphere Application Server
  v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___ enlightenment-devel
  mailing list enlightenment-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
  
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


-- 
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler)[EMAIL PROTECTED]

Re: [E-devel] edje gradient fill

2006-08-21 Thread brian . mattern
On Mon, Aug 21, 2006 at 06:04:51AM +, [EMAIL PROTECTED] wrote:
 
   Brian writes:
 
  Since this only makes sense for linear grads, i'll probably
  just add:
  
  gradient.rel1.relative
  gradient.rel1.offset
  gradient.rel2.relative
  gradient.rel2.offset
  
  these will only be used by linear grads, overriding fill.angle,
  fill.position.* and fill.size.* if present.
  
   Here's another possible way that may be simpler:
 
   Give the angle another parameter besides its value, namely
 the line rel to which it's to be taken -- eg. let's write
 angle: 30.5  rel_x;
 to mean the angle is 30.5 degrees rel to the x axis - this is the
 default and would be the same as
 angle: 30.5;
 
   Then besides 'rel_x', you can have 'rel_y' to mean rel to the
 y-axis, so that
 angle: 30.5  rel_y;
 would be the same as
 angle: 120.5  rel_x;
 
   Now, also have a 'rel_xy', meaning rel to the diagonal, ie.
 angle: 30.5  rel_xy;
   This would then be the same as
 angle: (30.5 + atan2(br_y, br_x))  rel_x;
 where br_x, br_y here stand for the x,y coords of the bottom-right
 point.
 
  (you can't use these semantics for images without an additional
  width perpendicular to orientation line parameter, which wouldn't
  really be useful in most cases. we'd still need to figure out
  some way of specifying width of image fill = height of part)
 
   Sure you could.. there are natural candidates for default
 values you can use - as to usefull.. well, that's another matter :)
 
  too late. i already added rel1/rel2 support to edje.
  my reasoning:
  A) linear gradient are by far the most common.
  B) origin/size filling is largely useless for linear grads (since
  its applied before the angle)
  
   Not always.. but see above if it may be simpler as a means
 of specifying what you want.. or not :)

All this solves one issue (specifying a 'dynamic' angle e.g. corner to
corner) but still doesnt' solve the main issue I had. Namely: Draw a
horizontal linear gradient completely filling its bounding rectangle.

 
  Anway, the grad wallpaper dialog works much better now.
 
   What's a grad wallpaper dialog?

in recent e17, config  wallpaper  gradient

lets you create gradient backgrounds (currently limited to a few set
styles -- a full blown bg editor would have more capabilities)

 
   jose.
 
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Resizing Edje Parts - on the road to entrance preview

2006-08-21 Thread Simon TRENY
On Mon, 21 Aug 2006 23:32:56 +0900,
Carsten Haitzler (The Rasterman) [EMAIL PROTECTED] wrote :

 On Mon, 21 Aug 2006 16:11:52 +0200 Simon TRENY [EMAIL PROTECTED]
 babbled:
 
  On Mon, 21 Aug 2006 14:36:05 +0100,
  Essien Ita Essien [EMAIL PROTECTED] wrote :
  
   Carsten Haitzler (The Rasterman) wrote:
On Mon, 21 Aug 2006 13:55:45 +0100 Essien Ita Essien
[EMAIL PROTECTED] babbled:
   
no attachment :)
   
but - note the livethumb uses a BUFFER canvas - it sets the
resolution of the BUFFER canvas to be higher than the output.
make this resolution high enough (eg 800x600) and evas will
scale that 800x600 buffer canvas down to the size of the
output of the preview. that is how the livethumb works. 
   a that was what CodeWarrior was talking about when he
   said I could use a buffer... neat. ok.. i'm going back to grok
   e_livethumb with an eye to steal this new information. :)
  
  If you use the buffer engine to do that, you won't be able interact
  with the mouse (I think you said you wanted that), or you'll have to
  feed the events yourself (a bit painful).
 
 ecore_evas provides a buffer canvas wrapper that returns an evas
 image object and does all the event feeding for you :)

Oh.. Great :)

 
  Simon
  
   
   thnx.
  
Hiya Everybody,
   
I've been on a slow road to building a real preview object for 
entrance_edit_gui. The idea is to always show the full
entrance in a small preview window, complete with all the edje
effects that the theme or background may have to offer.
Eventually too, complete with the greetings, etc.  Right now
though, all i just want is to display (obviously :) ).
   
Raster and Codewarrior asked me to look thru e_livethumb
subsystem. And I discovered i knew nothing of Esmarts and
coding that the evas layer, so I went to fix that and I'm
better in that regard now. Here I'm attaching
minientrance.tar.gz (NOTE: THE ENTRANCE THEME FILE I USED IS
HARDCODED, PLEASE MODIFY B4 YOU COMPILE) which is a complete
esmart object for entrance that i'm playing with to understand
the problem (apparently, there's an incomplete and not used
entrance_smart object in entrance right now, but its well...
not quite in use, so its rusty).
   
   
The main problem I have with this smart object and infact, in
general is that when I load the edje, the main login box,
refuses to resize below its min geometry. I do not know if its
possible to *force* an edje part to resize below its min width
or so.  If you compile minientrance, and resize the window,
you'll notice the box just refuses to resize with the rest of
the ui.
   
What I was aiming at doing is to instantiate the entrance_smart
obj, and give it a size say 100x50, and have it render itself
properly as a preview. When I then change the theme or
background in the gui config tool, I'll just make the esmart
object refresh itself. Basically, i guess once the smart
object works well, its all ok. the next issue will be loading
it in an etk/ewl canvas or something. But that's another
story :)
   
Am I on the right track? Someone, smack me on the head with a 
solution/idea :)
   
cheers,
Essien
   
   
-
Using Tomcat but need to do more? Need to support web services,
security? Get stuff done quickly with pre-integrated
technology to make your job easier Download IBM WebSphere
Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
   

   
   
  
   
   
   -
   Using Tomcat but need to do more? Need to support web services,
   security? Get stuff done quickly with pre-integrated technology to
   make your job easier Download IBM WebSphere Application Server
   v.1.0.1 based on Apache Geronimo
   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   enlightenment-devel mailing list
   enlightenment-devel@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
   
  
  -
  Using Tomcat but need to do more? Need to support web services,
  security? Get stuff done quickly with pre-integrated technology to
  make your job easier Download IBM WebSphere Application Server
  v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___ enlightenment-devel
  mailing list 

Re: [E-devel] Resizing Edje Parts - on the road to entrance preview

2006-08-21 Thread Essien Ita Essien
Simon TRENY wrote:
 On Mon, 21 Aug 2006 23:32:56 +0900,
 Carsten Haitzler (The Rasterman) [EMAIL PROTECTED] wrote :

   
 On Mon, 21 Aug 2006 16:11:52 +0200 Simon TRENY [EMAIL PROTECTED]
 babbled:

 
 On Mon, 21 Aug 2006 14:36:05 +0100,
 Essien Ita Essien [EMAIL PROTECTED] wrote :

   
 Carsten Haitzler (The Rasterman) wrote:
 
 On Mon, 21 Aug 2006 13:55:45 +0100 Essien Ita Essien
 [EMAIL PROTECTED] babbled:

 no attachment :)

 but - note the livethumb uses a BUFFER canvas - it sets the
 resolution of the BUFFER canvas to be higher than the output.
 make this resolution high enough (eg 800x600) and evas will
 scale that 800x600 buffer canvas down to the size of the
 output of the preview. that is how the livethumb works. 
   
 a that was what CodeWarrior was talking about when he
 said I could use a buffer... neat. ok.. i'm going back to grok
 e_livethumb with an eye to steal this new information. :)
 
 If you use the buffer engine to do that, you won't be able interact
 with the mouse (I think you said you wanted that), or you'll have to
 feed the events yourself (a bit painful).
   
 ecore_evas provides a buffer canvas wrapper that returns an evas
 image object and does all the event feeding for you :)
 

 Oh.. Great :)

   
kewl! very kewl! i don't have to do any dirty work then :)
 Simon

   
 thnx.
 
   
   
 Hiya Everybody,

 I've been on a slow road to building a real preview object for 
 entrance_edit_gui. The idea is to always show the full
 entrance in a small preview window, complete with all the edje
 effects that the theme or background may have to offer.
 Eventually too, complete with the greetings, etc.  Right now
 though, all i just want is to display (obviously :) ).

 Raster and Codewarrior asked me to look thru e_livethumb
 subsystem. And I discovered i knew nothing of Esmarts and
 coding that the evas layer, so I went to fix that and I'm
 better in that regard now. Here I'm attaching
 minientrance.tar.gz (NOTE: THE ENTRANCE THEME FILE I USED IS
 HARDCODED, PLEASE MODIFY B4 YOU COMPILE) which is a complete
 esmart object for entrance that i'm playing with to understand
 the problem (apparently, there's an incomplete and not used
 entrance_smart object in entrance right now, but its well...
 not quite in use, so its rusty).


 The main problem I have with this smart object and infact, in
 general is that when I load the edje, the main login box,
 refuses to resize below its min geometry. I do not know if its
 possible to *force* an edje part to resize below its min width
 or so.  If you compile minientrance, and resize the window,
 you'll notice the box just refuses to resize with the rest of
 the ui.

 What I was aiming at doing is to instantiate the entrance_smart
 obj, and give it a size say 100x50, and have it render itself
 properly as a preview. When I then change the theme or
 background in the gui config tool, I'll just make the esmart
 object refresh itself. Basically, i guess once the smart
 object works well, its all ok. the next issue will be loading
 it in an etk/ewl canvas or something. But that's another
 story :)

 Am I on the right track? Someone, smack me on the head with a 
 solution/idea :)

 cheers,
 Essien


 -
 Using Tomcat but need to do more? Need to support web services,
 security? Get stuff done quickly with pre-integrated
 technology to make your job easier Download IBM WebSphere
 Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

 
 
   
   
 -
 Using Tomcat but need to do more? Need to support web services,
 security? Get stuff done quickly with pre-integrated technology to
 make your job easier Download IBM WebSphere Application Server
 v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

 
 -
 Using Tomcat but need to do more? Need to support web services,
 security? Get stuff done quickly with pre-integrated technology to
 make your job easier Download IBM WebSphere Application Server
 v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ enlightenment-devel
 mailing list enlightenment-devel@lists.sourceforge.net
 

Re: [E-devel] Resizing Edje Parts - on the road to entrance preview

2006-08-21 Thread Essien Ita Essien
Carsten Haitzler (The Rasterman) wrote:
 On Mon, 21 Aug 2006 16:11:52 +0200 Simon TRENY [EMAIL PROTECTED] babbled:

   
 On Mon, 21 Aug 2006 14:36:05 +0100,
 Essien Ita Essien [EMAIL PROTECTED] wrote :

 
 Carsten Haitzler (The Rasterman) wrote:
   
 On Mon, 21 Aug 2006 13:55:45 +0100 Essien Ita Essien
 [EMAIL PROTECTED] babbled:

 no attachment :)

 but - note the livethumb uses a BUFFER canvas - it sets the
 resolution of the BUFFER canvas to be higher than the output. make
 this resolution high enough (eg 800x600) and evas will scale that
 800x600 buffer canvas down to the size of the output of the
 preview. that is how the livethumb works. 
 
uhh... i'm going to have to bug you once more. *brainbox* -
buffer_overflow ;)

I've been staring at e_livethumb.c and e_widget_preview ,
e_int_config_theme.c, where it is used and trying to develop an
understanding of the relationships so far, i'm missing a tiny link.

As I understand (from a day+ of Esmart/Evas/Ecore_Evas induction), when
I'm creating an evas esmart object, I create all my individual evas
objects, poke them into the esmart data and write call backs that
manipulate. In my initializer, I take an evas, add the esmart object to
it and this action results in an Evas_Object that is linked to my evas
and is an instance of my esmart. Once I manipulate this new evas object,
i'm well and happy.

*please correct me if i'm wrong at any step*

Now, for using the buffer canvas, I don't seem to see how to relate the
ecore_evas_object_image_new() that i create to the rest of the esmart
objects. Normally, in the examples I've seen and the minientrance code I
sent, I had a *clip* member that was an evas_rectangle (honestly, I'm
not sure what that clip is used for :) ), but when I created by
background object and main object, i set their clip to the internal clip
object, and in the clip_set callback, i set the passed in clip to the
internal clip. This is how I seem to see that all the objects in my evas
get linked together.

Looking at e_livethumb, I see that the ecore_evas_object_image is
created and a smart member is set on it (that's where I first start
getting confused.)

Next, in e_livethumb_thum_set(), I was expecting that i'd see the thumb
member being somehow linked to the buffer canvas (evas_obj), but its not
happening. Instead the thumb is being sized on its own.

So my question really is how do these hook up together, when using the
buffer canvas. I'm sure i'm missign something small, but i just can't
seem to see it. :)


cheers,
Essien

snip

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] edje gradient fill

2006-08-21 Thread [EMAIL PROTECTED]

 All this solves one issue (specifying a 'dynamic' angle
 e.g. corner to corner) but still doesnt' solve the main issue
 I had. Namely: Draw a horizontal linear gradient completely
 filling its bounding rectangle.

The bounding rect of an (unrotated) gradient object is
the gradient obj's rect, no matter the fill region or fill angle.
If you want a horz lin grad 'filling' the grad obj then you
would set the fill height to the obj's width and set the fill
angle to -90.
If you want a lin grad object which has its fill 'from
point a to point b' then you set the fill height to be the dist
from a to b and the fill angle to be the arctan of the slope from
a to b. This is a very standard sort of procedure - replacing two
points by a distance and an angle.

If you were texturing a rect obj with a lin grad object
then you'd have a bit more flexibility since you then have two
coord systems to refer to, the rect's and the grad's.. but you
still have to do something like the above.. That's the way it has
to be if you want only ONE notion of a linear grad, rel to ONE
orientation, and rel to ONE method of specifying a fill that works
for ALL texturing notions.
So, if you want some simple way to get what you're after
for lin grads within this general context, then maybe what you
have now would be the way..
Just keep in mind that you are now introducing notions
that refer to transformations like rotations, multiple objects
that may refer to each other with each at differing sizes and
rotations, etc..  This is never a simple thing to deal with,
especially since scaling and rotating don't commute in general.



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] edje gradient fill

2006-08-21 Thread brian . mattern
On Mon, Aug 21, 2006 at 05:30:26PM +, [EMAIL PROTECTED] wrote:
 
  All this solves one issue (specifying a 'dynamic' angle
  e.g. corner to corner) but still doesnt' solve the main issue
  I had. Namely: Draw a horizontal linear gradient completely
  filling its bounding rectangle.
 
   The bounding rect of an (unrotated) gradient object is
 the gradient obj's rect, no matter the fill region or fill angle.
 If you want a horz lin grad 'filling' the grad obj then you
 would set the fill height to the obj's width and set the fill
 angle to -90.

Yes, I understand that. Now do it in EDJE with the position/size method
of specifying the fill... there is now way (currently) to make the fill's height
depend on the width of the part.


   If you want a lin grad object which has its fill 'from
 point a to point b' then you set the fill height to be the dist
 from a to b and the fill angle to be the arctan of the slope from
 a to b. This is a very standard sort of procedure - replacing two
 points by a distance and an angle.

Yep. This is exactly what I did. I just added a way of specifying this
in edje (so the themer doesn't have to do the calculation herself). 

 
   If you were texturing a rect obj with a lin grad object
 then you'd have a bit more flexibility since you then have two
 coord systems to refer to, the rect's and the grad's.. but you
 still have to do something like the above.. That's the way it has
 to be if you want only ONE notion of a linear grad, rel to ONE
 orientation, and rel to ONE method of specifying a fill that works
 for ALL texturing notions.

How does the current implementation of an evas gradient differ from a
rect obj textured by a lin grad? The rel1/rel2 inside the gradient
block i added are in the part's coordinates (or fixed relative to the
part).

   So, if you want some simple way to get what you're after
 for lin grads within this general context, then maybe what you
 have now would be the way..

I'm definitely open to other options, I just haven't seen any yet that
let you do something as simple as a horizontal gradient filling its
bounds.

   Just keep in mind that you are now introducing notions
 that refer to transformations like rotations, multiple objects
 that may refer to each other with each at differing sizes and
 rotations, etc..  This is never a simple thing to deal with,
 especially since scaling and rotating don't commute in general.
 

I haven't introduced anything regarding rotations. Edje is inherently
rect based (as is evas as far as I've seen). All I've done is increase
the flexibility of how a gradient is textured within its bounds. I'm not
happy about having two different fill notations, but I haven't come up
with anything better yet.

Adding a parameter to specify the axis that our angle is relative to
would be nice (x, y, xy, or yx). But we'd also need a way of saying
make the width of the fill relative to the height of the part and vice
versa. Maybe a flip_axes: 1; option?

rephorm


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Resizing Edje Parts - on the road to entrance preview

2006-08-21 Thread brian . mattern
On Mon, Aug 21, 2006 at 05:33:26PM +0100, Essien Ita Essien wrote:
 Carsten Haitzler (The Rasterman) wrote:
  On Mon, 21 Aug 2006 16:11:52 +0200 Simon TRENY [EMAIL PROTECTED] babbled:
 

  On Mon, 21 Aug 2006 14:36:05 +0100,
  Essien Ita Essien [EMAIL PROTECTED] wrote :
 
  
  Carsten Haitzler (The Rasterman) wrote:

  On Mon, 21 Aug 2006 13:55:45 +0100 Essien Ita Essien
  [EMAIL PROTECTED] babbled:
 
  no attachment :)
 
  but - note the livethumb uses a BUFFER canvas - it sets the
  resolution of the BUFFER canvas to be higher than the output. make
  this resolution high enough (eg 800x600) and evas will scale that
  800x600 buffer canvas down to the size of the output of the
  preview. that is how the livethumb works. 
  
 uhh... i'm going to have to bug you once more. *brainbox* -
 buffer_overflow ;)
 
 I've been staring at e_livethumb.c and e_widget_preview ,
 e_int_config_theme.c, where it is used and trying to develop an
 understanding of the relationships so far, i'm missing a tiny link.
 
 As I understand (from a day+ of Esmart/Evas/Ecore_Evas induction), when
 I'm creating an evas esmart object, I create all my individual evas
 objects, poke them into the esmart data and write call backs that
 manipulate. In my initializer, I take an evas, add the esmart object to
 it and this action results in an Evas_Object that is linked to my evas
 and is an instance of my esmart. Once I manipulate this new evas object,
 i'm well and happy.
 
 *please correct me if i'm wrong at any step*
 
 Now, for using the buffer canvas, I don't seem to see how to relate the
 ecore_evas_object_image_new() that i create to the rest of the esmart
 objects. Normally, in the examples I've seen and the minientrance code I
 sent, I had a *clip* member that was an evas_rectangle (honestly, I'm
 not sure what that clip is used for :) ), but when I created by
 background object and main object, i set their clip to the internal clip
 object, and in the clip_set callback, i set the passed in clip to the
 internal clip. This is how I seem to see that all the objects in my evas
 get linked together.

A clip makes objects only show up within the bounds of the clip object.
E.g clipping A to B below will result in C:

   +--+   
   |  |   
   +---+---+  |   +---+   
   |   A   |   B  |   | C |   
   +---+---+  |   +---+   
   |  |   
   +--+   
  
 Looking at e_livethumb, I see that the ecore_evas_object_image is
 created and a smart member is set on it (that's where I first start
 getting confused.)

Smart members are the sub objects of a smart objects. You tell evas
that each of your 100 little pieces that make up the smartobj are
members, and it does some stuff for you (keeps them layered together,
etc).

 
 Next, in e_livethumb_thum_set(), I was expecting that i'd see the thumb
 member being somehow linked to the buffer canvas (evas_obj), but its not
 happening. Instead the thumb is being sized on its own.
 
 So my question really is how do these hook up together, when using the
 buffer canvas. I'm sure i'm missign something small, but i just can't
 seem to see it. :)

The buffer canvas is a fullblown evas of its own. Its contents are being
displayed in an image on your primary evas. What you'll want to do is
add you smart object to the BUFFER evas. The buffer canvas will have a
fixed size that you set. The rendered version of that gets scaled to the
size of the image object.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Resizing Edje Parts - on the road to entrance preview

2006-08-21 Thread Hisham Mardam Bey
On 8/21/06, Essien Ita Essien [EMAIL PROTECTED] wrote:
 Carsten Haitzler (The Rasterman) wrote:
  On Mon, 21 Aug 2006 16:11:52 +0200 Simon TRENY [EMAIL PROTECTED] babbled:
 
 
  On Mon, 21 Aug 2006 14:36:05 +0100,
  Essien Ita Essien [EMAIL PROTECTED] wrote :
 
 
  Carsten Haitzler (The Rasterman) wrote:
 
  On Mon, 21 Aug 2006 13:55:45 +0100 Essien Ita Essien
  [EMAIL PROTECTED] babbled:
 
  no attachment :)
 
  but - note the livethumb uses a BUFFER canvas - it sets the
  resolution of the BUFFER canvas to be higher than the output. make
  this resolution high enough (eg 800x600) and evas will scale that
  800x600 buffer canvas down to the size of the output of the
  preview. that is how the livethumb works.
 
 uhh... i'm going to have to bug you once more. *brainbox* -
 buffer_overflow ;)

 I've been staring at e_livethumb.c and e_widget_preview ,
 e_int_config_theme.c, where it is used and trying to develop an
 understanding of the relationships so far, i'm missing a tiny link.

 As I understand (from a day+ of Esmart/Evas/Ecore_Evas induction), when
 I'm creating an evas esmart object, I create all my individual evas
 objects, poke them into the esmart data and write call backs that
 manipulate. In my initializer, I take an evas, add the esmart object to
 it and this action results in an Evas_Object that is linked to my evas
 and is an instance of my esmart. Once I manipulate this new evas object,
 i'm well and happy.

 *please correct me if i'm wrong at any step*

 Now, for using the buffer canvas, I don't seem to see how to relate the
 ecore_evas_object_image_new() that i create to the rest of the esmart
 objects. Normally, in the examples I've seen and the minientrance code I
 sent, I had a *clip* member that was an evas_rectangle (honestly, I'm
 not sure what that clip is used for :) ), but when I created by
 background object and main object, i set their clip to the internal clip
 object, and in the clip_set callback, i set the passed in clip to the
 internal clip. This is how I seem to see that all the objects in my evas
 get linked together.

 Looking at e_livethumb, I see that the ecore_evas_object_image is
 created and a smart member is set on it (that's where I first start
 getting confused.)

 Next, in e_livethumb_thum_set(), I was expecting that i'd see the thumb
 member being somehow linked to the buffer canvas (evas_obj), but its not
 happening. Instead the thumb is being sized on its own.

 So my question really is how do these hook up together, when using the
 buffer canvas. I'm sure i'm missign something small, but i just can't
 seem to see it. :)


Long ass irc session took place, I hope things are clearer now (=

-- 
Hisham Mardam Bey
MSc (Computer Science)
http://hisham.cc/
+9613609386
Codito Ergo Sum (I Code Therefore I Am)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: apps/e sebastid

2006-08-21 Thread brian . mattern
On Mon, Aug 21, 2006 at 12:29:14PM -0400, Enlightenment CVS wrote:
 Enlightenment CVS committal
 
 Author  : sebastid
 Project : e17
 Module  : apps/e
 
 Dir : e17/apps/e/src/bin
 
 
 Modified Files:
   e_spectrum.c e_widget_cslider.c e_widget_spectrum.c 
 
 
 Log Message:
 Add all enum types in select.
 
 ===
 RCS file: /cvs/e/e17/apps/e/src/bin/e_spectrum.c,v
 retrieving revision 1.8
 retrieving revision 1.9
 diff -u -3 -r1.8 -r1.9
 --- e_spectrum.c  20 Aug 2006 21:18:29 -  1.8
 +++ e_spectrum.c  21 Aug 2006 16:29:14 -  1.9
 @@ -244,6 +244,8 @@
   s = x / (double)(sp-iw); 
   evas_color_hsv_to_rgb(h, s, v, rr, gg, bb);
   break;
 + case E_COLOR_COMPONENT_MAX:
 + break;
  }

_MAX just gives you the number of them, so you can loop over them.
nothing should ever be set to it.

rephorm


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: apps/e sebastid

2006-08-21 Thread Sebastian Dransfeld
[EMAIL PROTECTED] wrote:
 On Mon, Aug 21, 2006 at 12:29:14PM -0400, Enlightenment CVS wrote:
 Enlightenment CVS committal

 Author  : sebastid
 Project : e17
 Module  : apps/e

 Dir : e17/apps/e/src/bin


 Modified Files:
  e_spectrum.c e_widget_cslider.c e_widget_spectrum.c 


 Log Message:
 Add all enum types in select.

 ===
 RCS file: /cvs/e/e17/apps/e/src/bin/e_spectrum.c,v
 retrieving revision 1.8
 retrieving revision 1.9
 diff -u -3 -r1.8 -r1.9
 --- e_spectrum.c 20 Aug 2006 21:18:29 -  1.8
 +++ e_spectrum.c 21 Aug 2006 16:29:14 -  1.9
 @@ -244,6 +244,8 @@
  s = x / (double)(sp-iw); 
  evas_color_hsv_to_rgb(h, s, v, rr, gg, bb);
  break;
 + case E_COLOR_COMPONENT_MAX:
 +break;
  }
 
 _MAX just gives you the number of them, so you can loop over them.
 nothing should ever be set to it.
 
 rephorm

Though so. Just don't like the warnings.

Sebastian

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: apps/e sebastid

2006-08-21 Thread brian . mattern
On Mon, Aug 21, 2006 at 10:05:41PM +0200, Sebastian Dransfeld wrote:
 [EMAIL PROTECTED] wrote:
  On Mon, Aug 21, 2006 at 12:29:14PM -0400, Enlightenment CVS wrote:
  Enlightenment CVS committal
 
  Author  : sebastid
  Project : e17
  Module  : apps/e
 
  Dir : e17/apps/e/src/bin
 
 
  Modified Files:
 e_spectrum.c e_widget_cslider.c e_widget_spectrum.c 
 
 
  Log Message:
  Add all enum types in select.
 
  ===
  RCS file: /cvs/e/e17/apps/e/src/bin/e_spectrum.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -3 -r1.8 -r1.9
  --- e_spectrum.c   20 Aug 2006 21:18:29 -  1.8
  +++ e_spectrum.c   21 Aug 2006 16:29:14 -  1.9
  @@ -244,6 +244,8 @@
 s = x / (double)(sp-iw); 
 evas_color_hsv_to_rgb(h, s, v, rr, gg, bb);
 break;
  + case E_COLOR_COMPONENT_MAX:
  +  break;
   }
  
  _MAX just gives you the number of them, so you can loop over them.
  nothing should ever be set to it.
  
  rephorm
 
 Though so. Just don't like the warnings.
 
 Sebastian

fair enough :)
rephorm.



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Resizing Edje Parts - on the road to entrance preview

2006-08-21 Thread Hisham Mardam Bey
On 8/21/06, Hisham Mardam Bey [EMAIL PROTECTED] wrote:

 Long ass irc session took place, I hope things are clearer now (=


I was bored, here's the code you need (minimum, no smart):

#include Evas.h
#include Ecore_Evas.h
#include Edje.h

int main(int argc, char **argv)
{
   Ecore_Evas *ee;
   Evas *evas;
   Evas *evas_i;
   Evas_Object *bg;
   Evas_Object *theme;
   Evas_Object *i;

   ecore_init();
   ecore_evas_init();
   edje_init();

   ee = ecore_evas_software_x11_new(0, 0, 0, 0, 320, 240);
   evas = ecore_evas_get(ee);

   i = ecore_evas_object_image_new(ee);
   evas_i = ecore_evas_get(evas_object_data_get(i, Ecore_Evas));
   evas_object_image_size_set(i, 1024, 768);
   evas_object_move(i, 0, 0);
   evas_object_image_fill_set(i, 0, 0, 1024, 768);
   evas_object_resize(i, 1024, 768);
   evas_object_show(i);

   bg = edje_object_add(evas_i);
   edje_object_file_set(bg, default.edj, Background);
   evas_object_move(bg, 0, 0);
   evas_object_resize(bg, 1024, 768);
   evas_object_show(bg);

   theme = edje_object_add(evas_i);
   edje_object_file_set(theme, default.edj, Main);
   evas_object_move(theme, 0, 0);
   evas_object_resize(theme, 1024, 768);
   evas_object_show(theme);

   evas_object_stack_above(theme, bg);

   /* now lets actually make it fill as much as we want */
   evas_object_image_fill_set(i, 0, 0, 320, 240);

   ecore_evas_show(ee);


   ecore_main_loop_begin();
   edje_shutdown();
   ecore_evas_shutdown();
   ecore_shutdown();

   return 0;
}




-- 
Hisham Mardam Bey
MSc (Computer Science)
http://hisham.cc/
+9613609386
Codito Ergo Sum (I Code Therefore I Am)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Resizing Edje Parts - on the road to entrance preview

2006-08-21 Thread Hisham Mardam Bey
On 8/21/06, Hisham Mardam Bey [EMAIL PROTECTED] wrote:
 On 8/21/06, Hisham Mardam Bey [EMAIL PROTECTED] wrote:
 
  Long ass irc session took place, I hope things are clearer now (=
 

 I was bored, here's the code you need (minimum, no smart):

 #include Evas.h
 #include Ecore_Evas.h
 #include Edje.h

 int main(int argc, char **argv)
 {
Ecore_Evas *ee;
Evas *evas;
Evas *evas_i;
Evas_Object *bg;
Evas_Object *theme;
Evas_Object *i;

ecore_init();
ecore_evas_init();
edje_init();

ee = ecore_evas_software_x11_new(0, 0, 0, 0, 320, 240);
evas = ecore_evas_get(ee);

i = ecore_evas_object_image_new(ee);
evas_i = ecore_evas_get(evas_object_data_get(i, Ecore_Evas));
evas_object_image_size_set(i, 1024, 768);
evas_object_move(i, 0, 0);
evas_object_image_fill_set(i, 0, 0, 1024, 768);
evas_object_resize(i, 1024, 768);
evas_object_show(i);

bg = edje_object_add(evas_i);
edje_object_file_set(bg, default.edj, Background);
evas_object_move(bg, 0, 0);
evas_object_resize(bg, 1024, 768);
evas_object_show(bg);

theme = edje_object_add(evas_i);
edje_object_file_set(theme, default.edj, Main);
evas_object_move(theme, 0, 0);
evas_object_resize(theme, 1024, 768);
evas_object_show(theme);

evas_object_stack_above(theme, bg);

/* now lets actually make it fill as much as we want */
evas_object_image_fill_set(i, 0, 0, 320, 240);

add this here (better this way)
evas_object_resize(i, 320, 240);


ecore_evas_show(ee);


ecore_main_loop_begin();
edje_shutdown();
ecore_evas_shutdown();
ecore_shutdown();

return 0;
 }


small correction, read code upwards a bit.

-- 
Hisham Mardam Bey
MSc (Computer Science)
http://hisham.cc/
+9613609386
Codito Ergo Sum (I Code Therefore I Am)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Resizing Edje Parts - on the road to entrance preview

2006-08-21 Thread Essien Ita Essien
[EMAIL PROTECTED] wrote:
 On Mon, Aug 21, 2006 at 05:33:26PM +0100, Essien Ita Essien wrote:
   
 Carsten Haitzler (The Rasterman) wrote:
 
 On Mon, 21 Aug 2006 16:11:52 +0200 Simon TRENY [EMAIL PROTECTED] babbled:

   
   
 On Mon, 21 Aug 2006 14:36:05 +0100,
 Essien Ita Essien [EMAIL PROTECTED] wrote :

 
 
 Carsten Haitzler (The Rasterman) wrote:
   
   
 On Mon, 21 Aug 2006 13:55:45 +0100 Essien Ita Essien
 [EMAIL PROTECTED] babbled:

 no attachment :)

 but - note the livethumb uses a BUFFER canvas - it sets the
 resolution of the BUFFER canvas to be higher than the output. make
 this resolution high enough (eg 800x600) and evas will scale that
 800x600 buffer canvas down to the size of the output of the
 preview. that is how the livethumb works. 
 
 
 uhh... i'm going to have to bug you once more. *brainbox* -
 buffer_overflow ;)

 I've been staring at e_livethumb.c and e_widget_preview ,
 e_int_config_theme.c, where it is used and trying to develop an
 understanding of the relationships so far, i'm missing a tiny link.

 As I understand (from a day+ of Esmart/Evas/Ecore_Evas induction), when
 I'm creating an evas esmart object, I create all my individual evas
 objects, poke them into the esmart data and write call backs that
 manipulate. In my initializer, I take an evas, add the esmart object to
 it and this action results in an Evas_Object that is linked to my evas
 and is an instance of my esmart. Once I manipulate this new evas object,
 i'm well and happy.

 *please correct me if i'm wrong at any step*

 Now, for using the buffer canvas, I don't seem to see how to relate the
 ecore_evas_object_image_new() that i create to the rest of the esmart
 objects. Normally, in the examples I've seen and the minientrance code I
 sent, I had a *clip* member that was an evas_rectangle (honestly, I'm
 not sure what that clip is used for :) ), but when I created by
 background object and main object, i set their clip to the internal clip
 object, and in the clip_set callback, i set the passed in clip to the
 internal clip. This is how I seem to see that all the objects in my evas
 get linked together.
 

 A clip makes objects only show up within the bounds of the clip object.
 E.g clipping A to B below will result in C:

+--+   
|  |   
+---+---+  |   +---+   
|   A   |   B  |   | C |   
+---+---+  |   +---+   
|  |   
+--+   

ahh... i c. i suspected, but didn't want to assume anything :)
 
   
  
 Looking at e_livethumb, I see that the ecore_evas_object_image is
 created and a smart member is set on it (that's where I first start
 getting confused.)
 

 Smart members are the sub objects of a smart objects. You tell evas
 that each of your 100 little pieces that make up the smartobj are
 members, and it does some stuff for you (keeps them layered together,
 etc).
   
So this means that instead of manually building the evas_smart by going 
the normal route, i can dynamically assemble a quick and dirty 
evas_smart object using the smart_member_add() then?

cool.
   
 Next, in e_livethumb_thum_set(), I was expecting that i'd see the thumb
 member being somehow linked to the buffer canvas (evas_obj), but its not
 happening. Instead the thumb is being sized on its own.

 So my question really is how do these hook up together, when using the
 buffer canvas. I'm sure i'm missign something small, but i just can't
 seem to see it. :)
 

 The buffer canvas is a fullblown evas of its own. Its contents are being
 displayed in an image on your primary evas. What you'll want to do is
 add you smart object to the BUFFER evas. The buffer canvas will have a
 fixed size that you set. The rendered version of that gets scaled to the
 size of the image object.
   
with all the help i've gotten on this so far, I now have a perfect 
understanding of things. My missing link was how to obtain the evas from 
the buffer canvas. CodeWarrior's examples cleared this up more than 
nicely :)

thx


   


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Resizing Edje Parts - on the road to entrance preview

2006-08-21 Thread Essien Ita Essien
Hisham Mardam Bey wrote:
 On 8/21/06, Hisham Mardam Bey [EMAIL PROTECTED] wrote:
   
 On 8/21/06, Hisham Mardam Bey [EMAIL PROTECTED] wrote:
 
 Long ass irc session took place, I hope things are clearer now (=

   
 I was bored, here's the code you need (minimum, no smart):

 #include Evas.h
 #include Ecore_Evas.h
 #include Edje.h

 int main(int argc, char **argv)
 {
Ecore_Evas *ee;
Evas *evas;
Evas *evas_i;
Evas_Object *bg;
Evas_Object *theme;
Evas_Object *i;

ecore_init();
ecore_evas_init();
edje_init();

ee = ecore_evas_software_x11_new(0, 0, 0, 0, 320, 240);
evas = ecore_evas_get(ee);

i = ecore_evas_object_image_new(ee);
evas_i = ecore_evas_get(evas_object_data_get(i, Ecore_Evas));
evas_object_image_size_set(i, 1024, 768);
evas_object_move(i, 0, 0);
evas_object_image_fill_set(i, 0, 0, 1024, 768);
evas_object_resize(i, 1024, 768);
evas_object_show(i);

bg = edje_object_add(evas_i);
edje_object_file_set(bg, default.edj, Background);
evas_object_move(bg, 0, 0);
evas_object_resize(bg, 1024, 768);
evas_object_show(bg);

theme = edje_object_add(evas_i);
edje_object_file_set(theme, default.edj, Main);
evas_object_move(theme, 0, 0);
evas_object_resize(theme, 1024, 768);
evas_object_show(theme);

evas_object_stack_above(theme, bg);

/* now lets actually make it fill as much as we want */
evas_object_image_fill_set(i, 0, 0, 320, 240);
 

 add this here (better this way)
 evas_object_resize(i, 320, 240);

   
ecore_evas_show(ee);


ecore_main_loop_begin();
edje_shutdown();
ecore_evas_shutdown();
ecore_shutdown();

return 0;
 }

 

 small correction, read code upwards a bit.

   
code speaks best :)

I'm right now nearing completion of a generic Thumbnail_Smart object for 
easier use in future. Thx again Hisham :)


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Resizing Edje Parts - on the road to entrance preview

2006-08-21 Thread Hisham Mardam Bey
On 8/22/06, Essien Ita Essien [EMAIL PROTECTED] wrote:
 code speaks best :)

 I'm right now nearing completion of a generic Thumbnail_Smart object for
 easier use in future. Thx again Hisham :)


No problemo, any time Essien (=

-- 
Hisham Mardam Bey
MSc (Computer Science)
http://hisham.cc/
+9613609386
Codito Ergo Sum (I Code Therefore I Am)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] A CVS anon mirror

2006-08-21 Thread Kevin Brosius
After all the discussion on cvs and such, I've opened up a little mirror
(as in 'a little bandwidth').  So the next time you run in to a problem
at peak time, give it a shot.  Presently open for 10 connections and bw
limited.  We'll see how the load looks and adjust from there.

If you are using the command:

cvs -z3 -d:pserver:[EMAIL PROTECTED]:/var/cvs/e co
e17/libs/eet

substitute

cvs -z3 -d:pserver:[EMAIL PROTECTED]:/var/cvs/e co e17/libs/eet

The directory structure matches our main anon cvs server, just
substitute cvs1.kevb.net for the host.

I'm interested in hearing if anyone has trouble, runs in to congestion,
or how slow it actually performs for you. (Not that I'll be able to do
anything.  But I'm curious. :P )

This mirror has the same files as on the webcvs at
http://e.kevb.net/cgi-bin/viewvc.cgi/ .

-- 
Kevin

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] edje gradient fill

2006-08-21 Thread [EMAIL PROTECTED]

   The d-linear one will have its spectrum grow from the fill
 origin to the bottom-right of the fill region, ie. diagonally with
 increasing right handed normal to the diagonal.

That should read - ie. increasing *along* the diagonal.
The lines of constant color are the ones normal to the diagonal.


   jose.



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel