46 enum TableRowSelectMode {
53 class FL_EXPORT CharVector {
60 void copy(
char *newarr,
int newsize) {
62 memcpy(arr, newarr, newsize *
sizeof(
char));
72 CharVector(CharVector&o) {
76 CharVector& operator=(CharVector&o) {
81 char operator[](
int x)
const {
84 char& operator[](
int x) {
90 void size(
int count) {
91 if ( count != _size ) {
92 arr = (
char*)realloc(arr, count *
sizeof(
char));
97 char tmp = arr[_size-1];
101 void push_back(
char val) {
107 return(arr[_size-1]);
110 CharVector _rowselect;
116 int _dragging_select;
122 TableRowSelectMode _selectmode;
125 int handle(
int event);
127 int R,
int C,
int &X,
int &Y,
int &W,
int &H) {
128 return(Fl_Table::find_cell(context, R, C, X, Y, W, H));
138 _dragging_select = 0;
143 _selectmode = SELECT_MULTI;
164 void type(TableRowSelectMode val);
166 TableRowSelectMode type()
const {
175 int row_selected(
int row);
181 int select_row(
int row,
int flag=1);
188 void select_all_rows(
int flag=1);
A table with row selection capabilities.
Definition: Fl_Table_Row.H:44
void clear()
Clears the table to zero rows (rows(0)), zero columns (cols(0)), and clears any widgets (table->clear...
Definition: Fl_Table_Row.H:190
~Fl_Table_Row()
The destructor for the Fl_Table_Row.
Definition: Fl_Table_Row.H:150
Fl_Table_Row(int X, int Y, int W, int H, const char *l=0)
The constructor for the Fl_Table_Row.
Definition: Fl_Table_Row.H:137
A table of widgets or other content.
Definition: Fl_Table.H:170
virtual void clear()
Clears the table to zero rows (rows(0)), zero columns (cols(0)), and clears any widgets (table->clear...
Definition: Fl_Table.H:493
TableContext
The context bit flags for Fl_Table related callbacks.
Definition: Fl_Table.H:177
int rows()
Returns the number of rows in the table.
Definition: Fl_Table.H:522