2 * Copyright (c) 2014 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.
18 #include <dali-toolkit/public-api/controls/magnifier/magnifier.h>
19 #include <dali-toolkit/internal/controls/magnifier/magnifier-impl.h>
26 } // unnamed namespace
34 ///////////////////////////////////////////////////////////////////////////////////////////////////
36 ///////////////////////////////////////////////////////////////////////////////////////////////////
38 const std::string Magnifier::SOURCE_POSITION_PROPERTY_NAME( "source-position" );
40 Magnifier::Magnifier()
44 Magnifier::Magnifier( const Magnifier& handle )
49 Magnifier& Magnifier::operator=( const Magnifier& handle )
53 Control::operator=( handle );
58 Magnifier::Magnifier(Internal::Magnifier& implementation)
59 : Control(implementation)
63 Magnifier::Magnifier( Dali::Internal::CustomActor* internal )
66 VerifyCustomActorPointer<Internal::Magnifier>(internal);
69 Magnifier Magnifier::New()
71 return Internal::Magnifier::New();
74 Magnifier::~Magnifier()
78 void Magnifier::SetSourceActor(Actor actor)
80 GetImpl(*this).SetSourceActor( actor );
83 void Magnifier::SetSourcePosition(Vector3 position)
85 GetImpl(*this).SetSourcePosition( position );
88 bool Magnifier::GetFrameVisibility() const
90 return GetImpl(*this).GetFrameVisibility();
93 void Magnifier::SetFrameVisibility(bool visible)
95 GetImpl(*this).SetFrameVisibility(visible);
98 float Magnifier::GetMagnificationFactor() const
100 return GetImpl(*this).GetMagnificationFactor();
103 void Magnifier::SetMagnificationFactor(float value)
105 GetImpl(*this).SetMagnificationFactor( value );
109 } // namespace Toolkit