/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | scroll_bar.cpp | 29 const Offset& offset, const Size& size, const Offset& lastOffset, double estimatedHeight) in UpdateScrollBarRegion() argument 31 if (!NearZero(estimatedHeight)) { in UpdateScrollBarRegion() 34 SetRectTrickRegion(offset, size, lastOffset, estimatedHeight); in UpdateScrollBarRegion() 36 SetRoundTrickRegion(offset, size, lastOffset, estimatedHeight); in UpdateScrollBarRegion() 60 const Offset& lastOffset, double estimatedHeight) in SetRectTrickRegion() argument 64 double activeSize = barRegionSize * mainSize / estimatedHeight - outBoundary_; in SetRectTrickRegion() 65 if (!NearEqual(mainSize, estimatedHeight)) { in SetRectTrickRegion() 74 … double activeMainOffset = (mainSize - activeSize) * lastMainOffset / (estimatedHeight - mainSize); in SetRectTrickRegion() 103 const Offset& lastOffset, double estimatedHeight) in SetRoundTrickRegion() argument 106 if (!NearEqual(estimatedHeight, diameter)) { in SetRoundTrickRegion() [all …]
|
H A D | scroll_bar.h | 53 const Offset& offset, const Size& size, const Offset& lastOffset, double estimatedHeight);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/inner/ |
H A D | scroll_bar.cpp | 128 if (!NearEqual(estimatedHeight_, estimatedHeight, 0.000001f) || viewPortSize_ != size) { in UpdateScrollBarRegion() 131 if (!NearZero(estimatedHeight)) { in UpdateScrollBarRegion() 135 estimatedHeight_ = estimatedHeight; in UpdateScrollBarRegion() 137 SetRectTrickRegion(offset, size, lastOffset, estimatedHeight); in UpdateScrollBarRegion() 139 SetRoundTrickRegion(offset, size, lastOffset, estimatedHeight); in UpdateScrollBarRegion() 202 if (LessOrEqual(estimatedHeight, 0.0)) { in SetRectTrickRegion() 205 double activeSize = barRegionSize_ * mainSize / estimatedHeight - outBoundary_; in SetRectTrickRegion() 224 if (NearEqual(mainSize, estimatedHeight)) { in SetRectTrickRegion() 227 offsetScale_ = (barRegionSize_ - activeSize) / (estimatedHeight - mainSize); in SetRectTrickRegion() 300 if (!NearEqual(estimatedHeight, diameter)) { in SetRoundTrickRegion() [all …]
|
H A D | scroll_bar.h | 352 const Offset& offset, const Size& size, const Offset& lastOffset, double estimatedHeight);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | scroll_bar_controller.cpp | 250 double estimatedHeight = scroll->GetEstimatedHeight(); in UpdateScrollPosition() local 251 double activeHeight = mainSize * mainSize / estimatedHeight; in UpdateScrollPosition() 253 double value = offset * (estimatedHeight - mainSize) / (mainSize - activeHeight); in UpdateScrollPosition()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_pattern.cpp | 1486 float estimatedHeight = 0.f; in UpdateScrollBarOffset() local 1489 estimatedHeight = scrollbarInfo_.second.value(); in UpdateScrollBarOffset() 1496 estimatedHeight = info.GetIrregularHeight(mainGap); in UpdateScrollBarOffset() 1499 estimatedHeight = info.GetContentHeight(mainGap); in UpdateScrollBarOffset() 1502 estimatedHeight = in UpdateScrollBarOffset() 2091 float estimatedHeight = 0.f; in GetChildrenExpandedSize() local 2096 estimatedHeight = info.GetIrregularHeight(mainGap); in GetChildrenExpandedSize() 2098 estimatedHeight = info.GetContentHeight(mainGap); in GetChildrenExpandedSize() 2100 estimatedHeight = in GetChildrenExpandedSize() 2105 return SizeF(viewSize.Width(), estimatedHeight); in GetChildrenExpandedSize() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/ |
H A D | scroll_bar_pattern.cpp | 241 …auto estimatedHeight = GetControlDistance() + (GetAxis() == Axis::VERTICAL ? viewSize.Height() : v… in UpdateScrollBarOffset() local 243 UpdateScrollBarRegion(scrollableNodeOffset_, estimatedHeight, in UpdateScrollBarOffset() 247 void ScrollBarPattern::UpdateScrollBarRegion(float offset, float estimatedHeight, Size viewPort, Of… in UpdateScrollBarRegion() argument 252 bool scrollable = GreatNotEqual(estimatedHeight, mainSize); in UpdateScrollBarRegion() 264 scrollBar_->UpdateScrollBarRegion(viewOffset, viewPort, scrollOffset, estimatedHeight); in UpdateScrollBarRegion()
|
H A D | scroll_bar_pattern.h | 196 … void UpdateScrollBarRegion(float offset, float estimatedHeight, Size viewPort, Offset viewOffset);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/ |
H A D | water_flow_pattern.cpp | 836 float estimatedHeight = 0.0f; in GetChildrenExpandedSize() local 839 estimatedHeight = info->EstimateContentHeight(); in GetChildrenExpandedSize() 843 return SizeF(viewSize.Width(), estimatedHeight); in GetChildrenExpandedSize() 845 return SizeF(estimatedHeight, viewSize.Height()); in GetChildrenExpandedSize()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_pattern.cpp | 1943 float estimatedHeight = 0.0f; in UpdateScrollBarOffset() local 1946 estimatedHeight = listTotalHeight_; in UpdateScrollBarOffset() 1951 estimatedHeight = calculate.GetEstimateHeight(); in UpdateScrollBarOffset() 1954 estimatedHeight = estimatedHeight - spaceWidth_; in UpdateScrollBarOffset() 1958 estimatedHeight += contentStartOffset_ + contentEndOffset_; in UpdateScrollBarOffset() 1971 UpdateScrollBarRegion(currentOffset, estimatedHeight + paddingMain, size, Offset(0.0f, 0.0f)); in UpdateScrollBarOffset() 2648 float estimatedHeight = 0.0f; in GetChildrenExpandedSize() local 2650 estimatedHeight = listTotalHeight_; in GetChildrenExpandedSize() 2654 estimatedHeight = calculate.GetEstimateHeight(); in GetChildrenExpandedSize() 2658 return SizeF(viewSize.Width(), estimatedHeight); in GetChildrenExpandedSize() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/ |
H A D | scroll_pattern.cpp | 707 …auto estimatedHeight = (GetAxis() == Axis::HORIZONTAL) ? viewPortExtent.Width() : viewPortExtent.H… in UpdateScrollBarOffset() local 708 UpdateScrollBarRegion(-currentOffset_, estimatedHeight, size, Offset(0.0f, 0.0f)); in UpdateScrollBarOffset()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/ |
H A D | scrollable_pattern.h | 725 … void UpdateScrollBarRegion(float offset, float estimatedHeight, Size viewPort, Offset viewOffset);
|
H A D | scrollable_pattern.cpp | 1014 void ScrollablePattern::UpdateScrollBarRegion(float offset, float estimatedHeight, Size viewPort, O… in UpdateScrollBarRegion() argument 1019 bool scrollable = GreatNotEqual(estimatedHeight, mainSize) && IsScrollable(); in UpdateScrollBarRegion() 1034 scrollBar_->UpdateScrollBarRegion(viewOffset, viewPort, scrollOffset, estimatedHeight); in UpdateScrollBarRegion() 1041 auto estimatedHeightItem = estimatedHeight - height; in UpdateScrollBarRegion()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_pattern.cpp | 385 double estimatedHeight = inlineMeasureItem_.inlineContentRectHeight; in CalcInlineScrollRect() local 386 double activeSize = barRegionSize * mainSize / estimatedHeight - scrollBar->GetOutBoundary(); in CalcInlineScrollRect() 388 if (NearEqual(mainSize, estimatedHeight)) { in CalcInlineScrollRect() 391 offsetScale = (barRegionSize - activeSize) / (estimatedHeight - mainSize); in CalcInlineScrollRect()
|