/foundation/arkui/ace_engine/interfaces/native/ |
H A D | native_node.h | 4228 * @brief Defines whether to pin the header to the top or the footer to the bottom in the <b><ListItemGroup></b>
4232 * .value[0].i32: whether to pin the header to the top or the footer to the bottom in the <b><ListItemGroup></b>
4237 * .value[0].i32: whether to pin the header to the top or the footer to the bottom in the <b><ListItemGroup></b>
4661 * @brief Defines the footer of the list item group. This attribute can be set, reset, and obtained as
4665 * .object: {@link ArkUI_NodeHandle} object to be used as the footer of the list item group. \n
4668 * .object: {@link ArkUI_NodeHandle} object to be used as the footer of the list item group. \n
|
H A D | native_type.h | 663 * @brief Enumerates the modes for pinning the header to the top or the footer to the bottom. 668 /** In the list item group, the header is not pinned to the top, and the footer is not pinned to the bottom. */ 670 /** In the list item group, the header is pinned to the top, and the footer is not pinned to the bottom. */ 672 /** In the list item group, the footer is pinned to the bottom, and the header is not pinned to the top. */ 674 /** In the list item group, the footer is pinned to the bottom, and the header is pinned to the top. */
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/ |
H A D | water_flow_pattern.cpp | 151 auto footer = footer_.Upgrade(); in BeforeCreateLayoutWrapper() local 152 if (footer && footer->FrameCount() > 0) { in BeforeCreateLayoutWrapper() 153 layoutInfo_->footerIndex_ = 0; in BeforeCreateLayoutWrapper() 373 // if target index is footer, fix align because it will jump after fillViewport. in UpdateStartIndex() 374 if (layoutInfo_->footerIndex_ == 0 && layoutInfo_->jumpIndex_ == childCount - 1) { in UpdateStartIndex() 449 index += layoutInfo_->footerIndex_ + 1; in GetItemRect() 522 auto footer = footer_ in ScrollToIndex() local 648 AddFooter(const RefPtr<NG::UINode>& footer) AddFooter() argument [all...] |
H A D | water_flow_pattern.h | 41 return footer_.Upgrade() != nullptr; in hasFooter() 81 void AddFooter(const RefPtr<NG::UINode>& footer); 237 WeakPtr<UINode> footer_; member in OHOS::Ace::NG::WaterFlowPattern
|
H A D | water_flow_model_ng.cpp | 59 void WaterFlowModelNG::SetFooter(std::function<void()>&& footer) in SetFooter() argument 61 RefPtr<NG::UINode> footerNode; in SetFooter() local 62 if (footer) { in SetFooter() 64 footer(); in SetFooter() 65 footerNode = NG::ViewStackProcessor::GetInstance()->Finish(); in SetFooter() 67 CHECK_NULL_VOID(footerNode); in SetFooter() 72 pattern->AddFooter(footerNode); in SetFooter() 650 void WaterFlowModelNG::SetWaterflowFooter(FrameNode* frameNode, FrameNode* footerNode) in SetWaterflowFooter() argument 654 pattern->AddFooter(AceType::Claim<UINode>(footerNode)); in SetWaterflowFooter()
|
H A D | water_flow_model_ng.h | 27 void SetFooter(std::function<void()>&& footer) override; 115 static void SetWaterflowFooter(FrameNode* frameNode, FrameNode* footerNode);
|
H A D | water_flow_model.h | 35 virtual void SetFooter(std::function<void()>&& footer) = 0;
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/arkoala/ |
H A D | arkoala_api.h | 2455 void (*listItemGroupSetFooter)(ArkUINodeHandle node, ArkUINodeHandle footer); 3670 void (*setWaterflowFooter)(ArkUINodeHandle node, ArkUINodeHandle footer);
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/cjui/ |
H A D | cjui_api.h | 923 void (*listItemGroupSetFooter)(ArkUINodeHandle node, ArkUINodeHandle footer);
1995 void (*setWaterflowFooter)(ArkUINodeHandle node, ArkUINodeHandle footer);
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | water_flow_modifier.cpp | 560 void SetWaterflowFooter(ArkUINodeHandle node, ArkUINodeHandle footer) in SetWaterflowFooter() argument 564 auto* footerNode = reinterpret_cast<FrameNode*>(footer); in SetWaterflowFooter() local 565 CHECK_NULL_VOID(footerNode); in SetWaterflowFooter() 566 WaterFlowModelNG::SetWaterflowFooter(frameNode, footerNode); in SetWaterflowFooter()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/sliding_window/ |
H A D | water_flow_layout_sw.cpp | 92 } else if (info_->footerIndex_ == 0) { in Layout() 100 // omit footer from children count in Init() 170 int32_t updateIdx = GetUpdateIdx(wrapper_, info_->footerIndex_); in CheckReset() 508 } else if (jumpIdx == itemCnt_ && info_->footerIndex_ == 0) { in MeasureOnJump() 509 // jump to footer in MeasureOnJump() 591 if (LessOrEqual(maxEnd, mainLen_) && info_->footerIndex_ == 0) { in AdjustOverScroll() 592 info_->footerHeight_ = WaterFlowLayoutUtils::MeasureFooter(wrapper_, axis_); in AdjustOverScroll() 593 maxEnd += info_->footerHeight_; in AdjustOverScroll() 682 if (info_->footerIndex_ != 0) { in LayoutFooter() 687 mainPos = mainLen_ - info_->footerHeight_ in LayoutFooter() 689 auto footer = wrapper_->GetOrCreateChildByIndex(0); LayoutFooter() local [all...] |
H A D | water_flow_layout_info_sw.cpp | 41 if (footerIndex_ == 0) { in Sync() 44 offsetEnd_ = itemEnd_ && LessOrEqualCustomPrecision(endPos_ + footerHeight_ + BotMargin(), mainSize, 0.1f); in Sync() 45 maxHeight_ = std::max(endPos_ - startPos_ + footerHeight_, maxHeight_); in Sync() 48 footerHeight_ = 0.0f; in Sync() 110 return LessNotEqual(lane.endPos + footerHeight_ + BotMargin(), lastMainSize_); in OutOfBounds() 137 float disToBot = EndPosWithMargin() + footerHeight_ - std::min(lastMainSize_, maxHeight_); in GetOverScrolledDelta() 162 res = mainSize - (EndPosWithMargin() + footerHeight_ + delta); in CalcOverScroll() 231 const float prevEndPos = EndPos() - (totalOffset_ - prevPos) + footerHeight_; 233 LessNotEqual(prevEndPos, lastMainSize_) && GreatOrEqual(EndPos() + footerHeight_, lastMainSize_); 328 footerIndex_ [all...] |
H A D | water_flow_layout_info_sw.h | 229 float footerHeight_ = 0.0f; member in OHOS::Ace::NG::WaterFlowLayoutInfoSW
|
H A D | water_flow_layout_sw.h | 190 int32_t itemCnt_ = 0; // total number of FlowItems (excluding footer)
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/ |
H A D | water_flow_layout_info.cpp | 262 footerIndex_ = -1; in ResetFooter()
|
H A D | water_flow_layout_algorithm.cpp | 102 int32_t updateIdx = GetUpdateIdx(layoutWrapper, layoutInfo_->footerIndex_); in Measure() 128 mainSize_ = layoutInfo_->GetMaxMainHeight() + footerMainSize_; in Measure() 272 if (layoutInfo_->footerIndex_ < 0) { in LayoutFooter() 276 auto footer = layoutWrapper->GetOrCreateChildByIndex(layoutInfo_->footerIndex_); in LayoutFooter() local 277 CHECK_NULL_VOID(footer); in LayoutFooter() 278 auto footerOffset = childFrameOffset; in LayoutFooter() local 281 mainOffset = mainSize_ - footerMainSize_ - mainOffset; in LayoutFooter() 283 footerOffset += (axis_ == Axis::VERTICAL) ? OffsetF(0, mainOffset) : OffsetF(mainOffset, 0); in LayoutFooter() 284 footer in LayoutFooter() 287 auto footer = layoutWrapper->GetChildByIndex(layoutInfo_->footerIndex_); LayoutFooter() local [all...] |
H A D | water_flow_layout_algorithm.h | 52 return index + layoutInfo_->footerIndex_ + 1; in GetChildIndexWithFooter() 67 float footerMainSize_ = 0.0f; member in OHOS::Ace::NG::WaterFlowLayoutAlgorithm 68 float footerMainStartPos_ = 0.0f; member in OHOS::Ace::NG::WaterFlowLayoutAlgorithm
|
H A D | water_flow_segmented_layout.cpp | 184 if (info_->footerIndex_ >= 0) { in Init() 282 info_->segmentTails_ = { (info_->footerIndex_ >= 0) ? info_->childrenCount_ - 2 : info_->childrenCount_ - 1 }; in RegularInit() 297 if (info_->footerIndex_ != info_->childrenCount_ - 1) { in InitFooter() 298 info_->footerIndex_ = std::min(info_->footerIndex_, info_->childrenCount_ - 1); in InitFooter() 299 info_->ClearCacheAfterIndex(info_->footerIndex_ - 1); in InitFooter() 301 auto footer = wrapper_->GetOrCreateChildByIndex(info_->footerIndex_); in InitFooter() local 303 waterFlow->RemoveChildAtIndex(info_->footerIndex_); in InitFooter() 304 footer in InitFooter() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/ |
H A D | water_flow_layout_utils.cpp | 141 auto footer = wrapper->GetOrCreateChildByIndex(0); in MeasureFooter() local 142 CHECK_NULL_RETURN(footer, 0.0f); in MeasureFooter() 144 auto footerConstraint = layoutProperty->CreateChildConstraint(); in MeasureFooter() local 145 footer->GetLayoutProperty()->UpdateMeasureType(MeasureType::MATCH_CONTENT); in MeasureFooter() 146 footer->Measure(footerConstraint); in MeasureFooter() 147 auto itemSize = footer->GetGeometryNode()->GetMarginFrameSize(); in MeasureFooter()
|
H A D | water_flow_layout_info_base.h | 163 return idx + footerIndex_ + 1; in NodeIdx() 167 * @brief obtain true total number of FlowItems by filtering out the footer node. 171 return childrenCount - footerIndex_ - 1; in ItemCnt() 191 * With footer, footer should be considered the last item. 205 int32_t footerIndex_ = -1; member in OHOS::Ace::NG::WaterFlowLayoutInfoBase
|
H A D | water_flow_layout_algorithm_base.cpp | 111 int32_t WaterFlowLayoutBase::GetUpdateIdx(LayoutWrapper* host, int32_t footerIdx) in GetUpdateIdx() argument 114 if (updateIdx > 0 && footerIdx == 0) { in GetUpdateIdx()
|
H A D | water_flow_layout_algorithm_base.h | 57 static int32_t GetUpdateIdx(LayoutWrapper* host, int32_t footerIdx);
|
H A D | water_flow_layout_utils.h | 46 * @brief Helper to measure the footer node. 47 * REQUIRES: footer resides at index 0. 48 * @return main length of the footer node.
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/water_flow/ |
H A D | render_water_flow.cpp | 405 if (footer_) { in InitialFlowProp() 406 RemoveChild(footer_); in InitialFlowProp() 407 footer_ = nullptr; in InitialFlowProp() 500 if (!footer_ || NonPositive(mainSize) || NonPositive(crossSize)) { in GetFooterSize() 501 LOGE("footer is null"); in GetFooterSize() 505 footerMaxSize_.SetWidth(std::min(crossSize, crossSize_)); in GetFooterSize() 506 footerMaxSize_.SetHeight(std::min(mainSize, mainSize_)); in GetFooterSize() 508 footerMaxSize_.SetWidth(std::min(mainSize, mainSize_)); in GetFooterSize() 509 footerMaxSize_.SetHeight(std::min(crossSize, crossSize_)); in GetFooterSize() 515 if (!footer_) { in LayoutFooter() 534 auto footerCurrentPos = GetTailPos(); SetFooterPosition() local 1149 double footerOffset = 0.0; CheckReachTail() local 1173 double footerOffset = 0.0; AdjustViewPort() local [all...] |
H A D | render_water_flow.h | 283 RefPtr<RenderNode> footer_; 284 Size footerMaxSize_;
|