Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(508)

Unified Diff: plugin/idl/layer.idl

Issue 5276006: O2D:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « plugin/idl/idl.gyp ('k') | plugin/idl/pattern.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « plugin/idl/idl.gyp ('k') | plugin/idl/pattern.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698