// EXTERNAL INCLUDES
#include <algorithm>
-#include <set>
// INTERNAL INCLUDES
#include <dali/public-api/events/mouse-wheel-event.h>
: Scrollable(),
mItemFactory(factory),
mActiveLayout(NULL),
+ mDefaultAlphaFunction(Dali::Constraint::DEFAULT_ALPHA_FUNCTION),
mAnimatingOvershootOn(false),
mAnimateOvershootOff(false),
mAnchoringEnabled(true),
CancelRefreshTimer();
}
+void ItemView::SetDefaultAlphaFunction(AlphaFunction func)
+{
+ mDefaultAlphaFunction = func;
+}
+
+AlphaFunction ItemView::GetDefaultAlphaFunction() const
+{
+ return mDefaultAlphaFunction;
+}
+
bool ItemView::OnRefreshTick()
{
// Short-circuit if there is no active layout
ParentSource( Actor::SIZE ),
wrapped );
constraint.SetApplyTime(duration);
+ constraint.SetAlphaFunction(mDefaultAlphaFunction);
actor.ApplyConstraint(constraint);
}
ParentSource( Actor::SIZE ),
wrapped );
constraint.SetApplyTime(duration);
+ constraint.SetAlphaFunction(mDefaultAlphaFunction);
actor.ApplyConstraint(constraint);
}
ParentSource( Actor::SIZE ),
wrapped );
constraint.SetApplyTime(duration);
+ constraint.SetAlphaFunction(mDefaultAlphaFunction);
actor.ApplyConstraint(constraint);
}
ParentSource( Actor::SIZE ),
wrapped );
constraint.SetApplyTime(duration);
+ constraint.SetAlphaFunction(mDefaultAlphaFunction);
// Release color constraints slowly; this allows ItemView to co-exist with ImageActor fade-in
constraint.SetRemoveTime(DEFAULT_COLOR_VISIBILITY_REMOVE_TIME);
ParentSource( Actor::SIZE ),
wrapped );
constraint.SetApplyTime(duration);
+ constraint.SetAlphaFunction(mDefaultAlphaFunction);
// Release visibility constraints the same time as the color constraint
constraint.SetRemoveTime(DEFAULT_COLOR_VISIBILITY_REMOVE_TIME);