X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fscroll-view%2Fscroll-view-carousel-effect-impl.cpp;h=6eb200b29ddb568c760441e55f2a5cb9b266e97f;hp=8a1cdba26898a239c27d8f031821b5d3909c0136;hb=6e824d3bfb11cab305d0d8375b202076d59222b0;hpb=c8ffcb9f46ded14981915479af62d85970798db5 diff --git a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-carousel-effect-impl.cpp b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-carousel-effect-impl.cpp index 8a1cdba..6eb200b 100644 --- a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-carousel-effect-impl.cpp +++ b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-carousel-effect-impl.cpp @@ -83,7 +83,7 @@ public: * @param[in] positionProperty The Actor's Position. * @param[in] scaleProperty The Actor's Scale. * @param[in] sizeProperty The Actor's Size - * @param[in] scrollPositionProperty The scroll-view's position property (SCROLL_POSITION_PROPERTY_NAME) + * @param[in] scrollPositionProperty The scroll-view's position property (SCROLL_POSITION) * @param[in] scrollSizeProperty The size of the scroll-view (scrollView SIZE) * @return The new visibility of this Actor. */ @@ -114,7 +114,7 @@ public: * @param[in] positionProperty The Actor's Position. * @param[in] scaleProperty The Actor's Scale. * @param[in] sizeProperty The Actor's Size - * @param[in] scrollPositionProperty The scroll-view's position property (SCROLL_POSITION_PROPERTY_NAME) + * @param[in] scrollPositionProperty The scroll-view's position property (SCROLL_POSITION) * @param[in] scrollSizeProperty The size of the scroll-view (scrollView SIZE) * @param[in] activateProperty Activation value (0 - normal, 1.0 - full effect) * @return The new orientation of this Actor. @@ -164,7 +164,7 @@ public: * @param[in] current The current position of this Actor * @param[in] scaleProperty The Actor's Scale. * @param[in] sizeProperty The Actor's Size - * @param[in] scrollPositionProperty The scroll-view's position property (SCROLL_POSITION_PROPERTY_NAME) + * @param[in] scrollPositionProperty The scroll-view's position property (SCROLL_POSITION) * @param[in] scrollSizeProperty The size of the scroll-view (scrollView SIZE) * @param[in] activateProperty Activation value (0 - normal, 1.0 - full effect) * @return The new position of this Actor. @@ -230,33 +230,33 @@ void ApplyScrollCarouselConstraints(Toolkit::ScrollView scrollView, // Apply constraints to this actor // Constraint constraint; - constraint = Constraint::New( Actor::Property::Visible, - LocalSource( Actor::Property::Position ), - LocalSource( Actor::Property::Scale ), - LocalSource( Actor::Property::Size ), - Source(scrollView, scrollView.GetPropertyIndex( Toolkit::ScrollView::SCROLL_POSITION_PROPERTY_NAME ) ), - Source(scrollView, Actor::Property::Size ), + constraint = Constraint::New( Actor::Property::VISIBLE, + LocalSource( Actor::Property::POSITION ), + LocalSource( Actor::Property::SCALE ), + LocalSource( Actor::Property::SIZE ), + Source(scrollView, Toolkit::ScrollView::Property::SCROLL_POSITION ), + Source(scrollView, Actor::Property::SIZE ), Source(scrollView, scrollView.GetPropertyIndex( Toolkit::ScrollViewCarouselEffect::EFFECT_ACTIVATE ) ), boost::bind( &ScrollCarouselEffectInfo::VisibilityConstraint, info, _1, _2, _3, _4, _5, _6) ); constraint.SetRemoveAction( Constraint::Discard ); child.ApplyConstraint( constraint ); - constraint = Constraint::New( Actor::Property::Rotation, - LocalSource( Actor::Property::Position ), - LocalSource( Actor::Property::Scale ), - LocalSource( Actor::Property::Size ), - Source(scrollView, scrollView.GetPropertyIndex( Toolkit::ScrollView::SCROLL_POSITION_PROPERTY_NAME ) ), - Source(scrollView, Actor::Property::Size ), + constraint = Constraint::New( Actor::Property::ORIENTATION, + LocalSource( Actor::Property::POSITION ), + LocalSource( Actor::Property::SCALE ), + LocalSource( Actor::Property::SIZE ), + Source(scrollView, Toolkit::ScrollView::Property::SCROLL_POSITION ), + Source(scrollView, Actor::Property::SIZE ), Source(scrollView, scrollView.GetPropertyIndex( Toolkit::ScrollViewCarouselEffect::EFFECT_ACTIVATE ) ), boost::bind( &ScrollCarouselEffectInfo::RotationConstraint, info, _1, _2, _3, _4, _5, _6, _7) ); constraint.SetRemoveAction( Constraint::Discard ); child.ApplyConstraint( constraint ); - constraint = Constraint::New( Actor::Property::Position, - LocalSource( Actor::Property::Scale ), - LocalSource( Actor::Property::Size ), - Source(scrollView, scrollView.GetPropertyIndex( Toolkit::ScrollView::SCROLL_POSITION_PROPERTY_NAME ) ), - Source(scrollView, Actor::Property::Size ), + constraint = Constraint::New( Actor::Property::POSITION, + LocalSource( Actor::Property::SCALE ), + LocalSource( Actor::Property::SIZE ), + Source(scrollView, Toolkit::ScrollView::Property::SCROLL_POSITION ), + Source(scrollView, Actor::Property::SIZE ), Source(scrollView, scrollView.GetPropertyIndex( Toolkit::ScrollViewCarouselEffect::EFFECT_ACTIVATE ) ), boost::bind( &ScrollCarouselEffectInfo::PositionConstraint, info, _1, _2, _3, _4, _5, _6) );