* When at middle of the screen the position is not altered.
* When one screen away from middle the position is rotated as per expected in a 3D inner cube.
*/
-class ScrollPageCubeEffectInfo : public Dali::RefObject
+class ScrollPageCubeEffectInfo
{
public:
Vector2 mAngleSwing; ///< Maximum amount in X and Y axes to rotate.
};
-typedef IntrusivePtr<ScrollPageCubeEffectInfo> ScrollPageCubeEffectInfoPtr;
-
/**
* Helper: Applies the 3D scroll cube constraints to the child actor
*
*/
void ApplyScrollCubeConstraints(Toolkit::ScrollView scrollView,
Actor child,
- ScrollPageCubeEffectInfoPtr info)
+ ScrollPageCubeEffectInfo& info)
{
// Apply constraints to this actor //
Constraint constraint;
void ScrollViewPageCubeEffect::ApplyToPage( Actor page, const Vector2& angleSwing )
{
- ScrollPageCubeEffectInfoPtr info(new ScrollPageCubeEffectInfo( angleSwing ));
+ ScrollPageCubeEffectInfo info( angleSwing );
ApplyScrollCubeConstraints( GetScrollView(), page, info );
}