2
Ark_Float32 GetDensity(Ark_Int32 deviceId);
3
Ark_Float32 GetFontScale(Ark_Int32 deviceId);
4
Ark_Float32 GetDesignWidthScale(Ark_Int32 deviceId);
7
int CheckEvent(ArkUINodeEvent* event);
8
void SendArkUIAsyncEvent(ArkUINodeEvent* event);
12
Ark_NodeHandle GetNodeByViewStack();
13
void DisposeNode(Ark_NodeHandle node);
14
Ark_Int32 AddChild(Ark_NodeHandle parent, Ark_NodeHandle child);
15
void RemoveChild(Ark_NodeHandle parent, Ark_NodeHandle child);
16
Ark_Int32 InsertChildAfter(Ark_NodeHandle parent, Ark_NodeHandle child, Ark_NodeHandle sibling);
17
Ark_Int32 InsertChildBefore(Ark_NodeHandle parent, Ark_NodeHandle child, Ark_NodeHandle sibling);
18
Ark_Int32 InsertChildAt(Ark_NodeHandle parent, Ark_NodeHandle child, Ark_Int32 position);
19
void ApplyModifierFinish(Ark_NodeHandle node);
20
void MarkDirty(Ark_NodeHandle node, Ark_UInt32 flag);
21
Ark_Boolean IsBuilderNode(Ark_NodeHandle node);
22
Ark_Float32 ConvertLengthMetricsUnit(Ark_Float32 value, Ark_Int32 originUnit, Ark_Int32 targetUnit);
25
void SetCustomMethodFlag(Ark_NodeHandle node, Ark_Int32 flag);
26
Ark_Int32 GetCustomMethodFlag(Ark_NodeHandle node);
27
void RegisterCustomNodeAsyncEvent(Ark_NodeHandle node, Ark_Int32 eventType, void* extraParam);
28
Ark_Int32 UnregisterCustomNodeEvent(Ark_NodeHandle node, Ark_Int32 eventType);
29
void RegisterCustomNodeEventReceiver(CustomEventReceiver eventReceiver);
30
void SetCustomCallback(Ark_VMContext context, Ark_NodeHandle node, Ark_Int32 callback);
31
Ark_Int32 MeasureLayoutAndDraw(Ark_VMContext vmContext, Ark_NodeHandle rootPtr);
32
Ark_Int32 MeasureNode(Ark_VMContext vmContext, Ark_NodeHandle node, Ark_Float32* data);
33
Ark_Int32 LayoutNode(Ark_VMContext vmContext, Ark_NodeHandle node, Ark_Float32* data);
34
Ark_Int32 DrawNode(Ark_VMContext vmContext, Ark_NodeHandle node, Ark_Float32* data);
35
void SetAttachNodePtr(Ark_NodeHandle node, void* value);
36
void* GetAttachNodePtr(Ark_NodeHandle node);
37
void SetMeasureWidth(Ark_NodeHandle node, Ark_Int32 value);
38
Ark_Int32 GetMeasureWidth(Ark_NodeHandle node);
39
void SetMeasureHeight(Ark_NodeHandle node, Ark_Int32 value);
40
Ark_Int32 GetMeasureHeight(Ark_NodeHandle node);
41
void SetX(Ark_NodeHandle node, Ark_Int32 value);
42
void SetY(Ark_NodeHandle node, Ark_Int32 value);
43
Ark_Int32 GetX(Ark_NodeHandle node);
44
Ark_Int32 GetY(Ark_NodeHandle node);
45
void SetAlignment(Ark_NodeHandle node, Ark_Int32 value);
46
Ark_Int32 GetAlignment(Ark_NodeHandle node);
47
void GetLayoutConstraint(Ark_NodeHandle node, Ark_Int32* value);
48
Ark_Int32 IndexerChecker(Ark_VMContext vmContext, Ark_NodeHandle nodePtr);
49
void SetRangeUpdater(Ark_NodeHandle nodePtr, Ark_Int32 updaterId);
50
void SetLazyItemIndexer(Ark_VMContext vmContext, Ark_NodeHandle nodePtr, Ark_Int32 indexerId);
51
Ark_PipelineContext GetPipelineContext(Ark_NodeHandle node);
52
void SetVsyncCallback(Ark_VMContext vmContext, Ark_PipelineContext pipelineContext, Ark_Int32 callbackId);
53
void UnblockVsyncWait(Ark_VMContext vmContext, Ark_PipelineContext pipelineContext);
54
void CallContinuation(Ark_Int32 continuationId, Ark_Int32 argCount, ArkUIEventCallbackArg* args);
55
void SetChildTotalCount(Ark_NodeHandle node, Ark_Int32 totalCount);
56
void ShowCrash(Ark_CharPtr message);
57
} // namespace OHOS::Ace::NG::ApiImpl
60
Ark_NodeHandle CreateNode(%CPP_PREFIX%Ark_NodeType type, Ark_Int32 id, Ark_Int32 flags);
61
void SetCallbackMethod(%CPP_PREFIX%Ark_APICallbackMethod* method);
62
void RegisterCustomNodeEventReceiver(%CPP_PREFIX%CustomEventReceiver eventReceiver) {
63
ApiImpl::RegisterCustomNodeEventReceiver(reinterpret_cast<CustomEventReceiver>(eventReceiver));
65
int CheckEvent(%CPP_PREFIX%Ark_NodeEvent* event) {
66
return NodeEvent::CheckEvent(reinterpret_cast<ArkUINodeEvent*>(event));
68
void SendAsyncEvent(%CPP_PREFIX%Ark_NodeEvent* event) {
69
NodeEvent::SendArkUIAsyncEvent(reinterpret_cast<ArkUINodeEvent*>(event));
71
void CallContinuation(Ark_Int32 continuationId, Ark_Int32 argCount, %CPP_PREFIX%Ark_EventCallbackArg* args) {
72
ApiImpl::CallContinuation(continuationId, argCount, reinterpret_cast<ArkUIEventCallbackArg*>(args));
76
namespace GeneratedEvents {
77
const %CPP_PREFIX%ArkUIEventsAPI* %CPP_PREFIX%GetArkUiEventsAPI();
78
void %CPP_PREFIX%SetArkUiEventsAPI(const %CPP_PREFIX%ArkUIEventsAPI* api);