class Fl_Table


Class Hierarchy

Include Files

Description

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 this widget itself; this widget is usually too low level to be used directly by applications.

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.

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 values you supply for when().

Methods

  • Fl_Table
  • ~Fl_Table
  • callback
  • cols
  • col_header
  • col_resize
  • col_width
  • draw_cell
  • rows
  • row_header
  • row_height
  • row_resize
  • top_row
  • when
  • Fl_Table::Fl_Table(int x, int y, int w, int h, const char *label = 0)

    Fl_Table::~Fl_Table()

    virtual void draw_cell(TableContext context, int row, int col, int x, int y, int w, int h)

    virtual void callback(TableContext context, int row, int col)

    int Fl_Table::cols() void Fl_Table::cols(int n)

    int Fl_Table::col_header() void Fl_Table::col_header(int n)

    int Fl_Table::col_resize() void Fl_Table::col_resize(int n)

    int Fl_Table::col_width(int col) void Fl_Table::col_width(int col, int new_width)

    int Fl_Table::rows() void Fl_Table::rows(int n)

    int Fl_Table::row_header() void Fl_Table::row_header(int n)

    int Fl_Table::row_resize() void Fl_Table::row_resize(int n)

    int Fl_Table::row_height(int row) void Fl_Table::row_height(int row, int new_height)

    int Fl_Table::top_row() void Fl_Table::top_row(int row)

    Fl_When Fl_Table::when() int Fl_Table::when(Fl_When val)