Home
last modified time | relevance | path

Searched refs:NodeContent (Results 1 – 25 of 47) sorted by relevance

12

/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/
H A Djs-apis-arkui-NodeContent.md1 # NodeContent chapter
3 NodeContent是ArkUI提供的ContentSlot的管理器。
12 import {NodeContent } from '@kit.ArkUI'
15 ## NodeContent section
33 import {NodeContent } from '@kit.ArkUI'
37 private nodeContent: Content = new NodeContent();
57 根据参数将FrameNode添加到NodeContent中。
73 根据参数将FrameNode从NodeContent中删除。
91 content: NodeContent
97 this.content = new NodeContent()
[all …]
H A Djs-apis-arkui-Content.md3 定义ComponentContent和NodeContent基类。
13 定义ComponentContent和NodeContent的基类。
H A Dnative__node_8h.md48 …NodeContentEvent](_ark_u_i___native_module.md#arkui_nodecontentevent) | 定义NodeContent事件的通用结构类型。 |
49 …ntEvent](_ark_u_i___native_module.md#arkui_nodecontentevent) \*event) | 定义NodeContent事件的回调函数类型。 |
62 …DE_CONTENT_EVENT_ON_DETACH_FROM_WINDOW](_ark_u_i___native_module.md) = 1 } | 定义NodeContent事件类型。 |
108 …Callback](_ark_u_i___native_module.md#arkui_nodecontentcallback) callback) | 注册NodeContent事件函数。 |
109 …ntEvent](_ark_u_i___native_module.md#arkui_nodecontentevent) \*event) | 获取触发NodeContent事件的事件类型。 |
110 …tentEvent](_ark_u_i___native_module.md#arkui_nodecontentevent) \*event) | 获取触发事件的NodeContent对象。 |
111 …__native_module.md#arkui_nodecontenthandle) content, void \*userData) | 在NodeContent对象上保存自定义数据。 |
112 …dle](_ark_u_i___native_module.md#arkui_nodecontenthandle) content) | 获取在NodeContent对象上保存的自定义数据。 |
113 …Handle](_ark_u_i___native_module.md#arkui_nodehandle) node) | 将一个ArkUI组件节点添加到对应的NodeContent对象下。 |
114 …UI_NodeHandle](_ark_u_i___native_module.md#arkui_nodehandle) node) | 删除NodeContent对象下的一个ArkUI组件节点 …
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkui/
H A Djs-apis-arkui-NodeContent.md1 # NodeContent chapter
12 import {NodeContent } from '@kit.ArkUI'
15 ## NodeContent section
21 A constructor used to create a **NodeContent** object.
33 import {NodeContent } from '@kit.ArkUI'
37 private nodeContent: Content = new NodeContent();
57 Adds a FrameNode to this **NodeContent** object.
88 import {NodeContent, typeNode } from '@kit.ArkUI';
91 content: NodeContent
97 this.content = new NodeContent()
[all …]
H A Djs-apis-arkui-Content.md3 **Content** defines a base class for **ComponentContent** and **NodeContent**.
13 Defines a base class for **ComponentContent** and **NodeContent**.
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_content_slot.cpp36 NG::NodeContent* content = nullptr; in Create()
42 …content = reinterpret_cast<NG::NodeContent*>(contentHandle->ToNativePointer(info.GetVm())->Value()… in Create()
52 auto content = Referenced::MakeRefPtr<NG::NodeContent>(); in Constructor()
57 void JSNodeContent::Destructor(NG::NodeContent* nodeContent) in Destructor()
69 auto* nodeContent = JSRef<JSObject>::Cast(info[0])->Unwrap<NG::NodeContent>(); in GetNativeContent()
76 JSClass<NG::NodeContent>::Declare("ArkUINativeNodeContent"); in JSBind()
77 JSClass<NG::NodeContent>::StaticMethod("getNativeContent", &JSNodeContent::GetNativeContent); in JSBind()
78 … JSClass<NG::NodeContent>::Bind(globalObj, JSNodeContent::Constructor, JSNodeContent::Destructor); in JSBind()
H A Djs_content_slot.h42 static void Destructor(NG::NodeContent* nodeContent);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/
H A Dnode_content.cpp20 void NodeContent::AttachToNode(UINode* node) in AttachToNode()
36 void NodeContent::DetachFromNode() in DetachFromNode()
49 void NodeContent::AddNode(UINode* node, int32_t position) in AddNode()
67 void NodeContent::RemoveNode(UINode* node) in RemoveNode()
82 void NodeContent::OnAttachToMainTree() in OnAttachToMainTree()
93 void NodeContent::OnDetachFromMainTree() in OnDetachFromMainTree()
H A Dnode_content.h27 class NodeContent : public AceType {
28 DECLARE_ACE_TYPE(NodeContent, AceType)
30 NodeContent() = default;
31 ~NodeContent() override = default;
H A Dcontent_slot_node.h44 void AttachNodeContent(NodeContent* content) in AttachNodeContent()
80 RefPtr<NodeContent> content_;
H A Dcontent_slot_model_ng.h23 void Create(NodeContent* content);
H A Dcontent_slot_model_ng.cpp23 void Create(NodeContent* content) in Create()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_content_modifier.cpp30 auto* nodeContent = reinterpret_cast<NodeContent*>(content); in AddChild()
40 auto* nodeContent = reinterpret_cast<NodeContent*>(content); in InsertChild()
50 auto* nodeContent = reinterpret_cast<NodeContent*>(content); in RemoveChild()
69 auto* nodeContent = reinterpret_cast<NodeContent*>(content); in RegisterEvent()
78 auto* nodeContent = reinterpret_cast<NodeContent*>(content); in SetUserData()
86 auto* nodeContent = reinterpret_cast<NodeContent*>(content); in GetUserData()
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Dndk-access-the-arkts-page.md10 import { NodeContent } from '@kit.ArkUI';
15 // 初始化NodeContent对象。
16 private rootSlot = new NodeContent();
21 // 传递NodeContent对象用于Native创建组件的挂载显示
35 // 将NodeContent和ContentSlot占位组件绑定。
123 import { NodeContent } from '@kit.ArkUI';
128 // 初始化NodeContent对象。
129 private rootSlot = new NodeContent();
134 // 传递NodeContent对象用于Native创建组件的挂载显示
230 // 从NodeContent上卸载组件并销毁Native组件。
[all …]
H A Dndk-embed-arkts-components.md32 import { NodeContent, UIContext, RefreshModifier, ComponentContent } from '@kit.ArkUI';
51 slot?: NodeContent;
85 childSlot?: NodeContent;
109 // 创建NodeContent插槽对象用于Refresh子组件挂载。
110 let nodeSlot = new NodeContent();
160 import { NodeContent } from '@kit.ArkUI';
166 private rootSlot = new NodeContent();
423 // 使用NodeContent卸载组件。
429 // 使用NodeContent插入组件。
574 // 保存ArkTS的NodeContent用于防止ArkTS侧对象释放以及后续的更新。
[all …]
H A Darkts-user-defined-place-hoder.md145 import { FrameNode, NodeContent, NodeController, typeNode, UIContext } from '@kit.ArkUI';
148 content: NodeContent
154 this.content = new NodeContent()
176 GetContent(): NodeContent {
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/syntax/
H A Dcontent_slot_syntax_test_ng.cpp83 auto nodeContentPtr = AceType::MakeRefPtr<NodeContent>();
84 NodeContent* nodeContent = AceType::RawPtr(nodeContentPtr);
125 auto nodeContentPtr = AceType::MakeRefPtr<NodeContent>();
126 NodeContent* nodeContent = AceType::RawPtr(nodeContentPtr);
/ohos5.0/docs/en/application-dev/ui/
H A Dndk-access-the-arkts-page.md10 import { NodeContent } from '@kit.ArkUI';
15 // Initialize the NodeContent object.
16 private rootSlot = new NodeContent();
35 // Bind the NodeContent and ContentSlot placeholder component.
123 import { NodeContent } from '@kit.ArkUI';
128 // Initialize the NodeContent object.
129 private rootSlot = new NodeContent();
148 // Bind the NodeContent and ContentSlot placeholder component.
226 // Add the native component to NodeContent for mounting and display.
230 // Unmount the component from NodeContent and destroy the native component.
[all …]
H A Dndk-embed-arkts-components.md32 import { NodeContent, UIContext, RefreshModifier, ComponentContent } from '@kit.ArkUI';
51 slot?: NodeContent;
85 childSlot?: NodeContent;
109 // Create a NodeContent slot object for mounting Refresh child components.
110 let nodeSlot = new NodeContent();
126 …rt function updateMixedRefresh(refresh: ComponentContent<RefreshAttribute>, childSlot: NodeContent,
160 import { NodeContent } from '@kit.ArkUI';
166 private rootSlot = new NodeContent();
423 // Use NodeContent to remove the component.
429 // Use NodeContent to insert the component.
[all …]
H A Darkts-user-defined-place-hoder.md145 import { FrameNode, NodeContent, NodeController, typeNode, UIContext } from '@kit.ArkUI';
148 content: NodeContent
154 this.content = new NodeContent()
176 GetContent(): NodeContent {
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-components-contentSlot.md33 import { NodeContent } from '@kit.ArkUI'
38 private nodeContent: Content = new NodeContent();
/ohos5.0/docs/zh-cn/application-dev/quick-start/
H A Darkts-rendering-control-contentslot.md12 ContentSlot(content: Content); // 当前开发者需要使用ArkUI提供的NodeContent作为管理器
65 import { NodeContent } from '@kit.ArkUI'
70 private nodeContent: Content = new NodeContent();
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-components-contentSlot.md31 import { NodeContent } from '@kit.ArkUI'
36 private nodeContent: Content = new NodeContent();
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.38/
H A Dchangelogs-arkui.md42 import { ComponentContent, NodeContent, typeNode } from "@kit.ArkUI"
62 private content: NodeContent = new NodeContent();
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_node/src/
H A Dnode_content.ts20 class NodeContent extends Content {

12