Skip to main content

QDate

Struct QDate 

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

C++ class: QDate.

Implementations§

Source§

impl QDate

Source

pub unsafe fn add_days(&self, days: c_longlong) -> CppBox<QDate>

Calls C++ function: QDate QDate::addDays(long long days) const.

Source

pub unsafe fn add_months_1a(&self, months: c_int) -> CppBox<QDate>

Calls C++ function: QDate QDate::addMonths(int months) const.

Source

pub unsafe fn add_months_2a( &self, months: c_int, cal: impl CastInto<Ref<QCalendar>>, ) -> CppBox<QDate>

Calls C++ function: QDate QDate::addMonths(int months, QCalendar cal) const.

Source

pub unsafe fn add_years_1a(&self, years: c_int) -> CppBox<QDate>

Calls C++ function: QDate QDate::addYears(int years) const.

Source

pub unsafe fn add_years_2a( &self, years: c_int, cal: impl CastInto<Ref<QCalendar>>, ) -> CppBox<QDate>

Calls C++ function: QDate QDate::addYears(int years, QCalendar cal) const.

Source

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

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

Source

pub unsafe fn current_date() -> CppBox<QDate>

Calls C++ function: static QDate QDate::currentDate().

Source

pub unsafe fn day_0a(&self) -> c_int

Calls C++ function: int QDate::day() const.

Source

pub unsafe fn day_1a(&self, cal: impl CastInto<Ref<QCalendar>>) -> c_int

Calls C++ function: int QDate::day(QCalendar cal) const.

Source

pub unsafe fn day_of_week_0a(&self) -> c_int

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

Source

pub unsafe fn day_of_week_1a(&self, cal: impl CastInto<Ref<QCalendar>>) -> c_int

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

Source

pub unsafe fn day_of_year_0a(&self) -> c_int

Calls C++ function: int QDate::dayOfYear() const.

Source

pub unsafe fn day_of_year_1a(&self, cal: impl CastInto<Ref<QCalendar>>) -> c_int

Calls C++ function: int QDate::dayOfYear(QCalendar cal) const.

Source

pub unsafe fn days_in_month_0a(&self) -> c_int

Calls C++ function: int QDate::daysInMonth() const.

Source

pub unsafe fn days_in_month_1a( &self, cal: impl CastInto<Ref<QCalendar>>, ) -> c_int

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

Source

pub unsafe fn days_in_year_0a(&self) -> c_int

Calls C++ function: int QDate::daysInYear() const.

Source

pub unsafe fn days_in_year_1a( &self, cal: impl CastInto<Ref<QCalendar>>, ) -> c_int

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

Source

pub unsafe fn days_to(&self, arg1: impl CastInto<Ref<QDate>>) -> c_longlong

Calls C++ function: long long QDate::daysTo(const QDate& arg1) const.

Source

pub unsafe fn end_of_day_time_spec_int( &self, spec: TimeSpec, offset_seconds: c_int, ) -> CppBox<QDateTime>

Calls C++ function: QDateTime QDate::endOfDay(Qt::TimeSpec spec = …, int offsetSeconds = …) const.

Source

pub unsafe fn end_of_day_q_time_zone( &self, zone: impl CastInto<Ref<QTimeZone>>, ) -> CppBox<QDateTime>

Calls C++ function: QDateTime QDate::endOfDay(const QTimeZone& zone) const.

Source

pub unsafe fn end_of_day_time_spec(&self, spec: TimeSpec) -> CppBox<QDateTime>

Calls C++ function: QDateTime QDate::endOfDay(Qt::TimeSpec spec = …) const.

Source

pub unsafe fn end_of_day(&self) -> CppBox<QDateTime>

Calls C++ function: QDateTime QDate::endOfDay() const.

Source

pub unsafe fn from_julian_day(jd: c_longlong) -> CppBox<QDate>

Calls C++ function: static QDate QDate::fromJulianDay(long long jd_).

Source

pub unsafe fn from_string_q_string_date_format( s: impl CastInto<Ref<QString>>, f: DateFormat, ) -> CppBox<QDate>

Calls C++ function: static QDate QDate::fromString(const QString& s, Qt::DateFormat f = …).

Source

pub unsafe fn from_string_2_q_string( s: impl CastInto<Ref<QString>>, format: impl CastInto<Ref<QString>>, ) -> CppBox<QDate>

