| 1 |
/* File : Fl_Table.i */ |
| 2 |
|
| 3 |
%feature("docstring") ::Fl_Table |
| 4 |
""" |
| 5 |
This is the base class for table widgets. (eg. Fl_Table_Row). To be useful it must be subclassed and several virtual functions defined. Normally applications use widgets derived from this widget, and do not use this widget directly; this widget is usually too low level to be used directly by applications. |
| 6 |
|
| 7 |
This widget does not handle the data in the table. The draw_cell() method must be overridden by a subclass to manage drawing the contents of the cells. |
| 8 |
|
| 9 |
This widget can be used in several ways: |
| 10 |
|
| 11 |
* As a custom widget; see testtablerow.cxx. Very optimal for even extremely large tables. |
| 12 |
|
| 13 |
* As a table made up of a single FLTK widget instanced all over the table; see singleinput.cxx. Very optimal for even extremely large tables; |
| 14 |
|
| 15 |
* As a regular container of FLTK widgets, one widget per cell. See widgettable.cxx. Not recommended for large tables. |
| 16 |
|
| 17 |
When acting as part of a custom widget, events on the cells and/or headings generate callbacks when they are clicked by the user. You control when events are generated based on the setting for Fl_Table::when(). |
| 18 |
|
| 19 |
When acting as a container for FLTK widgets, the FLTK widgets maintain themselves. Although the draw_cell() method must be overridden, its contents can be very simple. See the draw_cell() code in widgettable.cxx. |
| 20 |
""" ; |
| 21 |
|
| 22 |
%{ |
| 23 |
#include "FL/Fl_Table.H" |
| 24 |
%} |
| 25 |
|
| 26 |
%include "macros.i" |
| 27 |
|
| 28 |
CHANGE_OWNERSHIP(Fl_Table) |
| 29 |
|
| 30 |
//%ignore Fl_Table::draw_cell; |
| 31 |
%ignore Fl_Table::array; |
| 32 |
|
| 33 |
|
| 34 |
%include "FL/Fl_Table.H" |
| 35 |
|