16 #ifndef OSGWIDGET_TABLE
17 #define OSGWIDGET_TABLE
19 #include <osgWidget/Window>
31 Table (
const std::string& =
"",
unsigned int = 0,
unsigned int = 0);
34 virtual bool addWidget (
Widget*);
35 virtual bool addWidget (
Widget*,
unsigned int,
unsigned int);
37 void getRowHeights (CellSizes&)
const;
38 void getRowMinHeights (CellSizes&)
const;
39 void getColumnWidths (CellSizes&)
const;
40 void getColumnMinWidths (CellSizes&)
const;
42 void addHeightToRow (
unsigned int,
point_type);
43 void addWidthToColumn (
unsigned int,
point_type);
45 bool isRowVerticallyFillable (
unsigned int)
const;
46 bool isColumnHorizontallyFillable (
unsigned int)
const;
50 return getObjects()[_calculateIndex(row, col)].get();
55 return getObjects()[_calculateIndex(row, col)].get();
65 unsigned int _calculateIndex(
unsigned int,
unsigned int)
const;
67 void _getRows (CellSizes&, Getter)
const;
68 void _getColumns (CellSizes&, Getter)
const;
72 virtual Sizes _getWidthImplementation ()
const;
73 virtual Sizes _getHeightImplementation ()
const;
#define META_Object(library, name)