Lines Matching defs:rect
184 hwc_rect rect;
186 rect.left = rect.top = 0;
188 rect.right = this->_w;
189 rect.bottom = this->_h;
191 return rect;
195 string hwcTestRect2str(const struct hwc_rect& rect)
200 out << rect.left << ", ";
201 out << rect.top << ", ";
202 out << rect.right << ", ";
203 out << rect.bottom;
212 struct hwc_rect rect;
221 if (!in || ((chStart != '<') && (chStart != '['))) { return rect; }
224 in >> rect.left;
225 if (!in) { return rect; }
227 if (!in || (ch != ',')) { return rect; }
230 in >> rect.top;
231 if (!in) { return rect; }
233 if (!in || (ch != ',')) { return rect; }
236 in >> rect.right;
237 if (!in) { return rect; }
239 if (!in || (ch != ',')) { return rect; }
242 in >> rect.bottom;
243 if (!in) { return rect; }
247 if (!in) { return rect; }
249 || ((chStart == '[') && (ch != ']'))) { return rect; }
252 if ((rect.right <= rect.left) || (rect.bottom <= rect.top)) { return rect; }
257 return rect;