From: John L. <jla...@gm...> - 2007-05-29 02:53:31
|
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 |