mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-26 16:52:10 +00:00
commit
950fd59bc0
@ -3725,8 +3725,7 @@ void RosenRenderContext::FlushForegroundDrawFunction(CanvasDrawFunction&& foregr
|
||||
CHECK_NULL_VOID(rsNode_);
|
||||
CHECK_NULL_VOID(foregroundDraw);
|
||||
rsNode_->DrawOnNode(Rosen::RSModifierType::FOREGROUND_STYLE,
|
||||
[foregroundDraw = std::move(foregroundDraw)](std::shared_ptr<RSCanvas> canvas)
|
||||
{
|
||||
[foregroundDraw = std::move(foregroundDraw)](std::shared_ptr<RSCanvas> canvas) {
|
||||
CHECK_NULL_VOID(canvas);
|
||||
foregroundDraw(*canvas);
|
||||
});
|
||||
|
@ -4893,7 +4893,7 @@ struct ArkUIFrameNodeModifier {
|
||||
void (*freeCustomPropertyCharPtr)(char* value, ArkUI_Uint32 size);
|
||||
ArkUINodeHandle (*getCurrentPageRootNode)(ArkUINodeHandle node);
|
||||
ArkUI_Int32 (*getNodeTag)(ArkUINodeHandle node);
|
||||
void (*getActiveChildrenInfo)(ArkUINodeHandle handle, ArkUINodeHandle** items, ArkUI_Uint32* size);
|
||||
void (*getActiveChildrenInfo)(ArkUINodeHandle handle, ArkUINodeHandle** items, ArkUI_Int32* size);
|
||||
void (*getCustomProperty)(ArkUINodeHandle node, ArkUI_CharPtr key, char** value);
|
||||
};
|
||||
|
||||
|
@ -562,7 +562,7 @@ ArkUI_Int32 GetNodeTag(ArkUINodeHandle node)
|
||||
return uiNode->IsCNode();
|
||||
}
|
||||
|
||||
void GetActiveChildrenInfo(ArkUINodeHandle handle, ArkUINodeHandle** items, ArkUI_Uint32* size)
|
||||
void GetActiveChildrenInfo(ArkUINodeHandle handle, ArkUINodeHandle** items, ArkUI_Int32* size)
|
||||
{
|
||||
auto* frameNode = reinterpret_cast<FrameNode*>(handle);
|
||||
CHECK_NULL_VOID(frameNode);
|
||||
|
@ -222,7 +222,7 @@ int32_t OH_ArkUI_NodeUtils_GetActiveChildrenInfo(ArkUI_NodeHandle head, ArkUI_Ac
|
||||
const auto* impl = OHOS::Ace::NodeModel::GetFullImpl();
|
||||
CHECK_NULL_RETURN(impl, ARKUI_ERROR_CODE_PARAM_INVALID);
|
||||
ArkUINodeHandle* innerNodes = nullptr;
|
||||
uint32_t totalSize = 0;
|
||||
int32_t totalSize = 0;
|
||||
impl->getNodeModifiers()->getFrameNodeModifier()->getActiveChildrenInfo(
|
||||
head->uiNodeHandle, &innerNodes, &totalSize);
|
||||
*handle = new ArkUI_ActiveChildrenInfo({ .nodeList = nullptr, .nodeCount = totalSize });
|
||||
@ -344,7 +344,7 @@ void OH_ArkUI_ActiveChildrenInfo_Destroy(ArkUI_ActiveChildrenInfo* handle)
|
||||
ArkUI_NodeHandle OH_ArkUI_ActiveChildrenInfo_GetNodeByIndex(ArkUI_ActiveChildrenInfo* handle, int32_t index)
|
||||
{
|
||||
CHECK_NULL_RETURN(handle, nullptr);
|
||||
if (index < handle->nodeCount) {
|
||||
if (index < handle->nodeCount && index >= 0) {
|
||||
return handle->nodeList[index];
|
||||
}
|
||||
return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user