Index: plugin/idl/layer.idl |
=================================================================== |
--- plugin/idl/layer.idl (revision 66807) |
+++ plugin/idl/layer.idl (working copy) |
@@ -34,39 +34,49 @@ |
namespace o2d { |
%[ |
- Layer defines a container for a layer of scene. |
- It enables JavaScript to manipulate the layer. |
+ A Layer is a rectangular region of the O2D canvas to be filled with a |
+ particular Pattern, with automatic clipping based on stacking order. |
%] |
-[nocpp, include="core/cross/cairo/layer.h"] class Layer : ParamObject { |
+[nocpp, include="core/cross/cairo/layer.h"] class Layer : ObjectBase { |
%[ |
- Translate the object from its current coordinate. |
+ The Pattern used to paint this Layer. |
+ %] |
+ [getter, setter] Pattern? pattern; |
- \param x amount to translate in x. |
- \param y amount to translate in y. |
+ %[ |
+ Transparancy of this layer. |
%] |
- void Translate(float x, float y); |
+ [getter, setter] double alpha; |
%[ |
- Scale the size of the object. |
+ The x coordinate of the top-left corner of this layer. |
+ %] |
+ [getter, setter] double x; |
- \param x amount to scale in the x dimension. |
- \param y amount to scale in the y dimension. |
+ %[ |
+ The y coordinate of the top-left corner of this layer. |
%] |
- void Scale(float x, float y); |
+ [getter, setter] double y; |
%[ |
- Set the transparancy of the object. |
+ The width of this layer. |
+ %] |
+ [getter, setter] double width; |
- \param alpha amount of the transparancy. |
+ %[ |
+ The height of this layer. |
%] |
- void SetAlpha(float alpha); |
+ [getter, setter] double height; |
%[ |
- Set the texture for this object. |
+ A scaling factor to apply to the pattern's x-axis. |
+ %] |
+ [getter, setter] double scale_x; |
- \param texture the texture to assign. |
+ %[ |
+ A scaling factor to apply to the pattern's y-axis. |
%] |
- void SetTexture(Texture? texture); |
+ [getter, setter] double scale_y; |
}; // Layer |
} // namespace o2d |