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/public-api/object/constrainable.h>
18 #include <dali/public-api/animation/constraint.h>
19 #include <dali/public-api/animation/active-constraint.h>
20 #include <dali/internal/event/common/proxy-object.h>
21 #include <dali/internal/event/animation/constraint-impl.h>
26 Constrainable::Constrainable(Dali::Internal::Object* handle)
31 Constrainable::Constrainable()
35 Constrainable::~Constrainable()
39 Constrainable::Constrainable(const Constrainable& handle)
44 Constrainable& Constrainable::operator=(const Handle& rhs)
48 Handle::operator=(rhs);
54 ActiveConstraint Constrainable::ApplyConstraint( Constraint constraint )
56 return GetImplementation(*this).ApplyConstraint(GetImplementation(constraint));
59 void Constrainable::RemoveConstraint(ActiveConstraint activeConstraint)
61 GetImplementation(*this).RemoveConstraint( activeConstraint );
64 void Constrainable::RemoveConstraints()
66 GetImplementation(*this).RemoveConstraints();