2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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.
25 #include <dali-toolkit/internal/controls/view/view-impl.h>
33 const char* const View::SIGNAL_ORIENTATION_ANIMATION_START = "orientation-animation-start";
39 View::View( const View& handle )
44 View& View::operator=( const View& handle )
48 Control::operator=( handle );
57 View View::New( bool fullscreen )
59 return Internal::View::New( fullscreen );
62 View View::DownCast( BaseHandle handle )
64 return Control::DownCast<View, Internal::View>(handle);
67 Layer View::GetContentLayer( unsigned int index ) const
69 return GetImpl( *this ).GetContentLayer( index );
72 unsigned int View::AddContentLayer( Layer layer )
74 return GetImpl( *this ).AddContentLayer( layer );
77 void View::RemoveContentLayer( Layer layer )
79 GetImpl( *this ).RemoveContentLayer( layer );
82 Layer View::GetBackgroundLayer() const
84 return GetImpl( *this ).GetBackgroundLayer();
87 void View::SetBackground( ImageActor image )
89 GetImpl( *this ).SetBackground( image );
92 void View::SetOrientationFunction( Degree portrait, Degree landscale, Degree portraitInverse, Degree landscapeInverse )
94 GetImpl( *this ).SetOrientationFunction( portrait, landscale, portraitInverse, landscapeInverse );
97 void View::OrientationChanged( Orientation orientation )
99 GetImpl( *this ).OrientationChanged( orientation );
102 void View::SetAutoRotate( bool enabled )
104 GetImpl( *this ).SetAutoRotate( enabled );
107 View::OrientationAnimationStartedSignalV2& View::OrientationAnimationStartedSignal()
109 return GetImpl( *this ).OrientationAnimationStartedSignal();
112 View::View( Internal::View& implementation )
113 : Control( implementation )
117 View::View( Dali::Internal::CustomActor* internal )
118 : Control( internal )
120 VerifyCustomActorPointer<Internal::View>(internal);
123 } // namespace Toolkit