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 "shadow-button.h"
18 #include "shadow-button-impl.h"
22 ShadowButton::ShadowButton()
26 ShadowButton::ShadowButton(const ShadowButton& control)
31 ShadowButton& ShadowButton::operator=(const ShadowButton& rhs)
35 Control::operator=(rhs);
40 ShadowButton::~ShadowButton()
44 ShadowButton ShadowButton::New()
46 ShadowButton control = Internal::ShadowButton::New();
50 ShadowButton ShadowButton::New(const std::string& url)
52 ShadowButton control = Internal::ShadowButton::New();
56 ShadowButton ShadowButton::DownCast(BaseHandle handle)
58 return Control::DownCast<ShadowButton, Internal::ShadowButton>(handle);
61 void ShadowButton::SetActiveState(bool active)
63 GetImpl(*this).SetActiveState(active);
66 bool ShadowButton::GetActiveState()
68 return GetImpl(*this).GetActiveState();
71 void ShadowButton::SetCheckState(bool checkState)
73 GetImpl(*this).SetCheckState(checkState);
76 bool ShadowButton::GetCheckState()
78 return GetImpl(*this).GetCheckState();
81 ShadowButton::ShadowButton(Internal::ShadowButton& implementation)
82 : Control(implementation)
86 ShadowButton::ShadowButton(Dali::Internal::CustomActor* internal)
89 VerifyCustomActorPointer<Internal::ShadowButton>(internal);