diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-10-22 21:15:11 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-10-22 21:15:11 +0000 |
| commit | 19518ebe35587898a32e3172529761a9a9058621 (patch) | |
| tree | c7e1b773cd2a7666be62c3849a44c9c5ff5d4b02 /FL | |
| parent | 29476d08b848fa7e8a6261349bb8d80cdb8a3069 (diff) | |
Make Fl_Widget::parent() work with Fl_Group pointers...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1647 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Widget.H | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H index 103f23d14..68fb8c599 100644 --- a/FL/Fl_Widget.H +++ b/FL/Fl_Widget.H @@ -1,5 +1,5 @@ // -// "$Id: Fl_Widget.H,v 1.6.2.4.2.7 2001/10/18 18:53:20 easysw Exp $" +// "$Id: Fl_Widget.H,v 1.6.2.4.2.8 2001/10/22 21:15:11 easysw Exp $" // // Widget header file for the Fast Light Tool Kit (FLTK). // @@ -30,6 +30,7 @@ class Fl_Widget; class Fl_Window; +class Fl_Group; class Fl_Image; typedef void (Fl_Callback )(Fl_Widget*, void*); @@ -52,7 +53,7 @@ struct Fl_Label { class Fl_Widget { friend class Fl_Group; - Fl_Widget* parent_; + Fl_Group* parent_; Fl_Callback* callback_; void* user_data_; short x_,y_,w_,h_; @@ -100,8 +101,8 @@ public: FL_EXPORT virtual void draw() = 0; FL_EXPORT virtual int handle(int); - Fl_Widget* parent() const {return parent_;} - void parent(Fl_Widget* w) {parent_ = w;} // for hacks only + Fl_Group* parent() const {return parent_;} + void parent(Fl_Group* w) {parent_ = w;} // for hacks only uchar type() const {return type_;} void type(uchar t) {type_ = t;} @@ -206,5 +207,5 @@ public: #endif // -// End of "$Id: Fl_Widget.H,v 1.6.2.4.2.7 2001/10/18 18:53:20 easysw Exp $". +// End of "$Id: Fl_Widget.H,v 1.6.2.4.2.8 2001/10/22 21:15:11 easysw Exp $". // |
