/* * Rect.cpp * Android * * Created on 10/14/05. * Copyright 2005 The Android Open Source Project * */ #include namespace android { inline int min(int a, int b) { return (ab) ? a : b; } void Rect::makeInvalid() { left = 0; top = 0; right = -1; bottom = -1; } bool Rect::operator < (const Rect& rhs) const { if (topleft = max(left, with.left); result->top = max(top, with.top); result->right = min(right, with.right); result->bottom = min(bottom, with.bottom); return !(result->isEmpty()); } }; // namespace android