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

Side by Side Diff: include/core/SkCanvas.h

Issue 22585002: Add SkCanvas::drawPosTextBounded. (Closed) Base URL: http://skia.googlecode.com/svn/trunk
Patch Set: spelling correction Created 7 years, 4 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 | src/core/SkBBoxRecord.h » ('j') | src/core/SkBBoxRecord.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkCanvas_DEFINED 10 #ifndef SkCanvas_DEFINED
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 /** Draw the text, with each character/glyph origin specified by the pos[] 743 /** Draw the text, with each character/glyph origin specified by the pos[]
744 array. The origin is interpreted by the Align setting in the paint. 744 array. The origin is interpreted by the Align setting in the paint.
745 @param text The text to be drawn 745 @param text The text to be drawn
746 @param byteLength The number of bytes to read from the text parameter 746 @param byteLength The number of bytes to read from the text parameter
747 @param pos Array of positions, used to position each character 747 @param pos Array of positions, used to position each character
748 @param paint The paint used for the text (e.g. color, size, style) 748 @param paint The paint used for the text (e.g. color, size, style)
749 */ 749 */
750 virtual void drawPosText(const void* text, size_t byteLength, 750 virtual void drawPosText(const void* text, size_t byteLength,
751 const SkPoint pos[], const SkPaint& paint); 751 const SkPoint pos[], const SkPaint& paint);
752 752
753 /** Draw the text, with each character/glyph origin specified by the pos[]
754 array. The origin is interpreted by the Align setting in the paint.
755 @param text The text to be drawn
756 @param byteLength The number of bytes to read from the text parameter
757 @param pos Array of positions, used to position each character
758 @param bbox Precomputed bounding box of the text.
759 @param paint The paint used for the text (e.g. color, size, style)
760 */
761 virtual void drawPosTextBounded(const void* text, size_t byteLength,
762 const SkPoint pos[], const SkRect& bbox,
763 const SkPaint& paint);
764
753 /** Draw the text, with each character/glyph origin specified by the x 765 /** Draw the text, with each character/glyph origin specified by the x
754 coordinate taken from the xpos[] array, and the y from the constY param. 766 coordinate taken from the xpos[] array, and the y from the constY param.
755 The origin is interpreted by the Align setting in the paint. 767 The origin is interpreted by the Align setting in the paint.
756 @param text The text to be drawn 768 @param text The text to be drawn
757 @param byteLength The number of bytes to read from the text parameter 769 @param byteLength The number of bytes to read from the text parameter
758 @param xpos Array of x-positions, used to position each character 770 @param xpos Array of x-positions, used to position each character
759 @param constY The shared Y coordinate for all of the positions 771 @param constY The shared Y coordinate for all of the positions
760 @param paint The paint used for the text (e.g. color, size, style) 772 @param paint The paint used for the text (e.g. color, size, style)
761 */ 773 */
762 virtual void drawPosTextH(const void* text, size_t byteLength, 774 virtual void drawPosTextH(const void* text, size_t byteLength,
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 if (NULL != fCanvas) { 1187 if (NULL != fCanvas) {
1176 fCanvas->endCommentGroup(); 1188 fCanvas->endCommentGroup();
1177 } 1189 }
1178 } 1190 }
1179 1191
1180 private: 1192 private:
1181 SkCanvas* fCanvas; 1193 SkCanvas* fCanvas;
1182 }; 1194 };
1183 1195
1184 #endif 1196 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkBBoxRecord.h » ('j') | src/core/SkBBoxRecord.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698