9ecf9d1c1d
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96
34 lines
842 B
C++
34 lines
842 B
C++
/*
|
|
* Copyright 2006, Haiku Inc.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _SPLIT_LAYOUT_BUILDER_H
|
|
#define _SPLIT_LAYOUT_BUILDER_H
|
|
|
|
#include <SplitView.h>
|
|
|
|
class BSplitLayoutBuilder {
|
|
public:
|
|
BSplitLayoutBuilder(
|
|
enum orientation orientation = B_HORIZONTAL,
|
|
float spacing = 0.0f);
|
|
BSplitLayoutBuilder(BSplitView* view);
|
|
|
|
BSplitView* SplitView() const;
|
|
BSplitLayoutBuilder& GetSplitView(BSplitView** view);
|
|
|
|
BSplitLayoutBuilder& Add(BView* view);
|
|
BSplitLayoutBuilder& Add(BView* view, float weight);
|
|
BSplitLayoutBuilder& Add(BLayoutItem* item);
|
|
BSplitLayoutBuilder& Add(BLayoutItem* item, float weight);
|
|
|
|
BSplitLayoutBuilder& SetCollapsible(bool collapsible);
|
|
|
|
operator BSplitView*();
|
|
|
|
private:
|
|
BSplitView* fView;
|
|
};
|
|
|
|
#endif // _SPLIT_LAYOUT_BUILDER_H
|