mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
reword it a bit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -23,17 +23,17 @@ should then be able to work out the details for themselves.
|
||||
Overloaded Functions
|
||||
--------------------
|
||||
|
||||
Up to this point in order to support more than one of the versions of
|
||||
an overloaded C++ function or class method we have had to rename all
|
||||
but one of them. For example, for the wxWindow::SetSize method we
|
||||
have SetSize, SetDimensions, SetRect and SetSizeWH. One of the
|
||||
features of the new tools used for Project Pheonix is that we no
|
||||
longer need to do that and instead we can have just one function or
|
||||
method in the Python API and the propper version of the C++ function
|
||||
or method is chosen at runtime based on the types of parameters passed
|
||||
to the function. So in most cases the renamed versions of the
|
||||
overloaded functions have been removed and you can call the function
|
||||
with the same name as the C++ API.
|
||||
In order to support more than one of the versions of an overloaded C++
|
||||
function or class method in Classic wxPython, we had to rename all but
|
||||
one of them. For example, for the wxWindow::SetSize method we have
|
||||
SetSize, SetDimensions, SetRect and SetSizeWH. One of the features of
|
||||
the new tools used for Project Pheonix is that we no longer need to do
|
||||
that and instead we can have just one function or method in the Python
|
||||
API and the propper version of the C++ function or method is chosen at
|
||||
runtime based on the types of parameters passed to the function. So
|
||||
in most cases the renamed versions of the overloaded functions have
|
||||
been removed and you can call the function with the same name as the
|
||||
C++ API.
|
||||
|
||||
This also includes the default constructor for all widget classes,
|
||||
used for the 2-phase create. Previously they were renamed to to be the
|
||||
|
||||
Reference in New Issue
Block a user