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.
19 #include <dali-toolkit/devel-api/visual-factory/visual-base.h>
22 #include <dali-toolkit/internal/visuals/visual-base-impl.h>
41 Base::Base( const Base& handle )
42 : BaseHandle( handle )
46 Base& Base::operator=( const Base& handle )
48 BaseHandle::operator=( handle );
52 Base::Base(Internal::Visual::Base *impl)
57 void Base::SetSize( const Vector2& size )
59 GetImplementation( *this ).SetSize( size );
62 const Vector2& Base::GetSize() const
64 return GetImplementation( *this ).GetSize();
67 void Base::GetNaturalSize(Vector2& naturalSize ) const
69 GetImplementation( *this ).GetNaturalSize( naturalSize );
72 void Base::SetDepthIndex( float index )
74 GetImplementation( *this ).SetDepthIndex( index );
77 float Base::GetDepthIndex() const
79 return GetImplementation( *this ).GetDepthIndex();
82 void Base::SetOnStage( Actor& actor )
84 GetImplementation( *this ).SetOnStage( actor );
87 void Base::SetOffStage( Actor& actor )
89 GetImplementation( *this ).SetOffStage( actor );
92 void Base::RemoveAndReset( Actor& actor )
101 void Base::CreatePropertyMap( Property::Map& map ) const
103 GetImplementation( *this ).CreatePropertyMap( map );
106 } // namespace Visual
108 } // namespace Toolkit