diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-28 04:23:32 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-28 04:23:32 +0000 |
| commit | 2abfda36ab9e32bbd8c93ab43eb006fe6778146a (patch) | |
| tree | 1baae18ad973e0897fe6f56dd11b1a6da5fa9409 /fluid/Fl_Type.h | |
| parent | 9f6d4ada32cff2df7bde458ce130edd4379b9c50 (diff) | |
Preliminary support for widget classes (still need to do code writing
methods...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Type.h')
| -rw-r--r-- | fluid/Fl_Type.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h index 107460094..ef9048da6 100644 --- a/fluid/Fl_Type.h +++ b/fluid/Fl_Type.h @@ -437,6 +437,8 @@ public: extern Fl_Menu_Item window_type_menu[]; class Fl_Window_Type : public Fl_Widget_Type { +protected: + Fl_Menu_Item* subtypes() {return window_type_menu;} friend class Overlay_Window; @@ -486,6 +488,18 @@ public: int is_window() const {return 1;} }; +class Fl_Widget_Class_Type : private Fl_Window_Type { +public: + void write_code1(); + void write_code2(); + Fl_Type *make(); + virtual const char *type_name() {return "widget_class";} + int is_parent() const {return 1;} + int is_decl_block() const {return 1;} + int is_class() const {return 1;} +}; + + extern Fl_Menu_Item menu_item_type_menu[]; class Fl_Menu_Item_Type : public Fl_Widget_Type { |
