The bindings have some GetXXX and SetXXX functions declared using the
%property tag.

For example, the wxSize bindings have

int wxSize::GetWidth()
void wxSize::SetWidth(int width)
%property=Width, read, write

and can be accessed as

s = wx.wxSize(0,0)
print(s.Width)   <==>   print(s:GetWidth())
s.Width = 5   <==>   s:SetWidth(5)

I have made some massive changes to the bindings that allow functions
to be seamlessly overloaded (no more hacks like wxBitmap(...),
wxBitmapFromFile(...), and wxEmptyBitmap(...)). However, in order to
do this, the C binding functions are named when generated and since
many functions are #ifdefed for different platforms and wxWidgets
versions it has become hard to tell if a function will actually exist
when compiled with any given platform or version.

Bottom line, I personally don't use them and find them a little
suspect, in that they're probably more confusing than anything. There
only benefit I can see is that you save a little typing... (note: they
only work for GetXXX and SetXXX where the SetXXX function takes 1
parameter)

Thoughts? If none I will finish the changes off and leave them
disabled. If people really like them, they can be made to work...

Regards,
    John Labenski

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to