mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-27 09:12:41 +00:00
NDK C-API fix
Signed-off-by: liyi0309 <liyi58@huawei.com>
This commit is contained in:
parent
9e1a55813a
commit
50e919cdf8
@ -763,7 +763,7 @@ enum ArkUIGestureDirection {
|
||||
ArkUI_GESTURE_DIRECTION_RIGHT = 2,
|
||||
ArkUI_GESTURE_DIRECTION_HORIZONTAL = 3,
|
||||
ArkUI_GESTURE_DIRECTION_UP = 4,
|
||||
ArkUI_GESTURE_DIRECTION_DOWN = 5,
|
||||
ArkUI_GESTURE_DIRECTION_DOWN = 8,
|
||||
ArkUI_GESTURE_DIRECTION_VERTICAL = 12,
|
||||
ArkUI_GESTURE_DIRECTION_ALL = 15,
|
||||
};
|
||||
@ -2477,8 +2477,8 @@ struct ArkUITextAreaModifier {
|
||||
void (*setTextAreaBorderWidth)(
|
||||
ArkUINodeHandle node, const ArkUI_Float32* values, const ArkUI_Int32* units, ArkUI_Int32 length);
|
||||
void (*resetTextAreaBorderWidth)(ArkUINodeHandle node);
|
||||
void (*setTextAreaBorderColor)(ArkUINodeHandle node, ArkUI_Uint32 leftColorInt,
|
||||
ArkUI_Uint32 rightColorInt, ArkUI_Uint32 topColorInt, ArkUI_Uint32 bottomColorInt);
|
||||
void (*setTextAreaBorderColor)(ArkUINodeHandle node, ArkUI_Uint32 topColorInt,
|
||||
ArkUI_Uint32 rightColorInt, ArkUI_Uint32 bottomColorInt, ArkUI_Uint32 leftColorInt);
|
||||
void (*resetTextAreaBorderColor)(ArkUINodeHandle node);
|
||||
void (*setTextAreaBorderStyle)(ArkUINodeHandle node, const ArkUI_Int32* styles, ArkUI_Int32 length);
|
||||
void (*resetTextAreaBorderStyle)(ArkUINodeHandle node);
|
||||
|
@ -668,7 +668,7 @@ void SetOnListWillScroll(ArkUINodeHandle node, void* extraParam)
|
||||
bool usePx = NodeModel::UsePXUnit(reinterpret_cast<ArkUI_Node*>(extraParam));
|
||||
event.kind = COMPONENT_ASYNC_EVENT;
|
||||
event.extraParam = reinterpret_cast<intptr_t>(extraParam);
|
||||
event.componentAsyncEvent.subKind = ON_WATER_FLOW_WILL_SCROLL;
|
||||
event.componentAsyncEvent.subKind = ON_LIST_WILL_SCROLL;
|
||||
event.componentAsyncEvent.data[0].f32 =
|
||||
usePx ? static_cast<float>(offset.ConvertToPx()) : static_cast<float>(offset.Value());
|
||||
event.componentAsyncEvent.data[1].i32 = static_cast<int>(state);
|
||||
|
@ -1539,7 +1539,7 @@ int32_t SetBorderColor(ArkUI_NodeHandle node, const ArkUI_AttributeItem* item)
|
||||
}
|
||||
if (node->type == ARKUI_NODE_TEXT_INPUT || node->type == ARKUI_NODE_TEXT_AREA) {
|
||||
fullImpl->getNodeModifiers()->getTextAreaModifier()->setTextAreaBorderColor(
|
||||
node->uiNodeHandle, colors[NUM_3], colors[NUM_1], colors[NUM_0], colors[NUM_2]);
|
||||
node->uiNodeHandle, colors[NUM_0], colors[NUM_1], colors[NUM_2], colors[NUM_3]);
|
||||
} else {
|
||||
fullImpl->getNodeModifiers()->getCommonModifier()->setBorderColor(
|
||||
node->uiNodeHandle, colors[NUM_0], colors[NUM_1], colors[NUM_2], colors[NUM_3]);
|
||||
|
Loading…
Reference in New Issue
Block a user