(FrameCallback) All values now local & baking of the value supported
[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 bool UpdateProxy::GetPosition( unsigned int id, Vector3& position ) const
28 {
29   return mImpl.GetPosition( id, position );
30 }
31
32 bool UpdateProxy::SetPosition( unsigned int id, const Vector3& position )
33 {
34   return mImpl.SetPosition( id, position );
35 }
36
37 bool UpdateProxy::BakePosition( unsigned int id, const Vector3& position )
38 {
39   return mImpl.BakePosition( id, position );
40 }
41
42 bool UpdateProxy::GetSize( unsigned int id, Vector3& size ) const
43 {
44   return mImpl.GetSize( id, size );
45 }
46
47 bool UpdateProxy::SetSize( unsigned int id, const Vector3& size )
48 {
49   return mImpl.SetSize( id, size );
50 }
51
52 bool UpdateProxy::BakeSize( unsigned int id, const Vector3& size )
53 {
54   return mImpl.BakeSize( id, size );
55 }
56
57 bool UpdateProxy::GetPositionAndSize( unsigned int id, Vector3& position, Vector3& size ) const
58 {
59   return mImpl.GetPositionAndSize( id, position, size );
60 }
61
62 bool UpdateProxy::GetScale( unsigned int id, Vector3& scale ) const
63 {
64   return mImpl.GetScale( id, scale );
65 }
66
67 bool UpdateProxy::SetScale( unsigned int id, const Vector3& scale )
68 {
69   return mImpl.SetScale( id, scale );
70 }
71
72 bool UpdateProxy::BakeScale( unsigned int id, const Vector3& scale )
73 {
74   return mImpl.BakeScale( id, scale );
75 }
76
77 bool UpdateProxy::GetColor( unsigned int id, Vector4& color ) const
78 {
79   return mImpl.GetColor( id, color );
80 }
81
82 bool UpdateProxy::SetColor( unsigned int id, const Vector4& color ) const
83 {
84   return mImpl.SetColor( id, color );
85 }
86
87 bool UpdateProxy::BakeColor( unsigned int id, const Vector4& color ) const
88 {
89   return mImpl.BakeColor( id, color );
90 }
91
92 UpdateProxy::UpdateProxy( Internal::UpdateProxy& impl )
93 : mImpl( impl )
94 {
95 }
96
97 UpdateProxy::~UpdateProxy()
98 {
99 }
100
101 } // namespace Dali