| 1 |
/* File : Fl_Group.i */ |
| 2 |
//%module Fl_Group |
| 3 |
|
| 4 |
%feature("docstring") ::Fl_Group |
| 5 |
""" |
| 6 |
The Fl_Group class is the FLTK container widget. It maintains an array of |
| 7 |
child widgets. These children can themselves be any widget including Fl_Group. |
| 8 |
The most important subclass of Fl_Group is Fl_Window, however groups can |
| 9 |
also be used to control radio buttons or to enforce resize behavior. |
| 10 |
""" ; |
| 11 |
|
| 12 |
%{ |
| 13 |
#include "FL/Fl_Group.H" |
| 14 |
%} |
| 15 |
|
| 16 |
%include "macros.i" |
| 17 |
|
| 18 |
CHANGE_OWNERSHIP(Fl_Group) |
| 19 |
|
| 20 |
REVERT_OWNERSHIP(Fl_Group::add) |
| 21 |
|
| 22 |
REVERT_OWNERSHIP(Fl_Group::remove) |
| 23 |
|
| 24 |
%ignore Fl_Group::find(const Fl_Widget*) const; |
| 25 |
%ignore Fl_Group::add(Fl_Widget&); |
| 26 |
%ignore Fl_Group::remove(Fl_Widget&); |
| 27 |
%ignore Fl_Group::resizable(Fl_Widget& o); |
| 28 |
|
| 29 |
%ignore Fl_Group::on_insert(Fl_Widget*, int idx); |
| 30 |
%ignore Fl_Group::on_move(int a, int b); |
| 31 |
%ignore Fl_Group::on_remove(int idx); |
| 32 |
|
| 33 |
%rename(insert_before) Fl_Group::insert(Fl_Widget& o, Fl_Widget* before); |
| 34 |
|
| 35 |
// needed for getting directors to work |
| 36 |
%ignore Fl_Group::array() const; |
| 37 |
|
| 38 |
// typemap for child method |
| 39 |
%include <std_string.i> |
| 40 |
|
| 41 |
%typemap(out) Fl_Widget * Fl_Group::child { |
| 42 |
const std::string lookup_typename = std::string("_p_") + std::string(reinterpret_cast<CallbackStruct*>($1->user_data())->type_name); |
| 43 |
//printf("Type = %s\n", lookup_typename.c_str()); |
| 44 |
swig_type_info * const outtype = SWIG_TypeQuery(lookup_typename.c_str()); |
| 45 |
//if (outtype == 0) |
| 46 |
// printf("SWIG Type not found\n"); |
| 47 |
//else |
| 48 |
// printf("Swig Type = %s\n", outtype->str); |
| 49 |
$result = SWIG_NewPointerObj(SWIG_as_voidptr($1), outtype, $owner); |
| 50 |
} |
| 51 |
|
| 52 |
|
| 53 |
%include "FL/Fl_Group.H" |
| 54 |
|
| 55 |
|