/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef FOUNDATION_ACE_FRAMEWORKS_CORE_ANIMATION_CURVES_H #define FOUNDATION_ACE_FRAMEWORKS_CORE_ANIMATION_CURVES_H #include "base/utils/macros.h" #include "core/animation/anticipate_curve.h" #include "core/animation/cubic_curve.h" namespace OHOS::Ace { class ACE_FORCE_EXPORT Curves { public: Curves() = delete; ~Curves() = default; static const RefPtr DECELE; static const RefPtr LINEAR; static const RefPtr SINE; static const RefPtr EASE; static const RefPtr EASE_IN; static const RefPtr EASE_OUT; static const RefPtr EASE_IN_OUT; static const RefPtr FAST_OUT_SLOW_IN; static const RefPtr LINEAR_OUT_SLOW_IN; static const RefPtr FAST_OUT_LINEAR_IN; static const RefPtr FRICTION; static const RefPtr EXTREME_DECELERATION; static const RefPtr SHARP; static const RefPtr RHYTHM; static const RefPtr SMOOTH; static const RefPtr ANTICIPATE; static const RefPtr MAGNETIC; static const RefPtr ELASTICS; static const std::string DEFAULT_CURVE_NAME; static std::string ToString(const RefPtr& curve); }; } // namespace OHOS::Ace #endif // FOUNDATION_ACE_FRAMEWORKS_CORE_ANIMATION_CURVES_H