Mig,

- Combined images are purely an optimization concept. They do not affect 
your code whatsoever.

- That means in your application code you are just concerned with the 
specific image you want to use, not with the combined image it might be 
contained in. This applies to class code as well as themes.

- Say you have an image with the resource id "myapp/great/image.png", 
then you specify it in your class file, e.g.

in the compiler hints

    #asset(myapp/great/image.png)

and in app code

    var b =new qx.ui.form.Button("Push me!", "myapp/great/image.png");

So, this level is ignorant of the fact whehter myapp/great/image.png is 
part of a combined image or not.

If you create a combined image for yourself, e.g. containing 
myapp/great/image.png, just make sure it is placed, together with its 
.meta file(!), under your app's resource folder, e.g. 
"source/resource/myapp/combined.png". The generator will find it there, 
and will create relevant information in the loader, so the qooxdoo 
runtime is able to look up myapp/great/image.png in myapp/combined.png 
and use the image clip, if it is suitable. The runtime potentially also 
needs access to the original myapp/great/image.png file, for fall-back 
reasons, so don't remove it.

HTH,
T.

On 05/13/2011 04:49 PM, Mig wrote:
> Hey Chris,
>
> thank you. But what if I want to make a combined image, containing different
> icons, and i want to access a specific icon? Does the resource manager also
> handle that automatically?
>
> Greetz Mig
>
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/Usage-of-combined-images-tp6358708p6359719.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to