Skip to main content

QCalendar

Struct QCalendar 

Source
pub struct QCalendar { /* private fields */ }
Expand description

C++ class: QCalendar.

Implementations§

Source§

impl QCalendar

Source

pub unsafe fn available_calendars() -> CppBox<QStringList>

Calls C++ function: static QStringList QCalendar::availableCalendars().

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QCalendar>>, ) -> Ref<QCalendar>

Calls C++ function: QCalendar& QCalendar::operator=(const QCalendar& other).

Source

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.

Source

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.

Source

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.

Source

pub unsafe fn day_of_week(&self, date: impl CastInto<Ref<QDate>>) -> c_int

Calls C++ function: int QCalendar::dayOfWeek(QDate date) const.

Source

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.

Source

pub unsafe fn days_in_month_1a(&self, month: c_int) -> c_int

Calls C++ function: int QCalendar::daysInMonth(int month) const.

Source

pub unsafe fn days_in_year(&self, year: c_int) -> c_int

Calls C++ function: int QCalendar::daysInYear(int year) const.

Source

pub unsafe fn has_year_zero(&self) -> bool

Calls C++ function: bool QCalendar::hasYearZero() const.

Source

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.

Source

pub unsafe fn is_gregorian(&self) -> bool

Calls C++ function: bool QCalendar::isGregorian() const.

Source

pub unsafe fn is_leap_year(&self, year: c_int) -> bool

Calls C++ function: bool QCalendar::isLeapYear(int year) const.

Source

pub unsafe fn is_lunar(&self) -> bool

Calls C++ function: bool QCalendar::isLunar() const.

Source

pub unsafe fn is_luni_solar(&self) -> bool

Calls C++ function: bool QCalendar::isLuniSolar() const.

Source

pub unsafe fn is_proleptic(&self) -> bool

Calls C++ function: bool QCalendar::isProleptic() const.

Source

pub unsafe fn is_solar(&self) -> bool

Calls C++ function: bool QCalendar::isSolar() const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QCalendar::isValid() const.

Source

pub unsafe fn maximum_days_in_month(&self) -> c_int

Calls C++ function: int QCalendar::maximumDaysInMonth() const.

Source

pub unsafe fn maximum_months_in_year(&self) -> c_int

Calls C++ function: int QCalendar::maximumMonthsInYear() const.

Source

pub unsafe fn minimum_days_in_month(&self) -> c_int

Calls C++ function: int QCalendar::minimumDaysInMonth() const.

Source

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.

Source

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.

Source

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.

Source

pub unsafe fn months_in_year(&self, year: c_int) -> c_int

Calls C++ function: int QCalendar::monthsInYear(int year) const.

Source

pub unsafe fn name(&self) -> CppBox<QString>

Calls C++ function: QString QCalendar::name() const.

Source

pub unsafe fn new() -> CppBox<QCalendar>

Calls C++ function: [constructor] void QCalendar::QCalendar().

Source

pub unsafe fn from_system(system: System) -> CppBox<QCalendar>

Calls C++ function: [constructor] void QCalendar::QCalendar(QCalendar::System system).

Source

pub unsafe fn from_q_latin1_string( name: impl CastInto<Ref<QLatin1String>>, ) -> CppBox<QCalendar>

Calls C++ function: [constructor] void QCalendar::QCalendar(QLatin1String name).

Source

pub unsafe fn from_q_string_view( name: impl CastInto<Ref<QStringView>>, ) -> CppBox<QCalendar>

Calls C++ function: [constructor] void QCalendar::QCalendar(QStringView name).

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<QCalendar>>, ) -> CppBox<QCalendar>

Calls C++ function: [constructor] void QCalendar::QCalendar(const QCalendar& other).

Source

pub unsafe fn parts_from_date( &self, date: impl CastInto<Ref<QDate>>, ) -> CppBox<YearMonthDay>

Calls C++ function: QCalendar::YearMonthDay QCalendar::partsFromDate(QDate date) const.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub unsafe fn static_meta_object() -> Ref<QMetaObject>

Returns a reference to the staticMetaObject field.

Source

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.

Source

pub unsafe fn week_day_name_2a( &self, locale: impl CastInto<Ref<QLocale>>, day: c_int, ) -> CppBox<QString>

Calls C++ function: QString QCalendar::weekDayName(const QLocale& locale, int day) const.

Trait Implementations§

Source§

impl CppDeletable for QCalendar

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QCalendar::~QCalendar().

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.