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.
17 #include <dali-toolkit/devel-api/visual-factory/transition-data.h>
18 #include <dali-toolkit/internal/visuals/transition-data-impl.h>
25 TransitionData::TransitionData()
29 TransitionData::~TransitionData()
33 TransitionData TransitionData::New( const Property::Array& transition )
35 Internal::TransitionDataPtr transitionData = Internal::TransitionData::New( transition );
36 return TransitionData( transitionData.Get() );
39 TransitionData TransitionData::New( const Property::Map& transition )
41 Internal::TransitionDataPtr transitionData = Internal::TransitionData::New( transition );
42 return TransitionData( transitionData.Get() );
45 TransitionData TransitionData::DownCast( BaseHandle handle )
47 return TransitionData( dynamic_cast<Dali::Toolkit::Internal::TransitionData*>(handle.GetObjectPtr()));
50 TransitionData::TransitionData( const TransitionData& handle )
51 : BaseHandle( handle )
55 TransitionData& TransitionData::operator=( const TransitionData& handle )
57 BaseHandle::operator=( handle );
61 size_t TransitionData::Count() const
63 return GetImplementation( *this ).Count();
66 Property::Map TransitionData::GetAnimatorAt( size_t index )
68 return GetImplementation( *this ).GetAnimatorAt( index );
71 TransitionData::TransitionData( Internal::TransitionData* pointer )
72 : BaseHandle( pointer )
76 } // namespace Toolkit