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. in wxPGArrayEditorDialog.
- Fix wxPropertyGrid issues with horizontal scrolling. - Fix wxPropertyGrid issues with horizontal scrolling.
- Add wxPG_DIALOG_TITLE wxPGProperty attribute. - Add wxPG_DIALOG_TITLE wxPGProperty attribute.
- Add support for creating a wxGraphicsPen with a gradient. The gradient will - Add support for creating a wxGraphicsPen with a gradient.
be used when stroking a path in a wxGraphicsContext, if supported by the - Add support for applying a transformation matrix to a gradient.
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.
wxGTK: wxGTK:

View File

@@ -271,7 +271,7 @@ extern WXDLLIMPEXP_DATA_CORE(wxGraphicsMatrix) wxNullGraphicsMatrix;
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxGradientStop and wxGradientStops: Specify what intermediate colors are used // 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. // Describes a single gradient stop.

View File

@@ -305,6 +305,12 @@ enum wxCompositionMode
wxCOMPOSITION_ADD /**< @e R = @e S + @e D */ 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 { enum wxGradientType {
wxGRADIENT_NONE, wxGRADIENT_NONE,
wxGRADIENT_LINEAR, wxGRADIENT_LINEAR,
@@ -641,7 +647,7 @@ public:
The version taking wxGraphicsGradientStops is new in wxWidgets 2.9.1. 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 wxGraphicsBrush
CreateLinearGradientBrush(wxDouble x1, wxDouble y1, CreateLinearGradientBrush(wxDouble x1, wxDouble y1,

View File

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