| /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() 108 top_ = top; in SetRect() 131 return bottom_ - top_ + 1; in GetHeight() 153 return top_; in GetY() 175 return top_; in GetTop() 220 bottom_ += y - top_; in SetY() 221 top_ = y; in SetY() 235 bottom_ += y - top_; in SetPosition() 237 top_ in SetPosition() 503 T top_; global() member in OHOS::CommonRect [all...] |
| /third_party/node/deps/v8/src/heap/ |
| H A D | linear-allocation-area.h | 24 : start_(top), top_(top), limit_(limit) { in LinearAllocationArea() 30 top_ = top; in Reset() 35 void ResetStart() { start_ = top_; } in ResetStart() 39 return (top_ + bytes) <= limit_; in CanIncrementTop() 43 Address old_top = top_; in IncrementTop() 44 top_ += bytes; in IncrementTop() 51 if ((new_top + bytes) == top_) { in DecrementTopIfAdjacent() 52 top_ = new_top; in DecrementTopIfAdjacent() 53 if (start_ > top_) { in DecrementTopIfAdjacent() 65 if (top_ in MergeIfAdjacent() 113 Address top_ = kNullAddress; global() member in v8::internal::final [all...] |
| H A D | read-only-spaces.cc | 291 top_(kNullAddress), in ReadOnlySpace() 368 BasicMemoryChunk::UpdateHighWaterMark(top_); in RepairFreeSpacesAfterDeserialization() 514 bool allocation_pointer_found_in_space = top_ == limit_; in Verify() 524 if (page == Page::FromAllocationAreaAddress(top_)) { in Verify() 587 BasicMemoryChunk::UpdateHighWaterMark(top_); in CommittedPhysicalMemory() 599 if (top_ == kNullAddress) { in FreeLinearAllocationArea() 607 page->AddressToMarkbitIndex(top_), page->AddressToMarkbitIndex(limit_)); in FreeLinearAllocationArea() 609 heap()->CreateFillerObjectAt(top_, static_cast<int>(limit_ - top_), in FreeLinearAllocationArea() 612 BasicMemoryChunk::UpdateHighWaterMark(top_); in FreeLinearAllocationArea() [all...] |
| /foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/ |
| H A D | rect.h | 118 int32_t top_; 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_() 141 int64_t h = (int64_t)bottom_ - (int64_t)top_; in IsEmpty() 157 return top_; in GetTop() 177 return bottom_ - top_; in GetHeight() 187 top_ = pos; in SetTop() 204 top_ += dy; in Offset() 212 top_ in MakeOutset() 324 scalar top_; global() member in OHOS::Rosen::Drawing::RectF [all...] |
| /foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/ |
| H A D | link_stack.cpp | 28 top_ = head_; in InitStack() 41 top_ = nullptr; in FreeNode() 46 return head_ == top_; in IsEmpty() 56 if (value == nullptr || top_ == nullptr) { in Push() 69 top_->SetNodeNext(node); in Push() 70 node->SetNodePrev(top_); in Push() 72 top_ = top_->GetNodeNext(); in Push() 78 if (top_ == nullptr || IsEmpty()) { in Pop() 81 StackNode *tmp = top_; in Pop() [all...] |
| H A D | link_stack.h | 85 return top_; in GetTop() 95 return top_->GetNodeData(); in Peak() 123 StackNode *top_; member in OHOS::ACELite::final
|
| /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() 96 return top_; in Top() 101 top_ = top; in SetTop() 106 top_ = AnimatableDimension(top); in SetTop() 112 top_ = AnimatableDimension(top); in SetTop() 157 return Edge(left_ + edge.left_, top_ in operator +() 193 AnimatableDimension top_; 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() 58 return top_.GetWidthInPx(dipScale) + bottom_.GetWidthInPx(dipScale); in VerticalWidth() 71 if (top_.HasValue()) { in GetValidEdge() 72 return top_; in GetValidEdge()
|
| H A D | edge.cpp | 41 edge.top_ = StringUtils::StringToDimension(offsets[0]); in FromString() 47 edge.top_ = StringUtils::StringToDimension(offsets[0]); in FromString() 53 edge.top_ = StringUtils::StringToDimension(offsets[0]); in FromString() 59 edge.top_ = StringUtils::StringToDimension(offsets[0]); 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() 84 double height = GetValueInPx(top_, dipScale) + GetValueInPx(bottom_, dipScale); in GetLayoutSizeInPx() 90 return Offset(GetValueInPx(left_, dipScale), GetValueInPx(top_, dipScale)); in GetOffsetInPx() 100 return GetValueInPx(top_, dipScale) + GetValueInPx(bottom_, dipScale); in VerticalInPx()
|
| 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() 85 top_ = borderEdge; in SetBorderEdge() 146 return top_; in Top() 161 return (border.Left() == left_) && (border.Top() == top_) && (border.Right() == right_) && in operator ==() 172 top_ = edge; in SetTopEdge() 200 top_.SetWidth(width, option); in SetTopWidth() 228 top_.SetStyle(style); in SetTopStyle() 256 top_.SetColor(color, option); in SetTopColor() 272 top_ in SetContextAndCallback() 348 BorderEdge top_; global() member in OHOS::Ace::final [all...] |
| /foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
| H A D | rs_occlusion_region.h | 37 int top_ = 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() 71 top_ in SetEmpty() [all...] |
| H A D | rs_rect.h | 35 T top_; 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() 115 return top_ + height_; in GetBottom() 119 return top_; in GetTop() 135 height_ = bottom - top_; in SetBottom() 140 top_ += y; in Move() 145 top_ in Clear() [all...] |
| /test/testfwk/arkxtest/uitest/core/ |
| H A D | ui_model.h | 118 : left_(left), right_(right), top_(top), bottom_(bottom) in Rect() 120 DCHECK(right_ >= left_ && bottom_ >= top_); in Rect() 126 top_ = 0; in Rect() 131 int32_t top_; member 141 return (top_ + bottom_) / TWO; in GetCenterY() 151 return bottom_ - top_; in GetHeight() 157 ss << "Rect {left:" << left_ << ",right:" << right_ << ",top:" << top_ << ",bottom:" << bottom_ << "}"; in Describe() 195 return ra.left_ == rb.left_ && ra.right_ == rb.right_ && ra.top_ == rb.top_ && ra.bottom_ == rb.bottom_; in CheckEqual() 203 if (ra.top_ > in CheckIntersectant() [all...] |
| H A D | rect_algorithm.cpp | 27 if (ra.top_ >= rb.bottom_ || ra.bottom_ <= rb.top_) { in ComputeIntersection() 31 array<int32_t, INDEX_FOUR> py = {ra.top_, ra.bottom_, rb.top_, rb.bottom_}; in ComputeIntersection() 78 if (overlay.top_ >= rect.top_ && overlay.top_ <= rect.bottom_) { in CollectGridLineCoords() 80 if (overlay.top_ == g_YCoords[idx]) { in CollectGridLineCoords() 86 g_YCoords[g_YCount++] = overlay.top_; in CollectGridLineCoords() 91 if (overlay.bottom_ >= rect.top_ in CollectGridLineCoords() [all...] |
| H A D | window_operator.cpp | 104 Point from(rect.GetCenterX(), rect.top_ + step1); in CallBar() 105 Point to(rect.GetCenterX(), rect.top_ + step2); in CallBar() 118 Point focus(rect.GetCenterX(), rect.top_ + step); in Focus() 133 Point from(rect.left_ + step, rect.top_ + step); in MoveTo() 158 from = Point(window_.bounds_.GetCenterX(), window_.bounds_.top_); in Resize() 163 to = Point(window_.bounds_.GetCenterX(), window_.bounds_.top_ + highth); in Resize() 166 from = Point(window_.bounds_.left_, window_.bounds_.top_); in Resize() 171 to = Point(window_.bounds_.right_ - width, window_.bounds_.top_ + highth); in Resize() 174 from = Point(window_.bounds_.right_, window_.bounds_.top_); in Resize() 179 to = Point(window_.bounds_.left_ + width, window_.bounds_.top_ in Resize() [all...] |
| /foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/ |
| H A D | rs_occlusion_region_helper.cpp | 24 if (cur_->top_ != r.top_) { // current rect r is not in same row of current span in Insert() 58 if (curRowPtr->top_ != lastRowPtr->bottom_) { in CurrentSpanCanMerge() 91 bound_.top_ = storage_[0].top_; in ~Assembler() 162 int curTop = rect->top_; in MoveScanline() 163 while (rect != rectEnd && rect->top_ == curTop) { in MoveScanline() 168 top = rect->top_; in MoveScanline() 230 int curTop = r.rects_->top_; in MoveRect() 233 if (r.count_ > 0 && r.rects_->top_ in MoveRect() [all...] |
| H A D | rs_obj_abs_geometry.cpp | 312 absRect.top_ = static_cast<int>(std::floor(dst.GetTop())); in MapRect() 314 absRect.height_ = static_cast<int>(std::ceil(dst.GetBottom() - absRect.top_)); 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() 332 absRect.top_ = static_cast<int>(std::floor(yRange[0])); in MapRect() 334 absRect.height_ = static_cast<int>(std::ceil(yRange[1] - absRect.top_)); in MapRect() 342 absRect.top_ = static_cast<int>(std::floor(rect.top_ * scale in MapRect() [all...] |
| /foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
| H A D | safe_area_insets.cpp | 23 res.top_ = top_.Combine(other.top_); 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 | 78 Inset top_; 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() 43 return top_; in GetTop() 63 return bottom_ - top_; in GetHeight() 80 float top_; member in OHOS::Ace::Testing::TestingRect
|
| /third_party/node/deps/v8/src/heap/base/ |
| H A D | worklist.h | 77 v8::base::AsAtomicPtr(&top_)->store(segment, std::memory_order_relaxed); in set_top() 81 Segment* top_ = nullptr; member in heap::base::Worklist 89 segment->set_next(top_); in Push() 97 if (top_ == nullptr) return false; in Pop() 100 *segment = top_; in Pop() 101 set_top(top_->next()); in Pop() 107 return v8::base::AsAtomicPtr(&top_)->load(std::memory_order_relaxed) == in IsEmpty() 123 Segment* current = top_; in Clear() 137 Segment* current = top_; in Update() 145 top_ in Update() [all...] |
| /foundation/arkui/ace_engine/frameworks/core/components/positioned/ |
| H A D | render_positioned.cpp | 29 top_ = positioned->GetTop(); in Update() 67 if (NearEqual(top_.Value(), top.Value()) && (top_.Unit() == top.Unit())) { in SetTop() 70 top_ = top; in SetTop()
|
| /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_, rect.bottom_ - rect.top_); in DrawTargetSurfaceDirtyRegionForDFX() [all...] |
| /foundation/window/window_manager/utils/include/ |
| H A D | wm_occlusion_region.h | 28 int top_ = 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() 41 std::to_string(top_) + ", " + in GetRectInfo() 43 std::to_string(bottom_ - top_) + "]"); in GetRectInfo() 48 return left_ >= right_ || top_ >= bottom_; in IsEmpty()
|
| /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()
|