2 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #include <dali-toolkit/devel-api/controls/magnifier/magnifier.h>
20 #include <dali-toolkit/internal/controls/magnifier/magnifier-impl.h>
27 } // unnamed namespace
35 ///////////////////////////////////////////////////////////////////////////////////////////////////
37 ///////////////////////////////////////////////////////////////////////////////////////////////////
39 const std::string Magnifier::SOURCE_POSITION_PROPERTY_NAME( "source-position" );
41 Magnifier::Magnifier()
45 Magnifier::Magnifier( const Magnifier& handle )
50 Magnifier& Magnifier::operator=( const Magnifier& handle )
54 Control::operator=( handle );
59 Magnifier::Magnifier(Internal::Magnifier& implementation)
60 : Control(implementation)
64 Magnifier::Magnifier( Dali::Internal::CustomActor* internal )
67 VerifyCustomActorPointer<Internal::Magnifier>(internal);
70 Magnifier Magnifier::New()
72 return Internal::Magnifier::New();
75 Magnifier::~Magnifier()
79 Magnifier Magnifier::DownCast( BaseHandle handle )
81 return Control::DownCast<Magnifier, Internal::Magnifier>(handle);
84 void Magnifier::SetSourceActor(Actor actor)
86 GetImpl(*this).SetSourceActor( actor );
89 void Magnifier::SetSourcePosition(Vector3 position)
91 GetImpl(*this).SetSourcePosition( position );
94 bool Magnifier::GetFrameVisibility() const
96 return GetImpl(*this).GetFrameVisibility();
99 void Magnifier::SetFrameVisibility(bool visible)
101 GetImpl(*this).SetFrameVisibility(visible);
104 float Magnifier::GetMagnificationFactor() const
106 return GetImpl(*this).GetMagnificationFactor();
109 void Magnifier::SetMagnificationFactor(float value)
111 GetImpl(*this).SetMagnificationFactor( value );
115 } // namespace Toolkit