OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. |
3 * 2010 Dirk Schulze <krit@webkit.org> | 3 * 2010 Dirk Schulze <krit@webkit.org> |
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 | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 void setE(double e) { m_transform[4] = e; } | 83 void setE(double e) { m_transform[4] = e; } |
84 double f() const { return m_transform[5]; } | 84 double f() const { return m_transform[5]; } |
85 void setF(double f) { m_transform[5] = f; } | 85 void setF(double f) { m_transform[5] = f; } |
86 | 86 |
87 void makeIdentity(); | 87 void makeIdentity(); |
88 | 88 |
89 AffineTransform& multiply(const AffineTransform& other); | 89 AffineTransform& multiply(const AffineTransform& other); |
90 AffineTransform& scale(double); | 90 AffineTransform& scale(double); |
91 AffineTransform& scale(double sx, double sy); | 91 AffineTransform& scale(double sx, double sy); |
92 AffineTransform& scaleNonUniform(double sx, double sy); | 92 AffineTransform& scaleNonUniform(double sx, double sy); |
93 AffineTransform& rotate(double d); | 93 AffineTransform& rotate(double a); |
| 94 AffineTransform& rotateRadians(double a); |
94 AffineTransform& rotateFromVector(double x, double y); | 95 AffineTransform& rotateFromVector(double x, double y); |
95 AffineTransform& translate(double tx, double ty); | 96 AffineTransform& translate(double tx, double ty); |
96 AffineTransform& shear(double sx, double sy); | 97 AffineTransform& shear(double sx, double sy); |
97 AffineTransform& flipX(); | 98 AffineTransform& flipX(); |
98 AffineTransform& flipY(); | 99 AffineTransform& flipY(); |
99 AffineTransform& skew(double angleX, double angleY); | 100 AffineTransform& skew(double angleX, double angleY); |
100 AffineTransform& skewX(double angle); | 101 AffineTransform& skewX(double angle); |
101 AffineTransform& skewY(double angle); | 102 AffineTransform& skewY(double angle); |
102 | 103 |
103 double xScale() const; | 104 double xScale() const; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 } | 177 } |
177 | 178 |
178 Transform m_transform; | 179 Transform m_transform; |
179 }; | 180 }; |
180 | 181 |
181 PLATFORM_EXPORT AffineTransform makeMapBetweenRects(const FloatRect& source, con
st FloatRect& dest); | 182 PLATFORM_EXPORT AffineTransform makeMapBetweenRects(const FloatRect& source, con
st FloatRect& dest); |
182 | 183 |
183 } | 184 } |
184 | 185 |
185 #endif | 186 #endif |
OLD | NEW |