mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
78 lines
3.8 KiB
C++
78 lines
3.8 KiB
C++
#ifndef GEN_QCALENDAR_H
|
|
#define GEN_QCALENDAR_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
class QCalendar;
|
|
#if defined(WORKAROUND_INNER_CLASS_DEFINITION_QCalendar__YearMonthDay)
|
|
typedef QCalendar::YearMonthDay QCalendar__YearMonthDay;
|
|
#else
|
|
class QCalendar__YearMonthDay;
|
|
#endif
|
|
class QDate;
|
|
class QLocale;
|
|
#else
|
|
typedef struct QCalendar QCalendar;
|
|
typedef struct QCalendar__YearMonthDay QCalendar__YearMonthDay;
|
|
typedef struct QDate QDate;
|
|
typedef struct QLocale QLocale;
|
|
#endif
|
|
|
|
QCalendar* QCalendar_new();
|
|
QCalendar* QCalendar_new2(uintptr_t system);
|
|
bool QCalendar_IsValid(const QCalendar* self);
|
|
int QCalendar_DaysInMonth(const QCalendar* self, int month);
|
|
int QCalendar_DaysInYear(const QCalendar* self, int year);
|
|
int QCalendar_MonthsInYear(const QCalendar* self, int year);
|
|
bool QCalendar_IsDateValid(const QCalendar* self, int year, int month, int day);
|
|
bool QCalendar_IsLeapYear(const QCalendar* self, int year);
|
|
bool QCalendar_IsGregorian(const QCalendar* self);
|
|
bool QCalendar_IsLunar(const QCalendar* self);
|
|
bool QCalendar_IsLuniSolar(const QCalendar* self);
|
|
bool QCalendar_IsSolar(const QCalendar* self);
|
|
bool QCalendar_IsProleptic(const QCalendar* self);
|
|
bool QCalendar_HasYearZero(const QCalendar* self);
|
|
int QCalendar_MaximumDaysInMonth(const QCalendar* self);
|
|
int QCalendar_MinimumDaysInMonth(const QCalendar* self);
|
|
int QCalendar_MaximumMonthsInYear(const QCalendar* self);
|
|
void QCalendar_Name(const QCalendar* self, char** _out, int* _out_Strlen);
|
|
QDate* QCalendar_DateFromParts(const QCalendar* self, int year, int month, int day);
|
|
QDate* QCalendar_DateFromPartsWithParts(const QCalendar* self, QCalendar__YearMonthDay* parts);
|
|
QCalendar__YearMonthDay* QCalendar_PartsFromDate(const QCalendar* self, QDate* date);
|
|
int QCalendar_DayOfWeek(const QCalendar* self, QDate* date);
|
|
void QCalendar_MonthName(const QCalendar* self, QLocale* locale, int month, char** _out, int* _out_Strlen);
|
|
void QCalendar_StandaloneMonthName(const QCalendar* self, QLocale* locale, int month, char** _out, int* _out_Strlen);
|
|
void QCalendar_WeekDayName(const QCalendar* self, QLocale* locale, int day, char** _out, int* _out_Strlen);
|
|
void QCalendar_StandaloneWeekDayName(const QCalendar* self, QLocale* locale, int day, char** _out, int* _out_Strlen);
|
|
void QCalendar_AvailableCalendars(char*** _out, int** _out_Lengths, size_t* _out_len);
|
|
int QCalendar_DaysInMonth2(const QCalendar* self, int month, int year);
|
|
void QCalendar_MonthName3(const QCalendar* self, QLocale* locale, int month, int year, char** _out, int* _out_Strlen);
|
|
void QCalendar_MonthName4(const QCalendar* self, QLocale* locale, int month, int year, uintptr_t format, char** _out, int* _out_Strlen);
|
|
void QCalendar_StandaloneMonthName3(const QCalendar* self, QLocale* locale, int month, int year, char** _out, int* _out_Strlen);
|
|
void QCalendar_StandaloneMonthName4(const QCalendar* self, QLocale* locale, int month, int year, uintptr_t format, char** _out, int* _out_Strlen);
|
|
void QCalendar_WeekDayName3(const QCalendar* self, QLocale* locale, int day, uintptr_t format, char** _out, int* _out_Strlen);
|
|
void QCalendar_StandaloneWeekDayName3(const QCalendar* self, QLocale* locale, int day, uintptr_t format, char** _out, int* _out_Strlen);
|
|
void QCalendar_Delete(QCalendar* self);
|
|
|
|
QCalendar__YearMonthDay* QCalendar__YearMonthDay_new();
|
|
QCalendar__YearMonthDay* QCalendar__YearMonthDay_new2(int y);
|
|
QCalendar__YearMonthDay* QCalendar__YearMonthDay_new3(int y, int m);
|
|
QCalendar__YearMonthDay* QCalendar__YearMonthDay_new4(int y, int m, int d);
|
|
bool QCalendar__YearMonthDay_IsValid(const QCalendar__YearMonthDay* self);
|
|
void QCalendar__YearMonthDay_Delete(QCalendar__YearMonthDay* self);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|