Add ObjectView::SetVisibilityState() API.
[platform/core/uifw/pepper-dali.git] / pepper-dali / public-api / object-view / object-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 <pepper-dali/public-api/object-view/object-view.h>
20
21 // INTERNAL INCLUDES
22 #include <pepper-dali/internal/object-view-impl.h>
23
24 namespace Dali
25 {
26
27 namespace Pepper
28 {
29
30 ObjectView ObjectView::New()
31 {
32   return Internal::ObjectView::New();
33 }
34
35 ObjectView ObjectView::DownCast( BaseHandle handle )
36 {
37   return Toolkit::Control::DownCast<ObjectView, Internal::ObjectView>( handle );
38 }
39
40 ObjectView::ObjectView()
41 {
42 }
43
44 ObjectView::ObjectView( const ObjectView& handle )
45 : Toolkit::Control( handle )
46 {
47 }
48
49 ObjectView& ObjectView::operator=( const ObjectView& handle )
50 {
51   if( &handle != this )
52   {
53     Control::operator=( handle );
54   }
55   return *this;
56 }
57
58 ObjectView::~ObjectView()
59 {
60 }
61
62 void ObjectView::SetImage( Image image )
63 {
64   Dali::Pepper::GetImplementation( *this ).SetImage( image );
65 }
66
67 pid_t ObjectView::GetPid() const
68 {
69   return Dali::Pepper::GetImplementation( *this ).GetPid();
70 }
71
72 std::string ObjectView::GetTitle() const
73 {
74   return Dali::Pepper::GetImplementation( *this ).GetTitle();
75 }
76
77 std::string ObjectView::GetAppId() const
78 {
79   return Dali::Pepper::GetImplementation( *this ).GetAppId();
80 }
81
82 bool ObjectView::CancelTouchEvent()
83 {
84   return Dali::Pepper::GetImplementation( *this ).CancelTouchEvent();
85 }
86
87 void ObjectView::Show()
88 {
89   Dali::Pepper::GetImplementation( *this ).Show();
90 }
91
92 void ObjectView::Hide()
93 {
94   Dali::Pepper::GetImplementation( *this ).Hide();
95 }
96
97 void ObjectView::SetVisibilityState( VisibilityState state )
98 {
99   Dali::Pepper::GetImplementation( *this ).SetVisibilityState( state );
100 }
101
102 ObjectView::ObjectView( Internal::ObjectView& implementation )
103 : Control( implementation )
104 {
105 }
106
107 ObjectView::ObjectView( Dali::Internal::CustomActor* internal )
108 : Control( internal )
109 {
110   VerifyCustomActorPointer<Internal::ObjectView>( internal );
111 }
112
113 } // namespace Pepper
114
115 } // namespace Dali