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 virtual status_t Perform(perform_code d, void* arg); 29 30 private: 31 32 // FBC padding 33 virtual void _ReservedGridView1(); 34 virtual void _ReservedGridView2(); 35 virtual void _ReservedGridView3(); 36 virtual void _ReservedGridView4(); 37 virtual void _ReservedGridView5(); 38 virtual void _ReservedGridView6(); 39 virtual void _ReservedGridView7(); 40 virtual void _ReservedGridView8(); 41 virtual void _ReservedGridView9(); 42 virtual void _ReservedGridView10(); 43 44 // forbidden methods 45 BGridView(const BGridView&); 46 void operator =(const BGridView&); 47 48 uint32 _reserved[2]; 49 }; 50 51 52 #endif // _GRID_VIEW_H 53