Skip to content
Permalink
Browse files

Mention parameter name changes in the radial gradient methods in the …

…MigrationGuide
  • Loading branch information...
RobinD42 committed Sep 6, 2019
1 parent 676e588 commit 1b03456463344574d2e0c30afb5d6d2b8945e9bb
Showing with 27 additions and 3 deletions.
  1. +24 −0 docs/MigrationGuide.rst
  2. +3 −3 wx/svg/_nanosvg.c
@@ -650,6 +650,30 @@ wxPython for compatibility, but with a zero value. You can just stop using it
in your code with no change in behavior.


Parameter name changes in radial gradient methods
-------------------------------------------------

The parameter names for the ``wx.GraphicsContext`` methods for creating radial
gradients have changed in wxPython 4.1 to be a little more understandable. If
you are passing these values via their keyword names then you will need to
change your code. The prior C++ method signatures looked like this::

virtual wxGraphicsBrush
CreateRadialGradientBrush(wxDouble xo, wxDouble yo,
wxDouble xc, wxDouble yc,
wxDouble radius,
const wxGraphicsGradientStops& stops);

And they now look like this::

virtual wxGraphicsBrush
CreateRadialGradientBrush(wxDouble startX, wxDouble startY,
wxDouble endX, wxDouble endY,
wxDouble radius,
const wxGraphicsGradientStops& stops,
const wxGraphicsMatrix& matrix = wxNullGraphicsMatrix);


.. toctree::
:maxdepth: 2
:hidden:

Some generated files are not rendered by default. Learn more.

0 comments on commit 1b03456

Please sign in to comment.
You can’t perform that action at this time.