2 * Copyright (c) 2016 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 <pepper-dali/public-api/object-view/object-view.h>
22 #include <pepper-dali/internal/object-view-impl.h>
30 ObjectView ObjectView::New()
32 return Internal::ObjectView::New();
35 ObjectView ObjectView::DownCast( BaseHandle handle )
37 return Toolkit::Control::DownCast<ObjectView, Internal::ObjectView>( handle );
40 ObjectView::ObjectView()
44 ObjectView::ObjectView( const ObjectView& handle )
45 : Toolkit::Control( handle )
49 ObjectView& ObjectView::operator=( const ObjectView& handle )
53 Control::operator=( handle );
58 ObjectView::~ObjectView()
62 void ObjectView::SetImage( Image image )
64 Dali::Pepper::GetImplementation( *this ).SetImage( image );
67 pid_t ObjectView::GetPid() const
69 return Dali::Pepper::GetImplementation( *this ).GetPid();
72 std::string ObjectView::GetTitle() const
74 return Dali::Pepper::GetImplementation( *this ).GetTitle();
77 std::string ObjectView::GetAppId() const
79 return Dali::Pepper::GetImplementation( *this ).GetAppId();
82 bool ObjectView::CancelTouchEvent()
84 return Dali::Pepper::GetImplementation( *this ).CancelTouchEvent();
87 void ObjectView::Show()
89 Dali::Pepper::GetImplementation( *this ).Show();
92 void ObjectView::Hide()
94 Dali::Pepper::GetImplementation( *this ).Hide();
97 void ObjectView::SetVisibilityState( VisibilityState state )
99 Dali::Pepper::GetImplementation( *this ).SetVisibilityState( state );
102 ObjectView::ObjectView( Internal::ObjectView& implementation )
103 : Control( implementation )
107 ObjectView::ObjectView( Dali::Internal::CustomActor* internal )
108 : Control( internal )
110 VerifyCustomActorPointer<Internal::ObjectView>( internal );
113 } // namespace Pepper