OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 void drawLine(const IntPoint&, const IntPoint&); | 218 void drawLine(const IntPoint&, const IntPoint&); |
219 void drawEllipse(const IntRect&); | 219 void drawEllipse(const IntRect&); |
220 void drawConvexPolygon(size_t numPoints, const FloatPoint*, bool shouldA
ntialias = false); | 220 void drawConvexPolygon(size_t numPoints, const FloatPoint*, bool shouldA
ntialias = false); |
221 | 221 |
222 void fillPath(const Path&); | 222 void fillPath(const Path&); |
223 void strokePath(const Path&); | 223 void strokePath(const Path&); |
224 | 224 |
225 void fillEllipse(const FloatRect&); | 225 void fillEllipse(const FloatRect&); |
226 void strokeEllipse(const FloatRect&); | 226 void strokeEllipse(const FloatRect&); |
227 | 227 |
228 // Arc drawing (used by border-radius in CSS) just supports stroking at
the moment. | |
229 void strokeArc(const IntRect&, int startAngle, int angleSpan); | |
230 | |
231 void fillRect(const FloatRect&); | 228 void fillRect(const FloatRect&); |
232 void fillRect(const FloatRect&, const Color&, ColorSpace); | 229 void fillRect(const FloatRect&, const Color&, ColorSpace); |
233 void fillRect(const FloatRect&, Generator&); | 230 void fillRect(const FloatRect&, Generator&); |
234 void fillRect(const FloatRect&, const Color&, ColorSpace, CompositeOpera
tor); | 231 void fillRect(const FloatRect&, const Color&, ColorSpace, CompositeOpera
tor); |
235 void fillRoundedRect(const IntRect&, const IntSize& topLeft, const IntSi
ze& topRight, const IntSize& bottomLeft, const IntSize& bottomRight, const Color
&, ColorSpace); | 232 void fillRoundedRect(const IntRect&, const IntSize& topLeft, const IntSi
ze& topRight, const IntSize& bottomLeft, const IntSize& bottomRight, const Color
&, ColorSpace); |
236 void fillRoundedRect(const RoundedRect&, const Color&, ColorSpace); | 233 void fillRoundedRect(const RoundedRect&, const Color&, ColorSpace); |
237 void fillRectWithRoundedHole(const IntRect&, const RoundedRect& roundedH
oleRect, const Color&, ColorSpace); | 234 void fillRectWithRoundedHole(const IntRect&, const RoundedRect& roundedH
oleRect, const Color&, ColorSpace); |
238 | 235 |
239 void clearRect(const FloatRect&); | 236 void clearRect(const FloatRect&); |
240 | 237 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 | 435 |
439 private: | 436 private: |
440 GraphicsContext& m_context; | 437 GraphicsContext& m_context; |
441 bool m_saveAndRestore; | 438 bool m_saveAndRestore; |
442 }; | 439 }; |
443 | 440 |
444 } // namespace WebCore | 441 } // namespace WebCore |
445 | 442 |
446 #endif // GraphicsContext_h | 443 #endif // GraphicsContext_h |
447 | 444 |
OLD | NEW |