1
const %CPP_PREFIX%Ark_UtilsModifier* %CPP_PREFIX%GetUtilsModifier() {
2
static const %CPP_PREFIX%Ark_UtilsModifier utilsImpl = {
3
OHOS::Ace::NG::GetDensity,
4
OHOS::Ace::NG::GetFontScale,
5
OHOS::Ace::NG::GetDesignWidthScale
9
const %CPP_PREFIX%ArkUIBasicNodeAPI* %CPP_PREFIX%GetBasicAPI() {
10
static const %CPP_PREFIX%ArkUIBasicNodeAPI basicNodeAPIImpl = {
11
%CPP_PREFIX%ARKUI_BASIC_NODE_API_VERSION, // version
12
OHOS::Ace::NG::Bridge::CreateNode,
13
OHOS::Ace::NG::ApiImpl::GetNodeByViewStack,
14
OHOS::Ace::NG::ApiImpl::DisposeNode,
15
OHOS::Ace::NG::ApiImpl::AddChild,
16
OHOS::Ace::NG::ApiImpl::RemoveChild,
17
OHOS::Ace::NG::ApiImpl::InsertChildAfter,
18
OHOS::Ace::NG::ApiImpl::InsertChildBefore,
19
OHOS::Ace::NG::ApiImpl::InsertChildAt,
20
OHOS::Ace::NG::ApiImpl::ApplyModifierFinish,
21
OHOS::Ace::NG::ApiImpl::MarkDirty,
22
OHOS::Ace::NG::ApiImpl::IsBuilderNode,
23
OHOS::Ace::NG::ApiImpl::ConvertLengthMetricsUnit
25
return &basicNodeAPIImpl;
28
const %CPP_PREFIX%ArkUIExtendedNodeAPI* %CPP_PREFIX%GetExtendedAPI() {
29
static const %CPP_PREFIX%ArkUIExtendedNodeAPI extendedNodeAPIImpl = {
30
%CPP_PREFIX%ARKUI_EXTENDED_NODE_API_VERSION, // version
32
%CPP_PREFIX%GetUtilsModifier,
33
OHOS::Ace::NG::Bridge::SetCallbackMethod,
34
OHOS::Ace::NG::ApiImpl::SetCustomMethodFlag,
35
OHOS::Ace::NG::ApiImpl::GetCustomMethodFlag,
36
OHOS::Ace::NG::ApiImpl::RegisterCustomNodeAsyncEvent,
37
OHOS::Ace::NG::ApiImpl::UnregisterCustomNodeEvent,
38
OHOS::Ace::NG::Bridge::RegisterCustomNodeEventReceiver,
39
OHOS::Ace::NG::ApiImpl::SetCustomCallback,
40
OHOS::Ace::NG::ApiImpl::MeasureLayoutAndDraw,
41
OHOS::Ace::NG::ApiImpl::MeasureNode,
42
OHOS::Ace::NG::ApiImpl::LayoutNode,
43
OHOS::Ace::NG::ApiImpl::DrawNode,
44
OHOS::Ace::NG::ApiImpl::SetAttachNodePtr,
45
OHOS::Ace::NG::ApiImpl::GetAttachNodePtr,
46
OHOS::Ace::NG::ApiImpl::SetMeasureWidth,
47
OHOS::Ace::NG::ApiImpl::GetMeasureWidth,
48
OHOS::Ace::NG::ApiImpl::SetMeasureHeight,
49
OHOS::Ace::NG::ApiImpl::GetMeasureHeight,
50
OHOS::Ace::NG::ApiImpl::SetX,
51
OHOS::Ace::NG::ApiImpl::GetX,
52
OHOS::Ace::NG::ApiImpl::SetY,
53
OHOS::Ace::NG::ApiImpl::GetY,
54
OHOS::Ace::NG::ApiImpl::GetLayoutConstraint,
55
OHOS::Ace::NG::ApiImpl::SetAlignment,
56
OHOS::Ace::NG::ApiImpl::GetAlignment,
57
OHOS::Ace::NG::ApiImpl::IndexerChecker,
58
OHOS::Ace::NG::ApiImpl::SetRangeUpdater,
59
OHOS::Ace::NG::ApiImpl::SetLazyItemIndexer,
60
OHOS::Ace::NG::ApiImpl::GetPipelineContext,
61
OHOS::Ace::NG::ApiImpl::SetVsyncCallback,
62
OHOS::Ace::NG::ApiImpl::UnblockVsyncWait,
63
OHOS::Ace::NG::Bridge::CheckEvent,
64
OHOS::Ace::NG::Bridge::SendAsyncEvent,
65
OHOS::Ace::NG::Bridge::CallContinuation,
66
OHOS::Ace::NG::ApiImpl::SetChildTotalCount,
67
OHOS::Ace::NG::ApiImpl::ShowCrash
69
return &extendedNodeAPIImpl;
72
const %CPP_PREFIX%ArkUIFullNodeAPI* %CPP_PREFIX%GetFullAPI() {
73
static const %CPP_PREFIX%ArkUIFullNodeAPI fullAPIImpl = {
74
%CPP_PREFIX%ARKUI_FULL_API_VERSION, // version
75
%CPP_PREFIX%GetArkUINodeModifiers,
76
%CPP_PREFIX%GetArkUIAccessors,
80
OHOS::Ace::NG::GeneratedEvents::%CPP_PREFIX%GetArkUiEventsAPI,
81
%CPP_PREFIX%GetExtendedAPI,
82
OHOS::Ace::NG::GeneratedEvents::%CPP_PREFIX%SetArkUiEventsAPI
87
EXTERN_C IDLIZE_API_EXPORT const %CPP_PREFIX%ArkUIAnyAPI* %CPP_PREFIX%GetArkAnyAPI(
88
%CPP_PREFIX%Ark_APIVariantKind kind, int version)
92
case %CPP_PREFIX%FULL:
93
if (version == %CPP_PREFIX%ARKUI_FULL_API_VERSION) {
94
return reinterpret_cast<const %CPP_PREFIX%ArkUIAnyAPI*>(%CPP_PREFIX%GetFullAPI());
97
case %CPP_PREFIX%BASIC:
98
if (version == %CPP_PREFIX%ARKUI_BASIC_NODE_API_VERSION) {
99
return reinterpret_cast<const %CPP_PREFIX%ArkUIAnyAPI*>(%CPP_PREFIX%GetBasicAPI());
102
case %CPP_PREFIX%EXTENDED:
103
if (version == %CPP_PREFIX%ARKUI_EXTENDED_NODE_API_VERSION) {
104
return reinterpret_cast<const %CPP_PREFIX%ArkUIAnyAPI*>(%CPP_PREFIX%GetExtendedAPI());