Calls C++ function: static QDate QDate::fromString(const QString& s, const QString& format).

Source

pub unsafe fn from_string_2_q_string_q_calendar( s: impl CastInto<Ref<QString>>, format: impl CastInto<Ref<QString>>, cal: impl CastInto<Ref<QCalendar>>, ) -> CppBox<QDate>

Calls C++ function: static QDate QDate::fromString(const QString& s, const QString& format, QCalendar cal).

Source

pub unsafe fn from_string_q_string( s: impl CastInto<Ref<QString>>, ) -> CppBox<QDate>

Calls C++ function: static QDate QDate::fromString(const QString& s).

Source

pub unsafe fn get_date_mut( &self, year: *mut c_int, month: *mut c_int, day: *mut c_int, )

Calls C++ function: void QDate::getDate(int* year, int* month, int* day).

Source

pub unsafe fn get_date( &self, year: *mut c_int, month: *mut c_int, day: *mut c_int, )

Calls C++ function: void QDate::getDate(int* year, int* month, int* day) const.

Source

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

Calls C++ function: static bool QDate::isLeapYear(int year).

Source

pub unsafe fn is_null(&self) -> bool

Calls C++ function: bool QDate::isNull() const.

Source

pub unsafe fn is_valid_0a(&self) -> bool

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

Source

pub unsafe fn is_valid_3a(y: c_int, m: c_int, d: c_int) -> bool

Calls C++ function: static bool QDate::isValid(int y, int m, int d).

Source

pub unsafe fn long_day_name_2a( weekday: c_int, type_: MonthNameType, ) -> CppBox<QString>

Calls C++ function: static QString QDate::longDayName(int weekday, QDate::MonthNameType type = …).

Source

pub unsafe fn long_day_name_1a(weekday: c_int) -> CppBox<QString>

Calls C++ function: static QString QDate::longDayName(int weekday).

Source

pub unsafe fn long_month_name_2a( month: c_int, type_: MonthNameType, ) -> CppBox<QString>

Calls C++ function: static QString QDate::longMonthName(int month, QDate::MonthNameType type = …).

Source

pub unsafe fn long_month_name_1a(month: c_int) -> CppBox<QString>

Calls C++ function: static QString QDate::longMonthName(int month).

Source

pub unsafe fn month_0a(&self) -> c_int

Calls C++ function: int QDate::month() const.

Source

pub unsafe fn month_1a(&self, cal: impl CastInto<Ref<QCalendar>>) -> c_int

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

Source

pub unsafe fn new_0a() -> CppBox<QDate>

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

Source

pub unsafe fn new_3a(y: c_int, m: c_int, d: c_int) -> CppBox<QDate>

Calls C++ function: [constructor] void QDate::QDate(int y, int m, int d).

Source

pub unsafe fn new_4a( y: c_int, m: c_int, d: c_int, cal: impl CastInto<Ref<QCalendar>>, ) -> CppBox<QDate>

Calls C++ function: [constructor] void QDate::QDate(int y, int m, int d, QCalendar cal).

Source

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

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

Source

pub unsafe fn set_date_3a(&self, year: c_int, month: c_int, day: c_int) -> bool

Calls C++ function: bool QDate::setDate(int year, int month, int day).

Source

pub unsafe fn set_date_4a( &self, year: c_int, month: c_int, day: c_int, cal: impl CastInto<Ref<QCalendar>>, ) -> bool

Calls C++ function: bool QDate::setDate(int year, int month, int day, QCalendar cal).

Source

pub unsafe fn short_day_name_2a( weekday: c_int, type_: MonthNameType, ) -> CppBox<QString>

Calls C++ function: static QString QDate::shortDayName(int weekday, QDate::MonthNameType type = …).

Source

pub unsafe fn short_day_name_1a(weekday: c_int) -> CppBox<QString>

Calls C++ function: static QString QDate::shortDayName(int weekday).

Source

pub unsafe fn short_month_name_2a( month: c_int, type_: MonthNameType, ) -> CppBox<QString>

Calls C++ function: static QString QDate::shortMonthName(int month, QDate::MonthNameType type = …).

Source

pub unsafe fn short_month_name_1a(month: c_int) -> CppBox<QString>

Calls C++ function: static QString QDate::shortMonthName(int month).

Source

pub unsafe fn start_of_day_time_spec_int( &self, spec: TimeSpec, offset_seconds: c_int, ) -> CppBox<QDateTime>

