Roy Sutton wrote:> StatusBar.i -- Adds a typemap to return a wxRect structure.
You''ll
> really want to go over this to make sure it''s correct. I
don''t have a
> sample but it did make part of one of the bigdemo samples work a little
> better. If you want to put this on the back-burner until we have a
> chance to test it more fully I''d understand completely.
It looks ok, so I trust you enough to go ahead and apply it.
> One of the things I''m not so sure of is how we keep this typemap
from
> affecting other possible wxRect functions. There are a lot of functions
> that need this typemap and we can segregate it out to only certain .i
> files... But I know it will conflict with one of the ones that takes a
> Rect as an input parameter.
Right. I''m beginning to think that maybe we want to move most of the
output-related typemaps into their own files, so we can %include just
those that we really want for a given class. Eventually I want to be
able to do something even fancier, but I''m not sure what swig offers.
At
least splitting up the typemaps would be a step in the right direction.
We should probably have a swig/typemaps/ directory, and store all the
esoteric ones there, with reasonable naming.
> At some point, I''ll get around to applying and testing this with
the
> other Get*Rect functions.
Ok.
Thanks,
Kevin