Lines Matching defs:paint

110                                         TextPaint paint) {
111 return getDesiredWidth(source, 0, source.length(), paint);
120 TextPaint paint) {
131 float w = measurePara(paint, source, i, next);
146 * @param paint the default paint for the layout. Styles can override
147 * various attributes of the paint.
155 protected Layout(CharSequence text, TextPaint paint,
158 this(text, paint, width, align, TextDirectionHeuristics.FIRSTSTRONG_LTR,
166 * @param paint the default paint for the layout. Styles can override
167 * various attributes of the paint.
177 protected Layout(CharSequence text, TextPaint paint,
184 // Ensure paint doesn't have baselineShift set.
185 // While normally we don't modify the paint the user passed in,
188 if (paint != null) {
189 paint.bgColor = 0;
190 paint.baselineShift = 0;
194 mPaint = paint;
206 /* package */ void replaceWith(CharSequence text, TextPaint paint,
214 mPaint = paint;
235 * @param highlightPaint the paint for the highlight
259 TextPaint paint = mPaint;
335 margin.drawLeadingMargin(canvas, paint, right, dir, ltop,
340 margin.drawLeadingMargin(canvas, paint, left, dir, ltop,
392 paint.setHyphenEdit(getHyphen(lineNum));
396 canvas.drawText(buf, start, end, x, lbaseline, paint);
398 tl.set(paint, buf, start, end, dir, directions, hasTab, tabStops);
401 paint.setHyphenEdit(0);
430 TextPaint paint = mPaint;
467 lineBackgroundSpan.drawBackground(canvas, paint, 0, width,
576 * Do NOT change the paint, which may result in funny
1682 static float measurePara(TextPaint paint, CharSequence text, int start, int end) {
1728 tl.set(paint, text, start, end, dir, directions, hasTabs, tabStops);