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;
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);
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
int handle(int event)
Handles the specified event.
Definition Fl_Table_Row.cxx:168
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
void rows(int val)
Sets the number of rows in the table, and the table is redrawn.
Definition Fl_Table_Row.cxx:152
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
Fl_Table(int X, int Y, int W, int H, const char *l=0)
The constructor for the Fl_Table.
Definition Fl_Table.cxx:95
virtual void rows(int val)
Sets the number of rows in the table, and the table is redrawn.
Definition Fl_Table.cxx:610
virtual void cols(int val)
Set the number of columns in the table and redraw.
Definition Fl_Table.cxx:632