⛏️ index : haiku.git

/*
 * Copyright 2006, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
 * All rights reserved. Distributed under the terms of the MIT License.
 */

#include "Layouter.h"


// constructor
LayoutInfo::LayoutInfo()
{
}

// destructor
LayoutInfo::~LayoutInfo()
{
}

// ElementRangeSize
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);
}


// #pragma mark -


// constructor
Layouter::Layouter()
{
}

// destructor
Layouter::~Layouter()
{
}