/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() 106 left_ = left; in SetRect() 120 return right_ - left_ + 1; in GetWidth() 142 return left_; in GetX() 164 return left_; in GetLeft() 208 right_ += x - left_; in SetX() 209 left_ = x; in SetX() 234 right_ += x - left_; in SetPosition() 236 left_ in SetPosition() 502 T left_; global() member in OHOS::CommonRect [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/ |
H A D | rect.h | 117 int32_t left_; 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() 152 return left_; in GetLeft() 172 return right_ - left_; in GetWidth() 182 left_ = pos; in SetLeft() 202 left_ += dx; in Offset() 210 left_ in MakeOutset() 323 scalar left_; 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() 42 DimensionUnit unit = DimensionUnit::CALC) : left_(CalcDimension(left, unit)), top_(CalcDimension(top, unit)), in Edge() 45 : left_(left), top_(top), right_(right), bottom_(bottom) {} in Edge() 48 : left_(AnimatableDimension(left, option)), top_(AnimatableDimension(top, option)), in Edge() 52 : left_(AnimatableDimension(left, option)), top_(AnimatableDimension(top, option)), in Edge() 75 return left_; in Left() 80 left_ = left; in SetLeft() 85 left_ = AnimatableDimension(left); in SetLeft() 91 left_ = AnimatableDimension(left); in SetLeft() 157 return Edge(left_ in operator +() 192 AnimatableDimension left_; 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() 48 return Offset(left_.GetWidthInPx(dipScale), top_.GetWidthInPx(dipScale)); in GetOffset() 53 return left_.GetWidthInPx(dipScale) + right_.GetWidthInPx(dipScale); in HorizontalWidth() 68 if (left_.HasValue()) { in GetValidEdge() 69 return left_; in GetValidEdge()
|
H A D | edge.cpp | 44 edge.left_ = StringUtils::StringToDimension(offsets[0]); in FromString() 50 edge.left_ = StringUtils::StringToDimension(offsets[1]); in FromString() 56 edge.left_ = StringUtils::StringToDimension(offsets[1]); in FromString() 62 edge.left_ = StringUtils::StringToDimension(offsets[3]); 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() 90 return Offset(GetValueInPx(left_, dipScale), GetValueInPx(top_, dipScale)); in GetOffsetInPx() 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() 71 return left_.GetBorderStyle() == BorderStyle::SOLID && bottom_.GetBorderStyle() == BorderStyle::SOLID && in IsAllSolidStyle() 86 left_ = borderEdge; in SetBorderEdge() 141 return left_; in Left() 161 return (border.Left() == left_) && (border.Top() == top_) && (border.Right() == right_) && in operator ==() 167 left_ = edge; in SetLeftEdge() 195 left_.SetWidth(width, option); in SetLeftWidth() 223 left_.SetStyle(style); in SetLeftStyle() 251 left_.SetColor(color, option); in SetLeftColor() 271 left_ in SetContextAndCallback() 347 BorderEdge left_; global() member in OHOS::Ace::final [all...] |
H A D | swiper_indicator.h | 98 return left_; in GetLeft() 102 left_ = left; in SetLeft() 242 Dimension left_ { DEFAULT_POSITION, DimensionUnit::PX };
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_occlusion_region.h | 36 int left_ = 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() 63 r.left_, r.top_, r.GetRight(), r.GetBottom(), MIN_REGION_VALUE, MAX_REGION_VALUE); in Rect() 70 left_ in SetEmpty() 167 int left_ = 0; global() member in OHOS::Rosen::Occlusion::Event 192 Node* left_ = nullptr; global() member in OHOS::Rosen::Occlusion::Node [all...] |
H A D | rs_rect.h | 34 T left_; member 74 return ROSEN_EQ<T>(left_, rect.left_) && ROSEN_EQ<T>(top_, rect.top_) && in operator ==() 85 return ROSEN_EQ<T>(left_, rect.left_, threshold) && ROSEN_EQ<T>(top_, rect.top_, threshold) && in IsNearEqual() 107 return left_ + width_; in GetRight() 111 return left_; in GetLeft() 131 width_ = right - left_; in SetRight() 139 left_ += x; in Move() 144 left_ in Clear() [all...] |
/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 <<() 53 if (left_ == nullptr) { in Update() 54 left_ = new Node { start_, mid_ }; in Update() 60 if (left_ != nullptr) { in Update() 61 left_->Update(updateStart, mid_ < updateEnd ? mid_ : updateEnd, type); in Update() 76 if (left_ != nullptr) { in GetAndRange() 77 left_->GetAndRange(res, isPos, isNeg); in GetAndRange() 92 if (left_ != nullptr) { in GetOrRange() 93 left_->GetOrRange(res, isPos, isNeg); in GetOrRange() 110 if (left_ ! 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() 43 bound_.left_ = std::min(rectsRow_[0].left_, bound_.left_); in FlushVerticalSpan() 63 if ((curRowPtr->left_ != lastRowPtr->left_) || in CurrentSpanCanMerge() 183 lhsStart_ = lhs_.rects_->left_; in Init() 190 rhsStart_ = rhs_.rects_->left_; in Init() 197 lhsStart_ = lhs_.rects_->left_; in Init() 201 rhsStart_ = rhs_.rects_->left_; in Init() [all...] |
H A D | rs_obj_abs_geometry.cpp | 311 absRect.left_ = static_cast<int>(std::floor(dst.GetLeft())); in MapRect() 313 absRect.width_ = static_cast<int>(std::ceil(dst.GetRight() - absRect.left_)); in MapRect() 319 p[LEFT_TOP_POINT] = {rect.left_, rect.top_}; in MapRect() 320 p[RIGHT_TOP_POINT] = {rect.left_ + rect.width_, rect.top_}; in MapRect() 321 p[RIGHT_BOTTOM_POINT] = {rect.left_ + rect.width_, rect.top_ + rect.height_}; in MapRect() 322 p[LEFT_BOTTOM_POINT] = {rect.left_, rect.top_ + rect.height_}; in MapRect() 331 absRect.left_ = static_cast<int>(std::floor(xRange[0])); in MapRect() 333 absRect.width_ = static_cast<int>(std::ceil(xRange[1] - absRect.left_)); in MapRect() 341 absRect.left_ = static_cast<int>(std::floor(rect.left_ * scale in MapRect() [all...] |
/foundation/window/window_manager/utils/include/ |
H A D | wm_occlusion_region.h | 27 int left_ = 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() 40 std::to_string(left_) + ", " + in GetRectInfo() 42 std::to_string(right_ - left_) + ", " + in GetRectInfo() 48 return left_ >= right_ || top_ >= bottom_; in IsEmpty() 65 int left_ = 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() 89 Node* left_ = nullptr; member in OHOS::Rosen::WmOcclusion::Node 101 if (left_ ! in ~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 <<() 46 if (left_ == nullptr) { in Update() 47 left_ = new Node { start_, mid_ }; in Update() 50 if (left_) { in Update() 51 left_->Update(updateStart, mid_ < updateEnd ? mid_ : updateEnd, type); in Update() 75 if (left_ != nullptr) { in GetOrRange() 76 left_->GetOrRange(res, isPos, isNeg); in GetOrRange() 92 if (left_ != nullptr) { in GetAndRange() 93 left_->GetAndRange(res, isPos, isNeg); in GetAndRange() 111 if (left_ ! in GetSubRange() [all...] |
/foundation/window/window_manager/utils/test/unittest/ |
H A D | wm_occlusion_region_test.cpp | 119 ASSERT_NE(nullptr, rootNode->left_); in HWTEST_F() 121 ASSERT_EQ(1, rootNode->left_->positive_count_); in HWTEST_F() 125 ASSERT_EQ(1, rootNode->left_->positive_count_); in HWTEST_F() 149 rootNode->left_ = new Node { 0, 1 }; in HWTEST_F() 150 rootNode->left_->positive_count_ = 1; in HWTEST_F() 207 rootNode->left_ = new Node { 0, 1 }; in HWTEST_F() 208 rootNode->left_->positive_count_ = 0; in HWTEST_F() 209 rootNode->left_->negative_count_ = 1; in HWTEST_F() 214 delete rootNode->left_; in HWTEST_F() 215 rootNode->left_ in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | safe_area_insets.cpp | 22 res.left_ = left_.Combine(other.left_); in Combine() 45 return top_.IsValid() || left_.IsValid() || right_.IsValid() || bottom_.IsValid(); in IsValid() 56 return "SafeAreaInsets left_: " + left_.ToString() + ", top_: " + top_.ToString() + in ToString()
|
H A D | safe_area_insets.h | 77 Inset left_; 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() 38 return left_; in GetLeft() 58 return left_ - right_; in GetWidth() 78 float left_; member in OHOS::Ace::Testing::TestingRect
|
/foundation/arkui/ace_engine/frameworks/core/components/positioned/ |
H A D | render_positioned.cpp | 30 left_ = positioned->GetLeft(); in Update() 57 if (NearEqual(left_.Value(), left.Value()) && (left_.Unit() == left.Unit())) { in SetLeft() 60 left_ = left; in SetLeft()
|
H A D | render_positioned.h | 56 return left_; 95 Dimension left_; member in OHOS::Ace::RenderPositioned
|
H A D | positioned_component.h | 68 return left_; 73 left_ = left; 181 Dimension left_; member in OHOS::Ace::PositionedComponent
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/dfx/ |
H A D | rs_dirty_rects_dfx.cpp | 248 dirtyRect.left_, dirtyRect.top_, dirtyRect.left_ + dirtyRect.width_, dirtyRect.top_ + dirtyRect.height_); in DrawDirtyRectForDFX() 257 std::string position = std::to_string(dirtyRect.left_) + ',' + std::to_string(dirtyRect.top_) + ',' + in DrawDirtyRectForDFX() 283 canvas_->DrawTextBlob(textBlob.get(), dirtyRect.left_ + defaultTextOffsetX, dirtyRect.top_ + defaultTextOffsetY); in DrawDirtyRectForDFX() 372 rects.emplace_back(rect.left_, rect.top_, rect.right_ - rect.left_, rect.bottom_ - rect.top_); in DrawAllSurfaceDirtyRegionForDFX() 419 rects.emplace_back(rect.left_, rect.top_, rect.right_ - rect.left_, rect.bottom_ - rect.top_); in DrawTargetSurfaceDirtyRegionForDFX() 424 auto visibleRect = RectI(rect.left_, rect.top_, rect.right_ - rect.left_, rec in DrawTargetSurfaceDirtyRegionForDFX() [all...] |
/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/frameworks/core/components_ng/pattern/security_component/ |
H A D | security_component_layout_algorithm.cpp | 80 left_.ShrinkWidth((componentWidth_ / HALF) - (componentHeight_ / HALF)); in MeasureButton() 105 left_.Init(false, in InitPadding() 135 leftSpace = left_.width_ + icon_.width_ + right_.width_; in UpdateTextSize() 137 leftSpace = left_.width_ + middle_.width_ + icon_.width_ + right_.width_; in UpdateTextSize() 145 double remain = left_.ShrinkWidth(diff / HALF); in ShrinkWidth() 147 remain = left_.ShrinkWidth(remain); in ShrinkWidth() 192 double remain = left_.EnlargeWidth(diff / HALF); in EnlargeWidth() 194 remain = left_.EnlargeWidth(remain); in EnlargeWidth() 302 componentWidth_ = left_.width_ + contextWidth + right_.width_; in MeasureIntegralSize() 306 componentWidth_ = left_ in MeasureIntegralSize() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/animation/window_animation/src/ |
H A D | rs_window_animation_target.cpp | 40 parcel.WriteFloat(windowBounds_.rect_.left_) && in Marshalling() 77 parcel.ReadFloat(windowBounds_.rect_.left_) && in ReadFromParcel()
|