summaryrefslogtreecommitdiffstats
path: root/o3d/plugin/idl/layer.idl
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/plugin/idl/layer.idl')
-rw-r--r--o3d/plugin/idl/layer.idl44
1 files changed, 27 insertions, 17 deletions
diff --git a/o3d/plugin/idl/layer.idl b/o3d/plugin/idl/layer.idl
index 9525783..964feaf 100644
--- a/o3d/plugin/idl/layer.idl
+++ b/o3d/plugin/idl/layer.idl
@@ -34,39 +34,49 @@ namespace o3d {
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