1 /* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef OHOS_ACE_FRAMEWORK_CJ_TRANSITIONEFFECT_FFI_H 17 #define OHOS_ACE_FRAMEWORK_CJ_TRANSITIONEFFECT_FFI_H 18 19 #include <cstdint> 20 #include <string> 21 22 #include "bridge/cj_frontend/interfaces/cj_ffi/cj_macro.h" 23 #include "cj_transitioneffect.h" 24 #include "cj_animate_param_ffi.h" 25 26 namespace OHOS::Ace::Framework { 27 extern "C" { 28 CJ_EXPORT int64_t FfiOHOSAceFrameworkTransitionEffectOpacity(double number); 29 30 CJ_EXPORT int64_t FfiOHOSAceFrameworkTransitionEffectTranslate(CTranslateOptions translate); 31 32 CJ_EXPORT int64_t FfiOHOSAceFrameworkTransitionEffectScale(CScaleOptions options); 33 34 CJ_EXPORT int64_t FfiOHOSAceFrameworkTransitionEffectRotate(CRotateOptions options); 35 36 CJ_EXPORT int64_t FfiOHOSAceFrameworkTransitionEffectMove(int32_t edge); 37 38 CJ_EXPORT int64_t FfiOHOSAceFrameworkTransitionEffectAsymmetric(int64_t appearId, int64_t disappearId); 39 40 CJ_EXPORT void FfiOHOSAceFrameworkTransitionEffectCombine(int64_t id, int64_t effectId); 41 42 CJ_EXPORT void FfiOHOSAceFrameworkTransitionEffectAnimation(int64_t id, NativeAnimateParam param); 43 44 CJ_EXPORT int64_t FfiOHOSAceFrameworkTransitionEffectIdentity(); 45 46 CJ_EXPORT int64_t FfiOHOSAceFrameworkTransitionEffectSlideSwitch(); 47 }; 48 } 49 50 #endif // OHOS_ACE_FRAMEWORK_CJ_TRANSITIONEFFECT_FFI_H