On Thu, Jul 29, 2010 at 2:41 PM, Atton Jonathan
<jonathan.at...@gmail.com> wrote:
> Hello,
>
>
> I whish to add a frame to elm_image and a way for the theme to display a
> border/shadow arround the image.
> I have already do this in elm_photo but I will move it into elm_image where
> it should be.
>
>
> Currently :
> - there is no frame, only a els_icon.
>
> What I whish to do :
> - add a frame
> - add a way to display a border around the image. Here is the problem.
> els_icon have 2 objects : the container and the image (content). Elm_Image
> swallow the els_icon in his theme. The image is resize to keep the aspect
> and the container take all the space it can. Consequently the theme can't
> know the size of the image.
> In elm_photo I have added :
> - a embryo script which retrieve the size of the image from the C code
> - the C-code (elm_image/photo) listen the size's change on the image and
> send the size to the theme.
>
> If you know a better way to do this, please tell me.

Although Raster may find a difference in all these widgets he created,
for someone from outside, the differences between bg, image, icon and
photo are not clear. They all load an image in some way, they all seem
to offer an option to keep aspect, and how to do it. Differences are
so little, like loading images with pre-defined names from theme
(icon), or emitting signal when clicked (photo), that I guess it is
worth to have a single one that does all of that with frames (as you
wish), or just provide widgets that inherit from the same base,
providing the details but reusing the base. (I like the first approach
bit more in this case).

BR,


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to