2 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #include "beat-control.h"
18 #include "beat-control-impl.h"
22 BeatControl::BeatControl()
26 BeatControl::BeatControl(const BeatControl& beatControl)
27 : Control(beatControl)
31 BeatControl& BeatControl::operator=(const BeatControl& rhs)
35 Control::operator=(rhs);
40 BeatControl::~BeatControl()
44 BeatControl BeatControl::New()
46 BeatControl beatControl = Internal::BeatControl::New();
50 BeatControl BeatControl::New(const std::string& url)
52 BeatControl beatControl = Internal::BeatControl::New();
56 BeatControl BeatControl::DownCast(BaseHandle handle)
58 return Control::DownCast<BeatControl, Internal::BeatControl>(handle);
61 void BeatControl::StartBounceAnimation()
63 GetImpl(*this).StartBounceAnimation();
66 void BeatControl::StartXAnimation()
68 GetImpl(*this).StartXAnimation();
70 void BeatControl::StartYAnimation()
72 GetImpl(*this).StartYAnimation();
74 void BeatControl::StartFadeAnimation()
76 GetImpl(*this).StartFadeAnimation();
79 BeatControl::BeatControl(Internal::BeatControl& implementation)
80 : Control(implementation)
84 BeatControl::BeatControl(Dali::Internal::CustomActor* internal)
87 VerifyCustomActorPointer<Internal::BeatControl>(internal);