Home
last modified time | relevance | path

Searched refs:top_ (Results 1 - 25 of 117) sorted by relevance

12345

/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
H A Drect.h56 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...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/
H A Dlink_stack.cpp28 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 Dlink_stack.h85 return top_; in GetTop()
95 return top_->GetNodeData(); in Peak()
123 StackNode *top_; member in OHOS::ACELite::final
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/
H A Drect.h118 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/frameworks/core/components/common/properties/
H A Dedge.h39 : 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 Dborder.cpp21 : 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 Dedge.cpp41 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 Dborder.h60 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 Drs_occlusion_region.h37 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 Drs_rect.h35 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...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dsafe_area_insets.cpp23 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 Dsafe_area_insets.h78 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 Dtesting_rect.h28 : 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
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_occlusion_region_helper.cpp24 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 Drs_obj_abs_geometry.cpp312 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...]
H A Drs_occlusion_region.cpp29 os << "{" << r.left_ << "," << r.top_ << "," << r.right_ << "," << r.bottom_ << "}"; in operator <<()
176 r.curRects.emplace_back(Rect { r.preRects[i].left_, r.preRects[i].top_, r.preRects[i].right_, r.curY }); in UpdateRects()
204 bound_.top_ = std::min(r.top_, bound_.top_); in MakeBound()
241 events.emplace_back(Event { r.top_, Event::Type::OPEN, r.left_, r.right_ }); in RegionOpLocal()
247 events.emplace_back(Event { r.top_, Event::Type::VOID_OPEN, r.left_, r.right_ }); in RegionOpLocal()
291 RectType relationship = outer.NextScanline(current.top_, current.bottom_); in RegionOpAccelate()
/foundation/arkui/ace_engine/frameworks/core/components/positioned/
H A Drender_positioned.cpp29 top_ = positioned->GetTop(); in Update()
67 if (NearEqual(top_.Value(), top.Value()) && (top_.Unit() == top.Unit())) { in SetTop()
70 top_ = top; in SetTop()
H A Drender_positioned.h41 return top_;
94 Dimension top_; member in OHOS::Ace::RenderPositioned
H A Dpositioned_component.h90 return top_;
95 top_ = top;
183 Dimension top_; member in OHOS::Ace::PositionedComponent
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/dfx/
H A Drs_dirty_rects_dfx.cpp248 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 Dwm_occlusion_region.h28 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 Dskia_image_filter.cpp62 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/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_dirty_region_manager.cpp143 int top = std::max(std::max(currentFrameDirtyRegion_.top_, 0), surfaceRect_.top_); in ClipDirtyRectWithinSurface()
195 glRect.top_ = surfaceRect_.height_ - glRect.top_ - glRect.height_; in GetDirtyRegionFlipWithinSurface()
206 glRect.top_ = surfaceRect_.height_ - rect.top_ - rect.height_; in GetRectFlipWithinSurface()
224 int32_t top = (rect.top_ / alignedBits) * alignedBits; in GetPixelAlignedRect()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/
H A Dsecurity_component_layout_algorithm.cpp82 top_.ShrinkHeight((componentHeight_ / HALF) - (componentWidth_ / HALF)); in MeasureButton()
110 top_.Init(true, in InitPadding()
205 double remain = top_.ShrinkHeight(diff / HALF); in ShrinkHeight()
207 remain = top_.ShrinkHeight(remain); in ShrinkHeight()
251 double remain = top_.EnlargeHeight(diff / HALF); in EnlargeHeight()
253 remain = top_.EnlargeHeight(remain); in EnlargeHeight()
300 componentHeight_ = top_.height_ + text_.height_ + in MeasureIntegralSize()
305 componentHeight_ = top_.height_ + contextHeight + bottom_.height_; in MeasureIntegralSize()
344 OffsetF offsetIcon = OffsetF(left_.width_, top_.height_); in Layout()
345 OffsetF offsetText = OffsetF(left_.width_, top_ in Layout()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/layout/safe_area/
H A Dexpand_safe_area_test_ng.cpp157 insets.top_ = { 0.0f, SAFE_AREA_LENGTH_TOP }; in InitSafeArea()
210 EXPECT_FALSE(safeAreaInsets.top_.Length() == 0); in HWTEST_F()
211 EXPECT_TRUE(safeAreaInsets.top_.start == 0); in HWTEST_F()
212 EXPECT_TRUE(safeAreaInsets.top_.end == SAFE_AREA_LENGTH_TOP); in HWTEST_F()

Completed in 12 milliseconds

12345