pub struct QCalendar { /* private fields */ }Expand description
C++ class: QCalendar.
Implementations§
Source§impl QCalendar
impl QCalendar
Sourcepub unsafe fn available_calendars() -> CppBox<QStringList>
pub unsafe fn available_calendars() -> CppBox<QStringList>
Calls C++ function: static QStringList QCalendar::availableCalendars().
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QCalendar>>,
) -> Ref<QCalendar>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QCalendar>>, ) -> Ref<QCalendar>
Calls C++ function: QCalendar& QCalendar::operator=(const QCalendar& other).
Sourcepub unsafe fn date_from_parts_3a(
&self,
year: c_int,
month: c_int,
day: c_int,
) -> CppBox<QDate>
pub unsafe fn date_from_parts_3a( &self, year: c_int, month: c_int, day: c_int, ) -> CppBox<QDate>
Calls C++ function: QDate QCalendar::dateFromParts(int year, int month, int day) const.
Sourcepub unsafe fn date_from_parts_1a(
&self,
parts: impl CastInto<Ref<YearMonthDay>>,
) -> CppBox<QDate>
pub unsafe fn date_from_parts_1a( &self, parts: impl CastInto<Ref<YearMonthDay>>, ) -> CppBox<QDate>
Calls C++ function: QDate QCalendar::dateFromParts(const QCalendar::YearMonthDay& parts) const.
Sourcepub unsafe fn date_time_to_string(
&self,
format: impl CastInto<Ref<QStringView>>,
datetime: impl CastInto<Ref<QDateTime>>,
date_only: impl CastInto<Ref<QDate>>,
time_only: impl CastInto<Ref<QTime>>,
locale: impl CastInto<Ref<QLocale>>,
) -> CppBox<QString>
pub unsafe fn date_time_to_string( &self, format: impl CastInto<Ref<QStringView>>, datetime: impl CastInto<Ref<QDateTime>>, date_only: impl CastInto<Ref<QDate>>, time_only: impl CastInto<Ref<QTime>>, locale: impl CastInto<Ref<QLocale>>, ) -> CppBox<QString>
Calls C++ function: QString QCalendar::dateTimeToString(QStringView format, const QDateTime& datetime, const QDate& dateOnly, const QTime& timeOnly, const QLocale& locale) const.
Sourcepub unsafe fn day_of_week(&self, date: impl CastInto<Ref<QDate>>) -> c_int
pub unsafe fn day_of_week(&self, date: impl CastInto<Ref<QDate>>) -> c_int
Calls C++ function: int QCalendar::dayOfWeek(QDate date) const.
Sourcepub unsafe fn days_in_month_2a(&self, month: c_int, year: c_int) -> c_int
pub unsafe fn days_in_month_2a(&self, month: c_int, year: c_int) -> c_int
Calls C++ function: int QCalendar::daysInMonth(int month, int year = …) const.
Sourcepub unsafe fn days_in_month_1a(&self, month: c_int) -> c_int
pub unsafe fn days_in_month_1a(&self, month: c_int) -> c_int
Calls C++ function: int QCalendar::daysInMonth(int month) const.
Sourcepub unsafe fn days_in_year(&self, year: c_int) -> c_int
pub unsafe fn days_in_year(&self, year: c_int) -> c_int
Calls C++ function: int QCalendar::daysInYear(int year) const.
Sourcepub unsafe fn has_year_zero(&self) -> bool
pub unsafe fn has_year_zero(&self) -> bool
Calls C++ function: bool QCalendar::hasYearZero() const.
Sourcepub unsafe fn is_date_valid(
&self,
year: c_int,
month: c_int,
day: c_int,
) -> bool
pub unsafe fn is_date_valid( &self, year: c_int, month: c_int, day: c_int, ) -> bool
Calls C++ function: bool QCalendar::isDateValid(int year, int month, int day) const.
Sourcepub unsafe fn is_gregorian(&self) -> bool
pub unsafe fn is_gregorian(&self) -> bool
Calls C++ function: bool QCalendar::isGregorian() const.
Sourcepub unsafe fn is_leap_year(&self, year: c_int) -> bool
pub unsafe fn is_leap_year(&self, year: c_int) -> bool
Calls C++ function: bool QCalendar::isLeapYear(int year) const.
Sourcepub unsafe fn is_luni_solar(&self) -> bool
pub unsafe fn is_luni_solar(&self) -> bool
Calls C++ function: bool QCalendar::isLuniSolar() const.
Sourcepub unsafe fn is_proleptic(&self) -> bool
pub unsafe fn is_proleptic(&self) -> bool
Calls C++ function: bool QCalendar::isProleptic() const.
Sourcepub unsafe fn maximum_days_in_month(&self) -> c_int
pub unsafe fn maximum_days_in_month(&self) -> c_int
Calls C++ function: int QCalendar::maximumDaysInMonth() const.
Sourcepub unsafe fn maximum_months_in_year(&self) -> c_int
pub unsafe fn maximum_months_in_year(&self) -> c_int
Calls C++ function: int QCalendar::maximumMonthsInYear() const.
Sourcepub unsafe fn minimum_days_in_month(&self) -> c_int
pub unsafe fn minimum_days_in_month(&self) -> c_int
Calls C++ function: int QCalendar::minimumDaysInMonth() const.
Sourcepub unsafe fn month_name_4a(
&self,
locale: impl CastInto<Ref<QLocale>>,
month: c_int,
year: c_int,
format: FormatType,
) -> CppBox<QString>
pub unsafe fn month_name_4a( &self, locale: impl CastInto<Ref<QLocale>>, month: c_int, year: c_int, format: FormatType, ) -> CppBox<QString>
Calls C++ function: QString QCalendar::monthName(const QLocale& locale, int month, int year = …, QLocale::FormatType format = …) const.
Sourcepub unsafe fn month_name_3a(
&self,
locale: impl CastInto<Ref<QLocale>>,
month: c_int,
year: c_int,
) -> CppBox<QString>
pub unsafe fn month_name_3a( &self, locale: impl CastInto<Ref<QLocale>>, month: c_int, year: c_int, ) -> CppBox<QString>
Calls C++ function: QString QCalendar::monthName(const QLocale& locale, int month, int year = …) const.
Sourcepub unsafe fn month_name_2a(
&self,
locale: impl CastInto<Ref<QLocale>>,
month: c_int,
) -> CppBox<QString>
pub unsafe fn month_name_2a( &self, locale: impl CastInto<Ref<QLocale>>, month: c_int, ) -> CppBox<QString>
Calls C++ function: QString QCalendar::monthName(const QLocale& locale, int month) const.
Sourcepub unsafe fn months_in_year(&self, year: c_int) -> c_int
pub unsafe fn months_in_year(&self, year: c_int) -> c_int
Calls C++ function: int QCalendar::monthsInYear(int year) const.
Sourcepub unsafe fn name(&self) -> CppBox<QString>
pub unsafe fn name(&self) -> CppBox<QString>
Calls C++ function: QString QCalendar::name() const.
Sourcepub unsafe fn new() -> CppBox<QCalendar>
pub unsafe fn new() -> CppBox<QCalendar>
Calls C++ function: [constructor] void QCalendar::QCalendar().
Sourcepub unsafe fn from_system(system: System) -> CppBox<QCalendar>
pub unsafe fn from_system(system: System) -> CppBox<QCalendar>
Calls C++ function: [constructor] void QCalendar::QCalendar(QCalendar::System system).
Sourcepub unsafe fn from_q_latin1_string(
name: impl CastInto<Ref<QLatin1String>>,
) -> CppBox<QCalendar>
pub unsafe fn from_q_latin1_string( name: impl CastInto<Ref<QLatin1String>>, ) -> CppBox<QCalendar>
Calls C++ function: [constructor] void QCalendar::QCalendar(QLatin1String name).
Sourcepub unsafe fn from_q_string_view(
name: impl CastInto<Ref<QStringView>>,
) -> CppBox<QCalendar>
pub unsafe fn from_q_string_view( name: impl CastInto<Ref<QStringView>>, ) -> CppBox<QCalendar>
Calls C++ function: [constructor] void QCalendar::QCalendar(QStringView name).
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QCalendar>>,
) -> CppBox<QCalendar>
pub unsafe fn new_copy( other: impl CastInto<Ref<QCalendar>>, ) -> CppBox<QCalendar>
Calls C++ function: [constructor] void QCalendar::QCalendar(const QCalendar& other).
Sourcepub unsafe fn parts_from_date(
&self,
date: impl CastInto<Ref<QDate>>,
) -> CppBox<YearMonthDay>
pub unsafe fn parts_from_date( &self, date: impl CastInto<Ref<QDate>>, ) -> CppBox<YearMonthDay>
Calls C++ function: QCalendar::YearMonthDay QCalendar::partsFromDate(QDate date) const.
Sourcepub unsafe fn standalone_month_name_4a(
&self,
locale: impl CastInto<Ref<QLocale>>,
month: c_int,
year: c_int,
format: FormatType,
) -> CppBox<QString>
pub unsafe fn standalone_month_name_4a( &self, locale: impl CastInto<Ref<QLocale>>, month: c_int, year: c_int, format: FormatType, ) -> CppBox<QString>
Calls C++ function: QString QCalendar::standaloneMonthName(const QLocale& locale, int month, int year = …, QLocale::FormatType format = …) const.
Sourcepub unsafe fn standalone_month_name_3a(
&self,
locale: impl CastInto<Ref<QLocale>>,
month: c_int,
year: c_int,
) -> CppBox<QString>
pub unsafe fn standalone_month_name_3a( &self, locale: impl CastInto<Ref<QLocale>>, month: c_int, year: c_int, ) -> CppBox<QString>
Calls C++ function: QString QCalendar::standaloneMonthName(const QLocale& locale, int month, int year = …) const.
Sourcepub unsafe fn standalone_month_name_2a(
&self,
locale: impl CastInto<Ref<QLocale>>,
month: c_int,
) -> CppBox<QString>
pub unsafe fn standalone_month_name_2a( &self, locale: impl CastInto<Ref<QLocale>>, month: c_int, ) -> CppBox<QString>
Calls C++ function: QString QCalendar::standaloneMonthName(const QLocale& locale, int month) const.
Sourcepub unsafe fn standalone_week_day_name_3a(
&self,
locale: impl CastInto<Ref<QLocale>>,
day: c_int,
format: FormatType,
) -> CppBox<QString>
pub unsafe fn standalone_week_day_name_3a( &self, locale: impl CastInto<Ref<QLocale>>, day: c_int, format: FormatType, ) -> CppBox<QString>
Calls C++ function: QString QCalendar::standaloneWeekDayName(const QLocale& locale, int day, QLocale::FormatType format = …) const.
Sourcepub unsafe fn standalone_week_day_name_2a(
&self,
locale: impl CastInto<Ref<QLocale>>,
day: c_int,
) -> CppBox<QString>
pub unsafe fn standalone_week_day_name_2a( &self, locale: impl CastInto<Ref<QLocale>>, day: c_int, ) -> CppBox<QString>
Calls C++ function: QString QCalendar::standaloneWeekDayName(const QLocale& locale, int day) const.
Sourcepub unsafe fn static_meta_object() -> Ref<QMetaObject>
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
Returns a reference to the staticMetaObject field.
Sourcepub unsafe fn week_day_name_3a(
&self,
locale: impl CastInto<Ref<QLocale>>,
day: c_int,
format: FormatType,
) -> CppBox<QString>
pub unsafe fn week_day_name_3a( &self, locale: impl CastInto<Ref<QLocale>>, day: c_int, format: FormatType, ) -> CppBox<QString>
Calls C++ function: QString QCalendar::weekDayName(const QLocale& locale, int day, QLocale::FormatType format = …) const.