[dali_2.3.20] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / buttons / push-button.cpp
1 /*
2  * Copyright (c) 2020 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali-toolkit/public-api/controls/buttons/push-button.h>
20
21 // EXTERNAL INCLUDES
22 #include <dali/integration-api/debug.h>
23
24 // INTERNAL INCLUDES
25 #include <dali-toolkit/internal/controls/buttons/push-button-impl.h>
26
27 namespace Dali
28 {
29 namespace Toolkit
30 {
31 PushButton::PushButton()
32 : Button()
33 {
34 }
35
36 PushButton::PushButton(Internal::PushButton& implementation)
37 : Button(implementation)
38 {
39 }
40
41 PushButton::PushButton(const PushButton& pushButton) = default;
42
43 PushButton::PushButton(PushButton&& rhs) noexcept = default;
44
45 PushButton& PushButton::operator=(const PushButton& pushButton) = default;
46
47 PushButton& PushButton::operator=(PushButton&& rhs) noexcept = default;
48
49 PushButton::PushButton(Dali::Internal::CustomActor* internal)
50 : Button(internal)
51 {
52   VerifyCustomActorPointer<Internal::PushButton>(internal);
53 }
54
55 PushButton::~PushButton()
56 {
57 }
58
59 PushButton PushButton::New()
60 {
61   return Internal::PushButton::New();
62 }
63
64 PushButton PushButton::DownCast(BaseHandle handle)
65 {
66   return Control::DownCast<PushButton, Internal::PushButton>(handle);
67 }
68
69 } // namespace Toolkit
70
71 } // namespace Dali