Lines Matching defs:rect
180 hwc_rect rect;
182 rect.left = rect.top = 0;
184 rect.right = this->_w;
185 rect.bottom = this->_h;
187 return rect;
191 string hwcTestRect2str(const struct hwc_rect& rect)
196 out << rect.left << ", ";
197 out << rect.top << ", ";
198 out << rect.right << ", ";
199 out << rect.bottom;
208 struct hwc_rect rect;
217 if (!in || ((chStart != '<') && (chStart != '['))) { return rect; }
220 in >> rect.left;
221 if (!in) { return rect; }
223 if (!in || (ch != ',')) { return rect; }
226 in >> rect.top;
227 if (!in) { return rect; }
229 if (!in || (ch != ',')) { return rect; }
232 in >> rect.right;
233 if (!in) { return rect; }
235 if (!in || (ch != ',')) { return rect; }
238 in >> rect.bottom;
239 if (!in) { return rect; }
243 if (!in) { return rect; }
245 || ((chStart == '[') && (ch != ']'))) { return rect; }
248 if ((rect.right <= rect.left) || (rect.bottom <= rect.top)) { return rect; }
253 return rect;