Formatting API
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / navigation-view / navigation-view.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/devel-api/controls/navigation-view/navigation-view.h>
20
21 // EXTERNAL INCLUDES
22
23 // INTERNAL INCLUDES
24 #include <dali-toolkit/internal/controls/navigation-view/navigation-view-impl.h>
25
26 namespace Dali
27 {
28 namespace Toolkit
29 {
30 NavigationView::NavigationView()
31 {
32 }
33
34 NavigationView::NavigationView(const NavigationView& handle)
35 : Control(handle)
36 {
37 }
38
39 NavigationView& NavigationView::operator=(const NavigationView& handle)
40 {
41   if(&handle != this)
42   {
43     Control::operator=(handle);
44   }
45   return *this;
46 }
47
48 NavigationView::~NavigationView()
49 {
50 }
51
52 NavigationView NavigationView::New()
53 {
54   return Internal::NavigationView::New();
55 }
56
57 NavigationView NavigationView::DownCast(BaseHandle handle)
58 {
59   return Control::DownCast<NavigationView, Internal::NavigationView>(handle);
60 }
61
62 NavigationView::NavigationView(Internal::NavigationView& implementation)
63 : Control(implementation)
64 {
65 }
66
67 NavigationView::NavigationView(Dali::Internal::CustomActor* internal)
68 : Control(internal)
69 {
70   VerifyCustomActorPointer<Internal::NavigationView>(internal);
71 }
72
73 void NavigationView::Push(Actor actor)
74 {
75   GetImpl(*this).Push(actor);
76 }
77
78 Actor NavigationView::Pop()
79 {
80   return GetImpl(*this).Pop();
81 }
82
83 } // namespace Toolkit
84
85 } // namespace Dali