Merge "Add SetProperty and GetProperty to Visuals." into devel/master
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / navigation-view / navigation-view.cpp
1 /*
2  * Copyright (c) 2016 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
29 namespace Toolkit
30 {
31
32 NavigationView::NavigationView()
33 {
34 }
35
36 NavigationView::NavigationView( const NavigationView& handle )
37 : Control(handle)
38 {
39 }
40
41 NavigationView& NavigationView::operator=( const NavigationView& handle)
42 {
43   if( &handle != this )
44   {
45     Control::operator=( handle );
46   }
47   return *this;
48 }
49
50 NavigationView::~NavigationView()
51 {
52 }
53
54 NavigationView NavigationView::New()
55 {
56   return Internal::NavigationView::New();
57 }
58
59 NavigationView NavigationView::DownCast( BaseHandle handle )
60 {
61   return Control::DownCast<NavigationView, Internal::NavigationView>(handle);
62 }
63
64 NavigationView::NavigationView( Internal::NavigationView& implementation )
65 : Control( implementation )
66 {
67 }
68
69 NavigationView::NavigationView( Dali::Internal::CustomActor* internal )
70 : Control( internal)
71 {
72   VerifyCustomActorPointer<Internal::NavigationView>(internal);
73 }
74
75
76 void NavigationView::Push( Actor actor )
77 {
78   GetImpl( *this ).Push( actor );
79 }
80
81 Actor NavigationView::Pop()
82 {
83   return GetImpl( *this ).Pop();
84 }
85
86 } // namespace Toolkit
87
88 } // namespace Dali