1 #ifndef MSP_GLTK_TABLE_H_
2 #define MSP_GLTK_TABLE_H_
11 class Table: public Widget
14 class Loader: public Widget::Loader
19 void cell_text(unsigned, unsigned, const std::string &);
20 void column_width(unsigned, unsigned);
21 void columns(unsigned);
28 std::vector<std::string> data;
29 std::vector<unsigned> col_w;
34 void set_rows(unsigned);
35 void set_columns(unsigned);
36 unsigned get_rows() const { return rows; }
37 unsigned get_columns() const { return columns; }
39 void set_column_width(unsigned, unsigned);
40 void set_cell_text(unsigned, unsigned, const std::string &);
42 virtual const char *get_class() const { return "table"; }
44 virtual void rebuild_special(const Part &, CachedPart &);
45 virtual void on_style_change();