Lines Matching refs:bounds
88 SkRect bounds;
89 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
90 return bounds;
94 SkRect bounds;
96 bounds = measure("top");
97 drawLabel("top", midX - bounds.centerX(), -bounds.top() + kPad);
99 bounds = measure("bottom");
100 drawLabel("bottom", midX - bounds.centerX(), kImgH - kPad - bounds.bottom());
105 bounds = measure("left");
106 drawLabel("left", kPad - bounds.left(), baseY);
108 bounds = measure("right");
109 drawLabel("right", kImgW - kPad - bounds.right(), baseY);
112 bounds = measure(num.c_str());
113 drawLabel(num.c_str(), midX - bounds.centerX(), baseY);