Home
last modified time | relevance | path

Searched refs:NonNegative (Results 1 – 25 of 43) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Dsize_t.h128 if (NonNegative(tempWidth)) { in MinusPadding()
132 if (NonNegative(tempHeight)) { in MinusPadding()
159 return NonNegative(width_) && NonNegative(height_); in IsNonNegative()
212 if (NonNegative(size.width_)) { in UpdateWidthWhenLarger()
225 if (NonNegative(size.height_)) { in UpdateHeightWhenLarger()
245 if (NonNegative(size.width_)) { in UpdateWidthWhenSmaller()
258 if (NonNegative(size.height_)) { in UpdateHeightWhenSmaller()
270 if (NonNegative(minSize.width_)) { in UpdateMin()
280 if (NonNegative(maxSize.width_)) { in UpdateMax()
554 return NonNegative(width_.value_or(-1)) && NonNegative(height_.value_or(-1)); in IsNonNegative()
[all …]
H A Doffset_t.h146 bool NonNegative() const in NonNegative() function
H A Drect_t.h203 return NonNegative(width_) && NonNegative(height_); in IsValid()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/data_panel/
H A Ddata_panel_layout_algorithm.cpp51 NonNegative(contentConstraint.selfIdealSize.Width().value())) { in MeasureContent()
62 NonNegative(contentConstraint.selfIdealSize.Height().value())) { in MeasureContent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Drect_painter.cpp49 if (Negative(radius.GetX()) && NonNegative(radius.GetY())) { in DrawRect()
53 if (Negative(radius.GetY()) && NonNegative(radius.GetX())) { in DrawRect()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkboxgroup/
H A Dcheckboxgroup_layout_algorithm.cpp49 NonNegative(contentConstraint.selfIdealSize.Width().value())) { in MeasureContent()
55 NonNegative(contentConstraint.selfIdealSize.Height().value())) { in MeasureContent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_tab_content.cpp250 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() != DimensionU… 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 Djs_list_item_group.cpp119 …ouble(childrenSizeObj->GetProperty("defaultMainSize"), defaultSize) || !NonNegative(defaultSize)) { in SetChildrenMainSize()
H A Djs_tabs.cpp562 …if (ParseJsDimensionVp(gridParam->GetProperty("gutter"), columnGutter) && NonNegative(columnGutter… in SetBarGridAlign()
567 …if (ParseJsDimensionVp(gridParam->GetProperty("margin"), columnMargin) && NonNegative(columnMargin… in SetBarGridAlign()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
H A Ddialog_view.cpp71 if (param.width.has_value() && NonNegative(param.width.value().Value())) { in CreateDialogNode()
76 if (param.height.has_value() && NonNegative(param.height.value().Value())) { in CreateDialogNode()
H A Ddialog_layout_algorithm.cpp174 if (NonNegative(dialogHeight.Value())) { in UpdateChildLayoutConstraint()
177 if (NonNegative(dialogWidth.Value())) { in UpdateChildLayoutConstraint()
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Ddimension.h121 return NonNegative(value_); in IsNonNegative()
131 return !NonNegative(value_); in IsNegative()
H A Ddimension.cpp46 if (NonNegative(param.parentLength)) { in CalcDimensionPercent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/radio/
H A Dradio_layout_algorithm.cpp60 NonNegative(contentConstraint.selfIdealSize.Width().value())) { in MeasureContent()
66 NonNegative(contentConstraint.selfIdealSize.Height().value())) { in MeasureContent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkbox/
H A Dcheckbox_layout_algorithm.cpp59 NonNegative(contentConstraint.selfIdealSize.Width().value())) { in MeasureContent()
65 NonNegative(contentConstraint.selfIdealSize.Height().value())) { in MeasureContent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/
H A Dshape_container_pattern.cpp84 } else if (NonNegative(miterLimit) && in OnModifyDone()
H A Dshape_pattern.h62 } else if (NonNegative(miterLimit) && in OnModifyDone()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/
H A Dwater_flow_segmented_layout.cpp164 if (NonNegative(userDefHeight)) { in CheckDirtyItem()
481 if (NonNegative(userDefMainSize)) { in MeasureItem()
485 …{ itemsCrossSize_[info_->GetSegment(idx)][crossIdx], mainSize_, axis_, NonNegative(userDefMainSize… in MeasureItem()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/
H A Dgauge_layout_algorithm.cpp91 NonNegative(contentConstraint.selfIdealSize.Width().value())) { in MeasureContent()
96 NonNegative(contentConstraint.selfIdealSize.Height().value())) { in MeasureContent()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/image_animator/
H A Dimage_animator_test_ng.cpp142 if (NonNegative(width) && NonNegative(height)) { in RunMeasureAndLayout()
144 } else if (NonNegative(width)) { in RunMeasureAndLayout()
146 } else if (NonNegative(height)) { in RunMeasureAndLayout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dutils.h233 inline bool NonNegative(double value) in NonNegative() function
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/
H A Dmenu_layoutScd_test_ng.cpp911 EXPECT_TRUE(previewGeometryNode->GetFrameOffset().NonNegative());
979 EXPECT_TRUE(previewGeometryNode->GetFrameOffset().NonNegative());
981 EXPECT_TRUE(menuGeometryNode->GetFrameOffset().NonNegative());
1054 EXPECT_TRUE(previewGeometryNode->GetFrameOffset().NonNegative());
1056 EXPECT_TRUE(menuGeometryNode->GetFrameOffset().NonNegative());
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_layout_algorithm.cpp642 if (NonNegative(currentDelta_)) { in CheckJumpToIndex()
705 …(forwardLayout && NonNegative(startPos)) || (!forwardLayout && LessOrEqual(startPos, prevContentMa… in CheckAndMeasureStartItem()
858 if ((NonNegative(currentOffset_) || overScrollFeature_ || (canOverScroll_ && in MeasureList()
1039 if (forwardFeature_ && targetIndex_ && NonNegative(targetIndex_.value())) { in LayoutForward()
1126 if (backwardFeature_ && targetIndex_ && NonNegative(targetIndex_.value())) { in LayoutBackward()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_layout_algorithm.cpp547 …if ((!overScrollFeature_ && NonNegative(currentOffset_)) || (overScrollFeature_ && overScrollTop))… in MeasureSwiper()
1337 if (isLeftArrow && !NonNegative(arrowOffset.GetX() - padding.left.value_or(0.0f))) { in ArrowLayout()
1373 if (isLeftArrow && !NonNegative(arrowOffset.GetY() - padding.top.value_or(0.0f))) { in ArrowLayout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_tabs_bridge.cpp155 …if (!ArkTSUtils::ParseJsDimensionVp(vm, gutterArg, columnGutter) || !NonNegative(columnGutter.Valu… in SetBarGridAlign()
159 …if (!ArkTSUtils::ParseJsDimensionVp(vm, marginArg, columnMargin) || !NonNegative(columnMargin.Valu… in SetBarGridAlign()

12