[SRUK] Initial copy from Tizen 2.2 version
[platform/core/uifw/dali-core.git] / dali / public-api / dynamics / dynamics-world-config.cpp
1 //
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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 // CLASS HEADER
18 #include <dali/public-api/dynamics/dynamics-world-config.h>
19
20 // INTERNAL HEADERS
21 #include <dali/internal/event/dynamics/dynamics-world-config-impl.h>
22
23 namespace Dali
24 {
25
26 DynamicsWorldConfig DynamicsWorldConfig::New()
27 {
28   Internal::DynamicsWorldConfigPtr internal( new Internal::DynamicsWorldConfig() );
29
30   return DynamicsWorldConfig( internal.Get() );
31 }
32
33 DynamicsWorldConfig::DynamicsWorldConfig()
34 {
35 }
36
37 DynamicsWorldConfig::~DynamicsWorldConfig()
38 {
39 }
40
41 void DynamicsWorldConfig::SetType( const DynamicsWorldConfig::WorldType type )
42 {
43   GetImplementation(*this).SetType( type );
44 }
45
46 DynamicsWorldConfig::WorldType DynamicsWorldConfig::GetType() const
47 {
48   return GetImplementation(*this).GetType();
49 }
50
51 void DynamicsWorldConfig::SetUnit(const float unit)
52 {
53   GetImplementation(*this).SetUnit( unit );
54 }
55
56 const float DynamicsWorldConfig::GetUnit() const
57 {
58   return GetImplementation(*this).GetUnit();
59 }
60
61 void DynamicsWorldConfig::SetSimulationSubSteps( const int subSteps)
62 {
63   GetImplementation(*this).SetSimulationSubSteps( subSteps );
64 }
65
66 const int DynamicsWorldConfig::GetSimulationSubSteps() const
67 {
68   return GetImplementation(*this).GetSimulationSubSteps();
69 }
70
71 DynamicsWorldConfig::DynamicsWorldConfig( Internal::DynamicsWorldConfig* internal )
72 : BaseHandle(internal)
73 {
74 }
75
76 } // namespace Dali