5 #ifndef _FL_TABLE_ROW_H
6 #define _FL_TABLE_ROW_H
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;
135 int handle(
int event);
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);
A table of widgets or other content.
Definition: Fl_Table.H:181
~Fl_Table_Row()
The destructor for the Fl_Table_Row.
Definition: Fl_Table_Row.H:160
int rows()
Returns the number of rows in the table.
Definition: Fl_Table.H:522
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
void clear()
Clears the table to zero rows, zero columns.
Definition: Fl_Table_Row.H:200
A table with row selection capabilities.
Definition: Fl_Table_Row.H:54
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