tcp: Fix 64 bit build with debugging features enabled.
[haiku.git] / src / kits / interface / layouter / OneElementLayouter.h
blobde2f24e39939eea7ffb2a21554e791f6ce85cd0c
1 /*
2 * Copyright 2006, Haiku Inc.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef ONE_ELEMENT_LAYOUTER_H
6 #define ONE_ELEMENT_LAYOUTER_H
8 #include "Layouter.h"
10 namespace BPrivate {
11 namespace Layout {
13 class OneElementLayouter : public Layouter {
14 public:
15 OneElementLayouter();
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();
32 private:
33 class MyLayoutInfo;
35 float fMin;
36 float fMax;
37 float fPreferred;
40 } // namespace Layout
41 } // namespace BPrivate
43 using BPrivate::Layout::OneElementLayouter;
45 #endif // ONE_ELEMENT_LAYOUTER_H