Home
last modified time | relevance | path

Searched refs:customNode (Results 1 – 25 of 151) sorted by relevance

1234567

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/custom/
H A Dcustom_test_ng.cpp88 EXPECT_TRUE(customNode != nullptr && customNode->GetTag() == V2::JS_VIEW_ETS_TAG);
135 EXPECT_TRUE(customNode != nullptr && customNode->GetTag() == V2::JS_VIEW_ETS_TAG);
273 customNode->Update();
276 customNode->Update();
367 customNode = nullptr;
429 customNode = nullptr;
620 customNode->Update();
623 customNode->Update();
799 customNode->Render();
1456 customNode.Reset();
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dview_partial_update_model_ng.cpp38 RefPtr<NG::CustomNodeBase> customNode; in CreateNode() local
56 customNode->SetExtraInfo(std::move(info.extraInfo)); in CreateNode()
60 info.updateNodeFunc(customNode); in CreateNode()
68 customNode->SetRenderFunction(std::move(renderFunc)); in CreateNode()
75 customNode->SetThisFunc(std::move(info.getThisFunc)); in CreateNode()
80 customNode->SetJSViewName(std::move(info.jsViewName)); in CreateNode()
81 customNode->SetIsV2(std::move(info.isV2)); in CreateNode()
86 return customNode; in CreateNode()
92 auto customNode = weakNode.Upgrade(); in MarkNeedUpdate() local
93 CHECK_NULL_RETURN(customNode, false); in MarkNeedUpdate()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/base/
H A Dview_partial_update_model_test_ng.cpp51 RefPtr<AceType> customNode = TestViewPartialUpdateModelNG.CreateNode(std::move(info)); variable
53 EXPECT_TRUE(customNode);
78 RefPtr<AceType> customNode = TestViewPartialUpdateModelNG.CreateNode(std::move(info)); variable
80 EXPECT_TRUE(customNode);
107 RefPtr<AceType> customNode = TestViewPartialUpdateModelNG.CreateNode(std::move(info)); variable
109 EXPECT_TRUE(customNode);
142 EXPECT_TRUE(customNode);
181 EXPECT_TRUE(customNode);
225 EXPECT_TRUE(customNode);
274 EXPECT_TRUE(customNode);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
H A Dstate_style_manager.cpp138 RefPtr<CustomNodeBase> customNode; in FireStateFunc() local
139 GetCustomNode(customNode, node); in FireStateFunc()
140 if (!customNode) { in FireStateFunc()
145 customNode->FireNodeUpdateFunc(nodeId); in FireStateFunc()
153 customNode = DynamicCast<CustomNodeBase>(node); in GetCustomNode()
154 if (customNode && customNode->FireHasNodeUpdateFunc(nodeId)) { in GetCustomNode()
156 customNode->GetJSViewName().c_str()); in GetCustomNode()
166 if (customNode && customNode->FireHasNodeUpdateFunc(nodeId)) { in GetCustomNode()
168 customNode->GetJSViewName().c_str()); in GetCustomNode()
182 if (customNode && customNode->FireHasNodeUpdateFunc(nodeId)) { in GetCustomNode()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_navigation_ffi.cpp60 RefPtr<NG::UINode> customNode; in FfiOHOSAceFrameworkNavigationSetTitleWithBuilder() local
64 customNode = NG::ViewStackProcessor::GetInstance()->Finish(); in FfiOHOSAceFrameworkNavigationSetTitleWithBuilder()
66 NavigationModel::GetInstance()->SetCustomTitle(customNode); in FfiOHOSAceFrameworkNavigationSetTitleWithBuilder()
85 RefPtr<NG::UINode> customNode; in FfiOHOSAceFrameworkNavigationSetMenusWithBuilder() local
89 customNode = NG::ViewStackProcessor::GetInstance()->Finish(); in FfiOHOSAceFrameworkNavigationSetMenusWithBuilder()
91 NavigationModel::GetInstance()->SetCustomMenu(customNode); in FfiOHOSAceFrameworkNavigationSetMenusWithBuilder()
110 RefPtr<NG::UINode> customNode; in FfiOHOSAceFrameworkNavigationSetToolBarWithBuilder() local
114 customNode = NG::ViewStackProcessor::GetInstance()->Finish(); in FfiOHOSAceFrameworkNavigationSetToolBarWithBuilder()
116 NavigationModel::GetInstance()->SetCustomToolBar(customNode); in FfiOHOSAceFrameworkNavigationSetToolBarWithBuilder()
H A Dcj_menu_item_ffi.cpp29 RefPtr<NG::UINode> customNode; in FfiOHOSAceFrameworkMenuItemCreateByBuilder() local
33 customNode = AceType::DynamicCast<NG::UINode>(ViewStackModel::GetInstance()->Finish()); in FfiOHOSAceFrameworkMenuItemCreateByBuilder()
35 MenuItemModel::GetInstance()->Create(customNode); in FfiOHOSAceFrameworkMenuItemCreateByBuilder()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/interfaces/
H A Dextension_custom_node_test_ng.cpp48 auto customNode = AceType::MakeRefPtr<NG::ExtensionCustomNode>(); variable
59 customNode->SetMeasureCallback([](NG::LayoutConstraintF& layoutConstraint)->void {}); in __anon62cf5c500102()
60 customNode->SetLayoutCallback([](NG::OffsetF& position)->void {}); in __anon62cf5c500202()
61 customNode->OnMeasure(extensionLayoutConstraint);
62 customNode->OnLayout(100, 100, 10, 10);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/recycle_view/
H A Drecycle_dummy_node.cpp31 RefPtr<AceType> RecycleDummyNode::WrapRecycleDummyNode(const RefPtr<AceType>& customNode, int32_t n… in WrapRecycleDummyNode() argument
34 auto uiNode = AceType::DynamicCast<UINode>(customNode); in WrapRecycleDummyNode()
53 auto customNode = AceType::DynamicCast<CustomNodeBase>(child); in ~RecycleDummyNode() local
54 CHECK_NULL_VOID(customNode); in ~RecycleDummyNode()
55 customNode->FireRecycleSelf(); in ~RecycleDummyNode()
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Dndk-build-custom-components.md75 customNode->OnMeasure(event);
78 customNode->OnLayout(event);
203 ![customNode](figures/customNode.png)
254 customNode->OnDraw(event);
322 auto customNode = std::make_shared<ArkUICustomNode>();
323 customNode->SetBackgroundColor(0xFFD3D3D3);
324 customNode->SetWidth(150);
325 customNode->SetHeight(150);
326 node->AddChild(customNode);
328 auto customNode = reinterpret_cast<ArkUICustomNode *>(userData);
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/dialog/
H A Ddialog_test_ng.cpp578 ASSERT_NE(customNode, nullptr);
580 customNode, customNode->GetGeometryNode(), customNode->GetLayoutProperty());
1332 customNode, customNode->GetGeometryNode(), customNode->GetLayoutProperty());
1377 customNode, customNode->GetGeometryNode(), customNode->GetLayoutProperty());
2072 customNode, customNode->GetGeometryNode(), customNode->GetLayoutProperty());
2121 customNode, customNode->GetGeometryNode(), customNode->GetLayoutProperty());
2171 customNode, customNode->GetGeometryNode(), customNode->GetLayoutProperty());
2221 customNode, customNode->GetGeometryNode(), customNode->GetLayoutProperty());
2270 customNode, customNode->GetGeometryNode(), customNode->GetLayoutProperty());
2415 customNode, customNode->GetGeometryNode(), customNode->GetLayoutProperty());
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_event_hub.cpp70 } else if (dragDropInfo.customNode) { in OnItemDragStart()
71 dragDropProxy_ = manager->CreateAndShowDragWindow(dragDropInfo.customNode, info); in OnItemDragStart()
98 auto customNode = FireOnItemDragStart(itemDragInfo, draggedIndex_); in HandleOnItemDragStart() local
99 CHECK_NULL_VOID(customNode); in HandleOnItemDragStart()
129 NG::ComponentSnapshot::Create(customNode, std::move(callback), true, in HandleOnItemDragStart()
133 dragDropInfo.customNode = customNode; in HandleOnItemDragStart()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/manager/
H A Ddrag_drop_manager_test_ng_new.cpp161 dragDropManager->FindTargetInChildNodes(customNode, hitFrameNodes, true);
186 customNode->SetActive(false);
191 dragDropManager->FindTargetInChildNodes(customNode, hitFrameNodes, true);
216 customNode->SetActive(true);
251 customNode->SetActive(true);
252 customNode->children_ = child;
287 customNode->SetActive(true);
288 customNode->children_ = child;
340 customNode->SetActive(true);
341 customNode->children_ = child;
[all …]
H A Ddrag_drop_manager_test_ng.cpp87 auto dragDropProxy = dragDropManager->CreateAndShowDragWindow(customNode, gestureEvent);
93 auto root = customNode->GetParent();
126 auto dragDropProxy = dragDropManager->CreateAndShowDragWindow(customNode, gestureEvent);
158 auto dragDropProxy = dragDropManager->CreateAndShowDragWindow(customNode, gestureEvent);
214 auto dragDropProxy = dragDropManager->CreateAndShowDragWindow(customNode, gestureEvent);
270 auto dragDropProxy = dragDropManager->CreateAndShowDragWindow(customNode, gestureEvent);
1390 RefPtr<UINode> customNode = nullptr; variable
1697 frameNode->SetParent(WeakPtr<NG::UINode>(customNode));
1734 customNode->GetLayoutProperty()->UpdateVisibility(VisibleType::INVISIBLE, true);
1735 frameNode->SetParent(WeakPtr<NG::UINode>(customNode));
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dcomponent_snapshot.cpp181 auto uiNode = AceType::DynamicCast<UINode>(customNode); in GetTaskExecutor()
184 "because customNode is type of %{public}s", AceType::TypeName(customNode)); in GetTaskExecutor()
260 if (!customNode) { in Create()
270 if (!GetTaskExecutor(customNode, pipeline, executor)) { in Create()
274 auto node = AceType::DynamicCast<FrameNode>(customNode); in Create()
276 RefPtr<UINode> uiNode = AceType::DynamicCast<UINode>(customNode); in Create()
403 const RefPtr<AceType>& customNode, const SnapshotParam& param) in CreateSync() argument
405 if (!customNode) { in CreateSync()
414 if (!GetTaskExecutor(customNode, pipeline, executor)) { in CreateSync()
418 auto node = AceType::DynamicCast<FrameNode>(customNode); in CreateSync()
[all …]
/ohos5.0/docs/en/application-dev/ui/
H A Dndk-build-custom-components.md75 customNode->OnMeasure(event);
78 customNode->OnLayout(event);
203 ![customNode](figures/customNode.png)
254 customNode->OnDraw(event);
322 auto customNode = std::make_shared<ArkUICustomNode>();
323 customNode->SetBackgroundColor(0xFFD3D3D3);
324 customNode->SetWidth(150);
325 customNode->SetHeight(150);
326 node->AddChild(customNode);
328 auto customNode = reinterpret_cast<ArkUICustomNode *>(userData);
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/event/
H A Dgesture_event_hub_test_ng.cpp487 auto onDragStart = [&customNode](
490 dragDropInfo.customNode = customNode; in __anon9b9e2c481402()
1105 dragDropInfo.customNode = customNode; in __anon9b9e2c482202()
1155 dragDropInfo.customNode = customNode;
1165 dragDropInfo.customNode = customNode; in __anon9b9e2c482302()
1210 dragDropInfo.customNode = customNode;
1224 dragDropInfo.customNode = customNode; in __anon9b9e2c482402()
1281 dragDropInfo.customNode = customNode; in __anon9b9e2c482502()
1325 dragDropInfo.customNode = customNode;
1339 dragDropInfo.customNode = customNode; in __anon9b9e2c482602()
[all …]
H A Dgesture_event_hub_test_ng_property_config.cpp166 dragDropInfo.customNode = customNode; in __anon2a87ae410402()
216 dragDropInfo.customNode = customNode;
225 dragDropInfo.customNode = customNode; in __anon2a87ae410602()
274 dragDropInfo.customNode = customNode; in __anon2a87ae410702()
442 EXPECT_FALSE(dragDropInfo.customNode);
452 EXPECT_FALSE(dragDropInfo.customNode);
463 dragDropInfo.customNode = customNode; in __anon2a87ae410902()
475 EXPECT_FALSE(dragDropInfo.customNode);
503 dragDropInfo.customNode = customNode; in __anon2a87ae410a02()
517 dragPreviewDropInfo.customNode = customNode;
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/custom/
H A Dcustom_node.cpp137 auto customNode = weak.Upgrade(); in AdjustLayoutWrapperTree() local
138 CHECK_NULL_VOID(customNode); in AdjustLayoutWrapperTree()
140 customNode->Render(); in AdjustLayoutWrapperTree()
141 if (customNode->GetChildren().empty()) { in AdjustLayoutWrapperTree()
144 auto child = customNode->GetChildren().front(); in AdjustLayoutWrapperTree()
H A Dcustom_node_layout_algorithm.cpp69 auto customNode = DynamicCast<CustomNodeBase>(layoutWrapper->GetHostNode()); in Measure() local
70 if (customNode) { in Measure()
71 customNode->FireRecycleRenderFunc(); in Measure()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
H A Ddialog_view.cpp31 const DialogProperties& param, const RefPtr<UINode>& customNode = nullptr) in CreateDialogNode() argument
55 AceType::MakeRefPtr<DialogPattern>(dialogTheme, customNode)); in CreateDialogNode()
56 if (customNode) { in CreateDialogNode()
57 customNode->Build(nullptr); in CreateDialogNode()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/time_picker/
H A Dtime_picker_test_ng.cpp2893 auto customNode = dialogPattern->GetCustomNode(); variable
2938 auto customNode = dialogPattern->GetCustomNode(); variable
2983 auto customNode = dialogPattern->GetCustomNode(); variable
3028 auto customNode = dialogPattern->GetCustomNode(); variable
3073 auto customNode = dialogPattern->GetCustomNode(); variable
3118 auto customNode = dialogPattern->GetCustomNode(); variable
3163 auto customNode = dialogPattern->GetCustomNode(); variable
3208 auto customNode = dialogPattern->GetCustomNode(); variable
3253 auto customNode = dialogPattern->GetCustomNode(); variable
3298 auto customNode = dialogPattern->GetCustomNode(); variable
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/navrouter/
H A Dnavrouter_pattern_test_ng.cpp413 EXPECT_NE(customNode, nullptr);
420 navDestinationModel.SetCustomTitle(customNode);
448 EXPECT_NE(customNode, nullptr);
457 EXPECT_NE(currentTitle->GetId(), customNode->GetId());
458 navDestinationModel.SetCustomTitle(customNode);
603 ASSERT_NE(customNode, nullptr);
608 navDestinationModel.SetCustomMenu(customNode);
620 navDestinationModel.SetCustomMenu(customNode);
652 navDestinationPattern->customNode_ = customNode;
672 navDestinationNode->children_.emplace_back(customNode);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navrouter/
H A Dnavdestination_model.h43 virtual void SetCustomTitle(const RefPtr<AceType>& customNode) = 0;
56 virtual void SetCustomToolBar(const RefPtr<AceType>& customNode) = 0;
60 virtual void SetCustomMenu(const RefPtr<AceType>& customNode) = 0;
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/
H A Djsi_view_register_impl_ng.cpp242 auto customNode = AceType::DynamicCast<NG::CustomTitleNode>(uiNode); in AddCustomTitleBarComponent() local
243 CHECK_NULL_VOID(customNode); in AddCustomTitleBarComponent()
255 customNode->SetAppTitleCallback(callback); in AddCustomTitleBarComponent()
266 customNode->SetAppIconCallback(callback); in AddCustomTitleBarComponent()
276 customNode->SetOnWindowFocusedCallback(callback); in AddCustomTitleBarComponent()
286 customNode->SetOnWindowUnfocusedCallback(callback); in AddCustomTitleBarComponent()
288 NG::ViewStackProcessor::GetInstance()->SetCustomTitleNode(customNode); in AddCustomTitleBarComponent()
372 auto customNode = AceType::DynamicCast<NG::CustomNodeBase>(pageRootNode); in UpdateRootComponent() local
374 …[weakCustom = WeakPtr<NG::CustomNodeBase>(customNode), weakPage = WeakPtr<NG::FrameNode>(pageNode)… in UpdateRootComponent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Dkeyboard_view.h41 auto customNode = NG::ViewStackProcessor::GetInstance()->Finish(); in CreateKeyboard() local
42 auto keyboardNode = AceType::DynamicCast<UINode>(customNode); in CreateKeyboard()

1234567