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

This commit is contained in:
Robin Dunn
2019-09-05 18:53:03 -07:00
parent 676e588c76
commit 1b03456463
2 changed files with 27 additions and 3 deletions

View File

@@ -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:

View File

@@ -1,4 +1,4 @@
/* Generated by Cython 0.29.12 */
/* Generated by Cython 0.29.13 */
/* BEGIN: Cython Metadata
{
@@ -40,8 +40,8 @@ END: Cython Metadata */
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
#error Cython requires Python 2.6+ or Python 3.3+.
#else
#define CYTHON_ABI "0_29_12"
#define CYTHON_HEX_VERSION 0x001D0CF0
#define CYTHON_ABI "0_29_13"
#define CYTHON_HEX_VERSION 0x001D0DF0
#define CYTHON_FUTURE_DIVISION 0
#include <stddef.h>
#ifndef offsetof