Revert "License conversion from Flora to Apache 2.0"
[platform/core/uifw/dali-core.git] / dali / public-api / actors / light-actor.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/actors/light-actor.h>
19
20 // INTERNAL INCLUDES
21 #include <dali/internal/event/actors/light-actor-impl.h>
22 #include <dali/public-api/common/light.h>
23
24 namespace Dali
25 {
26
27 LightActor::LightActor()
28 {
29 }
30
31 LightActor LightActor::New()
32 {
33   Internal::LightActorPtr internal = Internal::LightActor::New();
34
35   return LightActor(internal.Get());
36 }
37
38 LightActor LightActor::DownCast( BaseHandle handle )
39 {
40   return LightActor( dynamic_cast<Dali::Internal::LightActor*>(handle.GetObjectPtr()) );
41 }
42
43 LightActor::~LightActor()
44 {
45 }
46
47 void LightActor::SetLight(Light light)
48 {
49   GetImplementation(*this).SetLight(light);
50 }
51
52 Light LightActor::GetLight()
53 {
54   return GetImplementation(*this).GetLight();
55 }
56
57 void LightActor::SetActive(bool active)
58 {
59   GetImplementation(*this).SetActive(active);
60 }
61
62 bool LightActor::GetActive()
63 {
64   return GetImplementation(*this).GetActive();
65 }
66
67 LightActor::LightActor(Internal::LightActor* internal)
68 : Actor(internal)
69 {
70 }
71
72 } // namespace Dali