• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @file
18 * @kit ArkUI
19 */
20
21import { Content } from './Content';
22import { FrameNode } from './FrameNode';
23
24/**
25 * NodeContent is the entity encapsulation of the node content.
26 *
27 * @extends Content
28 * @syscap SystemCapability.ArkUI.ArkUI.Full
29 * @crossplatform
30 * @atomicservice
31 * @since 12
32 */
33/**
34 * NodeContent is the entity encapsulation of the node content.
35 *
36 * @extends Content
37 * @syscap SystemCapability.ArkUI.ArkUI.Full
38 * @crossplatform
39 * @atomicservice
40 * @since 20
41 * @arkts 1.1&1.2
42 */
43export declare class NodeContent extends Content {
44  /**
45   * constructor
46   *
47   * @syscap SystemCapability.ArkUI.ArkUI.Full
48   * @crossplatform
49   * @atomicservice
50   * @since arkts {'1.1':'12','1.2':'20'}
51   * @arkts 1.1&1.2
52   */
53  constructor();
54
55  /**
56   * Add FrameNode to NodeContent based on parameters.
57   *
58   * @param { FrameNode } node - Newly added FrameNode.
59   * @syscap SystemCapability.ArkUI.ArkUI.Full
60   * @crossplatform
61   * @atomicservice
62   * @since arkts {'1.1':'12','1.2':'20'}
63   * @arkts 1.1&1.2
64   */
65  addFrameNode(node: FrameNode): void;
66
67  /**
68   * Delete FrameNode based on the NodeContent parameter.
69   *
70   * @param { FrameNode } node - FrameNode deleted.
71   * @syscap SystemCapability.ArkUI.ArkUI.Full
72   * @crossplatform
73   * @atomicservice
74   * @since arkts {'1.1':'12','1.2':'20'}
75   * @arkts 1.1&1.2
76   */
77  removeFrameNode(node: FrameNode): void;
78}
79