Home
last modified time | relevance | path

Searched refs:NonNegative (Results 1 - 25 of 42) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Dsize_t.h128 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 Doffset_t.h146 bool NonNegative() const in NonNegative() function in OHOS::Ace::NG::OffsetT
H A Drect_t.h203 return NonNegative(width_) && NonNegative(height_); in IsValid()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkboxgroup/
H A Dcheckboxgroup_layout_algorithm.cpp37 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 Ddata_panel_layout_algorithm.cpp50 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 Drect_painter.cpp49 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 Ddialog_view.cpp63 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 Ddialog_layout_algorithm.cpp152 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 Dimage_animator_pattern_test_ng.cpp137 if (NonNegative(width) && NonNegative(height)) { in RunMeasureAndLayout()
139 } else if (NonNegative(width)) { in RunMeasureAndLayout()
141 } else if (NonNegative(height)) { in RunMeasureAndLayout()
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()
/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()
/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() != 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 Djs_list_item_group.cpp119 if (!ParseJsDouble(childrenSizeObj->GetProperty("defaultMainSize"), defaultSize) || !NonNegative(defaultSize)) { in SetChildrenMainSize()
H A Djs_tabs.cpp572 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 Dcheckbox_layout_algorithm.cpp45 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 Dradio_layout_algorithm.cpp48 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 Dshape_container_pattern.cpp79 } else if (NonNegative(miterLimit) && in OnModifyDone()
H A Dshape_pattern.h62 } else if (NonNegative(miterLimit) &&
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/
H A Dwater_flow_segmented_layout.cpp158 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 Dwater_flow_layout_algorithm.cpp253 if (!isCache && NonNegative(mainOffset + item.second.second)) { in Layout()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/
H A Dgauge_layout_algorithm.cpp86 NonNegative(contentConstraint.selfIdealSize.Width().value())) { in MeasureContent()
91 NonNegative(contentConstraint.selfIdealSize.Height().value())) { in MeasureContent()
/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dutils.h238 inline bool NonNegative(double value) in NonNegative() function
/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/
H A Dmenu_layoutScd_test_ng.cpp911 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 Dswiper_layout_algorithm.cpp542 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()

Completed in 33 milliseconds

12