]> git.saurik.com Git - wxWidgets.git/commitdiff
add default parameters for width and style parameters of FindOrCreatePen() for consis...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 22 Mar 2008 00:04:01 +0000 (00:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 22 Mar 2008 00:04:01 +0000 (00:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/pen.h
interface/pen.h

index 9f4f0d99a5634a1f215cb890169e9ec25126e79e..49d75c54587780e55cd01374069b86a5e656cfaa 100644 (file)
@@ -116,7 +116,9 @@ public:
 class WXDLLIMPEXP_CORE wxPenList: public wxGDIObjListBase
 {
 public:
-    wxPen *FindOrCreatePen(const wxColour& colour, int width, wxPenStyle style);
+    wxPen *FindOrCreatePen(const wxColour& colour,
+                           int width = 1,
+                           wxPenStyle style = wxPENSTYLE_SOLID);
 
 #if FUTURE_WXWIN_COMPATIBILITY_3_0
     wxPen *FindOrCreatePen(const wxColour& colour, int width, int style)
index f39023aa0160aae09fd73fb887b6e1621e52aaf4..8b31164cd4593ac3e07a828fe6ff59c69e5c15cd 100644 (file)
@@ -455,7 +455,9 @@ public:
         @param style
             Pen style. See ::wxPenStyle for a list of styles.
     */
-    wxPen* FindOrCreatePen(const wxColour& colour, int width, wxPenStyle style);
+    wxPen* FindOrCreatePen(const wxColour& colour,
+                           int width = 1,
+                           wxPenStyle style = wxPENSTYLE_SOLID);
 };
 
 /**