/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
H A D | size_t.h | 128 if (NonNegative(tempWidth)) { in MinusPadding() 132 if (NonNegative(tempHeight)) { in MinusPadding() 142 width_ = NonNegative(tempWidth) ? tempWidth : 0; in MinusPaddingToNonNegative() 146 height_ = NonNegative(tempHeight) ? tempHeight : 0; in MinusPaddingToNonNegative() 159 return NonNegative(width_) && NonNegative(height_); in IsNonNegative() 181 if (NonNegative(size.width_) && (width_ != size.width_)) { in UpdateSizeWithCheck() 185 if (NonNegative(size.height_) && (height_ != size.height_)) { in UpdateSizeWithCheck() 194 if (Negative(width_) && NonNegative(size.width_)) { in UpdateIllegalSizeWithCheck() 197 if (Negative(height_) && NonNegative(siz in UpdateIllegalSizeWithCheck() [all...] |
H A D | offset_t.h | 146 bool NonNegative() const in NonNegative() function in OHOS::Ace::NG::OffsetT
|
H A D | rect_t.h | 203 return NonNegative(width_) && NonNegative(height_); in IsValid()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkboxgroup/ |
H A D | checkboxgroup_layout_algorithm.cpp | 37 NonNegative(contentConstraint.selfIdealSize.Width().value())) { in MeasureContent() 43 NonNegative(contentConstraint.selfIdealSize.Height().value())) { in MeasureContent()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/data_panel/ |
H A D | data_panel_layout_algorithm.cpp | 50 NonNegative(contentConstraint.selfIdealSize.Width().value())) { in MeasureContent() 61 NonNegative(contentConstraint.selfIdealSize.Height().value())) { in MeasureContent()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | rect_painter.cpp | 49 if (Negative(radius.GetX()) && NonNegative(radius.GetY())) { in DrawRect() 53 if (Negative(radius.GetY()) && NonNegative(radius.GetX())) { in DrawRect()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/ |
H A D | dialog_view.cpp | 63 if (param.width.has_value() && NonNegative(param.width.value().Value())) { in CreateDialogNode() 68 if (param.height.has_value() && NonNegative(param.height.value().Value())) { in CreateDialogNode()
|
H A D | dialog_layout_algorithm.cpp | 152 if (NonNegative(dialogHeight.Value())) { in UpdateChildLayoutConstraint() 155 if (NonNegative(dialogWidth.Value())) { in UpdateChildLayoutConstraint()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/image_animator/ |
H A D | image_animator_pattern_test_ng.cpp | 137 if (NonNegative(width) && NonNegative(height)) { in RunMeasureAndLayout() 139 } else if (NonNegative(width)) { in RunMeasureAndLayout() 141 } else if (NonNegative(height)) { in RunMeasureAndLayout()
|
H A D | image_animator_test_ng.cpp | 142 if (NonNegative(width) && NonNegative(height)) { in RunMeasureAndLayout() 144 } else if (NonNegative(width)) { in RunMeasureAndLayout() 146 } else if (NonNegative(height)) { in RunMeasureAndLayout()
|
/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | dimension.h | 121 return NonNegative(value_); in IsNonNegative() 131 return !NonNegative(value_); in IsNegative()
|
H A D | dimension.cpp | 46 if (NonNegative(param.parentLength)) { in CalcDimensionPercent()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_tab_content.cpp | 250 if (ParseJsDimensionFp(size, fontSize) && NonNegative(fontSize.Value()) && in GetFontContent() 300 if (ParseJsDimensionFp(minFontSizeValue, minFontSize) && NonNegative(minFontSize.Value()) && in SetLabelStyle() 307 if (ParseJsDimensionFp(maxFontSizeValue, maxFontSize) && NonNegative(maxFontSize.Value()) && in SetLabelStyle() 394 if (ParseJsDimensionVp(info, length) && NonNegative(length.Value()) && length.Unit() != DimensionUnit::PERCENT) { in SetPadding() 420 if (ParseJsDimensionVp(paddingObj->GetProperty("left"), left) && NonNegative(left.Value()) && in SetPadding() 425 if (ParseJsDimensionVp(paddingObj->GetProperty("right"), right) && NonNegative(right.Value()) && in SetPadding() 430 if (ParseJsDimensionVp(paddingObj->GetProperty("top"), top) && NonNegative(top.Value()) && in SetPadding() 435 if (ParseJsDimensionVp(paddingObj->GetProperty("bottom"), bottom) && NonNegative(bottom.Value()) && in SetPadding()
|
H A D | js_list_item_group.cpp | 119 if (!ParseJsDouble(childrenSizeObj->GetProperty("defaultMainSize"), defaultSize) || !NonNegative(defaultSize)) { in SetChildrenMainSize()
|
H A D | js_tabs.cpp | 572 if (ParseJsDimensionVp(gridParam->GetProperty("gutter"), columnGutter) && NonNegative(columnGutter.Value()) && in SetBarGridAlign() 577 if (ParseJsDimensionVp(gridParam->GetProperty("margin"), columnMargin) && NonNegative(columnMargin.Value()) && in SetBarGridAlign()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkbox/ |
H A D | checkbox_layout_algorithm.cpp | 45 NonNegative(contentConstraint.selfIdealSize.Width().value())) { in MeasureContent() 51 NonNegative(contentConstraint.selfIdealSize.Height().value())) { in MeasureContent()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/radio/ |
H A D | radio_layout_algorithm.cpp | 48 NonNegative(contentConstraint.selfIdealSize.Width().value())) { in MeasureContent() 54 NonNegative(contentConstraint.selfIdealSize.Height().value())) { in MeasureContent()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/ |
H A D | shape_container_pattern.cpp | 79 } else if (NonNegative(miterLimit) && in OnModifyDone()
|
H A D | shape_pattern.h | 62 } else if (NonNegative(miterLimit) &&
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/ |
H A D | water_flow_segmented_layout.cpp | 158 if (NonNegative(userDefHeight)) { in CheckDirtyItem() 468 if (NonNegative(userDefMainSize)) { in MeasureItem() 472 { itemsCrossSize_[info_->GetSegment(idx)][crossIdx], mainSize_, axis_, NonNegative(userDefMainSize) }, props_, in MeasureItem()
|
H A D | water_flow_layout_algorithm.cpp | 253 if (!isCache && NonNegative(mainOffset + item.second.second)) { in Layout()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/ |
H A D | gauge_layout_algorithm.cpp | 86 NonNegative(contentConstraint.selfIdealSize.Width().value())) { in MeasureContent() 91 NonNegative(contentConstraint.selfIdealSize.Height().value())) { in MeasureContent()
|
/foundation/arkui/ace_engine/frameworks/base/utils/ |
H A D | utils.h | 238 inline bool NonNegative(double value) in NonNegative() function
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/ |
H A D | menu_layoutScd_test_ng.cpp | 911 EXPECT_TRUE(previewGeometryNode->GetFrameOffset().NonNegative()); in HWTEST_F() 979 EXPECT_TRUE(previewGeometryNode->GetFrameOffset().NonNegative()); in HWTEST_F() 981 EXPECT_TRUE(menuGeometryNode->GetFrameOffset().NonNegative()); in HWTEST_F() 1054 EXPECT_TRUE(previewGeometryNode->GetFrameOffset().NonNegative()); in HWTEST_F() 1056 EXPECT_TRUE(menuGeometryNode->GetFrameOffset().NonNegative()); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_layout_algorithm.cpp | 542 if ((!overScrollFeature_ && NonNegative(currentOffset_)) || (overScrollFeature_ && overScrollTop)) { in MeasureSwiper() 1351 if (isLeftArrow && !NonNegative(arrowOffset.GetX() - padding.left.value_or(0.0f))) { in ArrowLayout() 1387 if (isLeftArrow && !NonNegative(arrowOffset.GetY() - padding.top.value_or(0.0f))) { in ArrowLayout()
|