/dports/www/chromium-legacy/chromium-88.0.4324.182/cc/base/ |
H A D | simple_enclosed_region.h | 26 : rect_(region.rect_) {} in SimpleEnclosedRegion() 34 rect_ = rect; 38 rect_ = region.rect_; 49 return rect_.Contains(region.rect_); in Contains() 56 return rect_.Intersects(region.rect_); in Intersects() 61 Subtract(sub_region.rect_); in Subtract() 65 Union(new_region.rect_); in Union() 69 Intersect(in_region.rect_); in Intersect() 73 bool both_empty = rect_.IsEmpty() && other.rect_.IsEmpty(); in Equals() 74 return both_empty || rect_ == other.rect_; in Equals() [all …]
|
H A D | simple_enclosed_region.cc | 35 rect_ = gfx::Rect(); in Subtract() 39 int left = rect_.x(); in Subtract() 40 int right = rect_.right(); in Subtract() 41 int top = rect_.y(); in Subtract() 66 rect_.SetRect( in Subtract() 72 rect_ = vertical_rect; in Subtract() 85 rect_ = new_rect; in Union() 89 int left = rect_.x(); in Union() 90 int top = rect_.y(); in Union() 127 int64_t rect_area = static_cast<int64_t>(rect_.width()) * rect_.height(); in Union() [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/cc/base/ |
H A D | simple_enclosed_region.h | 26 : rect_(region.rect_) {} in SimpleEnclosedRegion() 34 rect_ = rect; 38 rect_ = region.rect_; 49 return rect_.Contains(region.rect_); in Contains() 56 return rect_.Intersects(region.rect_); in Intersects() 61 Subtract(sub_region.rect_); in Subtract() 65 Union(new_region.rect_); in Union() 69 Intersect(in_region.rect_); in Intersect() 73 bool both_empty = rect_.IsEmpty() && other.rect_.IsEmpty(); in Equals() 74 return both_empty || rect_ == other.rect_; in Equals() [all …]
|
H A D | simple_enclosed_region.cc | 35 rect_ = gfx::Rect(); in Subtract() 39 int left = rect_.x(); in Subtract() 40 int right = rect_.right(); in Subtract() 41 int top = rect_.y(); in Subtract() 66 rect_.SetRect( in Subtract() 72 rect_ = vertical_rect; in Subtract() 85 rect_ = new_rect; in Union() 89 int left = rect_.x(); in Union() 90 int top = rect_.y(); in Union() 127 int64_t rect_area = static_cast<int64_t>(rect_.width()) * rect_.height(); in Union() [all …]
|
/dports/graphics/R-cran-s2/s2/src/s2/ |
H A D | s2r2rect.h | 203 R2Rect rect_; 218 : rect_(x, y) {} in S2R2Rect() 255 return rect_.Contains(other.rect_); in Contains() 258 return rect_.InteriorContains(other.rect_); in InteriorContains() 261 return rect_.Intersects(other.rect_); in Intersects() 264 return rect_.InteriorIntersects(other.rect_); in InteriorIntersects() 267 rect_.AddPoint(p); in AddPoint() 279 return S2R2Rect(rect_.Union(other.rect_)); in Union() 282 return S2R2Rect(rect_.Intersection(other.rect_)); in Intersection() 285 return rect_ == other.rect_; [all …]
|
/dports/graphics/s2/s2geometry-0.9.0/src/s2/ |
H A D | s2r2rect.h | 203 R2Rect rect_; 218 : rect_(x, y) {} in S2R2Rect() 255 return rect_.Contains(other.rect_); in Contains() 258 return rect_.InteriorContains(other.rect_); in InteriorContains() 261 return rect_.Intersects(other.rect_); in Intersects() 264 return rect_.InteriorIntersects(other.rect_); in InteriorIntersects() 267 rect_.AddPoint(p); in AddPoint() 279 return S2R2Rect(rect_.Union(other.rect_)); in Union() 282 return S2R2Rect(rect_.Intersection(other.rect_)); in Intersection() 285 return rect_ == other.rect_; [all …]
|
/dports/graphics/py-s2/s2geometry-0.9.0/src/s2/ |
H A D | s2r2rect.h | 203 R2Rect rect_; 218 : rect_(x, y) {} in S2R2Rect() 255 return rect_.Contains(other.rect_); in Contains() 258 return rect_.InteriorContains(other.rect_); in InteriorContains() 261 return rect_.Intersects(other.rect_); in Intersects() 264 return rect_.InteriorIntersects(other.rect_); in InteriorIntersects() 267 rect_.AddPoint(p); in AddPoint() 279 return S2R2Rect(rect_.Union(other.rect_)); in Union() 282 return S2R2Rect(rect_.Intersection(other.rect_)); in Intersection() 285 return rect_ == other.rect_; [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/ppapi/cpp/ |
H A D | rect.h | 27 rect_.point.x = 0; in Rect() 28 rect_.point.y = 0; in Rect() 106 return rect_; in PP_Rect() 113 return rect_; in pp_rect() 120 return rect_; in pp_rect() 258 rect_ = rect; in SetRect() 306 return rect_.size.width == 0 || rect_.size.height == 0; in IsEmpty() 398 PP_Rect rect_; 488 return rect_; in PP_FloatRect() 497 return rect_; in pp_float_rect() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/ppapi/cpp/ |
H A D | rect.h | 27 rect_.point.x = 0; in Rect() 28 rect_.point.y = 0; in Rect() 106 return rect_; in PP_Rect() 113 return rect_; in pp_rect() 120 return rect_; in pp_rect() 258 rect_ = rect; in SetRect() 306 return rect_.size.width == 0 || rect_.size.height == 0; in IsEmpty() 398 PP_Rect rect_; 488 return rect_; in PP_FloatRect() 497 return rect_; in pp_float_rect() [all …]
|
/dports/games/widelands/widelands-build21/src/graphic/ |
H A D | rendertarget.cc | 39 rect_ = rc; in set_window() 44 if (rect_.x < 0) { in set_window() 46 rect_.w = std::max<int32_t>(rect_.w + rect_.x, 0); in set_window() 47 rect_.x = 0; in set_window() 50 if (rect_.x + rect_.w > surface_->width()) { in set_window() 51 rect_.w = std::max<int32_t>(surface_->width() - rect_.x, 0); in set_window() 56 rect_.h = std::max<int32_t>(rect_.h + rect_.y, 0); in set_window() 57 rect_.y = 0; in set_window() 60 if (rect_.y + rect_.h > surface_->height()) { in set_window() 61 rect_.h = std::max<int32_t>(surface_->height() - rect_.y, 0); in set_window() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/platform/graphics/paint/ |
H A D | cull_rect.cc | 27 return !(lo >= rect_.MaxX() || hi <= rect_.X()); in IntersectsHorizontalRange() 31 return !(lo >= rect_.MaxY() || hi <= rect_.Y()); in IntersectsVerticalRange() 36 rect_.MoveBy(offset); in MoveBy() 41 rect_.Move(offset); in Move() 48 FloatRect float_rect(rect_); in Move() 50 rect_ = EnclosingIntRect(float_rect); in Move() 69 if (rect_.IsEmpty()) in ApplyTransformInternal() 72 MapRect(transform, rect_); in ApplyTransformInternal() 86 rect_.Inflate(kPixelDistanceToExpand); in ApplyTransformInternal() 96 MapRect(transform, rect_); in ApplyTransformInternal() [all …]
|
H A D | float_clip_rect.h | 22 : rect_(FloatRect(LayoutRect::InfiniteIntRect())), in FloatClipRect() 30 : rect_(rect.Rect()), in FloatClipRect() 35 const FloatRect& Rect() const { return rect_; } in Rect() 37 FloatRect& Rect() { return rect_; } in Rect() 40 rect_ = rect; in SetRect() 52 rect_ = other.rect_; in Intersect() 54 rect_.Intersect(other.Rect()); in Intersect() 71 rect_ = other.rect_; in InclusiveIntersect() 100 rect_.MoveBy(offset); in MoveBy() 110 rect_ = matrix.MapRect(rect_); in Map() [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/platform/graphics/paint/ |
H A D | cull_rect.cc | 18 return IsInfinite() || rect.Intersects(rect_); in Intersects() 37 return !(lo >= rect_.MaxX() || hi <= rect_.X()); in IntersectsHorizontalRange() 41 return !(lo >= rect_.MaxY() || hi <= rect_.Y()); in IntersectsVerticalRange() 46 rect_.MoveBy(offset); in MoveBy() 51 rect_.Move(offset); in Move() 71 rect_.Intersect(scroll->ContainerRect()); in ApplyTransformInternal() 72 if (rect_.IsEmpty()) in ApplyTransformInternal() 76 MapRect(transform, rect_); in ApplyTransformInternal() 90 rect_.Inflate(kPixelDistanceToExpand); in ApplyTransformInternal() 100 MapRect(transform, rect_); in ApplyTransformInternal() [all …]
|
H A D | float_clip_rect.h | 22 : rect_(FloatRect(LayoutRect::InfiniteIntRect())), in FloatClipRect() 30 : rect_(rect.Rect()), in FloatClipRect() 35 const FloatRect& Rect() const { return rect_; } in Rect() 37 FloatRect& Rect() { return rect_; } in Rect() 40 rect_ = rect; in SetRect() 52 rect_ = other.rect_; in Intersect() 54 rect_.Intersect(other.Rect()); in Intersect() 71 rect_ = other.rect_; in InclusiveIntersect() 100 rect_.MoveBy(offset); in MoveBy() 110 rect_ = matrix.MapRect(rect_); in Map() [all …]
|
/dports/graphics/urho3d/Urho3D-1.7.1/Source/Urho3D/Graphics/ |
H A D | Viewport.cpp | 41 rect_(IntRect::ZERO), in Viewport() 51 rect_(IntRect::ZERO), in Viewport() 61 rect_(rect), in Viewport() 88 rect_ = rect; in SetRect() 148 if (rect_ == IntRect::ZERO) in GetScreenRay() 156 screenX = float(x - rect_.left_) / (float)rect_.Width(); in GetScreenRay() 157 screenY = float(y - rect_.top_) / (float)rect_.Height(); in GetScreenRay() 181 x = (int)(rect_.left_ + screenPoint.x_ * rect_.Width()); in WorldToScreenPoint() 182 y = (int)(rect_.top_ + screenPoint.y_ * rect_.Height()); in WorldToScreenPoint() 205 screenX = float(x - rect_.left_) / (float)rect_.Width(); in ScreenToWorldPoint() [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/platform/geometry/ |
H A D | float_rounded_rect.cc | 40 : rect_(x, y, width, height) {} in FloatRoundedRect() 43 : rect_(rect), radii_(radii) {} in FloatRoundedRect() 156 FloatRect center_rect(rect_); in RadiusCenterRect() 187 min_x_intercept = rect_.X(); in XInterceptsAtY() 209 FloatRect old = rect_; in InflateWithRadii() 211 rect_.Inflate(size); in InflateWithRadii() 215 if (rect_.Width() < rect_.Height()) in InflateWithRadii() 224 if (!quad.IntersectsRect(rect_)) in IntersectsQuad() 229 FloatRect rect(rect_.X(), rect_.Y(), top_left.Width(), top_left.Height()); in IntersectsQuad() 241 FloatRect rect(rect_.MaxX() - top_right.Width(), rect_.Y(), in IntersectsQuad() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/platform/geometry/ |
H A D | float_rounded_rect.cc | 40 : rect_(x, y, width, height) {} in FloatRoundedRect() 43 : rect_(rect), radii_(radii) {} in FloatRoundedRect() 156 FloatRect center_rect(rect_); in RadiusCenterRect() 187 min_x_intercept = rect_.X(); in XInterceptsAtY() 209 FloatRect old = rect_; in InflateWithRadii() 211 rect_.Inflate(size); in InflateWithRadii() 215 if (rect_.Width() < rect_.Height()) in InflateWithRadii() 224 if (!quad.IntersectsRect(rect_)) in IntersectsQuad() 229 FloatRect rect(rect_.X(), rect_.Y(), top_left.Width(), top_left.Height()); in IntersectsQuad() 241 FloatRect rect(rect_.MaxX() - top_right.Width(), rect_.Y(), in IntersectsQuad() [all …]
|
/dports/games/wesnoth/wesnoth-1.14.17/src/widgets/ |
H A D | widget.cpp | 77 if(rect_.x == rect.x && rect_.y == rect.y && rect_.w == rect.w && rect_.h == rect.h) in set_location() 84 rect_ = rect; in set_location() 106 set_location({x, y, rect_.w, rect_.h}); in set_location() 111 set_location({rect_.x, rect_.y, w, rect_.h}); in set_width() 116 set_location({rect_.x, rect_.y, rect_.w, h}); in set_height() 121 set_location({rect_.x, rect_.y, w, h}); in set_measurements() 126 return rect_.w; in width() 131 return rect_.h; in height() 136 return rect_; in location() 191 || (clip_ && !sdl::rects_overlap(clip_rect_, rect_))); in hidden() [all …]
|
/dports/games/frogatto/frogatto-1.3.1/src/ |
H A D | current_generator.cpp | 73 : rect_(r), xvelocity_(xvelocity), yvelocity_(yvelocity), strength_(strength) in rect_current_generator() 83 if(point_in_rect(point(target_x, target_y), rect_)) { in generate() 86 const int distance = rect_.x2() - target_x; in generate() 87 amount = (amount*distance*distance)/(rect_.h()*rect_.h()); in generate() 94 const int distance = target_x - rect_.x(); in generate() 95 amount = (amount*distance*distance)/(rect_.h()*rect_.h()); in generate() 104 const int distance = rect_.y2() - target_y; in generate() 105 amount = (amount*distance*distance)/(rect_.h()*rect_.h()); in generate() 112 const int distance = target_y - rect_.y(); in generate() 115 if(distance < rect_.h()/2 && *velocity_y > 0) { in generate() [all …]
|
/dports/games/rlvm/rlvm-release-0.14-77-gfabf134a/src/platforms/gcn/ |
H A D | gcn_graphics.h | 65 const Rect& topLeft() const { return rect_[0]; } in topLeft() 66 const Rect& top() const { return rect_[1]; } in top() 67 const Rect& topRight() const { return rect_[2]; } in topRight() 68 const Rect& left() const { return rect_[3]; } in left() 69 const Rect& center() const { return rect_[4]; } in center() 70 const Rect& right() const { return rect_[5]; } in right() 71 const Rect& bottomLeft() const { return rect_[6]; } in bottomLeft() 72 const Rect& bottom() const { return rect_[7]; } in bottom() 73 const Rect& bottomRight() const { return rect_[8]; } in bottomRight() 82 Rect rect_[9]; member
|
/dports/graphics/osg34/OpenSceneGraph-OpenSceneGraph-3.4.1/examples/osgfxbrowser/ |
H A D | Frame.cpp | 28 rect_(0, 0, 100, 100), in Frame() 36 rect_(copy.rect_), in Frame() 46 addDrawable(build_quad(rect_, bgcolor_)); in rebuild() 47 …addDrawable(build_quad(Rect(rect_.x0 + 4, rect_.y1 - 24, rect_.x1 - 4, rect_.y1 - 4), osg::Vec4(0,… in rebuild() 56 caption_text->setPosition(osg::Vec3((rect_.x0 + rect_.x1) / 2, rect_.y1 - 15, zPos*2.0f)); in rebuild() 59 rebuild_client_area(Rect(rect_.x0 + 4, rect_.y0 + 4, rect_.x1 - 4, rect_.y1 - 28)); in rebuild()
|
/dports/graphics/osg/OpenSceneGraph-OpenSceneGraph-3.6.5/examples/osgfxbrowser/ |
H A D | Frame.cpp | 28 rect_(0, 0, 100, 100), in Frame() 36 rect_(copy.rect_), in Frame() 46 addDrawable(build_quad(rect_, bgcolor_)); in rebuild() 47 …addDrawable(build_quad(Rect(rect_.x0 + 4, rect_.y1 - 24, rect_.x1 - 4, rect_.y1 - 4), osg::Vec4(0,… in rebuild() 56 caption_text->setPosition(osg::Vec3((rect_.x0 + rect_.x1) / 2, rect_.y1 - 15, zPos*2.0f)); in rebuild() 59 rebuild_client_area(Rect(rect_.x0 + 4, rect_.y0 + 4, rect_.x1 - 4, rect_.y1 - 28)); in rebuild()
|
/dports/science/pulseview/pulseview-0.4.2/pv/views/trace/ |
H A D | viewitempaintparams.hpp | 39 return rect_; in rect() 51 return rect_.left(); in left() 55 return rect_.right(); in right() 59 return rect_.top(); in top() 63 return rect_.bottom(); in bottom() 67 return rect_.width(); in width() 71 return rect_.height(); in height() 90 QRect rect_; member in pv::views::trace::ViewItemPaintParams
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/core/paint/ |
H A D | clip_rect.cc | 37 : rect_(PhysicalRect::InfiniteIntRect()), in ClipRect() 54 rect_ = PhysicalRect::FastAndLossyFromFloatRect(rect.Rect()); in SetRectInternal() 58 rect_ = rect; in SetRect() 65 rect_ = other; in Intersect() 68 rect_.Intersect(other); in Intersect() 83 return hit_test_location.Intersects(rect_); in Intersects() 91 rect_ = PhysicalRect(LayoutRect::InfiniteIntRect()); in Reset() 95 return rect_.ToString() + (has_radius_ ? " hasRadius" : " noRadius") + in ToString()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/core/paint/ |
H A D | clip_rect.cc | 37 : rect_(PhysicalRect::InfiniteIntRect()), in ClipRect() 54 rect_ = PhysicalRect::FastAndLossyFromFloatRect(rect.Rect()); in SetRectInternal() 58 rect_ = rect; in SetRect() 65 rect_ = other; in Intersect() 68 rect_.Intersect(other); in Intersect() 83 return hit_test_location.Intersects(rect_); in Intersects() 91 rect_ = PhysicalRect(LayoutRect::InfiniteIntRect()); in Reset() 95 return rect_.ToString() + (has_radius_ ? " hasRadius" : " noRadius") + in ToString()
|