Calls C++ function: QDateTime QDate::startOfDay(Qt::TimeSpec spec = …, int offsetSeconds = …) const.

Source

pub unsafe fn start_of_day_q_time_zone( &self, zone: impl CastInto<Ref<QTimeZone>>, ) -> CppBox<QDateTime>

Calls C++ function: QDateTime QDate::startOfDay(const QTimeZone& zone) const.

Source

pub unsafe fn start_of_day_time_spec(&self, spec: TimeSpec) -> CppBox<QDateTime>

Calls C++ function: QDateTime QDate::startOfDay(Qt::TimeSpec spec = …) const.

Source

pub unsafe fn start_of_day(&self) -> CppBox<QDateTime>

Calls C++ function: QDateTime QDate::startOfDay() const.

Source

pub unsafe fn to_julian_day(&self) -> c_longlong

Calls C++ function: long long QDate::toJulianDay() const.

Source

pub unsafe fn to_string_date_format( &self, format: DateFormat, ) -> CppBox<QString>

Calls C++ function: QString QDate::toString(Qt::DateFormat format = …) const.

Source

pub unsafe fn to_string_date_format_q_calendar( &self, format: DateFormat, cal: impl CastInto<Ref<QCalendar>>, ) -> CppBox<QString>

Calls C++ function: QString QDate::toString(Qt::DateFormat format, QCalendar cal) const.

Source

pub unsafe fn to_string_q_string( &self, format: impl CastInto<Ref<QString>>, ) -> CppBox<QString>

Calls C++ function: QString QDate::toString(const QString& format) const.

Source

pub unsafe fn to_string_q_string_q_calendar( &self, format: impl CastInto<Ref<QString>>, cal: impl CastInto<Ref<QCalendar>>, ) -> CppBox<QString>

Calls C++ function: QString QDate::toString(const QString& format, QCalendar cal) const.

Source

pub unsafe fn to_string_q_string_view( &self, format: impl CastInto<Ref<QStringView>>, ) -> CppBox<QString>

Calls C++ function: QString QDate::toString(QStringView format) const.

Source

pub unsafe fn to_string_q_string_view_q_calendar( &self, format: impl CastInto<Ref<QStringView>>, cal: impl CastInto<Ref<QCalendar>>, ) -> CppBox<QString>

Calls C++ function: QString QDate::toString(QStringView format, QCalendar cal) const.

Source

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

Calls C++ function: QString QDate::toString() const.

Source

pub unsafe fn week_number_1a(&self, year_num: *mut c_int) -> c_int

Calls C++ function: int QDate::weekNumber(int* yearNum = …) const.

Source

pub unsafe fn week_number_0a(&self) -> c_int

Calls C++ function: int QDate::weekNumber() const.

Source

pub unsafe fn year_0a(&self) -> c_int

Calls C++ function: int QDate::year() const.

Source

pub unsafe fn year_1a(&self, cal: impl CastInto<Ref<QCalendar>>) -> c_int

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

Trait Implementations§

Source§

impl CppDeletable for QDate

Source§

unsafe fn delete(&self)

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

Source§

impl Ge<Ref<QDate>> for QDate

Source§

unsafe fn ge(&self, other: &Ref<QDate>) -> bool

Calls C++ function: bool QDate::operator>=(const QDate& other) const.

Source§

impl Gt<Ref<QDate>> for QDate

Source§

unsafe fn gt(&self, other: &Ref<QDate>) -> bool

Calls C++ function: bool QDate::operator>(const QDate& other) const.

Source§

impl Le<Ref<QDate>> for QDate

Source§

unsafe fn le(&self, other: &Ref<QDate>) -> bool

Calls C++ function: bool QDate::operator<=(const QDate& other) const.

Source§

impl Lt<Ref<QDate>> for QDate

Source§

unsafe fn lt(&self, other: &Ref<QDate>) -> bool

Calls C++ function: bool QDate::operator<(const QDate& other) const.

Source§

impl PartialEq<Ref<QDate>> for QDate

Source§

fn eq(&self, other: &Ref<QDate>) -> bool

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

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

§

impl Freeze for QDate

§

impl RefUnwindSafe for QDate

§

impl Send for QDate

§

impl Sync for QDate

§

impl Unpin for QDate

§

impl UnsafeUnpin for QDate

§

impl UnwindSafe for QDate

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.