56 enum TableRowSelectMode {
63 class FL_EXPORT CharVector {
70 void copy(
char *newarr,
int newsize) {
72 memcpy(arr, newarr, newsize *
sizeof(
char));
82 CharVector(CharVector&o) {
86 CharVector& operator=(CharVector&o) {
91 char operator[](
int x)
const {
94 char& operator[](
int x) {
100 void size(
int count) {
101 if ( count != _size ) {
102 arr = (
char*)realloc(arr, count *
sizeof(
char));
107 char tmp = arr[_size-1];
111 void push_back(
char val) {
117 return(arr[_size-1]);
120 CharVector _rowselect;
126 int _dragging_select;
132 TableRowSelectMode _selectmode;
137 int R,
int C,
int &X,
int &Y,
int &W,
int &H) {
138 return(Fl_Table::find_cell(context, R, C, X, Y, W, H));
148 _dragging_select = 0;
153 _selectmode = SELECT_MULTI;
174 void type(TableRowSelectMode val);
176 TableRowSelectMode type()
const {
185 int row_selected(
int row);
191 int select_row(
int row,
int flag=1);
198 void select_all_rows(
int flag=1);
void clear()
Clears the table to zero rows, zero columns.
Definition Fl_Table_Row.H:200
~Fl_Table_Row()
The destructor for the Fl_Table_Row.
Definition Fl_Table_Row.H:160
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:147
void rows(int val)
Sets the number of rows in the table, and the table is redrawn.
Definition Fl_Table_Row.cxx:158
virtual void clear()
Clears the table to zero rows, zero columns.
Definition Fl_Table.H:493
TableContext
The context bit flags for Fl_Table related callbacks (eg.
Definition Fl_Table.H:186
Fl_Table(int X, int Y, int W, int H, const char *l=0)
The constructor for the Fl_Table.
Definition Fl_Table.cxx:102
virtual void rows(int val)
Sets the number of rows in the table, and the table is redrawn.
Definition Fl_Table.cxx:598
virtual void cols(int val)
Set the number of columns in the table and redraw.
Definition Fl_Table.cxx:620