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.
19 #include <dali-toolkit/public-api/controls/buttons/button.h>
22 #include <dali/integration-api/debug.h>
23 #include <dali/public-api/object/property-map.h>
26 #include <dali-toolkit/internal/controls/buttons/button-impl.h>
27 #include <dali-toolkit/public-api/controls/image-view/image-view.h>
28 #include <dali-toolkit/public-api/visuals/text-visual-properties.h>
38 Button::Button(const Button& button) = default;
40 Button::Button(Button&& rhs) noexcept = default;
42 Button& Button::operator=(const Button& button) = default;
44 Button& Button::operator=(Button&& rhs) noexcept = default;
50 Button Button::DownCast(BaseHandle handle)
52 return Control::DownCast<Button, Internal::Button>(handle);
55 Button::ButtonSignalType& Button::PressedSignal()
57 return Dali::Toolkit::GetImplementation(*this).PressedSignal();
60 Button::ButtonSignalType& Button::ReleasedSignal()
62 return Dali::Toolkit::GetImplementation(*this).ReleasedSignal();
65 Button::ButtonSignalType& Button::ClickedSignal()
67 return Dali::Toolkit::GetImplementation(*this).ClickedSignal();
70 Button::ButtonSignalType& Button::StateChangedSignal()
72 return Dali::Toolkit::GetImplementation(*this).StateChangedSignal();
75 Button::Button(Internal::Button& implementation)
76 : Control(implementation)
80 Button::Button(Dali::Internal::CustomActor* internal)
83 VerifyCustomActorPointer<Internal::Button>(internal);
86 } // namespace Toolkit