wxruby-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wxruby-dev] WxWindow status (was: Request for non-coding assistance)


From: Kevin Smith
Subject: [Wxruby-dev] WxWindow status (was: Request for non-coding assistance)
Date: 01 Jun 2003 21:39:05 -0700

On Sun, 2003-06-01 at 20:16, Richard Kilmer wrote:
> This was a bug...fixed (and attached)...will work on PythonNotes 
> tomorrow.

Cool. 

I have imported all the signatures for the wxWindow class, and things
look pretty good. Currently, window.t is 475 lines, and it will go down
over time. When run through the wxpp.rb template expander, it creates
157 lines of window.h and 2069 lines of window.cpp (those counts will
remain fairly close to where they are right now. 

Here's the summary for WxWindow as it stands right now:

107 methods are fully handled by templates. 
20 are C++ method overloads that I'll need to resolve.
9 are "redundant" overloads that are not critical to implement.
6 are "strange", but all are easily resolved manually (see below).
5 are static methods, which wxpp.rb does not yet support.
3 have return types that wxpp.rb does not yet support.
2 I can't test because they are MSW only, but should work fine. 

Of the "strange" methods, some are mismatches between the docs and
reality, Others are methods that don't show up in the docs but which
appeared in the list (perhaps they are private/protected?). Here are the
details, copy and pasted from window.t:

// according to wx/window.h, the final bool parameter does not exist
// (also, Python binds it quite differently anyway)
        virtual void GetTextExtent(const wxString& string, int* x, int* y, int*
descent = NULL, int* externalLeading = NULL, const wxFont* font = NULL,
bool use16 = FALSE);

// according to the online wx 2.4 and 2.5 help, these do not exist
        virtual void SetScrollPage(int orientation, int pageSize, bool refresh
= TRUE);
        virtual void SetScrollRange(int orientation, int range, bool refresh =
TRUE);

// this is in the 2.4 help, but according to wx/window.h, this method
does not exist, 
// the 2.5 docs do not list it
        virtual bool LoadFromResource(wxWindow* parent, const wxString&
resourceName, const wxResourceTable* resourceTable = NULL);

// according to wx/window.h, palette is passed as reference, not
pointer,
// the 2.4 docs have it as shown here, but the 2.5 docs say it is
obsolete anyway
        virtual void SetPalette(wxPalette* palette);

// according to wx/window.h, the first two parameters are not optional
// the 2.4 and 2.5 documentation have it as shown here
        virtual void SetSizeHints(int minW=-1, int minH=-1, int maxW=-1, int
maxH=-1, int incW=-1, int incH=-1);

Kevin






reply via email to

[Prev in Thread] Current Thread [Next in Thread]