2 * Copyright 2006, Haiku Inc.
3 * Distributed under the terms of the MIT License.
5 #ifndef ONE_ELEMENT_LAYOUTER_H
6 #define ONE_ELEMENT_LAYOUTER_H
13 class OneElementLayouter
: public Layouter
{
16 virtual ~OneElementLayouter();
18 virtual void AddConstraints(int32 element
, int32 length
,
19 float min
, float max
, float preferred
);
20 virtual void SetWeight(int32 element
, float weight
);
22 virtual float MinSize();
23 virtual float MaxSize();
24 virtual float PreferredSize();
26 virtual LayoutInfo
* CreateLayoutInfo();
28 virtual void Layout(LayoutInfo
* layoutInfo
, float size
);
30 virtual Layouter
* CloneLayouter();
41 } // namespace BPrivate
43 using BPrivate::Layout::OneElementLayouter
;
45 #endif // ONE_ELEMENT_LAYOUTER_H