xref: /haiku/headers/os/interface/GridView.h (revision d374a27286b8a52974a97dba0d5966ea026a665d)
1 /*
2  * Copyright 2006-2010, Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef	_GRID_VIEW_H
6 #define	_GRID_VIEW_H
7 
8 #include <GridLayout.h>
9 #include <View.h>
10 
11 
12 class BGridView : public BView {
13 public:
14 								BGridView(float horizontal
15 										= B_USE_DEFAULT_SPACING,
16 									float vertical = B_USE_DEFAULT_SPACING);
17 								BGridView(const char* name,
18 									float horizontal = B_USE_DEFAULT_SPACING,
19 									float vertical = B_USE_DEFAULT_SPACING);
20 								BGridView(BMessage* from);
21 	virtual						~BGridView();
22 
23 	virtual	void				SetLayout(BLayout* layout);
24 			BGridLayout*		GridLayout() const;
25 
26 	static	BArchivable*		Instantiate(BMessage* from);
27 };
28 
29 
30 #endif	// _GRID_VIEW_H
31