On Tue, 31 Jul 2007 14:26:42 +1200 Klaas Hartmann <[EMAIL PROTECTED]> wrote:
Hi, > Here is my first go at implementing the GraphicsContext class. To use it you > have to build wxwidgets with the --enable-graphics_ctx configure option. > > I wanted GraphicsContext support as it provides anti-aliasing and provides > cubic and quadratic beziers. It also allows you to create a complicated path > object and store this for subsequent redraws. It also provides matrix > transformations but I have yet to play with this. > > To get it to work add the attached XS files to the XS directory and: <snip> I have applied the changes, but please provide all further changes in patch format (unified patch preferred); they are much easier and less error prone, to apply. It's easy to create patches with any Subversion client or by using "diff" directly. Also, could you please try to use an indentation consistent with the rest of wxPerl? I do not mind that much reindenting the code, but not having to reindent it is even easier ;-) > Its not yet a full implementation as I have to get my head around a couple of > things. To this end if anyone has any thoughts on the following any help > would be appreciated. > > I can't get the overloaded constructor for GraphicsContext to work. The > commented out attempt in the attached file is unable to resolve the > overloaded method when called with a panel (is it unable to work out that a > panel is a window?) The MATCH_* macros only work on methods (they skip the first argument). It should be easy to create a set of macros working on functions, just change the macros in cpp/overload.h to use wxPli_match_arguments instead of wxPli_match_arguments_skipfirst. HTH Mattia
