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

Unified Diff: plugin/idl/layer.idl

Issue 6255003: O2D:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 9 years, 11 months 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 | « core/cross/cairo/renderer_cairo.cc ('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 71475)
+++ plugin/idl/layer.idl (working copy)
@@ -39,13 +39,41 @@
%]
[nocpp, include="core/cross/cairo/layer.h"] class Layer : ObjectBase {
%[
+ Available painting operators.
+
+ \var PaintOperator,
+ \li BLEND, Alpha-blend the Pattern on top of lower Layers based on its
+ alpha channel. (Default)
+ \li BLEND_WITH_TRANSPARENCY, Like BLEND, but scale the alpha channel down
+ based on the alpha property of the Layer as an
+ additional fractional transparency.
+ \li COPY, Copy the colour content of the Pattern directly to the
+ destination, ignoring the alpha channel.
+ \li COPY_WITH_FADING, Like COPY, but fade the colour to black based on the
+ alpha property of the Layer as an additional
+ fractional brightness.
+ %]
+ enum PaintOperator {
+ BLEND,
+ BLEND_WITH_TRANSPARENCY,
+ COPY,
+ COPY_WITH_FADING
+ };
+
+ %[
The Pattern used to paint this Layer.
%]
[getter, setter] Pattern? pattern;
%[
- Transparancy of this layer.
+ Whether this layer should be visible or not.
%]
+ [getter, setter] bool visible;
+
+ %[
+ The transparency for the BLEND_WITH_TRANSPARENCY operator or the fading for
+ the COPY_WITH_FADING operator.
+ %]
[getter, setter] double alpha;
%[
@@ -82,6 +110,11 @@
A scaling factor to apply to the pattern's y-axis.
%]
[getter, setter] double scale_y;
+
+ %[
+ The paint operator to use for painting this Layer.
+ %]
+ [getter, setter] PaintOperator paint_operator;
}; // Layer
} // namespace o2d
« no previous file with comments | « core/cross/cairo/renderer_cairo.cc ('k') | plugin/idl/pattern.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698