Lines Matching refs:rect
39 bool IsValid(const LayerRect &rect) { in IsValid() argument
40 return ((rect.bottom > rect.top) && (rect.right > rect.left)); in IsValid()
55 void Normalize(const uint32_t &align_x, const uint32_t &align_y, LayerRect *rect) { in Normalize() argument
56 rect->left = ROUND_UP_ALIGN_UP(rect->left, align_x); in Normalize()
57 rect->right = ROUND_UP_ALIGN_DOWN(rect->right, align_x); in Normalize()
58 rect->top = ROUND_UP_ALIGN_UP(rect->top, align_y); in Normalize()
59 rect->bottom = ROUND_UP_ALIGN_DOWN(rect->bottom, align_y); in Normalize()
81 LayerRect Reposition(const LayerRect &rect, const int &x_offset, const int &y_offset) { in Reposition() argument
84 if (!IsValid(rect)) { in Reposition()
88 res.left = rect.left + FLOAT(x_offset); in Reposition()
89 res.top = rect.top + FLOAT(y_offset); in Reposition()
90 res.right = rect.right + FLOAT(x_offset); in Reposition()
91 res.bottom = rect.bottom + FLOAT(y_offset); in Reposition()