mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
Handle window class methods.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4199 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -335,6 +335,7 @@ Fl_Type *Fl_Window_Type::make() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Fl_Window_Type::add_child(Fl_Type* cc, Fl_Type* before) {
|
void Fl_Window_Type::add_child(Fl_Type* cc, Fl_Type* before) {
|
||||||
|
if (!cc->is_widget()) return;
|
||||||
Fl_Widget_Type* c = (Fl_Widget_Type*)cc;
|
Fl_Widget_Type* c = (Fl_Widget_Type*)cc;
|
||||||
Fl_Widget* b = before ? ((Fl_Widget_Type*)before)->o : 0;
|
Fl_Widget* b = before ? ((Fl_Widget_Type*)before)->o : 0;
|
||||||
((Fl_Window*)o)->insert(*(c->o), b);
|
((Fl_Window*)o)->insert(*(c->o), b);
|
||||||
|
|||||||
Reference in New Issue
Block a user