Home | History | Annotate | Download | only in samplecode

Lines Matching refs:loc

79         SkPoint loc = this->start();
82 if (this->bounds(loc).intersects(crect)) {
88 this->next(&loc);
104 SkRect bounds(const SkPoint& loc) const {
105 return SkRect::MakeXYWH(loc.x(), loc.y() + fNameMetrics.fAscent, fNameW, fNameH);
112 void next(SkPoint* loc) const {
113 loc->fY += fNameH;
114 if (loc->fY > this->height() - fNameMetrics.fBottom) {
115 loc->fY = -fNameMetrics.fTop;
116 loc->fX += fNameW;
166 SkPoint loc = this->start();
169 canvas->drawRect(this->bounds(loc), paint);
170 canvas->drawText(fNames[i].c_str(), fNames[i].size(), loc.x(), loc.y(), fNamePaint);
171 this->next(&loc);