2 * Copyright (c) 2015 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.
26 #include <dali-toolkit/internal/controls/view/view-impl.h>
38 View::View( const View& handle )
43 View& View::operator=( const View& handle )
47 Control::operator=( handle );
56 View View::New( bool fullscreen )
58 return Internal::View::New( fullscreen );
61 View View::DownCast( BaseHandle handle )
63 return Control::DownCast<View, Internal::View>(handle);
66 Layer View::GetContentLayer( unsigned int index ) const
68 return GetImpl( *this ).GetContentLayer( index );
71 unsigned int View::AddContentLayer( Layer layer )
73 return GetImpl( *this ).AddContentLayer( layer );
76 void View::RemoveContentLayer( Layer layer )
78 GetImpl( *this ).RemoveContentLayer( layer );
81 Layer View::GetBackgroundLayer() const
83 return GetImpl( *this ).GetBackgroundLayer();
86 void View::SetBackground( ImageActor image )
88 GetImpl( *this ).SetBackground( image );
91 void View::SetOrientationFunction( Degree portrait, Degree landscale, Degree portraitInverse, Degree landscapeInverse )
93 GetImpl( *this ).SetOrientationFunction( portrait, landscale, portraitInverse, landscapeInverse );
96 void View::OrientationChanged( Orientation orientation )
98 GetImpl( *this ).OrientationChanged( orientation );
101 void View::SetAutoRotate( bool enabled )
103 GetImpl( *this ).SetAutoRotate( enabled );
106 View::OrientationAnimationStartedSignalType& View::OrientationAnimationStartedSignal()
108 return GetImpl( *this ).OrientationAnimationStartedSignal();
111 View::View( Internal::View& implementation )
112 : Control( implementation )
116 View::View( Dali::Internal::CustomActor* internal )
117 : Control( internal )
119 VerifyCustomActorPointer<Internal::View>(internal);
122 } // namespace Toolkit