2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
8 // http://floralicense.org/license/
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.
17 #include <dali-toolkit/public-api/controls/magnifier/magnifier.h>
18 #include <dali-toolkit/internal/controls/magnifier/magnifier-impl.h>
25 } // unnamed namespace
33 ///////////////////////////////////////////////////////////////////////////////////////////////////
35 ///////////////////////////////////////////////////////////////////////////////////////////////////
37 const std::string Magnifier::SOURCE_POSITION_PROPERTY_NAME( "source-position" );
39 Magnifier::Magnifier()
43 Magnifier::Magnifier( const Magnifier& handle )
48 Magnifier& Magnifier::operator=( const Magnifier& handle )
52 Control::operator=( handle );
57 Magnifier::Magnifier(Internal::Magnifier& implementation)
58 : Control(implementation)
62 Magnifier::Magnifier( Dali::Internal::CustomActor* internal )
65 VerifyCustomActorPointer<Internal::Magnifier>(internal);
68 Magnifier Magnifier::New()
70 return Internal::Magnifier::New();
73 Magnifier::~Magnifier()
77 void Magnifier::SetSourceActor(Actor actor)
79 GetImpl(*this).SetSourceActor( actor );
82 void Magnifier::SetSourcePosition(Vector3 position)
84 GetImpl(*this).SetSourcePosition( position );
87 bool Magnifier::GetFrameVisibility() const
89 return GetImpl(*this).GetFrameVisibility();
92 void Magnifier::SetFrameVisibility(bool visible)
94 GetImpl(*this).SetFrameVisibility(visible);
97 float Magnifier::GetMagnificationFactor() const
99 return GetImpl(*this).GetMagnificationFactor();
102 void Magnifier::SetMagnificationFactor(float value)
104 GetImpl(*this).SetMagnificationFactor( value );
108 } // namespace Toolkit