]> git.saurik.com Git - wxWidgets.git/commitdiff
added default parameters to wxBrush/wxPen ctors
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Jul 2003 23:13:15 +0000 (23:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Jul 2003 23:13:15 +0000 (23:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cocoa/brush.h
include/wx/cocoa/pen.h

index 28e4efa76f87d946f2bd891cfd84095b1c9e0530..d561168a2415cf99c791d8711962a29b9280657f 100644 (file)
@@ -29,7 +29,7 @@ class WXDLLEXPORT wxBrush: public wxGDIObject
 // ------------------------------------------------------------------------
 public:
     wxBrush();
 // ------------------------------------------------------------------------
 public:
     wxBrush();
-    wxBrush(const wxColour& col, int style);
+    wxBrush(const wxColour& col, int style = wxSOLID);
     wxBrush(const wxBitmap& stipple);
     wxBrush(const wxBrush& brush)
     :   wxGDIObject()
     wxBrush(const wxBitmap& stipple);
     wxBrush(const wxBrush& brush)
     :   wxGDIObject()
index f13fcdfdacc4ca94a0d332f1d0c376db8c3b9cd5..400d8d8ee5e202418fbd9209810ffcd6cb3b23b5 100644 (file)
@@ -1,11 +1,11 @@
 /////////////////////////////////////////////////////////////////////////////
 /////////////////////////////////////////////////////////////////////////////
-// Name:        pen.h
+// Name:        wx/cocoa/pen.h
 // Purpose:     wxPen class
 // Purpose:     wxPen class
-// Author:      AUTHOR
+// Author:      David Elliott
 // Modified by:
 // Modified by:
-// Created:     ??/??/98
+// Created:     22.03.2003
 // RCS-ID:      $Id$
 // RCS-ID:      $Id$
-// Copyright:   (c) AUTHOR
+// Copyright:   (c) 2003 David Elliott
 // Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
@@ -54,7 +54,7 @@ class WXDLLEXPORT wxPen: public wxGDIObject
   DECLARE_DYNAMIC_CLASS(wxPen)
 public:
   wxPen();
   DECLARE_DYNAMIC_CLASS(wxPen)
 public:
   wxPen();
-  wxPen(const wxColour& col, int width, int style);
+  wxPen(const wxColour& col, int width = 1, int style = wxSOLID);
   wxPen(const wxBitmap& stipple, int width);
   wxPen(const wxPen& pen)
       : wxGDIObject()
   wxPen(const wxBitmap& stipple, int width);
   wxPen(const wxPen& pen)
       : wxGDIObject()