dos2unix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37544 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
849e11ad8d
commit
a3d9e70188
@ -1,61 +1,61 @@
|
||||
/*
|
||||
* Copyright 2006, Haiku, Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _GROUP_LAYOUT_H
|
||||
#define _GROUP_LAYOUT_H
|
||||
|
||||
#include <TwoDimensionalLayout.h>
|
||||
|
||||
class BGroupLayout : public BTwoDimensionalLayout {
|
||||
public:
|
||||
BGroupLayout(enum orientation orientation,
|
||||
float spacing = 0.0f);
|
||||
virtual ~BGroupLayout();
|
||||
|
||||
float Spacing() const;
|
||||
void SetSpacing(float spacing);
|
||||
|
||||
orientation Orientation() const;
|
||||
void SetOrientation(enum orientation orientation);
|
||||
|
||||
float ItemWeight(int32 index) const;
|
||||
void SetItemWeight(int32 index, float weight);
|
||||
|
||||
virtual BLayoutItem* AddView(BView* child);
|
||||
virtual BLayoutItem* AddView(int32 index, BView* child);
|
||||
virtual BLayoutItem* AddView(BView* child, float weight);
|
||||
virtual BLayoutItem* AddView(int32 index, BView* child,
|
||||
float weight);
|
||||
|
||||
virtual bool AddItem(BLayoutItem* item);
|
||||
virtual bool AddItem(int32 index, BLayoutItem* item);
|
||||
virtual bool AddItem(BLayoutItem* item, float weight);
|
||||
virtual bool AddItem(int32 index, BLayoutItem* item,
|
||||
float weight);
|
||||
|
||||
protected:
|
||||
virtual void ItemAdded(BLayoutItem* item);
|
||||
virtual void ItemRemoved(BLayoutItem* item);
|
||||
|
||||
virtual void PrepareItems(enum orientation orientation);
|
||||
|
||||
virtual int32 InternalCountColumns();
|
||||
virtual int32 InternalCountRows();
|
||||
virtual void GetColumnRowConstraints(
|
||||
enum orientation orientation,
|
||||
int32 index,
|
||||
ColumnRowConstraints* constraints);
|
||||
virtual void GetItemDimensions(BLayoutItem* item,
|
||||
Dimensions* dimensions);
|
||||
|
||||
private:
|
||||
struct ItemLayoutData;
|
||||
|
||||
ItemLayoutData* _LayoutDataForItem(BLayoutItem* item) const;
|
||||
|
||||
orientation fOrientation;
|
||||
BList fVisibleItems;
|
||||
};
|
||||
|
||||
#endif // _GROUP_LAYOUT_H
|
||||
/*
|
||||
* Copyright 2006, Haiku, Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _GROUP_LAYOUT_H
|
||||
#define _GROUP_LAYOUT_H
|
||||
|
||||
#include <TwoDimensionalLayout.h>
|
||||
|
||||
class BGroupLayout : public BTwoDimensionalLayout {
|
||||
public:
|
||||
BGroupLayout(enum orientation orientation,
|
||||
float spacing = 0.0f);
|
||||
virtual ~BGroupLayout();
|
||||
|
||||
float Spacing() const;
|
||||
void SetSpacing(float spacing);
|
||||
|
||||
orientation Orientation() const;
|
||||
void SetOrientation(enum orientation orientation);
|
||||
|
||||
float ItemWeight(int32 index) const;
|
||||
void SetItemWeight(int32 index, float weight);
|
||||
|
||||
virtual BLayoutItem* AddView(BView* child);
|
||||
virtual BLayoutItem* AddView(int32 index, BView* child);
|
||||
virtual BLayoutItem* AddView(BView* child, float weight);
|
||||
virtual BLayoutItem* AddView(int32 index, BView* child,
|
||||
float weight);
|
||||
|
||||
virtual bool AddItem(BLayoutItem* item);
|
||||
virtual bool AddItem(int32 index, BLayoutItem* item);
|
||||
virtual bool AddItem(BLayoutItem* item, float weight);
|
||||
virtual bool AddItem(int32 index, BLayoutItem* item,
|
||||
float weight);
|
||||
|
||||
protected:
|
||||
virtual void ItemAdded(BLayoutItem* item);
|
||||
virtual void ItemRemoved(BLayoutItem* item);
|
||||
|
||||
virtual void PrepareItems(enum orientation orientation);
|
||||
|
||||
virtual int32 InternalCountColumns();
|
||||
virtual int32 InternalCountRows();
|
||||
virtual void GetColumnRowConstraints(
|
||||
enum orientation orientation,
|
||||
int32 index,
|
||||
ColumnRowConstraints* constraints);
|
||||
virtual void GetItemDimensions(BLayoutItem* item,
|
||||
Dimensions* dimensions);
|
||||
|
||||
private:
|
||||
struct ItemLayoutData;
|
||||
|
||||
ItemLayoutData* _LayoutDataForItem(BLayoutItem* item) const;
|
||||
|
||||
orientation fOrientation;
|
||||
BList fVisibleItems;
|
||||
};
|
||||
|
||||
#endif // _GROUP_LAYOUT_H
|
||||
|
Loading…
Reference in New Issue
Block a user