/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | rect.h | 56 CommonRect() : left_(0), top_(0), right_(0), bottom_(0) {} in CommonRect() 74 CommonRect(T left, T top, T right, T bottom) : left_(left), top_(top), right_(right), bottom_(bottom) {} in CommonRect() 107 right_ = right; in SetRect() 120 return right_ - left_ + 1; in GetWidth() 186 return right_; in GetRight() 208 right_ += x - left_; in SetX() 234 right_ += x - left_; in SetPosition() 248 right_ = left_ + width - 1; in SetWidth() 292 right_ = right; in SetRight() 315 right_ in Resize() 504 T right_; global() member in OHOS::CommonRect [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/ |
H A D | rect.h | 119 int32_t right_; member in OHOS::Rosen::Drawing::RectI 123 inline RectI::RectI() noexcept : left_(0), top_(0), right_(0), bottom_(0) {} 126 : left_(r.GetLeft()), top_(r.GetTop()), right_(r.GetRight()), bottom_(r.GetBottom()) in bottom_() 130 : left_(l), top_(t), right_(r), bottom_(b) in bottom_() 140 int64_t w = (int64_t)right_ - (int64_t)left_; in IsEmpty() 162 return right_; in GetRight() 172 return right_ - left_; in GetWidth() 192 right_ = pos; in SetRight() 203 right_ += dx; in Offset() 211 right_ in MakeOutset() 325 scalar right_; global() member in OHOS::Rosen::Drawing::RectF [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | edge.h | 39 : left_(Dimension(left, unit)), top_(Dimension(top, unit)), right_(Dimension(right, unit)), in Edge() 43 right_(CalcDimension(right, unit)), bottom_(CalcDimension(bottom, unit)) {} in Edge() 45 : left_(left), top_(top), right_(right), bottom_(bottom) {} in Edge() 49 right_(AnimatableDimension(right, option)), bottom_(AnimatableDimension(bottom, option)) {} in Edge() 53 right_(AnimatableDimension(right, option)), bottom_(AnimatableDimension(bottom, option)) {} in Edge() 117 return right_; in Right() 122 right_ = right; in SetRight() 127 right_ = AnimatableDimension(right); in SetRight() 132 right_ = AnimatableDimension(right); in SetRight() 157 return Edge(left_ + edge.left_, top_ + edge.top_, right_ in operator +() 194 AnimatableDimension right_; global() member in OHOS::Ace::Edge [all...] |
H A D | border.cpp | 21 : left_(left), top_(top), right_(right), bottom_(bottom) in Border() 32 return (left_ == top_) && (top_ == right_) && (right_ == bottom_); in IsAllEqual() 37 return left_.HasValue() || top_.HasValue() || right_.HasValue() || bottom_.HasValue(); in HasValue() 53 return left_.GetWidthInPx(dipScale) + right_.GetWidthInPx(dipScale); in HorizontalWidth() 74 if (right_.HasValue()) { in GetValidEdge() 75 return right_; in GetValidEdge()
|
H A D | edge.cpp | 42 edge.right_ = StringUtils::StringToDimension(offsets[0]); in FromString() 48 edge.right_ = StringUtils::StringToDimension(offsets[1]); in FromString() 54 edge.right_ = StringUtils::StringToDimension(offsets[1]); in FromString() 60 edge.right_ = StringUtils::StringToDimension(offsets[1]); in FromString() 73 return left_.Value() >= 0.0 && top_.Value() >= 0.0 && right_.Value() >= 0.0 && bottom_.Value() >= 0.0; in IsValid() 78 return left_.Value() > 0.0 || top_.Value() > 0.0 || right_.Value() > 0.0 || bottom_.Value() > 0.0; in IsEffective() 83 double width = GetValueInPx(left_, dipScale) + GetValueInPx(right_, dipScale); in GetLayoutSizeInPx() 95 return GetValueInPx(left_, dipScale) + GetValueInPx(right_, dipScale); in HorizontalInPx()
|
H A D | border.h | 60 return left_.IsValid() && right_.IsValid() && bottom_.IsValid() && top_.IsValid() && topLeftRadius_.IsValid() && in IsValid() 72 right_.GetBorderStyle() == BorderStyle::SOLID && top_.GetBorderStyle() == BorderStyle::SOLID; in IsAllSolidStyle() 87 right_ = borderEdge; in SetBorderEdge() 151 return right_; in Right() 161 return (border.Left() == left_) && (border.Top() == top_) && (border.Right() == right_) && in operator ==() 177 right_ = edge; in SetRightEdge() 205 right_.SetWidth(width, option); in SetRightWidth() 233 right_.SetStyle(style); in SetRightStyle() 261 right_.SetColor(color, option); in SetRightColor() 273 right_ in SetContextAndCallback() 349 BorderEdge right_; global() member in OHOS::Ace::final [all...] |
H A D | swiper_indicator.h | 116 return right_; in GetRight() 121 right_ = right; in SetRight() 244 Dimension right_ { DEFAULT_POSITION, DimensionUnit::PX };
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/ |
H A D | rs_occlusion_region.cpp | 29 os << "{" << r.left_ << "," << r.top_ << "," << r.right_ << "," << r.bottom_ << "}"; in operator <<() 56 if (right_ == nullptr) { in Update() 57 right_ = new Node { mid_, end_ }; in Update() 63 if (right_ != nullptr) { in Update() 64 right_->Update(mid_ > updateStart ? mid_ : updateStart, updateEnd, type); in Update() 79 if (right_ != nullptr) { in GetAndRange() 80 right_->GetAndRange(res, isPos, isNeg); in GetAndRange() 95 if (right_ != nullptr) { in GetOrRange() 96 right_->GetOrRange(res, isPos, isNeg); in GetOrRange() 113 if (right_ ! in GetXOrRange() [all...] |
H A D | rs_occlusion_region_helper.cpp | 26 } else if (cur_->right_ == r.left_) { // merge rect in horizon (X) direction in Insert() 27 cur_->right_ = r.right_; in Insert() 44 bound_.right_ = std::max(rectsRow_[rectsRow_.size() - 1].right_, bound_.right_); in FlushVerticalSpan() 64 (curRowPtr->right_ != lastRowPtr->right_)) { in CurrentSpanCanMerge() 184 lhsEnd_ = lhs_.rects_->right_; in Init() 191 rhsEnd_ = rhs_.rects_->right_; in Init() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_occlusion_region.h | 38 int right_ = 0; member in OHOS::Rosen::Occlusion::Rect 41 Rect() : left_(0), top_(0), right_(0), bottom_(0) {} in Rect() 43 : left_(l), top_(t), right_(r), bottom_(b) in Rect() 47 if (left_ != l || top_ != t || right_ != r || bottom_ != b) { in Rect() 56 : left_(r.left_), top_(r.top_), right_(r.GetRight()), bottom_(r.GetBottom()) in Rect() 60 if (left_ != r.left_ || top_ != r.top_ || right_ != r.GetRight() || bottom_ != r.GetBottom()) { in Rect() 72 right_ = 0; in SetEmpty() 78 return left_ >= right_ || top_ >= bottom_; in IsEmpty() 83 return left_ == r.left_ && top_ == r.top_ && right_ == r.right_ in operator ==() 168 int right_ = 0; global() member in OHOS::Rosen::Occlusion::Event 193 Node* right_ = nullptr; global() member in OHOS::Rosen::Occlusion::Node [all...] |
/foundation/window/window_manager/utils/src/ |
H A D | wm_occlusion_region.cpp | 27 os << "{" << r.left_ << "," << r.top_ << "," << r.right_ << "," << r.bottom_ << "}"; in operator <<() 43 if (right_ == nullptr) { in Update() 44 right_ = new Node { mid_, end_ }; in Update() 53 if (right_) { in Update() 54 right_->Update(mid_ > updateStart ? mid_ : updateStart, updateEnd, type); in Update() 78 if (right_ != nullptr) { in GetOrRange() 79 right_->GetOrRange(res, isPos, isNeg); in GetOrRange() 95 if (right_ != nullptr) { in GetAndRange() 96 right_->GetAndRange(res, isPos, isNeg); in GetAndRange() 114 if (right_ ! in GetSubRange() [all...] |
/foundation/window/window_manager/utils/include/ |
H A D | wm_occlusion_region.h | 29 int right_ = 0; member in OHOS::Rosen::WmOcclusion::Rect 34 Rect() : left_(0), top_(0), right_(0), bottom_(0) {} in Rect() 35 Rect(int l, int t, int r, int b) : left_(l), top_(t), right_(r), bottom_(b) {} in Rect() 42 std::to_string(right_ - left_) + ", " + in GetRectInfo() 48 return left_ >= right_ || top_ >= bottom_; in IsEmpty() 66 int right_ = 0; member in OHOS::Rosen::WmOcclusion::Event 68 Event(int y, Type type, int l, int r) : y_(y), type_(type), left_(l), right_(r) {} in Event() 90 Node* right_ = nullptr; member in OHOS::Rosen::WmOcclusion::Node 97 if (right_ != nullptr) { in ~Node() 98 delete right_; in ~Node() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | safe_area_insets.cpp | 24 res.right_ = right_.Combine(other.right_); in Combine() 45 return top_.IsValid() || left_.IsValid() || right_.IsValid() || bottom_.IsValid(); in IsValid() 57 ", right_: " + right_.ToString() + ", bottom_: " + bottom_.ToString(); in ToString()
|
H A D | safe_area_insets.h | 79 Inset right_; member 85 : left_(left), top_(top), right_(right), bottom_(bottom) in SafeAreaInsets() 94 return left_ == other.left_ && top_ == other.top_ && right_ == other.right_ && bottom_ == other.bottom_; in operator ==()
|
/foundation/arkui/ace_engine/test/mock/core/rosen/ |
H A D | testing_rect.h | 28 : left_(left), right_(right), top_(top), bottom_(bottom) in TestingRect() 48 return right_; in GetRight() 58 return left_ - right_; in GetWidth() 79 float right_; member in OHOS::Ace::Testing::TestingRect
|
/foundation/window/window_manager/utils/test/unittest/ |
H A D | wm_occlusion_region_test.cpp | 120 ASSERT_NE(nullptr, rootNode->right_); in HWTEST_F() 122 ASSERT_EQ(0, rootNode->right_->positive_count_); in HWTEST_F() 126 ASSERT_EQ(-1, rootNode->right_->positive_count_); in HWTEST_F() 156 rootNode->right_ = new Node { 1, 3 }; in HWTEST_F() 157 rootNode->right_->negative_count_ = 1; in HWTEST_F() 163 delete rootNode->right_; in HWTEST_F() 164 rootNode->right_ = new Node { 1, 4 }; in HWTEST_F() 165 rootNode->right_->positive_count_ = 1; in HWTEST_F() 166 rootNode->right_->negative_count_ = 1; in HWTEST_F() 218 rootNode->right_ in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/positioned/ |
H A D | render_positioned.cpp | 31 right_ = positioned->GetRight(); in Update() 77 if (NearEqual(right_.Value(), right.Value()) && (right_.Unit() == right.Unit())) { in SetRight() 80 right_ = right; in SetRight()
|
H A D | render_positioned.h | 61 return right_; 96 Dimension right_; member in OHOS::Ace::RenderPositioned
|
H A D | positioned_component.h | 79 return right_; 84 right_ = right; 182 Dimension right_; member in OHOS::Ace::PositionedComponent
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_image_filter.cpp | 62 SkRect skiaRect = {cropRect.left_, cropRect.top_, cropRect.right_, cropRect.bottom_}; in InitWithBlur() 74 SkRect skiaRect = {cropRect.left_, cropRect.top_, cropRect.right_, cropRect.bottom_}; in InitWithColor() 89 SkRect skiaRect = {cropRect.left_, cropRect.top_, cropRect.right_, cropRect.bottom_}; in InitWithOffset() 99 SkRect skiaRect = {cropRect.left_, cropRect.top_, cropRect.right_, cropRect.bottom_}; in InitWithColorBlur() 123 SkRect skiaRect = {cropRect.left_, cropRect.top_, cropRect.right_, cropRect.bottom_}; in InitWithArithmetic() 198 SkRect skiaRect = {cropRect.left_, cropRect.top_, cropRect.right_, cropRect.bottom_}; in InitWithBlend() 209 SkRect skiaRect = {cropRect.left_, cropRect.top_, cropRect.right_, cropRect.bottom_}; in InitWithShader()
|
/foundation/arkui/ace_engine/test/unittest/core/manager/ |
H A D | safe_area_manager_test_ng.cpp | 145 Rect { res.left_.start, res.right_.end, res.top_.start, res.bottom_.end }, Rect { 0.0f, 0.0f, 0.0f, 0.0f }); in HWTEST_F() 148 Rect { res.left_.start, res.right_.end, res.top_.start, res.bottom_.end }, Rect { 0.0f, 0.0f, 0.0f, 0.0f }); in HWTEST_F() 151 Rect { res.left_.start, res.right_.end, res.top_.start, res.bottom_.end }, Rect { 0.0f, 0.0f, 0.0f, 0.0f }); in HWTEST_F() 154 Rect { res.left_.start, res.right_.end, res.top_.start, res.bottom_.end }, Rect { 0.0f, 0.0f, 0.0f, 0.0f }); in HWTEST_F() 201 CommonExpectEQ(Rect { sa.left_.start, sa.right_.end, sa.top_.start, sa.bottom_.end }, in HWTEST_F() 213 CommonExpectEQ(Rect { sa.left_.start, sa.right_.end, sa.top_.start, sa.bottom_.end }, in HWTEST_F() 245 CommonExpectEQ(Rect { sas.left_.start, sas.right_.end, sas.top_.start, sas.bottom_.end }, in HWTEST_F() 265 CommonExpectEQ(Rect { san.left_.start, san.right_.end, san.top_.start, san.bottom_.end }, in HWTEST_F() 317 CommonExpectEQ(Rect { res.left_.start, res.right_.end, res.top_.start, res.bottom_.end }, Rect { l, r, t, b }); in HWTEST_F() 351 CommonExpectEQ(Rect { res.left_.start, res.right_ in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/ |
H A D | rs_occlusion_region_test.cpp | 115 //left_ and right_ will be delated when deleting testnode in HWTEST_F() 117 testnode->right_ = new Node(0, 1); in HWTEST_F() 142 //left_ and right_ will be delated when deleting testnode in HWTEST_F() 144 testnode->right_ = new Node(0, 1); in HWTEST_F() 170 //left_ and right_ will be delated when deleting testnode in HWTEST_F() 172 testnode->right_ = new Node(0, 1); in HWTEST_F() 202 //left_ and right_ will be delated when deleting testnode in HWTEST_F() 204 testnode->right_ = new Node(0, 1); in HWTEST_F() 433 EXPECT_EQ(node.right_ != nullptr, true); in HWTEST_F() 452 EXPECT_EQ(node.right_ ! in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/texgine/texgine_drawing/src/ |
H A D | texgine_rect.cpp | 26 fRight_ = &rect_->right_; in TexgineRect() 79 fRight_ = &rect_->right_; in SetRect()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/safe_area/ |
H A D | safe_area_manager.cpp | 39 if (cutoutArea.right_.IsValid()) { in GenerateCutOutAreaWithRoot() 40 cutoutArea.right_.end = rootSize.Width().has_value() ? rootSize.Width().value() in GenerateCutOutAreaWithRoot() 253 if (combinedSafeArea.right_.IsValid()) { in SafeAreaToPadding() 254 result.right = combinedSafeArea.right_.Length(); in SafeAreaToPadding()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_motion_blur_filter_test.cpp | 154 motionBlurFilter.lastRect_.right_ = 2.f; in HWTEST_F() 159 motionBlurFilter.lastRect_.right_ = 0.f; in HWTEST_F() 183 rect1.right_ = 3.f; in HWTEST_F() 185 rect2.right_ = 3.f; in HWTEST_F()
|