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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « core/cross/cairo/renderer_cairo.cc ('k') | plugin/idl/pattern.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2010, Google Inc. 2 * Copyright 2010, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 21 matching lines...) Expand all
32 namespace o3d { 32 namespace o3d {
33 33
34 namespace o2d { 34 namespace o2d {
35 35
36 %[ 36 %[
37 A Layer is a rectangular region of the O2D canvas to be filled with a 37 A Layer is a rectangular region of the O2D canvas to be filled with a
38 particular Pattern, with automatic clipping based on stacking order. 38 particular Pattern, with automatic clipping based on stacking order.
39 %] 39 %]
40 [nocpp, include="core/cross/cairo/layer.h"] class Layer : ObjectBase { 40 [nocpp, include="core/cross/cairo/layer.h"] class Layer : ObjectBase {
41 %[ 41 %[
42 Available painting operators.
43
44 \var PaintOperator,
45 \li BLEND, Alpha-blend the Pattern on top of lower Layers based on its
46 alpha channel. (Default)
47 \li BLEND_WITH_TRANSPARENCY, Like BLEND, but scale the alpha channel down
48 based on the alpha property of the Layer as an
49 additional fractional transparency.
50 \li COPY, Copy the colour content of the Pattern directly to the
51 destination, ignoring the alpha channel.
52 \li COPY_WITH_FADING, Like COPY, but fade the colour to black based on the
53 alpha property of the Layer as an additional
54 fractional brightness.
55 %]
56 enum PaintOperator {
57 BLEND,
58 BLEND_WITH_TRANSPARENCY,
59 COPY,
60 COPY_WITH_FADING
61 };
62
63 %[
42 The Pattern used to paint this Layer. 64 The Pattern used to paint this Layer.
43 %] 65 %]
44 [getter, setter] Pattern? pattern; 66 [getter, setter] Pattern? pattern;
45 67
46 %[ 68 %[
47 Transparancy of this layer. 69 Whether this layer should be visible or not.
70 %]
71 [getter, setter] bool visible;
72
73 %[
74 The transparency for the BLEND_WITH_TRANSPARENCY operator or the fading for
75 the COPY_WITH_FADING operator.
48 %] 76 %]
49 [getter, setter] double alpha; 77 [getter, setter] double alpha;
50 78
51 %[ 79 %[
52 The x coordinate of the top-left corner of this layer. 80 The x coordinate of the top-left corner of this layer.
53 %] 81 %]
54 [getter, setter] double x; 82 [getter, setter] double x;
55 83
56 %[ 84 %[
57 The y coordinate of the top-left corner of this layer. 85 The y coordinate of the top-left corner of this layer.
(...skipping 17 matching lines...) Expand all
75 103
76 %[ 104 %[
77 A scaling factor to apply to the pattern's x-axis. 105 A scaling factor to apply to the pattern's x-axis.
78 %] 106 %]
79 [getter, setter] double scale_x; 107 [getter, setter] double scale_x;
80 108
81 %[ 109 %[
82 A scaling factor to apply to the pattern's y-axis. 110 A scaling factor to apply to the pattern's y-axis.
83 %] 111 %]
84 [getter, setter] double scale_y; 112 [getter, setter] double scale_y;
113
114 %[
115 The paint operator to use for painting this Layer.
116 %]
117 [getter, setter] PaintOperator paint_operator;
85 }; // Layer 118 }; // Layer
86 119
87 } // namespace o2d 120 } // namespace o2d
88 121
89 } // namespace o3d 122 } // namespace o3d
OLDNEW
« 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