namespace Dali
{
-
namespace Toolkit
{
-
namespace Internal
{
-
///////////////////////////////////////////////////////////////////////////////////////////////////
// ScrollBase
///////////////////////////////////////////////////////////////////////////////////////////////////
-ScrollBase::ScrollBase( ControlBehaviour behaviourFlags )
-: Scrollable( behaviourFlags ),
+ScrollBase::ScrollBase(ControlBehaviour behaviourFlags)
+: Scrollable(behaviourFlags),
mParent(NULL),
mDelay(0.0f)
{
}
-void ScrollBase::SetParent(ScrollBase *parent)
+void ScrollBase::SetParent(ScrollBase* parent)
{
mParent = parent;
}
// Apply all our constraints to this new child.
ConstraintStack::iterator i;
- for(i = mConstraintStack.begin();i!=mConstraintStack.end();i++)
+ for(i = mConstraintStack.begin(); i != mConstraintStack.end(); i++)
{
actorInfo->ApplyConstraint(*i);
}
void ScrollBase::UnbindActor(Actor child)
{
// Find the child in mBoundActors, and unparent it
- for (ActorInfoIter iter = mBoundActors.begin(); iter != mBoundActors.end(); ++iter)
+ for(ActorInfoIter iter = mBoundActors.begin(); iter != mBoundActors.end(); ++iter)
{
ActorInfoPtr actorInfo = *iter;
- if( actorInfo->mActor == child )
+ if(actorInfo->mActor == child)
{
mBoundActors.erase(iter);
break;
{
mConstraintStack.push_back(constraint);
- for(ActorInfoIter i = mBoundActors.begin();i != mBoundActors.end(); ++i)
+ for(ActorInfoIter i = mBoundActors.begin(); i != mBoundActors.end(); ++i)
{
(*i)->ApplyConstraint(constraint);
}
{
mConstraintStack.clear();
- for(ActorInfoIter i = mBoundActors.begin();i != mBoundActors.end(); ++i)
+ for(ActorInfoIter i = mBoundActors.begin(); i != mBoundActors.end(); ++i)
{
(*i)->RemoveConstraints();
}