Various typo and coding style fixes

This commit is contained in:
Robin Dunn
2019-09-05 13:33:15 -07:00
parent 1afb4afe25
commit a8a19e25ee
8 changed files with 53 additions and 50 deletions

View File

@@ -150,12 +150,8 @@ All (GUI):
in wxPGArrayEditorDialog.
- Fix wxPropertyGrid issues with horizontal scrolling.
- Add wxPG_DIALOG_TITLE wxPGProperty attribute.
- Add support for creating a wxGraphicsPen with a gradient. The gradient will
be used when stroking a path in a wxGraphicsContext, if supported by the
graphics context backend.
- Add support for applying a transformation matrix to a gradient for both
wxGraphicsPen and wxGraphicsBrush, if supported by the graphics context
backend.
- Add support for creating a wxGraphicsPen with a gradient.
- Add support for applying a transformation matrix to a gradient.
wxGTK:

View File

@@ -271,7 +271,7 @@ extern WXDLLIMPEXP_DATA_CORE(wxGraphicsMatrix) wxNullGraphicsMatrix;
// ----------------------------------------------------------------------------
// wxGradientStop and wxGradientStops: Specify what intermediate colors are used
// and how they are are spread out in a gradient
// and how they are spread out in a gradient
// ----------------------------------------------------------------------------
// Describes a single gradient stop.

View File

@@ -305,6 +305,12 @@ enum wxCompositionMode
wxCOMPOSITION_ADD /**< @e R = @e S + @e D */
};
/**
Used to indicate what kind of gradient is set in a wxGraphicsPenInfo
object.
@since 3.1.3
*/
enum wxGradientType {
wxGRADIENT_NONE,
wxGRADIENT_LINEAR,
@@ -641,7 +647,7 @@ public:
The version taking wxGraphicsGradientStops is new in wxWidgets 2.9.1.
The ability to apply a transformation matrix to the gradient was added in 3.1.3
The @ matrix parameter was added in wxWidgets 3.1.3
*/
wxGraphicsBrush
CreateLinearGradientBrush(wxDouble x1, wxDouble y1,

View File

@@ -261,9 +261,8 @@ class wxGDIPlusPenBrushBaseData : public wxGraphicsObjectRefData
{
public:
wxGDIPlusPenBrushBaseData(wxGraphicsRenderer* renderer);
~wxGDIPlusPenBrushBaseData();
virtual void Init();
virtual void Init() wxOVERRIDE;
void CreateLinearGradientBrush(wxDouble x1, wxDouble y1,
wxDouble x2, wxDouble y2,
@@ -275,6 +274,8 @@ public:
const wxGraphicsGradientStops& stops,
const wxGraphicsMatrix& matrix = wxNullGraphicsMatrix);
protected:
virtual ~wxGDIPlusPenBrushBaseData();
Brush* m_brush;
GraphicsPath* m_brushPath;
Image* m_image;