Home
last modified time | relevance | path

Searched refs:bottom_ (Results 1 - 25 of 68) sorted by relevance

123

/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()
109 bottom_ = bottom; in SetRect()
131 return bottom_ - top_ + 1; in GetHeight()
197 return bottom_; in GetBottom()
220 bottom_ += y - top_; in SetY()
235 bottom_ += y - top_; in SetPosition()
259 bottom_ = top_ + height - 1; in SetHeight()
303 bottom_ = bottom; in SetBottom()
316 bottom_ in Resize()
505 T bottom_; global() member in OHOS::CommonRect
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/
H A Drect.h120 int32_t bottom_; 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_() function
130 : left_(l), top_(t), right_(r), bottom_(b) in bottom_() function
141 int64_t h = (int64_t)bottom_ - (int64_t)top_; in IsEmpty()
167 return bottom_; in GetBottom()
177 return bottom_ - top_; in GetHeight()
197 bottom_ = pos; in SetBottom()
205 bottom_ += dy; in Offset()
213 bottom_ in MakeOutset()
326 scalar bottom_; global() member in OHOS::Rosen::Drawing::RectF
332 : left_(r.GetLeft()), top_(r.GetTop()), right_(r.GetRight()), bottom_(r.GetBottom()) bottom_() function
336 : left_(r.GetLeft()), top_(r.GetTop()), right_(r.GetRight()), bottom_(r.GetBottom()) bottom_() function
340 : left_(l), top_(t), right_(r), bottom_(b) bottom_() function
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dedge.h40 bottom_(Dimension(bottom, 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()
137 return bottom_; in Bottom()
142 bottom_ = bottom; in SetBottom()
147 bottom_ = AnimatableDimension(bottom); in SetBottom()
152 bottom_ = AnimatableDimension(bottom); in SetBottom()
157 return Edge(left_ + edge.left_, top_ + edge.top_, right_ + edge.right_, bottom_ in operator +()
195 AnimatableDimension bottom_; global() member in OHOS::Ace::Edge
[all...]
H A Dedge.cpp43 edge.bottom_ = StringUtils::StringToDimension(offsets[0]); in FromString()
49 edge.bottom_ = StringUtils::StringToDimension(offsets[0]); in FromString()
55 edge.bottom_ = StringUtils::StringToDimension(offsets[2]); in FromString()
61 edge.bottom_ = StringUtils::StringToDimension(offsets[2]); 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()
100 return GetValueInPx(top_, dipScale) + GetValueInPx(bottom_, dipScale); in VerticalInPx()
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()
58 return top_.GetWidthInPx(dipScale) + bottom_.GetWidthInPx(dipScale); in VerticalWidth()
77 if (bottom_.HasValue()) { in GetValidEdge()
78 return bottom_; in GetValidEdge()
H A Dborder.h60 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()
88 bottom_ = borderEdge; in SetBorderEdge()
156 return bottom_; in Bottom()
162 (border.Bottom() == bottom_); in operator ==()
182 bottom_ = edge; in SetBottomEdge()
210 bottom_.SetWidth(width, option); in SetBottomWidth()
238 bottom_.SetStyle(style); in SetBottomStyle()
266 bottom_.SetColor(color, option); in SetBottomColor()
274 bottom_ in SetContextAndCallback()
350 BorderEdge bottom_; global() member in OHOS::Ace::final
[all...]
H A Dswiper_indicator.h107 return bottom_; in GetBottom()
111 bottom_ = bottom; in SetBottom()
243 Dimension bottom_ { DEFAULT_POSITION, DimensionUnit::PX };
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stage/
H A Dcontent_root_pattern.cpp48 inset.bottom_ = { 0, 0 }; in CreateSafeAreaInsets()
52 inset.bottom_ = inset.bottom_.Combine(manager->GetKeyboardInset()); in CreateSafeAreaInsets()
56 if (inset.bottom_.IsValid() && pipeline->GetWindowModal() == WindowModal::CONTAINER_MODAL && in CreateSafeAreaInsets()
61 inset.bottom_.start -= std::round(titleHeight + borderWidth); in CreateSafeAreaInsets()
62 inset.bottom_.end -= std::round(titleHeight + 2 * borderWidth + botPadding); in CreateSafeAreaInsets()
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dsafe_area_insets.cpp25 res.bottom_ = bottom_.Combine(other.bottom_); 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 Dsafe_area_insets.h80 Inset bottom_; 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()
53 return bottom_; in GetBottom()
63 return bottom_ - top_; in GetHeight()
81 float bottom_; member in OHOS::Ace::Testing::TestingRect
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/
H A Drs_occlusion_region.h39 int bottom_ = 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()
73 bottom_ = 0; in SetEmpty()
78 return left_ >= right_ || top_ >= bottom_; in IsEmpty()
83 return left_ == r.left_ && top_ == r.top_ && right_ == r.right_ && bottom_ == r.bottom_; in operator ==()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Doverlay_container_pattern.cpp29 if (inset.bottom_.IsValid() && pipeline->GetWindowModal() == WindowModal::CONTAINER_MODAL && in BeforeCreateLayoutWrapper()
34 inset.bottom_.start -= std::round(titleHeight + borderWidth); in BeforeCreateLayoutWrapper()
35 inset.bottom_.end -= std::round(titleHeight + borderWidth + borderWidth + botPadding); in BeforeCreateLayoutWrapper()
/foundation/arkui/ace_engine/frameworks/core/components/positioned/
H A Drender_positioned.cpp28 bottom_ = positioned->GetBottom(); in Update()
87 if (NearEqual(bottom_.Value(), bottom.Value()) && (bottom_.Unit() == bottom.Unit())) { in SetBottom()
90 bottom_ = bottom; in SetBottom()
H A Drender_positioned.h36 return bottom_;
93 Dimension bottom_; member in OHOS::Ace::RenderPositioned
H A Dpositioned_component.h47 return bottom_;
52 bottom_ = bottom;
180 Dimension bottom_; member in OHOS::Ace::PositionedComponent
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_occlusion_region_helper.cpp58 if (curRowPtr->top_ != lastRowPtr->bottom_) { in CurrentSpanCanMerge()
80 const int bottom = rectsRow_[0].bottom_; in MergeSpanVertically()
83 r->bottom_ = bottom; in MergeSpanVertically()
92 bound_.bottom_ = storage_[storage_.size() - 1].bottom_; in ~Assembler()
169 bottom = rect->bottom_; in MoveScanline()
H A Drs_occlusion_region.cpp29 os << "{" << r.left_ << "," << r.top_ << "," << r.right_ << "," << r.bottom_ << "}"; in operator <<()
206 bound_.bottom_ = std::max(r.bottom_, bound_.bottom_); in MakeBound()
242 events.emplace_back(Event { r.bottom_, Event::Type::CLOSE, r.left_, r.right_ }); in RegionOpLocal()
248 events.emplace_back(Event { r.bottom_, Event::Type::VOID_CLOSE, r.left_, r.right_ }); in RegionOpLocal()
291 RectType relationship = outer.NextScanline(current.top_, current.bottom_); in RegionOpAccelate()
/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/safe_area/
H A Dsafe_area_manager.cpp32 if (safeArea.bottom_.IsValid()) { in GenerateCutOutAreaWithRoot()
33 cutoutArea.bottom_.end = rootSize.Height().has_value() ? rootSize.Height().value() in GenerateCutOutAreaWithRoot()
96 if (systemSafeArea_.bottom_.IsValid()) { in UpdateKeyboardSafeArea()
97 bottom = systemSafeArea_.bottom_.start; in UpdateKeyboardSafeArea()
122 res.bottom_ = res.bottom_.Combine(keyboardInset_); in GetCombinedSafeArea()
256 if (combinedSafeArea.bottom_.IsValid()) { in SafeAreaToPadding()
257 result.bottom = combinedSafeArea.bottom_.Length(); in SafeAreaToPadding()
/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/window/window_manager/utils/include/
H A Dwm_occlusion_region.h30 int bottom_ = 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()
43 std::to_string(bottom_ - top_) + "]"); in GetRectInfo()
48 return left_ >= right_ || top_ >= bottom_; in IsEmpty()
/foundation/arkui/ace_engine/test/unittest/core/layout/safe_area/
H A Dexpand_safe_area_test_ng.cpp166 insets.bottom_ = { WINDOW_HEIGHT - SAFE_AREA_LENGTH_BOTTOM, WINDOW_HEIGHT }; in InitSafeArea()
214 EXPECT_FALSE(safeAreaInsets.bottom_.Length() == 0); in HWTEST_F()
215 EXPECT_EQ(safeAreaInsets.bottom_.start, (WINDOW_HEIGHT - SAFE_AREA_LENGTH_BOTTOM)); in HWTEST_F()
216 EXPECT_EQ(safeAreaInsets.bottom_.end, WINDOW_HEIGHT); in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/manager/
H A Dsafe_area_manager_test_ng.cpp145 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()
286 EXPECT_EQ(retKbi.start, systemArea.bottom_.start - KEYBOARD_HEIGHT); in HWTEST_F()
287 EXPECT_EQ(retKbi.end, systemArea.bottom_ in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/
H A Drs_motion_blur_filter_test.cpp155 motionBlurFilter.lastRect_.bottom_ = 2.f; // for test in HWTEST_F()
160 motionBlurFilter.lastRect_.bottom_ = 0.f; in HWTEST_F()
184 rect1.bottom_ = 3.f; in HWTEST_F()
186 rect2.bottom_ = 3.f; in HWTEST_F()
190 rect2.bottom_ = 4.f; in HWTEST_F()
/foundation/window/window_manager/utils/src/
H A Dwm_occlusion_region.cpp27 os << "{" << r.left_ << "," << r.top_ << "," << r.right_ << "," << r.bottom_ << "}"; in operator <<()
209 bound_.bottom_ = std::max(r.bottom_, bound_.bottom_); in MakeBound()
224 events.emplace_back(Event { rect.bottom_, Event::Type::CLOSE, rect.left_, rect.right_ }); in RegionOpLocal()
230 events.emplace_back(Event { rect.bottom_, Event::Type::VOID_CLOSE, rect.left_, rect.right_ }); in RegionOpLocal()

Completed in 12 milliseconds

123