40da8c8f302a2ad8f27cb20dca2886a95906639b
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / magnifier / magnifier.cpp
1 /*
2  * Copyright (c) 2015 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 // INTERNAL INCLUDES
19 #include <dali-toolkit/devel-api/controls/magnifier/magnifier.h>
20 #include <dali-toolkit/internal/controls/magnifier/magnifier-impl.h>
21
22 using namespace Dali;
23
24 namespace
25 {
26
27 } // unnamed namespace
28
29 namespace Dali
30 {
31
32 namespace Toolkit
33 {
34
35 ///////////////////////////////////////////////////////////////////////////////////////////////////
36 // Magnifier
37 ///////////////////////////////////////////////////////////////////////////////////////////////////
38
39 Magnifier::Magnifier()
40 {
41 }
42
43 Magnifier::Magnifier( const Magnifier& handle )
44 : Control( handle )
45 {
46 }
47
48 Magnifier& Magnifier::operator=( const Magnifier& handle )
49 {
50   if( &handle != this )
51   {
52     Control::operator=( handle );
53   }
54   return *this;
55 }
56
57 Magnifier::Magnifier(Internal::Magnifier& implementation)
58 : Control(implementation)
59 {
60 }
61
62 Magnifier::Magnifier( Dali::Internal::CustomActor* internal )
63 : Control( internal )
64 {
65   VerifyCustomActorPointer<Internal::Magnifier>(internal);
66 }
67
68 Magnifier Magnifier::New()
69 {
70   return Internal::Magnifier::New();
71 }
72
73 Magnifier::~Magnifier()
74 {
75 }
76
77 Magnifier Magnifier::DownCast( BaseHandle handle )
78 {
79   return Control::DownCast<Magnifier, Internal::Magnifier>(handle);
80 }
81
82 void Magnifier::SetSourceActor(Actor actor)
83 {
84   GetImpl(*this).SetSourceActor( actor );
85 }
86
87 } // namespace Toolkit
88
89 } // namespace Dali