Lines Matching refs:Rect

26 Rect::Rect(const RECT& r)
31 Rect::Rect(const CGRect& r)
37 RECT Rect::ToRECT() const {
46 CGRect Rect::ToCGRect() const {
102 void Rect::SetByBounds(int left, int top, int right, int bottom) {
111 void Rect::Inset(const Insets& insets) {
115 void Rect::Inset(int left, int top, int right, int bottom) {
125 void Rect::Offset(int horizontal, int vertical) {
132 void Rect::operator+=(const Vector2d& offset) {
139 void Rect::operator-=(const Vector2d& offset) {
143 Insets Rect::InsetsFrom(const Rect& inner) const {
150 bool Rect::operator<(const Rect& other) const {
162 bool Rect::Contains(int point_x, int point_y) const {
167 bool Rect::Contains(const Rect& rect) const {
172 bool Rect::Intersects(const Rect& rect) const {
177 void Rect::Intersect(const Rect& rect) {
196 void Rect::Union(const Rect& rect) {
209 void Rect::Subtract(const Rect& rect) {
240 void Rect::AdjustToFit(const Rect& rect) {
250 Point Rect::CenterPoint() const {
254 void Rect::ClampToCenteredSize(const Size& size) {
262 void Rect::SplitVertically(Rect* left_half, Rect* right_half) const {
271 bool Rect::SharesEdgeWith(const Rect& rect) const {
278 int Rect::ManhattanDistanceToPoint(const Point& point) const {
287 int Rect::ManhattanInternalDistance(const Rect& rect) const {
288 Rect c(*this);
296 std::string Rect::ToString() const {
302 bool Rect::ApproximatelyEqual(const Rect& rect, int tolerance) const {
309 Rect operator+(const Rect& lhs, const Vector2d& rhs) {
310 Rect result(lhs);
315 Rect operator-(const Rect& lhs, const Vector2d& rhs) {
316 Rect result(lhs);
321 Rect IntersectRects(const Rect& a, const Rect& b) {
322 Rect result = a;
327 Rect UnionRects(const Rect& a, const Rect& b) {
328 Rect result = a;
333 Rect SubtractRects(const Rect& a, const Rect& b) {
334 Rect result = a;
339 Rect BoundingRect(const Point& p1, const Point& p2) {
340 Rect result;