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/internal/visuals/visual-impl.h>
36 Visual::Visual( const Visual& handle )
37 : BaseHandle( handle )
41 Visual& Visual::operator=( const Visual& handle )
43 BaseHandle::operator=( handle );
47 Visual::Visual(Internal::Visual *impl)
52 void Visual::SetSize( const Vector2& size )
54 GetImplementation( *this ).SetSize( size );
57 const Vector2& Visual::GetSize() const
59 return GetImplementation( *this ).GetSize();
62 void Visual::GetNaturalSize(Vector2& naturalSize ) const
64 GetImplementation( *this ).GetNaturalSize( naturalSize );
67 void Visual::SetDepthIndex( float index )
69 GetImplementation( *this ).SetDepthIndex( index );
72 float Visual::GetDepthIndex() const
74 return GetImplementation( *this ).GetDepthIndex();
77 void Visual::SetOnStage( Actor& actor )
79 GetImplementation( *this ).SetOnStage( actor );
82 void Visual::SetOffStage( Actor& actor )
84 GetImplementation( *this ).SetOffStage( actor );
87 void Visual::RemoveAndReset( Actor& actor )
96 void Visual::CreatePropertyMap( Property::Map& map ) const
98 GetImplementation( *this ).CreatePropertyMap( map );
101 } // namespace Toolkit