]> git.saurik.com Git - wxWidgets.git/commitdiff
Added the wx.DC.GradientFillConcentric and wx.DC.GradientFillLinear
authorRobin Dunn <robin@alldunn.com>
Sun, 12 Feb 2006 08:16:10 +0000 (08:16 +0000)
committerRobin Dunn <robin@alldunn.com>
Sun, 12 Feb 2006 08:16:10 +0000 (08:16 +0000)
methods.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/docs/CHANGES.txt
wxPython/src/_dc.i

index 05f9b1bb3a6f544dfc34055b90efa1fa0ed3b212..33f13f3681f029a3d8295e80262b55e00384d3f0 100644 (file)
@@ -88,6 +88,10 @@ affected by this are:
     * wx.wizard.PyWizardPage
 
 
+Added the wx.DC.GradientFillConcentric and wx.DC.GradientFillLinear
+methods.
+
+
 
 
 2.6.3.0
index 218eda978dbc8bcd46be9681758ac04f2f114a47..780ba5610ce80fb20ddfe1a3a1ba5b0e72092cfc 100644 (file)
@@ -90,6 +90,35 @@ exactly. However the function will still return true.", "");
     bool FloodFill(wxCoord x, wxCoord y, const wxColour& col, int style = wxFLOOD_SURFACE);
     %Rename(FloodFillPoint, bool, FloodFill(const wxPoint& pt, const wxColour& col, int style = wxFLOOD_SURFACE));
 
+    // fill the area specified by rect with a radial gradient, starting from
+    // initialColour in the centre of the cercle and fading to destColour.
+
+    DocDeclStr(
+        void , GradientFillConcentric(const wxRect& rect,
+                                      const wxColour& initialColour, 
+                                      const wxColour& destColour,
+                                      const wxPoint& circleCenter),
+        "Fill the area specified by rect with a radial gradient, starting from
+initialColour in the center of the circle and fading to destColour on
+the outside of the circle.  The circleCenter argument is the relative
+coordinants of the center of the circle in the specified rect.
+
+Note: Currently this function is very slow, don't use it for real-time
+drawing.", "");
+    
+
+    DocDeclStr(
+        void , GradientFillLinear(const wxRect& rect,
+                                  const wxColour& initialColour, 
+                                  const wxColour& destColour,
+                                  wxDirection nDirection = wxEAST),
+        "Fill the area specified by rect with a linear gradient, starting from
+initialColour and eventually fading to destColour. The nDirection
+parameter specifies the direction of the colour change, default is to
+use initialColour on the left part of the rectangle and destColour on
+the right side.", "");
+    
+   
     
     DocStr(
         GetPixel,