Add gradient pen support for Cairo

This commit is contained in:
Robin Dunn
2019-07-30 23:43:48 -07:00
parent 4708d2539e
commit 59ce48924a
2 changed files with 29 additions and 13 deletions

View File

@@ -479,6 +479,7 @@ public:
{
m_gradientType = wxGRADIENT_RADIAL;
m_x1 = xo; m_y1 = yo; m_x2 = xc; m_y2 = yc;
m_radius = radius;
m_stops.SetStartColour(oColor);
m_stops.SetEndColour(cColor);
return *this;
@@ -490,6 +491,7 @@ public:
{
m_gradientType = wxGRADIENT_RADIAL;
m_x1 = xo; m_y1 = yo; m_x2 = xc; m_y2 = yc;
m_radius = radius;
m_stops = stops;
return *this;
}