Lines Matching refs:index
226 int32_t OH_ArkUI_KeyframeAnimateOption_SetDuration(ArkUI_KeyframeAnimateOption* option, int32_t value, int32_t index)
228 if (option == nullptr || index < 0 || index >= static_cast<int32_t>(option->keyframes.size())) {
234 option->keyframes[index].duration = value;
239 ArkUI_KeyframeAnimateOption* option, ArkUI_CurveHandle value, int32_t index)
241 if (option == nullptr || index < 0 || index >= static_cast<int32_t>(option->keyframes.size())) {
245 option->keyframes[index].curve = nullptr;
252 option->keyframes[index].curve = value;
257 ArkUI_KeyframeAnimateOption* option, void* userData, void (*event)(void* userData), int32_t index)
259 if (option == nullptr || index < 0 || index >= static_cast<int32_t>(option->keyframes.size())) {
262 option->keyframes[index].event = event;
263 option->keyframes[index].userData = userData;
279 int32_t OH_ArkUI_KeyframeAnimateOption_GetDuration(ArkUI_KeyframeAnimateOption* option, int32_t index)
281 if (option == nullptr || index < 0 || index >= static_cast<int32_t>(option->keyframes.size())) {
284 return option->keyframes[index].duration;
287 ArkUI_CurveHandle OH_ArkUI_KeyframeAnimateOption_GetCurve(ArkUI_KeyframeAnimateOption* option, int32_t index)
289 if (option == nullptr || index < 0 || index >= static_cast<int32_t>(option->keyframes.size())) {
292 return option->keyframes[index].curve;
428 int32_t OH_ArkUI_AnimatorOption_SetKeyframe(ArkUI_AnimatorOption* option, float time, float value, int32_t index)
434 if (index >= 0 && static_cast<size_t>(index) < option->keyframes.size()) {
435 option->keyframes[index].keyTime = time;
436 option->keyframes[index].keyValue = value;
442 int32_t OH_ArkUI_AnimatorOption_SetKeyframeCurve(ArkUI_AnimatorOption* option, ArkUI_CurveHandle value, int32_t index)
449 option->keyframes[index].curve = nullptr;
454 if (index >= 0 && static_cast<size_t>(index) < option->keyframes.size()) {
455 option->keyframes[index].curve = value;
533 float OH_ArkUI_AnimatorOption_GetKeyframeTime(ArkUI_AnimatorOption* option, int32_t index)
535 if (option != nullptr && index >= 0 && static_cast<size_t>(index) < option->keyframes.size()) {
536 return option->keyframes[index].keyTime;
541 float OH_ArkUI_AnimatorOption_GetKeyframeValue(ArkUI_AnimatorOption* option, int32_t index)
543 if (option != nullptr && index >= 0 && static_cast<size_t>(index) < option->keyframes.size()) {
544 return option->keyframes[index].keyValue;
549 ArkUI_CurveHandle OH_ArkUI_AnimatorOption_GetKeyframeCurve(ArkUI_AnimatorOption* option, int32_t index)
551 if (option != nullptr && index >= 0 && static_cast<size_t>(index) < option->keyframes.size()) {
552 return option->keyframes[index].curve;