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-page-path-effect-impl.cpp;h=f12b873de2611d1b0c9ab946d6afa80b7acafdbf;hp=50d57a1fad1532255a07c855b33a88931d13eac2;hb=36a298758d1b6244b7846a0102b528d76002dbda;hpb=41fcad41b941f67b55d499ab1997df97a005033c diff --git a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.cpp b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.cpp index 50d57a1..f12b873 100644 --- a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.cpp +++ b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-path-effect-impl.cpp @@ -18,7 +18,10 @@ // CLASS HEADER #include -//INTERNAL INCLUDES +// EXTERNAL INCLUDES +#include + +// INTERNAL INCLUDES #include namespace Dali @@ -40,20 +43,17 @@ ScrollViewPagePathEffect::ScrollViewPagePathEffect(Path path, const Vector3& for mPathConstrainer.SetProperty( PathConstrainer::Property::FORWARD, forward ); Dali::Property::Value pointsProperty = path.GetProperty(Path::Property::POINTS); - Property::Array points; - pointsProperty.Get(points); - mPathConstrainer.SetProperty( PathConstrainer::Property::POINTS, points ); + mPathConstrainer.SetProperty( PathConstrainer::Property::POINTS, pointsProperty ); pointsProperty = path.GetProperty(Path::Property::CONTROL_POINTS); - pointsProperty.Get(points); - mPathConstrainer.SetProperty( PathConstrainer::Property::CONTROL_POINTS, points ); + mPathConstrainer.SetProperty( PathConstrainer::Property::CONTROL_POINTS, pointsProperty ); //Create linear constrainer - Property::Array pointsLinearConstrainer; - pointsProperty = Property::Value(pointsLinearConstrainer); - pointsProperty.AppendItem(0.0f); - pointsProperty.AppendItem(1.0f); - pointsProperty.AppendItem(0.0f); + pointsProperty = Property::Value(Property::ARRAY); + Property::Array* array = pointsProperty.GetArray(); + array->PushBack(0.0f); + array->PushBack(1.0f); + array->PushBack(0.0f); mLinearConstrainer = Dali::LinearConstrainer::New(); mLinearConstrainer.SetProperty( LinearConstrainer::Property::VALUE, pointsProperty ); }