diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-07-18 15:21:06 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-07-18 15:21:14 +0200 |
| commit | 4f7a3f384faac7d3f4ee46d42d7f984f48a5b706 (patch) | |
| tree | 6b422bf6d56b57a717946363ca0478e352d57864 /fluid/Fl_Group_Type.h | |
| parent | 2279f85824b0f13eb47ef79459937c47c1f295c1 (diff) | |
FLUID correct inheritance, formatting, factory floor cleaning
Diffstat (limited to 'fluid/Fl_Group_Type.h')
| -rw-r--r-- | fluid/Fl_Group_Type.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/fluid/Fl_Group_Type.h b/fluid/Fl_Group_Type.h index 0bff1e1ee..4be5973e9 100644 --- a/fluid/Fl_Group_Type.h +++ b/fluid/Fl_Group_Type.h @@ -109,15 +109,17 @@ public: // ---- Fl_Table_Type -------------------------------------------------- MARK: - -extern const char table_type_name[]; - -class Fl_Table_Type : public Fl_Group_Type { +class Fl_Table_Type : public Fl_Group_Type +{ + typedef Fl_Group_Type super; public: - const char *type_name() FL_OVERRIDE {return table_type_name;} - const char *alt_type_name() FL_OVERRIDE {return "fltk::TableGroup";} - Fl_Widget_Type *_make() FL_OVERRIDE {return new Fl_Table_Type();} - Fl_Widget *widget(int X,int Y,int W,int H) FL_OVERRIDE; + void ideal_size(int &w, int &h) FL_OVERRIDE; + const char *type_name() FL_OVERRIDE { return "Fl_Table"; } + const char *alt_type_name() FL_OVERRIDE { return "fltk::TableGroup"; } + Fl_Widget_Type *_make() FL_OVERRIDE { return new Fl_Table_Type(); } + Fl_Widget *widget(int X, int Y, int W, int H) FL_OVERRIDE; ID id() const FL_OVERRIDE { return ID_Table; } + bool is_a(ID inID) FL_OVERRIDE { return (inID==ID_Table) ? true : super::is_a(inID); } Fl_Widget *enter_live_mode(int top=0) FL_OVERRIDE; void add_child(Fl_Type*, Fl_Type*) FL_OVERRIDE; void move_child(Fl_Type*, Fl_Type*) FL_OVERRIDE; |
