* Copyright 2006, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include "Layouter.h"
LayoutInfo::LayoutInfo()
{
}
LayoutInfo::~LayoutInfo()
{
}
float
LayoutInfo::ElementRangeSize(int32 position, int32 length)
{
if (length == 1)
return ElementSize(position);
int lastIndex = position + length - 1;
return ElementLocation(lastIndex) + ElementSize(lastIndex)
- ElementLocation(position);
}
Layouter::Layouter()
{
}
Layouter::~Layouter()
{
}