2006-08-26 20:21:15 +04:00
|
|
|
/*
|
2010-07-17 04:15:31 +04:00
|
|
|
* Copyright 2006-2010, Haiku, Inc. All rights reserved.
|
2006-08-26 20:21:15 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _GRID_VIEW_H
|
|
|
|
#define _GRID_VIEW_H
|
|
|
|
|
|
|
|
#include <GridLayout.h>
|
|
|
|
#include <View.h>
|
|
|
|
|
|
|
|
|
|
|
|
class BGridView : public BView {
|
|
|
|
public:
|
2010-09-03 02:58:24 +04:00
|
|
|
BGridView(float horizontal
|
|
|
|
= B_USE_DEFAULT_SPACING,
|
|
|
|
float vertical = B_USE_DEFAULT_SPACING);
|
|
|
|
BGridView(const char* name,
|
|
|
|
float horizontal = B_USE_DEFAULT_SPACING,
|
|
|
|
float vertical = B_USE_DEFAULT_SPACING);
|
2010-07-17 04:15:31 +04:00
|
|
|
BGridView(BMessage* from);
|
2006-08-26 20:21:15 +04:00
|
|
|
virtual ~BGridView();
|
|
|
|
|
|
|
|
virtual void SetLayout(BLayout* layout);
|
|
|
|
BGridLayout* GridLayout() const;
|
2010-07-17 04:15:31 +04:00
|
|
|
|
|
|
|
static BArchivable* Instantiate(BMessage* from);
|
2011-11-05 08:23:22 +04:00
|
|
|
|
2011-11-05 09:08:11 +04:00
|
|
|
virtual status_t Perform(perform_code d, void* arg);
|
|
|
|
|
2011-11-05 08:23:22 +04:00
|
|
|
private:
|
|
|
|
|
2011-11-05 09:08:11 +04:00
|
|
|
// FBC padding
|
|
|
|
virtual void _ReservedGridView1();
|
|
|
|
virtual void _ReservedGridView2();
|
|
|
|
virtual void _ReservedGridView3();
|
|
|
|
virtual void _ReservedGridView4();
|
|
|
|
virtual void _ReservedGridView5();
|
|
|
|
virtual void _ReservedGridView6();
|
|
|
|
virtual void _ReservedGridView7();
|
|
|
|
virtual void _ReservedGridView8();
|
|
|
|
virtual void _ReservedGridView9();
|
|
|
|
virtual void _ReservedGridView10();
|
|
|
|
|
2011-11-05 08:23:22 +04:00
|
|
|
// forbidden methods
|
|
|
|
BGridView(const BGridView&);
|
|
|
|
void operator =(const BGridView&);
|
2011-11-05 09:08:11 +04:00
|
|
|
|
|
|
|
uint32 _reserved[2];
|
2006-08-26 20:21:15 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _GRID_VIEW_H
|