4 @SuppressWarnings public class QCalendarWidget : QWidget{
5 public QCalendarWidget(){
8 public QCalendarWidget(long handle){
13 nativehandle = QtXnl.createQObject(QType.qtCalendarWidget,
this, 0);
14 if (nativehandle == 0){
20 public bool create(@NotNilptr QWidget parent)
override {
21 nativehandle = QtXnl.createQObject(QType.qtCalendarWidget,
this, parent.nativehandle);
22 if (nativehandle == 0){
30 QtXnl.widget_set_v3int_value(nativehandle, Constant.QCW_SETSELECTEDDATE, date.year, date.mon, date.day);
34 QtXnl.widget_set_v3int_value(nativehandle, Constant.QCW_SETDATERANGE, (min.year << 16) | max.year, (min.mon << 16) | max.mon, (min.day << 16) | max.day);
38 QtXnl.widget_set_v3int_value(nativehandle, Constant.QCW_SETCURRENTPAGE, year, month, 0);
42 QtXnl.widget_set_bool_value(nativehandle, Constant.QCW_SETGRIDVISIBLE, show);
46 QtXnl.widget_set_bool_value(nativehandle, Constant.QCW_SETNAVIGATIONBARVISIBLE, visible);
50 QtXnl.widget_slot(nativehandle, Constant.QCW_SHOWNEXTMONTH);
54 QtXnl.widget_slot(nativehandle, Constant.QCW_SHOWPREVIOUSMONTH);
58 QtXnl.widget_slot(nativehandle, Constant.QCW_SHOWNEXTYEAR);
62 QtXnl.widget_slot(nativehandle, Constant.QCW_SHOWPREVIOUSYEAR);
66 QtXnl.widget_slot(nativehandle, Constant.QCW_SHOWSELECTEDDATE);
70 QtXnl.widget_slot(nativehandle, Constant.QCW_SHOWTODAY);