Add API for determining the first day of the week and use it in
wxCalendarCtrl.

Closes https://github.com/wxWidgets/wxWidgets/pull/522
This commit is contained in:
Vadim Zeitlin
2017-09-10 21:37:36 +02:00
16 changed files with 248 additions and 31 deletions

View File

@@ -1483,6 +1483,18 @@ public:
static bool IsDSTApplicable(int year = Inv_Year,
Country country = Country_Default);
/**
Acquires the first weekday of a week based on locale and/or OS settings.
If the information was not available, returns @c Sun.
@param firstDay
The address of a WeekDay variable to which the first weekday will be
assigned to.
@return If the first day could not be determined, returns false,
and @a firstDay is set to a fallback value.
@since 3.1.1
*/
static bool GetFirstWeekDay(WeekDay *firstDay);
/**
Returns @true if the @a year is a leap one in the specified calendar.
This functions supports Gregorian and Julian calendars.