[dali_1.3.40] Merge branch 'devel/master'
[platform/core/uifw/dali-core.git] / dali / devel-api / update / update-proxy.cpp
1 /*
2  * Copyright (c) 2018 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali/devel-api/update/update-proxy.h>
20
21 // INTERNAL INCLUDES
22 #include <dali/internal/update/manager/update-proxy-impl.h>
23
24 namespace Dali
25 {
26
27 Vector3 UpdateProxy::GetPosition( unsigned int id ) const
28 {
29   return mImpl.GetPosition( id );
30 }
31
32 void UpdateProxy::SetPosition( unsigned int id, const Vector3& position )
33 {
34   mImpl.SetPosition( id, position );
35 }
36
37 const Vector3& UpdateProxy::GetSize( unsigned int id ) const
38 {
39   return mImpl.GetSize( id );
40 }
41
42 void UpdateProxy::SetSize( unsigned int id, const Vector3& size )
43 {
44   mImpl.SetSize( id, size );
45 }
46
47 void UpdateProxy::GetPositionAndSize( unsigned int id, Vector3& position, Vector3& size ) const
48 {
49   mImpl.GetPositionAndSize( id, position, size );
50 }
51
52 Vector4 UpdateProxy::GetWorldColor( unsigned int id ) const
53 {
54   return mImpl.GetWorldColor( id );
55 }
56
57 void UpdateProxy::SetWorldColor( unsigned int id, const Vector4& color ) const
58 {
59   mImpl.SetWorldColor( id, color );
60 }
61
62 void UpdateProxy::GetWorldMatrixAndSize( unsigned int id, Matrix& worldMatrix, Vector3& size ) const
63 {
64   mImpl.GetWorldMatrixAndSize( id, worldMatrix, size );
65 }
66
67 const Matrix& UpdateProxy::GetWorldMatrix( unsigned int id ) const
68 {
69   return mImpl.GetWorldMatrix( id );
70 }
71
72 void UpdateProxy::SetWorldMatrix( unsigned int id, const Matrix& worldMatrix )
73 {
74   mImpl.SetWorldMatrix( id, worldMatrix );
75 }
76
77 UpdateProxy::UpdateProxy( Internal::UpdateProxy& impl )
78 : mImpl( impl )
79 {
80 }
81
82 UpdateProxy::~UpdateProxy()
83 {
84 }
85
86 } // namespace Dali