]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/calctrlg.h
fixing warning and compile error against 10.4
[wxWidgets.git] / include / wx / generic / calctrlg.h
index 7e75370ed4687582c81c10a13854c1f7693ded47..02abe012107b098ecbd06b05aa3eb90ee64a95b9 100644 (file)
@@ -199,6 +199,20 @@ private:
     // get the date from which we start drawing days
     wxDateTime GetStartDate() const;
 
     // get the date from which we start drawing days
     wxDateTime GetStartDate() const;
 
+    // get the first/last days of the week corresponding to the current style
+    wxDateTime::WeekDay GetWeekStart() const
+    {
+        return HasFlag(wxCAL_MONDAY_FIRST) ? wxDateTime::Mon
+                                           : wxDateTime::Sun;
+    }
+
+    wxDateTime::WeekDay GetWeekEnd() const
+    {
+        return HasFlag(wxCAL_MONDAY_FIRST) ? wxDateTime::Sun
+                                           : wxDateTime::Sat;
+    }
+
+
     // is this date shown?
     bool IsDateShown(const wxDateTime& date) const;
 
     // is this date shown?
     bool IsDateShown(const wxDateTime& date) const;