Home
last modified time | relevance | path

Searched refs:Positive (Results 1 - 25 of 67) sorted by relevance

123

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/
H A Dscroll_bar_accessibility_property.cpp27 if (scrollBarPattern->GetAxis() != Axis::NONE && Positive(scrollBarPattern->GetControlDistance()) in IsScrollable()
28 && Positive(scrollBarPattern->GetScrollableDistance())) { in IsScrollable()
H A Dscroll_bar_pattern.cpp384 if (!Positive(controlDistance_)) { in UpdateScrollBarDisplay()
394 if (!Positive(controlDistance_)) { in UpdateScrollBarDisplay()
563 if (!Positive(controlDistance_)) { in StartDisappearAnimator()
600 if (!Positive(controlDistance_)) { in StopDisappearAnimator()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_utils.h114 count = (Positive(static_cast<double>(count)) ? count : 1); in CaculateDisplayItemSpaceCount()
115 if (Positive(prevMargin) && Positive(nextMargin)) { in CaculateDisplayItemSpaceCount()
172 bool hasPrevMargin = Positive(property->GetCalculatedPrevMargin()); in CheckIsSingleCase()
173 bool hasNextMargin = Positive(property->GetCalculatedNextMargin()); in CheckIsSingleCase()
H A Dswiper_layout_algorithm.cpp97 ignoreBlankOffset_ = Positive(prevMargin_) ? -(prevMargin_ + spaceWidth_) : 0.0f; in UpdateLayoutInfoBeforeMeasureSwiper()
100 ignoreBlankOffset_ = Positive(nextMargin_) ? nextMargin_ + spaceWidth_ : 0.0f; in UpdateLayoutInfoBeforeMeasureSwiper()
427 auto prevMarginMontage = Positive(prevMargin_) ? prevMargin_ + spaceWidth_ : 0.0f; in MeasureSwiperOnJump()
428 if (Positive(ignoreBlankOffset_)) { in MeasureSwiperOnJump()
433 (isLoop_ && Positive(prevMargin_))) { in MeasureSwiperOnJump()
462 Positive(prevMargin_) ? item.second.endPos + prevMargin_ + spaceWidth_ : item.second.endPos; in MeasureSwiper()
463 if (Positive(itemEndPos)) { in MeasureSwiper()
488 auto pos = Positive(prevMargin_) ? it->second.startPos + prevMargin_ : it->second.startPos; in MeasureSwiper()
533 if (isMeasureOneMoreItem_ || Positive(prevMargin_)) { in MeasureSwiper()
545 startMainPos_ - prevMargin_ - spaceWidth_ - (Positive(ignoreBlankOffset in MeasureSwiper()
[all...]
/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Ddimension.cpp55 if (Positive(param.vpScale)) { in CalcDimensionVp()
64 if (Positive(param.fpScale) && Positive(param.vpScale)) { in CalcDimensionFp()
73 if (Positive(param.lpxScale)) { in CalcDimensionLpx()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/effect/
H A Dscroll_fade_effect.cpp87 } else if (isVertical && Positive(overScroll)) { in SetPaintDirection()
109 } else if (isVertical && Positive(overScroll)) { in SetPaintDirection()
/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dbezier_variable_velocity_motion.h45 return Positive(offsetPct_) ? scrollOffset_ : Negative(offsetPct_) ? -scrollOffset_ : 0;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_item_layout_algorithm.cpp56 if (Positive(curOffset_) && startNodeIndex_ >= 0) { in Measure()
101 if (Positive(curOffset_) && startNodeIndex_ >= 0) { in Layout()
H A Dlist_item_drag_manager.cpp215 if (Positive(mainDelta)) { in ScaleAxisNearItem()
263 if (Positive(mainDelta)) { in ScaleNearItem()
275 if (Positive(crossDelta)) { in ScaleNearItem()
288 diagonalIndex = Positive(crossDelta) ? nearIndex + 1 : nearIndex - 1; in ScaleNearItem()
H A Dlist_item_pattern.cpp491 if (Positive(curOffset_) && hasStartDeleteArea_) { in ChangeDeleteAreaStage()
539 if (Positive(startNodeSize_) && GreatNotEqual(curOffset_, startNodeSize_ + startDeleteAreaDistance_)) { in UpdatePostion()
546 if (Positive(endNodeSize_) && GreatNotEqual(-curOffset_, endNodeSize_ + endDeleteAreaDistance_)) { in UpdatePostion()
552 if (Positive(startNodeSize_) && GreatNotEqual(curOffset_, startNodeSize_) && !hasStartDeleteArea_) { in UpdatePostion()
554 } else if (Positive(endNodeSize_) && GreatNotEqual(-curOffset_, endNodeSize_) && !hasEndDeleteArea_) { in UpdatePostion()
558 (Positive(curOffset_) && !HasStartNode() && !listItemEventHub->GetStartOnDelete())) { in UpdatePostion()
H A Dlist_position_map.h444 if (Positive(offset)) { in OptimizeBeforeMeasure()
457 while (Positive(posMap_[beginIndex].mainPos) && in OptimizeBeforeMeasure()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/refresh/
H A Drefresh_pattern.cpp628 return Positive(pattern->scrollOffset_) || NonNegative(offset); in InitCoordinationEvent()
1171 if (Negative(offset) && Positive(scrollOffset_)) { in HandleScroll()
1184 (Positive(offset) && (nestedScroll.backward == NestedScrollMode::SELF_ONLY || in HandleScroll()
1192 (Positive(offset) && nestedScroll.backward == NestedScrollMode::SELF_FIRST)); in HandleScroll()
1227 (Positive(velocity) && nestedScroll.backward == NestedScrollMode::PARENT_FIRST))) { in HandleScrollVelocity()
1233 if (Positive(scrollOffset_) || Positive(velocity)) { in HandleScrollVelocity()
1237 (Positive(velocity) && nestedScroll.backward == NestedScrollMode::SELF_FIRST))) { in HandleScrollVelocity()
H A Drefresh_layout_algorithm.cpp140 auto refreshingPosition = Positive(customBuilderHeight) ? distance + customBuilderHeight : 0.0f; in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/sliding_window/
H A Dwater_flow_layout_sw.cpp211 if (Positive(delta)) { in MeasureOnOffset()
228 if (Positive(delta)) { in ApplyDelta()
475 if (Positive(itemEndPos)) { in ClearFront()
603 if (startIdx == 0 && Positive(minStart)) { in AdjustOverScroll()
614 if (info_->StartIndex() == 0 && Positive(minStart)) { in AdjustOverScroll()
H A Dwater_flow_layout_info_sw.cpp105 if (itemStart_ && Positive(lanes_[0][0].startPos - TopMargin())) { in OutOfBounds()
127 } else if (Positive(delta)) { in GetOverScrolledDelta()
138 if (Positive(disToBot) && LessNotEqual(maxHeight_, lastMainSize_)) { in GetOverScrolledDelta()
222 const bool backFromOverScroll = Positive(prevPos) && NonPositive(totalOffset_);
266 float pos = 0.0f; // main-axis position of the item's top edge relative to viewport top. Positive if below viewport
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/divider/
H A Ddivider_layout_algorithm.cpp38 constrainStrokeWidth_ = Positive(strokeWidth.ConvertToPx()) ? static_cast<float>(strokeWidth.ConvertToPx()) in MeasureContent()
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Dsize_t.h170 return Positive(width_) && Positive(height_); in IsPositive()
565 return Positive(width_.value_or(-1)) && Positive(height_.value_or(-1));
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Drender_list_item_group.cpp32 if (Positive(maxLaneLength_)) { in MakeInnerLayout()
40 if (Positive(maxLaneLength_)) { in MakeInnerLayout()
/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dutils.h243 inline bool Positive(double value) in Positive() function
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/
H A Dscrollable_controller.cpp49 if (Positive(duration) || smooth) { in AnimateTo()
/foundation/arkui/ace_engine/frameworks/core/gestures/
H A Dvelocity_tracker.cpp53 bool isIncreasing = Positive(delta); in GetMononicity()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/
H A Dscroll_pattern.cpp282 if (Positive(scrollableDistance_)) { in IsOutOfBoundary()
283 return Positive(currentOffset_) || LessNotEqual(currentOffset_, -scrollableDistance_); in IsOutOfBoundary()
307 if (Positive(scrollableDistance_)) { in AdjustOffset()
882 CHECK_NULL_VOID(Positive(intervalSize_.Value()));
898 start = Positive(sizeDelta) ? sizeDelta - static_cast<int32_t>(sizeDelta / intervalSize) * intervalSize
904 start = Positive(sizeDelta) ? mainSize - static_cast<int32_t>(mainSize / intervalSize) * intervalSize
911 if (!Positive(start)) {
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_layout_info.cpp151 return reachStart_ && Positive(currentOffset_); in IsOutOfStart()
892 while (!Positive(currentEndOffset)) { in UpdateStartIndexForExtralOffset()
902 } else if (Positive(currentOffset_)) { in UpdateStartIndexForExtralOffset()
906 while (Positive(preItemCurrentOffset)) { in UpdateStartIndexForExtralOffset()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/
H A Dswiper_indicator_pattern.cpp610 if (Positive(info.GetMainDelta()) || NonNegative(touchOffset)) { in CheckIsTouchBottom()
653 if (Positive(touchOffset)) { in CheckIsTouchBottom()
669 if (Positive(touchOffset)) { in CheckIsTouchBottom()
750 if (Positive(turnPageRateOffset)) { in HandleLongDragUpdate()
/foundation/arkui/ace_engine/test/unittest/core/pattern/list/
H A Dlist_nested_test_ng.cpp166 if ((Positive(offset) && pattern->IsAtBottom()) || (Negative(offset) && pattern->IsAtTop())) { in HWTEST_F()
246 if ((Positive(offset) && pattern->IsAtBottom()) || (Negative(offset) && pattern->IsAtTop())) { in HWTEST_F()

Completed in 24 milliseconds

123