X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fmagnifier%2Fmagnifier-impl.cpp;h=6f9ad1889101a100f1867c935edff9748aba9be1;hp=b9749da9c93937ca7900a32831a91892d0199289;hb=c32e712ddb572650fe0766d7f10a9707db5b5c6b;hpb=59056922c2ee74a2aeaf5a2a15882c576a52856e diff --git a/dali-toolkit/internal/controls/magnifier/magnifier-impl.cpp b/dali-toolkit/internal/controls/magnifier/magnifier-impl.cpp index b9749da..6f9ad18 100644 --- a/dali-toolkit/internal/controls/magnifier/magnifier-impl.cpp +++ b/dali-toolkit/internal/controls/magnifier/magnifier-impl.cpp @@ -192,7 +192,7 @@ void Magnifier::Initialize() mSourceActor = Actor::New(); Stage().GetCurrent().Add(mSourceActor); mSourceActor.SetParentOrigin(ParentOrigin::CENTER); - Constraint constraint = Constraint::New( Actor::Property::Position, + Constraint constraint = Constraint::New( Actor::Property::POSITION, Source( self, mPropertySourcePosition ), EqualToConstraint() ); mSourceActor.ApplyConstraint(constraint); @@ -224,23 +224,23 @@ void Magnifier::Initialize() // at the end of the update cycle i.e. after constraints have been applied.) //Property::Index propertySourcePositionDelayed = mCameraActor.RegisterProperty("delayed-source-position", Vector3::ZERO); - constraint = Constraint::New( Actor::Property::Position, - Source( mSourceActor, Actor::Property::WorldPosition ), + constraint = Constraint::New( Actor::Property::POSITION, + Source( mSourceActor, Actor::Property::WORLD_POSITION ), CameraActorPositionConstraint(stageSize, mDefaultCameraDistance) ); mCameraActor.ApplyConstraint(constraint); // Apply constraint to render-task viewport position - constraint = Constraint::New( RenderTask::Property::ViewportPosition, - Source( self, Actor::Property::WorldPosition ),//mPropertySourcePosition ), - Source( self, Actor::Property::Size ), - Source( self, Actor::Property::WorldScale ), + constraint = Constraint::New( RenderTask::Property::VIEWPORT_POSITION, + Source( self, Actor::Property::WORLD_POSITION ),//mPropertySourcePosition ), + Source( self, Actor::Property::SIZE ), + Source( self, Actor::Property::WORLD_SCALE ), RenderTaskViewportPositionConstraint(stageSize) ); mTask.ApplyConstraint(constraint); // Apply constraint to render-task viewport position - constraint = Constraint::New( RenderTask::Property::ViewportSize, - Source( self, Actor::Property::Size ), - Source( self, Actor::Property::WorldScale ), + constraint = Constraint::New( RenderTask::Property::VIEWPORT_SIZE, + Source( self, Actor::Property::SIZE ), + Source( self, Actor::Property::WORLD_SCALE ), RenderTaskViewportSizeConstraint() ); mTask.ApplyConstraint(constraint); } @@ -289,8 +289,8 @@ void Magnifier::SetFrameVisibility(bool visible) mFrame.SetPositionInheritanceMode(DONT_INHERIT_POSITION); mFrame.SetInheritScale(true); - Constraint constraint = Constraint::New( Actor::Property::Position, - ParentSource( Actor::Property::WorldPosition ), + Constraint constraint = Constraint::New( Actor::Property::POSITION, + ParentSource( Actor::Property::WORLD_POSITION ), EqualToConstraint() ); mFrame.ApplyConstraint( constraint );