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

Side by Side Diff: core/cross/cairo/layer.h

Issue 6320002: O2D: Several (unrelated) improvements:... (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 | « no previous file | core/cross/cairo/layer.cc » ('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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 namespace o3d { 43 namespace o3d {
44 44
45 class IClassManager; 45 class IClassManager;
46 46
47 namespace o2d { 47 namespace o2d {
48 48
49 class Layer : public ObjectBase { 49 class Layer : public ObjectBase {
50 public: 50 public:
51 typedef SmartPointer<Layer> Ref; 51 typedef SmartPointer<Layer> Ref;
52 52
53 virtual ~Layer();
54
53 Pattern* pattern() const { 55 Pattern* pattern() const {
54 return pattern_; 56 return pattern_;
55 } 57 }
56 58
57 void set_pattern(Pattern* pattern) { 59 void set_pattern(Pattern* pattern) {
58 pattern_ = Pattern::Ref(pattern); 60 pattern_ = Pattern::Ref(pattern);
59 } 61 }
60 62
61 double alpha() const { 63 double alpha() const {
62 return alpha_; 64 return alpha_;
(...skipping 12 matching lines...) Expand all
75 } 77 }
76 78
77 double y() const { 79 double y() const {
78 return y_; 80 return y_;
79 } 81 }
80 82
81 void set_y(double y) { 83 void set_y(double y) {
82 y_ = y; 84 y_ = y;
83 } 85 }
84 86
87 double z() const {
88 return z_;
89 }
90
91 void set_z(double z) {
92 z_ = z;
93 }
94
85 double width() const { 95 double width() const {
86 return width_; 96 return width_;
87 } 97 }
88 98
89 void set_width(double width) { 99 void set_width(double width) {
90 width_ = width; 100 width_ = width;
91 } 101 }
92 102
93 double height() const { 103 double height() const {
94 return height_; 104 return height_;
(...skipping 30 matching lines...) Expand all
125 135
126 // Transparancy of this layer. 136 // Transparancy of this layer.
127 double alpha_; 137 double alpha_;
128 138
129 // The x coordinate of the top-left corner of this layer. 139 // The x coordinate of the top-left corner of this layer.
130 double x_; 140 double x_;
131 141
132 // The y coordinate of the top-left corner of this layer. 142 // The y coordinate of the top-left corner of this layer.
133 double y_; 143 double y_;
134 144
145 // The z coordinate of the layer (used only to determine stacking order).
146 double z_;
147
135 // The width of this layer. 148 // The width of this layer.
136 double width_; 149 double width_;
137 150
138 // The height of this layer. 151 // The height of this layer.
139 double height_; 152 double height_;
140 153
141 // A scaling factor to apply to the pattern's x-axis. 154 // A scaling factor to apply to the pattern's x-axis.
142 double scale_x_; 155 double scale_x_;
143 156
144 // A scaling factor to apply to the pattern's y-axis. 157 // A scaling factor to apply to the pattern's y-axis.
145 double scale_y_; 158 double scale_y_;
146 159
147 O3D_DECL_CLASS(Layer, ObjectBase) 160 O3D_DECL_CLASS(Layer, ObjectBase)
148 }; // Layer 161 }; // Layer
149 162
150 } // namespace o2d 163 } // namespace o2d
151 164
152 } // namespace o3d 165 } // namespace o3d
153 166
154 #endif // O3D_CORE_CROSS_CAIRO_LAYER_H_ 167 #endif // O3D_CORE_CROSS_CAIRO_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | core/cross/cairo/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698