2 * Copyright (c) 2014 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>
34 const char* const View::SIGNAL_ORIENTATION_ANIMATION_START = "orientation-animation-start";
40 View::View( const View& handle )
45 View& View::operator=( const View& handle )
49 Control::operator=( handle );
58 View View::New( bool fullscreen )
60 return Internal::View::New( fullscreen );
63 View View::DownCast( BaseHandle handle )
65 return Control::DownCast<View, Internal::View>(handle);
68 Layer View::GetContentLayer( unsigned int index ) const
70 return GetImpl( *this ).GetContentLayer( index );
73 unsigned int View::AddContentLayer( Layer layer )
75 return GetImpl( *this ).AddContentLayer( layer );
78 void View::RemoveContentLayer( Layer layer )
80 GetImpl( *this ).RemoveContentLayer( layer );
83 Layer View::GetBackgroundLayer() const
85 return GetImpl( *this ).GetBackgroundLayer();
88 void View::SetBackground( ImageActor image )
90 GetImpl( *this ).SetBackground( image );
93 void View::SetOrientationFunction( Degree portrait, Degree landscale, Degree portraitInverse, Degree landscapeInverse )
95 GetImpl( *this ).SetOrientationFunction( portrait, landscale, portraitInverse, landscapeInverse );
98 void View::OrientationChanged( Orientation orientation )
100 GetImpl( *this ).OrientationChanged( orientation );
103 void View::SetAutoRotate( bool enabled )
105 GetImpl( *this ).SetAutoRotate( enabled );
108 View::OrientationAnimationStartedSignalType& View::OrientationAnimationStartedSignal()
110 return GetImpl( *this ).OrientationAnimationStartedSignal();
113 View::View( Internal::View& implementation )
114 : Control( implementation )
118 View::View( Dali::Internal::CustomActor* internal )
119 : Control( internal )
121 VerifyCustomActorPointer<Internal::View>(internal);
124 } // namespace Toolkit