Lines Matching defs:width

229         fRadiusControl.setXYWH(this->width() - 200, 30, 30, 400);
230 fWeightControl.setXYWH(this->width() - 150, 30, 30, 400);
231 fErrorControl.setXYWH(this->width() - 100, 30, 30, 400);
232 fWidthControl.setXYWH(this->width() - 50, 30, 30, 400);
234 fCubicButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30);
236 fConicButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30);
238 fQuadButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30);
240 fArcButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30);
242 fRRectButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30);
244 fCircleButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30);
246 fTextButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30);
270 void setWHZ(int width, int height, int zoom) {
272 fBounds.setIWH(width * zoom, height * zoom);
277 SkImageInfo info = SkImageInfo::MakeN32Premul(width, height);
279 info = info.makeWH(width * zoom, height * zoom);
308 void draw_ribs(SkCanvas* canvas, const SkPath& path, SkScalar width,
310 const SkScalar radius = width / 2;
341 void draw_t_divs(SkCanvas* canvas, const SkPath& path, SkScalar width, SkColor color) {
342 const SkScalar radius = width / 2;
399 void draw_stroke(SkCanvas* canvas, const SkPath& path, SkScalar width, SkScalar scale,
412 paint.setStrokeWidth(width * scale * scale);
437 draw_ribs(canvas, scaled, width, 0xFF00FF00);
441 draw_t_divs(canvas, scaled, width, 0xFF3F3F00);
449 p.setStrokeWidth(width * scale * scale);
451 p.setStrokeWidth(width);
465 void draw_fill(SkCanvas* canvas, const SkRect& rect, SkScalar width) {
472 paint.setStrokeWidth(width);
474 SkScalar maxSide = std::max(rect.width(), rect.height()) / 2;
480 path.addCircle(center.fX, center.fY, maxSide - width / 2);
485 path.addCircle(center.fX, center.fY, maxSide + width / 2);
486 SkRect outside = SkRect::MakeXYWH(center.fX - maxSide - width, center.fY - maxSide - width,
487 (maxSide + width) * 2, (maxSide + width) * 2);
590 SkScalar width = fWidth;
596 draw_stroke(canvas, path, width, 950, false);
604 draw_stroke(canvas, path, width, 950, false);
612 draw_stroke(canvas, path, width, 950, false);
620 draw_stroke(canvas, path, width, 950, false);
637 draw_stroke(canvas, path, width, 950, false);
641 rr.inset(width/2, width/2, &rr2);
643 rr.inset(-width/2, -width/2, &rr2);
665 draw_fill(canvas, r, width);
667 draw_stroke(canvas, path, width, 950, false);
678 draw_stroke(canvas, path, width * fWidthScale / fTextSize, fTextSize, true);
701 kWidthMax * fWidthScale, "width");