From 3921c46328e1729347c2f061920f24ef78faf6e0 Mon Sep 17 00:00:00 2001 From: mappu Date: Wed, 4 Sep 2024 18:54:22 +1200 Subject: [PATCH] qt: rebuild to add enums --- qt/gen_qabstractanimation.go | 38 +- qt/gen_qabstracteventdispatcher.go | 6 +- qt/gen_qabstractitemdelegate.go | 14 +- qt/gen_qabstractitemmodel.go | 41 +- qt/gen_qabstractitemview.go | 102 +- qt/gen_qabstractproxymodel.go | 14 +- qt/gen_qabstractscrollarea.go | 26 +- qt/gen_qabstractslider.go | 21 +- qt/gen_qabstractspinbox.go | 48 +- qt/gen_qabstracttextdocumentlayout.go | 2 +- qt/gen_qabstracttransition.go | 13 +- qt/gen_qaccessible.go | 244 +++- qt/gen_qaccessibleobject.go | 8 +- qt/gen_qaccessiblewidget.go | 10 +- qt/gen_qaction.go | 49 +- qt/gen_qactiongroup.go | 14 +- qt/gen_qapplication.go | 14 +- qt/gen_qarraydata.go | 23 +- qt/gen_qbasictimer.go | 2 +- qt/gen_qbitmap.go | 2 +- qt/gen_qboxlayout.go | 21 +- qt/gen_qbrush.go | 249 +++- qt/gen_qbytearray.go | 40 +- qt/gen_qcalendar.go | 28 +- qt/gen_qcalendarwidget.go | 51 +- qt/gen_qcborcommon.go | 57 + qt/gen_qcborstreamreader.go | 36 +- qt/gen_qcborvalue.go | 50 +- qt/gen_qchar.go | 404 +++++- qt/gen_qcheckbox.go | 6 +- qt/gen_qclipboard.go | 31 +- qt/gen_qcollator.go | 6 +- qt/gen_qcolor.go | 36 +- qt/gen_qcolordialog.go | 14 +- qt/gen_qcolormap.go | 12 +- qt/gen_qcolorspace.go | 60 +- qt/gen_qcolumnview.go | 2 +- qt/gen_qcombobox.go | 43 +- qt/gen_qcommandlineoption.go | 7 + qt/gen_qcommandlineparser.go | 18 +- qt/gen_qcommonstyle.go | 66 +- qt/gen_qcompleter.go | 34 +- qt/gen_qconcatenatetablesproxymodel.go | 8 +- qt/gen_qcoreapplication.go | 12 +- qt/gen_qcoreevent.go | 185 ++- qt/gen_qcryptographichash.go | 30 +- qt/gen_qcursor.go | 12 +- qt/gen_qdatastream.go | 79 +- qt/gen_qdatawidgetmapper.go | 19 +- qt/gen_qdatetime.go | 68 +- qt/gen_qdatetimeedit.go | 36 +- qt/gen_qdeadlinetimer.go | 30 +- qt/gen_qdebug.go | 8 + qt/gen_qdialog.go | 13 +- qt/gen_qdialogbuttonbox.go | 82 +- qt/gen_qdir.go | 42 + qt/gen_qdiriterator.go | 8 + qt/gen_qdirmodel.go | 16 +- qt/gen_qdockwidget.go | 17 +- qt/gen_qdrag.go | 30 +- qt/gen_qdrawutil.go | 22 +- qt/gen_qeasingcurve.go | 62 +- qt/gen_qelapsedtimer.go | 14 +- qt/gen_qevent.go | 238 ++-- qt/gen_qeventloop.go | 12 + qt/gen_qeventtransition.go | 10 +- qt/gen_qfiledevice.go | 70 +- qt/gen_qfiledialog.go | 75 +- qt/gen_qfileiconprovider.go | 20 +- qt/gen_qfilesystemmodel.go | 31 +- qt/gen_qfont.go | 163 ++- qt/gen_qfontcombobox.go | 16 +- qt/gen_qfontdatabase.go | 70 +- qt/gen_qfontdialog.go | 17 +- qt/gen_qfontinfo.go | 8 +- qt/gen_qfontmetrics.go | 8 +- qt/gen_qformlayout.go | 30 +- qt/gen_qframe.go | 39 +- qt/gen_qfutureinterface.go | 16 +- qt/gen_qgesture.go | 57 +- qt/gen_qgesturerecognizer.go | 19 +- qt/gen_qglyphrun.go | 14 +- qt/gen_qgraphicsanchorlayout.go | 12 +- qt/gen_qgraphicseffect.go | 25 + qt/gen_qgraphicsgridlayout.go | 4 +- qt/gen_qgraphicsitem.go | 199 ++- qt/gen_qgraphicslayoutitem.go | 8 +- qt/gen_qgraphicslinearlayout.go | 14 +- qt/gen_qgraphicsproxywidget.go | 6 + qt/gen_qgraphicsscene.go | 68 +- qt/gen_qgraphicssceneevent.go | 70 +- qt/gen_qgraphicstransform.go | 2 +- qt/gen_qgraphicsview.go | 96 +- qt/gen_qgraphicswidget.go | 30 +- qt/gen_qgridlayout.go | 8 +- qt/gen_qguiapplication.go | 20 +- qt/gen_qheaderview.go | 38 +- qt/gen_qhistorystate.go | 17 +- qt/gen_qicon.go | 60 +- qt/gen_qiconengine.go | 25 +- qt/gen_qidentityproxymodel.go | 6 +- qt/gen_qimage.go | 101 +- qt/gen_qimageiohandler.go | 52 +- qt/gen_qimagereader.go | 20 +- qt/gen_qimagewriter.go | 15 +- qt/gen_qinputdialog.go | 44 +- qt/gen_qinputmethod.go | 17 +- qt/gen_qiodevice.go | 15 + qt/gen_qitemselectionmodel.go | 16 + qt/gen_qjsondocument.go | 40 +- qt/gen_qjsonvalue.go | 22 +- qt/gen_qkeyeventtransition.go | 4 +- qt/gen_qkeysequence.go | 109 +- qt/gen_qlabel.go | 10 +- qt/gen_qlayout.go | 17 +- qt/gen_qlayoutitem.go | 8 +- qt/gen_qlcdnumber.go | 29 +- qt/gen_qlibrary.go | 10 + qt/gen_qlibraryinfo.go | 22 +- qt/gen_qline.go | 12 +- qt/gen_qlineedit.go | 36 +- qt/gen_qlistview.go | 68 +- qt/gen_qlistwidget.go | 17 +- qt/gen_qlocale.go | 968 +++++++++++++- qt/gen_qlockfile.go | 13 +- qt/gen_qmainwindow.go | 57 +- qt/gen_qmap.go | 19 +- qt/gen_qmatrix.go | 2 +- qt/gen_qmatrix4x4.go | 2 +- qt/gen_qmdiarea.go | 53 +- qt/gen_qmdisubwindow.go | 15 +- qt/gen_qmenubar.go | 4 +- qt/gen_qmessageauthenticationcode.go | 6 +- qt/gen_qmessagebox.go | 170 ++- qt/gen_qmetaobject.go | 81 +- qt/gen_qmetatype.go | 136 +- qt/gen_qmimedatabase.go | 12 +- qt/gen_qmouseeventtransition.go | 10 +- qt/gen_qmovie.go | 33 +- qt/gen_qmutex.go | 9 +- qt/gen_qnamespace.go | 1688 ++++++++++++++++++++++++ qt/gen_qobject.go | 12 +- qt/gen_qobjectdefs.go | 62 +- qt/gen_qoffscreensurface.go | 4 +- qt/gen_qoperatingsystemversion.go | 26 +- qt/gen_qpagedpaintdevice.go | 150 ++- qt/gen_qpagelayout.go | 55 +- qt/gen_qpagesize.go | 211 ++- qt/gen_qpaintdevice.go | 17 + qt/gen_qpaintengine.go | 108 +- qt/gen_qpainter.go | 127 +- qt/gen_qpainterpath.go | 33 +- qt/gen_qpalette.go | 71 +- qt/gen_qpdfwriter.go | 8 +- qt/gen_qpen.go | 26 +- qt/gen_qpixelformat.go | 107 +- qt/gen_qpixmap.go | 18 +- qt/gen_qplaintextedit.go | 29 +- qt/gen_qprocess.go | 94 +- qt/gen_qprogressbar.go | 19 +- qt/gen_qproxystyle.go | 60 +- qt/gen_qquaternion.go | 2 +- qt/gen_qrawfont.go | 43 +- qt/gen_qreadwritelock.go | 9 +- qt/gen_qregexp.go | 39 +- qt/gen_qregion.go | 11 +- qt/gen_qregularexpression.go | 48 +- qt/gen_qresource.go | 12 +- qt/gen_qrubberband.go | 15 +- qt/gen_qscreen.go | 26 +- qt/gen_qscrollbar.go | 4 +- qt/gen_qscroller.go | 48 +- qt/gen_qscrollerproperties.go | 47 +- qt/gen_qsessionmanager.go | 15 +- qt/gen_qsettings.go | 79 +- qt/gen_qsharedmemory.go | 29 +- qt/gen_qshortcut.go | 8 +- qt/gen_qsize.go | 16 +- qt/gen_qsizepolicy.go | 63 +- qt/gen_qslider.go | 21 +- qt/gen_qsocketnotifier.go | 16 +- qt/gen_qsortfilterproxymodel.go | 32 +- qt/gen_qspinbox.go | 16 +- qt/gen_qsplitter.go | 18 +- qt/gen_qstackedlayout.go | 13 +- qt/gen_qstandarditemmodel.go | 27 +- qt/gen_qstandardpaths.go | 46 +- qt/gen_qstate.go | 24 +- qt/gen_qstatemachine.go | 33 +- qt/gen_qstatictext.go | 19 +- qt/gen_qstringlistmodel.go | 2 +- qt/gen_qstringmatcher.go | 10 +- qt/gen_qstringview.go | 14 +- qt/gen_qstyle.go | 705 +++++++++- qt/gen_qstylehints.go | 8 +- qt/gen_qstyleoption.go | 541 ++++++++ qt/gen_qstylepainter.go | 8 +- qt/gen_qsurface.go | 26 +- qt/gen_qsurfaceformat.go | 72 +- qt/gen_qsystemsemaphore.go | 27 +- qt/gen_qsystemtrayicon.go | 25 +- qt/gen_qtabbar.go | 50 +- qt/gen_qtableview.go | 10 +- qt/gen_qtablewidget.go | 17 +- qt/gen_qtabwidget.go | 38 +- qt/gen_qtextboundaryfinder.go | 32 +- qt/gen_qtextbrowser.go | 6 +- qt/gen_qtextcodec.go | 9 + qt/gen_qtextcursor.go | 62 +- qt/gen_qtextdocument.go | 54 +- qt/gen_qtextedit.go | 37 +- qt/gen_qtextformat.go | 344 ++++- qt/gen_qtextlayout.go | 41 +- qt/gen_qtextobject.go | 4 +- qt/gen_qtextoption.go | 46 +- qt/gen_qtextstream.go | 54 +- qt/gen_qthread.go | 21 +- qt/gen_qtimeline.go | 42 +- qt/gen_qtimer.go | 6 +- qt/gen_qtimezone.go | 48 +- qt/gen_qtoolbar.go | 18 +- qt/gen_qtoolbutton.go | 26 +- qt/gen_qtouchdevice.go | 25 +- qt/gen_qtransform.go | 21 +- qt/gen_qtransposeproxymodel.go | 10 +- qt/gen_qtreeview.go | 4 +- qt/gen_qtreewidget.go | 33 +- qt/gen_qtreewidgetitemiterator.go | 25 + qt/gen_qurl.go | 70 +- qt/gen_quuid.go | 42 +- qt/gen_qvalidator.go | 43 +- qt/gen_qvariant.go | 77 +- qt/gen_qvector2d.go | 2 +- qt/gen_qvector3d.go | 2 +- qt/gen_qvector4d.go | 2 +- qt/gen_qwidget.go | 72 +- qt/gen_qwindow.go | 68 +- qt/gen_qwizard.go | 92 +- qt/gen_qxmlstream.go | 48 +- 239 files changed, 11318 insertions(+), 2075 deletions(-) diff --git a/qt/gen_qabstractanimation.go b/qt/gen_qabstractanimation.go index a6aeb8d8..d1816160 100644 --- a/qt/gen_qabstractanimation.go +++ b/qt/gen_qabstractanimation.go @@ -13,6 +13,28 @@ import ( "unsafe" ) +type QAbstractAnimation__Direction int + +const ( + QAbstractAnimation__Direction__Forward QAbstractAnimation__Direction = 0 + QAbstractAnimation__Direction__Backward QAbstractAnimation__Direction = 1 +) + +type QAbstractAnimation__State int + +const ( + QAbstractAnimation__State__Stopped QAbstractAnimation__State = 0 + QAbstractAnimation__State__Paused QAbstractAnimation__State = 1 + QAbstractAnimation__State__Running QAbstractAnimation__State = 2 +) + +type QAbstractAnimation__DeletionPolicy int + +const ( + QAbstractAnimation__DeletionPolicy__KeepWhenStopped QAbstractAnimation__DeletionPolicy = 0 + QAbstractAnimation__DeletionPolicy__DeleteWhenStopped QAbstractAnimation__DeletionPolicy = 1 +) + type QAbstractAnimation struct { h *C.QAbstractAnimation *QObject @@ -63,9 +85,9 @@ func QAbstractAnimation_TrUtf8(s string) string { return ret } -func (this *QAbstractAnimation) State() uintptr { +func (this *QAbstractAnimation) State() QAbstractAnimation__State { ret := C.QAbstractAnimation_State(this.h) - return (uintptr)(ret) + return (QAbstractAnimation__State)(ret) } func (this *QAbstractAnimation) Group() *QAnimationGroup { @@ -73,12 +95,12 @@ func (this *QAbstractAnimation) Group() *QAnimationGroup { return newQAnimationGroup_U(unsafe.Pointer(ret)) } -func (this *QAbstractAnimation) Direction() uintptr { +func (this *QAbstractAnimation) Direction() QAbstractAnimation__Direction { ret := C.QAbstractAnimation_Direction(this.h) - return (uintptr)(ret) + return (QAbstractAnimation__Direction)(ret) } -func (this *QAbstractAnimation) SetDirection(direction uintptr) { +func (this *QAbstractAnimation) SetDirection(direction QAbstractAnimation__Direction) { C.QAbstractAnimation_SetDirection(this.h, (C.uintptr_t)(direction)) } @@ -128,7 +150,7 @@ func (this *QAbstractAnimation) OnFinished(slot func()) { C.QAbstractAnimation_connect_Finished(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QAbstractAnimation) StateChanged(newState uintptr, oldState uintptr) { +func (this *QAbstractAnimation) StateChanged(newState QAbstractAnimation__State, oldState QAbstractAnimation__State) { C.QAbstractAnimation_StateChanged(this.h, (C.uintptr_t)(newState), (C.uintptr_t)(oldState)) } @@ -152,7 +174,7 @@ func (this *QAbstractAnimation) OnCurrentLoopChanged(slot func()) { C.QAbstractAnimation_connect_CurrentLoopChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QAbstractAnimation) DirectionChanged(param1 uintptr) { +func (this *QAbstractAnimation) DirectionChanged(param1 QAbstractAnimation__Direction) { C.QAbstractAnimation_DirectionChanged(this.h, (C.uintptr_t)(param1)) } @@ -240,7 +262,7 @@ func QAbstractAnimation_TrUtf83(s string, c string, n int) string { return ret } -func (this *QAbstractAnimation) Start1(policy uintptr) { +func (this *QAbstractAnimation) Start1(policy QAbstractAnimation__DeletionPolicy) { C.QAbstractAnimation_Start1(this.h, (C.uintptr_t)(policy)) } diff --git a/qt/gen_qabstracteventdispatcher.go b/qt/gen_qabstracteventdispatcher.go index 391db9df..4cb67d1a 100644 --- a/qt/gen_qabstracteventdispatcher.go +++ b/qt/gen_qabstracteventdispatcher.go @@ -86,12 +86,12 @@ func (this *QAbstractEventDispatcher) UnregisterSocketNotifier(notifier *QSocket C.QAbstractEventDispatcher_UnregisterSocketNotifier(this.h, notifier.cPointer()) } -func (this *QAbstractEventDispatcher) RegisterTimer(interval int, timerType uintptr, object *QObject) int { +func (this *QAbstractEventDispatcher) RegisterTimer(interval int, timerType TimerType, object *QObject) int { ret := C.QAbstractEventDispatcher_RegisterTimer(this.h, (C.int)(interval), (C.uintptr_t)(timerType), object.cPointer()) return (int)(ret) } -func (this *QAbstractEventDispatcher) RegisterTimer2(timerId int, interval int, timerType uintptr, object *QObject) { +func (this *QAbstractEventDispatcher) RegisterTimer2(timerId int, interval int, timerType TimerType, object *QObject) { C.QAbstractEventDispatcher_RegisterTimer2(this.h, (C.int)(timerId), (C.int)(interval), (C.uintptr_t)(timerType), object.cPointer()) } @@ -259,7 +259,7 @@ func newQAbstractEventDispatcher__TimerInfo_U(h unsafe.Pointer) *QAbstractEventD } // NewQAbstractEventDispatcher__TimerInfo constructs a new QAbstractEventDispatcher::TimerInfo object. -func NewQAbstractEventDispatcher__TimerInfo(id int, i int, t uintptr) *QAbstractEventDispatcher__TimerInfo { +func NewQAbstractEventDispatcher__TimerInfo(id int, i int, t TimerType) *QAbstractEventDispatcher__TimerInfo { ret := C.QAbstractEventDispatcher__TimerInfo_new((C.int)(id), (C.int)(i), (C.uintptr_t)(t)) return newQAbstractEventDispatcher__TimerInfo(ret) } diff --git a/qt/gen_qabstractitemdelegate.go b/qt/gen_qabstractitemdelegate.go index 5ec98e2f..7535cf8b 100644 --- a/qt/gen_qabstractitemdelegate.go +++ b/qt/gen_qabstractitemdelegate.go @@ -14,6 +14,16 @@ import ( "unsafe" ) +type QAbstractItemDelegate__EndEditHint int + +const ( + QAbstractItemDelegate__EndEditHint__NoHint QAbstractItemDelegate__EndEditHint = 0 + QAbstractItemDelegate__EndEditHint__EditNextItem QAbstractItemDelegate__EndEditHint = 1 + QAbstractItemDelegate__EndEditHint__EditPreviousItem QAbstractItemDelegate__EndEditHint = 2 + QAbstractItemDelegate__EndEditHint__SubmitModelCache QAbstractItemDelegate__EndEditHint = 3 + QAbstractItemDelegate__EndEditHint__RevertModelCache QAbstractItemDelegate__EndEditHint = 4 +) + type QAbstractItemDelegate struct { h *C.QAbstractItemDelegate *QObject @@ -105,7 +115,7 @@ func (this *QAbstractItemDelegate) EditorEvent(event *QEvent, model *QAbstractIt return (bool)(ret) } -func QAbstractItemDelegate_ElidedText(fontMetrics *QFontMetrics, width int, mode uintptr, text string) string { +func QAbstractItemDelegate_ElidedText(fontMetrics *QFontMetrics, width int, mode TextElideMode, text string) string { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) var _out *C.char = nil @@ -214,7 +224,7 @@ func QAbstractItemDelegate_TrUtf83(s string, c string, n int) string { return ret } -func (this *QAbstractItemDelegate) CloseEditor2(editor *QWidget, hint uintptr) { +func (this *QAbstractItemDelegate) CloseEditor2(editor *QWidget, hint QAbstractItemDelegate__EndEditHint) { C.QAbstractItemDelegate_CloseEditor2(this.h, editor.cPointer(), (C.uintptr_t)(hint)) } diff --git a/qt/gen_qabstractitemmodel.go b/qt/gen_qabstractitemmodel.go index 8d746805..0ff3a213 100644 --- a/qt/gen_qabstractitemmodel.go +++ b/qt/gen_qabstractitemmodel.go @@ -14,6 +14,23 @@ import ( "unsafe" ) +type QAbstractItemModel__LayoutChangeHint int + +const ( + QAbstractItemModel__LayoutChangeHint__NoLayoutChangeHint QAbstractItemModel__LayoutChangeHint = 0 + QAbstractItemModel__LayoutChangeHint__VerticalSortHint QAbstractItemModel__LayoutChangeHint = 1 + QAbstractItemModel__LayoutChangeHint__HorizontalSortHint QAbstractItemModel__LayoutChangeHint = 2 +) + +type QAbstractItemModel__CheckIndexOption int + +const ( + QAbstractItemModel__CheckIndexOption__NoOption QAbstractItemModel__CheckIndexOption = 0 + QAbstractItemModel__CheckIndexOption__IndexIsValid QAbstractItemModel__CheckIndexOption = 1 + QAbstractItemModel__CheckIndexOption__DoNotUseParent QAbstractItemModel__CheckIndexOption = 2 + QAbstractItemModel__CheckIndexOption__ParentIsInvalid QAbstractItemModel__CheckIndexOption = 4 +) + type QModelIndex struct { h *C.QModelIndex } @@ -459,7 +476,7 @@ func (this *QAbstractItemModel) SetData(index *QModelIndex, value *QVariant) boo return (bool)(ret) } -func (this *QAbstractItemModel) HeaderData(section int, orientation uintptr) *QVariant { +func (this *QAbstractItemModel) HeaderData(section int, orientation Orientation) *QVariant { ret := C.QAbstractItemModel_HeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -470,7 +487,7 @@ func (this *QAbstractItemModel) HeaderData(section int, orientation uintptr) *QV return ret1 } -func (this *QAbstractItemModel) SetHeaderData(section int, orientation uintptr, value *QVariant) bool { +func (this *QAbstractItemModel) SetHeaderData(section int, orientation Orientation, value *QVariant) bool { ret := C.QAbstractItemModel_SetHeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer()) return (bool)(ret) } @@ -501,12 +518,12 @@ func (this *QAbstractItemModel) MimeData(indexes []QModelIndex) *QMimeData { return newQMimeData_U(unsafe.Pointer(ret)) } -func (this *QAbstractItemModel) CanDropMimeData(data *QMimeData, action uintptr, row int, column int, parent *QModelIndex) bool { +func (this *QAbstractItemModel) CanDropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool { ret := C.QAbstractItemModel_CanDropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()) return (bool)(ret) } -func (this *QAbstractItemModel) DropMimeData(data *QMimeData, action uintptr, row int, column int, parent *QModelIndex) bool { +func (this *QAbstractItemModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool { ret := C.QAbstractItemModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()) return (bool)(ret) } @@ -643,7 +660,7 @@ func (this *QAbstractItemModel) DataChanged(topLeft *QModelIndex, bottomRight *Q C.QAbstractItemModel_DataChanged(this.h, topLeft.cPointer(), bottomRight.cPointer()) } -func (this *QAbstractItemModel) HeaderDataChanged(orientation uintptr, first int, last int) { +func (this *QAbstractItemModel) HeaderDataChanged(orientation Orientation, first int, last int) { C.QAbstractItemModel_HeaderDataChanged(this.h, (C.uintptr_t)(orientation), (C.int)(first), (C.int)(last)) } @@ -771,7 +788,7 @@ func (this *QAbstractItemModel) SetData3(index *QModelIndex, value *QVariant, ro return (bool)(ret) } -func (this *QAbstractItemModel) HeaderData3(section int, orientation uintptr, role int) *QVariant { +func (this *QAbstractItemModel) HeaderData3(section int, orientation Orientation, role int) *QVariant { ret := C.QAbstractItemModel_HeaderData3(this.h, (C.int)(section), (C.uintptr_t)(orientation), (C.int)(role)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -782,7 +799,7 @@ func (this *QAbstractItemModel) HeaderData3(section int, orientation uintptr, ro return ret1 } -func (this *QAbstractItemModel) SetHeaderData4(section int, orientation uintptr, value *QVariant, role int) bool { +func (this *QAbstractItemModel) SetHeaderData4(section int, orientation Orientation, value *QVariant, role int) bool { ret := C.QAbstractItemModel_SetHeaderData4(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer(), (C.int)(role)) return (bool)(ret) } @@ -827,7 +844,7 @@ func (this *QAbstractItemModel) RemoveColumn2(column int, parent *QModelIndex) b return (bool)(ret) } -func (this *QAbstractItemModel) Sort2(column int, order uintptr) { +func (this *QAbstractItemModel) Sort2(column int, order SortOrder) { C.QAbstractItemModel_Sort2(this.h, (C.int)(column), (C.uintptr_t)(order)) } @@ -890,7 +907,7 @@ func (this *QAbstractItemModel) LayoutChanged1(parents []QPersistentModelIndex) C.QAbstractItemModel_LayoutChanged1(this.h, &parents_CArray[0], C.size_t(len(parents))) } -func (this *QAbstractItemModel) LayoutChanged2(parents []QPersistentModelIndex, hint uintptr) { +func (this *QAbstractItemModel) LayoutChanged2(parents []QPersistentModelIndex, hint QAbstractItemModel__LayoutChangeHint) { // For the C ABI, malloc a C array of raw pointers parents_CArray := (*[0xffff]*C.QPersistentModelIndex)(C.malloc(C.size_t(8 * len(parents)))) defer C.free(unsafe.Pointer(parents_CArray)) @@ -918,7 +935,7 @@ func (this *QAbstractItemModel) LayoutAboutToBeChanged1(parents []QPersistentMod C.QAbstractItemModel_LayoutAboutToBeChanged1(this.h, &parents_CArray[0], C.size_t(len(parents))) } -func (this *QAbstractItemModel) LayoutAboutToBeChanged2(parents []QPersistentModelIndex, hint uintptr) { +func (this *QAbstractItemModel) LayoutAboutToBeChanged2(parents []QPersistentModelIndex, hint QAbstractItemModel__LayoutChangeHint) { // For the C ABI, malloc a C array of raw pointers parents_CArray := (*[0xffff]*C.QPersistentModelIndex)(C.malloc(C.size_t(8 * len(parents)))) defer C.free(unsafe.Pointer(parents_CArray)) @@ -1012,7 +1029,7 @@ func (this *QAbstractTableModel) Sibling(row int, column int, idx *QModelIndex) return ret1 } -func (this *QAbstractTableModel) DropMimeData(data *QMimeData, action uintptr, row int, column int, parent *QModelIndex) bool { +func (this *QAbstractTableModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool { ret := C.QAbstractTableModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()) return (bool)(ret) } @@ -1161,7 +1178,7 @@ func (this *QAbstractListModel) Sibling(row int, column int, idx *QModelIndex) * return ret1 } -func (this *QAbstractListModel) DropMimeData(data *QMimeData, action uintptr, row int, column int, parent *QModelIndex) bool { +func (this *QAbstractListModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool { ret := C.QAbstractListModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()) return (bool)(ret) } diff --git a/qt/gen_qabstractitemview.go b/qt/gen_qabstractitemview.go index c36f4b88..d43d60ea 100644 --- a/qt/gen_qabstractitemview.go +++ b/qt/gen_qabstractitemview.go @@ -14,6 +14,62 @@ import ( "unsafe" ) +type QAbstractItemView__SelectionMode int + +const ( + QAbstractItemView__SelectionMode__NoSelection QAbstractItemView__SelectionMode = 0 + QAbstractItemView__SelectionMode__SingleSelection QAbstractItemView__SelectionMode = 1 + QAbstractItemView__SelectionMode__MultiSelection QAbstractItemView__SelectionMode = 2 + QAbstractItemView__SelectionMode__ExtendedSelection QAbstractItemView__SelectionMode = 3 + QAbstractItemView__SelectionMode__ContiguousSelection QAbstractItemView__SelectionMode = 4 +) + +type QAbstractItemView__SelectionBehavior int + +const ( + QAbstractItemView__SelectionBehavior__SelectItems QAbstractItemView__SelectionBehavior = 0 + QAbstractItemView__SelectionBehavior__SelectRows QAbstractItemView__SelectionBehavior = 1 + QAbstractItemView__SelectionBehavior__SelectColumns QAbstractItemView__SelectionBehavior = 2 +) + +type QAbstractItemView__ScrollHint int + +const ( + QAbstractItemView__ScrollHint__EnsureVisible QAbstractItemView__ScrollHint = 0 + QAbstractItemView__ScrollHint__PositionAtTop QAbstractItemView__ScrollHint = 1 + QAbstractItemView__ScrollHint__PositionAtBottom QAbstractItemView__ScrollHint = 2 + QAbstractItemView__ScrollHint__PositionAtCenter QAbstractItemView__ScrollHint = 3 +) + +type QAbstractItemView__EditTrigger int + +const ( + QAbstractItemView__EditTrigger__NoEditTriggers QAbstractItemView__EditTrigger = 0 + QAbstractItemView__EditTrigger__CurrentChanged QAbstractItemView__EditTrigger = 1 + QAbstractItemView__EditTrigger__DoubleClicked QAbstractItemView__EditTrigger = 2 + QAbstractItemView__EditTrigger__SelectedClicked QAbstractItemView__EditTrigger = 4 + QAbstractItemView__EditTrigger__EditKeyPressed QAbstractItemView__EditTrigger = 8 + QAbstractItemView__EditTrigger__AnyKeyPressed QAbstractItemView__EditTrigger = 16 + QAbstractItemView__EditTrigger__AllEditTriggers QAbstractItemView__EditTrigger = 31 +) + +type QAbstractItemView__ScrollMode int + +const ( + QAbstractItemView__ScrollMode__ScrollPerItem QAbstractItemView__ScrollMode = 0 + QAbstractItemView__ScrollMode__ScrollPerPixel QAbstractItemView__ScrollMode = 1 +) + +type QAbstractItemView__DragDropMode int + +const ( + QAbstractItemView__DragDropMode__NoDragDrop QAbstractItemView__DragDropMode = 0 + QAbstractItemView__DragDropMode__DragOnly QAbstractItemView__DragDropMode = 1 + QAbstractItemView__DragDropMode__DropOnly QAbstractItemView__DragDropMode = 2 + QAbstractItemView__DragDropMode__DragDrop QAbstractItemView__DragDropMode = 3 + QAbstractItemView__DragDropMode__InternalMove QAbstractItemView__DragDropMode = 4 +) + type QAbstractItemView struct { h *C.QAbstractItemView *QAbstractScrollArea @@ -91,22 +147,22 @@ func (this *QAbstractItemView) ItemDelegate() *QAbstractItemDelegate { return newQAbstractItemDelegate_U(unsafe.Pointer(ret)) } -func (this *QAbstractItemView) SetSelectionMode(mode uintptr) { +func (this *QAbstractItemView) SetSelectionMode(mode QAbstractItemView__SelectionMode) { C.QAbstractItemView_SetSelectionMode(this.h, (C.uintptr_t)(mode)) } -func (this *QAbstractItemView) SelectionMode() uintptr { +func (this *QAbstractItemView) SelectionMode() QAbstractItemView__SelectionMode { ret := C.QAbstractItemView_SelectionMode(this.h) - return (uintptr)(ret) + return (QAbstractItemView__SelectionMode)(ret) } -func (this *QAbstractItemView) SetSelectionBehavior(behavior uintptr) { +func (this *QAbstractItemView) SetSelectionBehavior(behavior QAbstractItemView__SelectionBehavior) { C.QAbstractItemView_SetSelectionBehavior(this.h, (C.uintptr_t)(behavior)) } -func (this *QAbstractItemView) SelectionBehavior() uintptr { +func (this *QAbstractItemView) SelectionBehavior() QAbstractItemView__SelectionBehavior { ret := C.QAbstractItemView_SelectionBehavior(this.h) - return (uintptr)(ret) + return (QAbstractItemView__SelectionBehavior)(ret) } func (this *QAbstractItemView) CurrentIndex() *QModelIndex { @@ -140,26 +196,26 @@ func (this *QAbstractItemView) EditTriggers() int { return (int)(ret) } -func (this *QAbstractItemView) SetVerticalScrollMode(mode uintptr) { +func (this *QAbstractItemView) SetVerticalScrollMode(mode QAbstractItemView__ScrollMode) { C.QAbstractItemView_SetVerticalScrollMode(this.h, (C.uintptr_t)(mode)) } -func (this *QAbstractItemView) VerticalScrollMode() uintptr { +func (this *QAbstractItemView) VerticalScrollMode() QAbstractItemView__ScrollMode { ret := C.QAbstractItemView_VerticalScrollMode(this.h) - return (uintptr)(ret) + return (QAbstractItemView__ScrollMode)(ret) } func (this *QAbstractItemView) ResetVerticalScrollMode() { C.QAbstractItemView_ResetVerticalScrollMode(this.h) } -func (this *QAbstractItemView) SetHorizontalScrollMode(mode uintptr) { +func (this *QAbstractItemView) SetHorizontalScrollMode(mode QAbstractItemView__ScrollMode) { C.QAbstractItemView_SetHorizontalScrollMode(this.h, (C.uintptr_t)(mode)) } -func (this *QAbstractItemView) HorizontalScrollMode() uintptr { +func (this *QAbstractItemView) HorizontalScrollMode() QAbstractItemView__ScrollMode { ret := C.QAbstractItemView_HorizontalScrollMode(this.h) - return (uintptr)(ret) + return (QAbstractItemView__ScrollMode)(ret) } func (this *QAbstractItemView) ResetHorizontalScrollMode() { @@ -220,22 +276,22 @@ func (this *QAbstractItemView) DragDropOverwriteMode() bool { return (bool)(ret) } -func (this *QAbstractItemView) SetDragDropMode(behavior uintptr) { +func (this *QAbstractItemView) SetDragDropMode(behavior QAbstractItemView__DragDropMode) { C.QAbstractItemView_SetDragDropMode(this.h, (C.uintptr_t)(behavior)) } -func (this *QAbstractItemView) DragDropMode() uintptr { +func (this *QAbstractItemView) DragDropMode() QAbstractItemView__DragDropMode { ret := C.QAbstractItemView_DragDropMode(this.h) - return (uintptr)(ret) + return (QAbstractItemView__DragDropMode)(ret) } -func (this *QAbstractItemView) SetDefaultDropAction(dropAction uintptr) { +func (this *QAbstractItemView) SetDefaultDropAction(dropAction DropAction) { C.QAbstractItemView_SetDefaultDropAction(this.h, (C.uintptr_t)(dropAction)) } -func (this *QAbstractItemView) DefaultDropAction() uintptr { +func (this *QAbstractItemView) DefaultDropAction() DropAction { ret := C.QAbstractItemView_DefaultDropAction(this.h) - return (uintptr)(ret) + return (DropAction)(ret) } func (this *QAbstractItemView) SetAlternatingRowColors(enable bool) { @@ -262,13 +318,13 @@ func (this *QAbstractItemView) IconSize() *QSize { return ret1 } -func (this *QAbstractItemView) SetTextElideMode(mode uintptr) { +func (this *QAbstractItemView) SetTextElideMode(mode TextElideMode) { C.QAbstractItemView_SetTextElideMode(this.h, (C.uintptr_t)(mode)) } -func (this *QAbstractItemView) TextElideMode() uintptr { +func (this *QAbstractItemView) TextElideMode() TextElideMode { ret := C.QAbstractItemView_TextElideMode(this.h) - return (uintptr)(ret) + return (TextElideMode)(ret) } func (this *QAbstractItemView) KeyboardSearch(search string) { @@ -369,7 +425,7 @@ func (this *QAbstractItemView) ItemDelegateWithIndex(index *QModelIndex) *QAbstr return newQAbstractItemDelegate_U(unsafe.Pointer(ret)) } -func (this *QAbstractItemView) InputMethodQuery(query uintptr) *QVariant { +func (this *QAbstractItemView) InputMethodQuery(query InputMethodQuery) *QVariant { ret := C.QAbstractItemView_InputMethodQuery(this.h, (C.uintptr_t)(query)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -556,7 +612,7 @@ func QAbstractItemView_TrUtf83(s string, c string, n int) string { return ret } -func (this *QAbstractItemView) ScrollTo2(index *QModelIndex, hint uintptr) { +func (this *QAbstractItemView) ScrollTo2(index *QModelIndex, hint QAbstractItemView__ScrollHint) { C.QAbstractItemView_ScrollTo2(this.h, index.cPointer(), (C.uintptr_t)(hint)) } diff --git a/qt/gen_qabstractproxymodel.go b/qt/gen_qabstractproxymodel.go index fe704393..b97f9795 100644 --- a/qt/gen_qabstractproxymodel.go +++ b/qt/gen_qabstractproxymodel.go @@ -114,7 +114,7 @@ func (this *QAbstractProxyModel) Data(proxyIndex *QModelIndex) *QVariant { return ret1 } -func (this *QAbstractProxyModel) HeaderData(section int, orientation uintptr) *QVariant { +func (this *QAbstractProxyModel) HeaderData(section int, orientation Orientation) *QVariant { ret := C.QAbstractProxyModel_HeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -135,7 +135,7 @@ func (this *QAbstractProxyModel) SetData(index *QModelIndex, value *QVariant) bo return (bool)(ret) } -func (this *QAbstractProxyModel) SetHeaderData(section int, orientation uintptr, value *QVariant) bool { +func (this *QAbstractProxyModel) SetHeaderData(section int, orientation Orientation, value *QVariant) bool { ret := C.QAbstractProxyModel_SetHeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer()) return (bool)(ret) } @@ -202,12 +202,12 @@ func (this *QAbstractProxyModel) MimeData(indexes []QModelIndex) *QMimeData { return newQMimeData_U(unsafe.Pointer(ret)) } -func (this *QAbstractProxyModel) CanDropMimeData(data *QMimeData, action uintptr, row int, column int, parent *QModelIndex) bool { +func (this *QAbstractProxyModel) CanDropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool { ret := C.QAbstractProxyModel_CanDropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()) return (bool)(ret) } -func (this *QAbstractProxyModel) DropMimeData(data *QMimeData, action uintptr, row int, column int, parent *QModelIndex) bool { +func (this *QAbstractProxyModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool { ret := C.QAbstractProxyModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()) return (bool)(ret) } @@ -300,7 +300,7 @@ func (this *QAbstractProxyModel) Data2(proxyIndex *QModelIndex, role int) *QVari return ret1 } -func (this *QAbstractProxyModel) HeaderData3(section int, orientation uintptr, role int) *QVariant { +func (this *QAbstractProxyModel) HeaderData3(section int, orientation Orientation, role int) *QVariant { ret := C.QAbstractProxyModel_HeaderData3(this.h, (C.int)(section), (C.uintptr_t)(orientation), (C.int)(role)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -316,12 +316,12 @@ func (this *QAbstractProxyModel) SetData3(index *QModelIndex, value *QVariant, r return (bool)(ret) } -func (this *QAbstractProxyModel) SetHeaderData4(section int, orientation uintptr, value *QVariant, role int) bool { +func (this *QAbstractProxyModel) SetHeaderData4(section int, orientation Orientation, value *QVariant, role int) bool { ret := C.QAbstractProxyModel_SetHeaderData4(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer(), (C.int)(role)) return (bool)(ret) } -func (this *QAbstractProxyModel) Sort2(column int, order uintptr) { +func (this *QAbstractProxyModel) Sort2(column int, order SortOrder) { C.QAbstractProxyModel_Sort2(this.h, (C.int)(column), (C.uintptr_t)(order)) } diff --git a/qt/gen_qabstractscrollarea.go b/qt/gen_qabstractscrollarea.go index 13c1d061..579c471a 100644 --- a/qt/gen_qabstractscrollarea.go +++ b/qt/gen_qabstractscrollarea.go @@ -13,6 +13,14 @@ import ( "unsafe" ) +type QAbstractScrollArea__SizeAdjustPolicy int + +const ( + QAbstractScrollArea__SizeAdjustPolicy__AdjustIgnored QAbstractScrollArea__SizeAdjustPolicy = 0 + QAbstractScrollArea__SizeAdjustPolicy__AdjustToContentsOnFirstShow QAbstractScrollArea__SizeAdjustPolicy = 1 + QAbstractScrollArea__SizeAdjustPolicy__AdjustToContents QAbstractScrollArea__SizeAdjustPolicy = 2 +) + type QAbstractScrollArea struct { h *C.QAbstractScrollArea *QFrame @@ -75,12 +83,12 @@ func QAbstractScrollArea_TrUtf8(s string) string { return ret } -func (this *QAbstractScrollArea) VerticalScrollBarPolicy() uintptr { +func (this *QAbstractScrollArea) VerticalScrollBarPolicy() ScrollBarPolicy { ret := C.QAbstractScrollArea_VerticalScrollBarPolicy(this.h) - return (uintptr)(ret) + return (ScrollBarPolicy)(ret) } -func (this *QAbstractScrollArea) SetVerticalScrollBarPolicy(verticalScrollBarPolicy uintptr) { +func (this *QAbstractScrollArea) SetVerticalScrollBarPolicy(verticalScrollBarPolicy ScrollBarPolicy) { C.QAbstractScrollArea_SetVerticalScrollBarPolicy(this.h, (C.uintptr_t)(verticalScrollBarPolicy)) } @@ -93,12 +101,12 @@ func (this *QAbstractScrollArea) SetVerticalScrollBar(scrollbar *QScrollBar) { C.QAbstractScrollArea_SetVerticalScrollBar(this.h, scrollbar.cPointer()) } -func (this *QAbstractScrollArea) HorizontalScrollBarPolicy() uintptr { +func (this *QAbstractScrollArea) HorizontalScrollBarPolicy() ScrollBarPolicy { ret := C.QAbstractScrollArea_HorizontalScrollBarPolicy(this.h) - return (uintptr)(ret) + return (ScrollBarPolicy)(ret) } -func (this *QAbstractScrollArea) SetHorizontalScrollBarPolicy(horizontalScrollBarPolicy uintptr) { +func (this *QAbstractScrollArea) SetHorizontalScrollBarPolicy(horizontalScrollBarPolicy ScrollBarPolicy) { C.QAbstractScrollArea_SetHorizontalScrollBarPolicy(this.h, (C.uintptr_t)(horizontalScrollBarPolicy)) } @@ -183,12 +191,12 @@ func (this *QAbstractScrollArea) SetupViewport(viewport *QWidget) { C.QAbstractScrollArea_SetupViewport(this.h, viewport.cPointer()) } -func (this *QAbstractScrollArea) SizeAdjustPolicy() uintptr { +func (this *QAbstractScrollArea) SizeAdjustPolicy() QAbstractScrollArea__SizeAdjustPolicy { ret := C.QAbstractScrollArea_SizeAdjustPolicy(this.h) - return (uintptr)(ret) + return (QAbstractScrollArea__SizeAdjustPolicy)(ret) } -func (this *QAbstractScrollArea) SetSizeAdjustPolicy(policy uintptr) { +func (this *QAbstractScrollArea) SetSizeAdjustPolicy(policy QAbstractScrollArea__SizeAdjustPolicy) { C.QAbstractScrollArea_SetSizeAdjustPolicy(this.h, (C.uintptr_t)(policy)) } diff --git a/qt/gen_qabstractslider.go b/qt/gen_qabstractslider.go index 767b0cef..38540779 100644 --- a/qt/gen_qabstractslider.go +++ b/qt/gen_qabstractslider.go @@ -13,6 +13,19 @@ import ( "unsafe" ) +type QAbstractSlider__SliderAction int + +const ( + QAbstractSlider__SliderAction__SliderNoAction QAbstractSlider__SliderAction = 0 + QAbstractSlider__SliderAction__SliderSingleStepAdd QAbstractSlider__SliderAction = 1 + QAbstractSlider__SliderAction__SliderSingleStepSub QAbstractSlider__SliderAction = 2 + QAbstractSlider__SliderAction__SliderPageStepAdd QAbstractSlider__SliderAction = 3 + QAbstractSlider__SliderAction__SliderPageStepSub QAbstractSlider__SliderAction = 4 + QAbstractSlider__SliderAction__SliderToMinimum QAbstractSlider__SliderAction = 5 + QAbstractSlider__SliderAction__SliderToMaximum QAbstractSlider__SliderAction = 6 + QAbstractSlider__SliderAction__SliderMove QAbstractSlider__SliderAction = 7 +) + type QAbstractSlider struct { h *C.QAbstractSlider *QWidget @@ -75,9 +88,9 @@ func QAbstractSlider_TrUtf8(s string) string { return ret } -func (this *QAbstractSlider) Orientation() uintptr { +func (this *QAbstractSlider) Orientation() Orientation { ret := C.QAbstractSlider_Orientation(this.h) - return (uintptr)(ret) + return (Orientation)(ret) } func (this *QAbstractSlider) SetMinimum(minimum int) { @@ -166,7 +179,7 @@ func (this *QAbstractSlider) Value() int { return (int)(ret) } -func (this *QAbstractSlider) TriggerAction(action uintptr) { +func (this *QAbstractSlider) TriggerAction(action QAbstractSlider__SliderAction) { C.QAbstractSlider_TriggerAction(this.h, (C.uintptr_t)(action)) } @@ -174,7 +187,7 @@ func (this *QAbstractSlider) SetValue(value int) { C.QAbstractSlider_SetValue(this.h, (C.int)(value)) } -func (this *QAbstractSlider) SetOrientation(orientation uintptr) { +func (this *QAbstractSlider) SetOrientation(orientation Orientation) { C.QAbstractSlider_SetOrientation(this.h, (C.uintptr_t)(orientation)) } diff --git a/qt/gen_qabstractspinbox.go b/qt/gen_qabstractspinbox.go index 1266ce50..d6ba17fc 100644 --- a/qt/gen_qabstractspinbox.go +++ b/qt/gen_qabstractspinbox.go @@ -14,6 +14,36 @@ import ( "unsafe" ) +type QAbstractSpinBox__StepEnabledFlag int + +const ( + QAbstractSpinBox__StepEnabledFlag__StepNone QAbstractSpinBox__StepEnabledFlag = 0 + QAbstractSpinBox__StepEnabledFlag__StepUpEnabled QAbstractSpinBox__StepEnabledFlag = 1 + QAbstractSpinBox__StepEnabledFlag__StepDownEnabled QAbstractSpinBox__StepEnabledFlag = 2 +) + +type QAbstractSpinBox__ButtonSymbols int + +const ( + QAbstractSpinBox__ButtonSymbols__UpDownArrows QAbstractSpinBox__ButtonSymbols = 0 + QAbstractSpinBox__ButtonSymbols__PlusMinus QAbstractSpinBox__ButtonSymbols = 1 + QAbstractSpinBox__ButtonSymbols__NoButtons QAbstractSpinBox__ButtonSymbols = 2 +) + +type QAbstractSpinBox__CorrectionMode int + +const ( + QAbstractSpinBox__CorrectionMode__CorrectToPreviousValue QAbstractSpinBox__CorrectionMode = 0 + QAbstractSpinBox__CorrectionMode__CorrectToNearestValue QAbstractSpinBox__CorrectionMode = 1 +) + +type QAbstractSpinBox__StepType int + +const ( + QAbstractSpinBox__StepType__DefaultStepType QAbstractSpinBox__StepType = 0 + QAbstractSpinBox__StepType__AdaptiveDecimalStepType QAbstractSpinBox__StepType = 1 +) + type QAbstractSpinBox struct { h *C.QAbstractSpinBox *QWidget @@ -76,22 +106,22 @@ func QAbstractSpinBox_TrUtf8(s string) string { return ret } -func (this *QAbstractSpinBox) ButtonSymbols() uintptr { +func (this *QAbstractSpinBox) ButtonSymbols() QAbstractSpinBox__ButtonSymbols { ret := C.QAbstractSpinBox_ButtonSymbols(this.h) - return (uintptr)(ret) + return (QAbstractSpinBox__ButtonSymbols)(ret) } -func (this *QAbstractSpinBox) SetButtonSymbols(bs uintptr) { +func (this *QAbstractSpinBox) SetButtonSymbols(bs QAbstractSpinBox__ButtonSymbols) { C.QAbstractSpinBox_SetButtonSymbols(this.h, (C.uintptr_t)(bs)) } -func (this *QAbstractSpinBox) SetCorrectionMode(cm uintptr) { +func (this *QAbstractSpinBox) SetCorrectionMode(cm QAbstractSpinBox__CorrectionMode) { C.QAbstractSpinBox_SetCorrectionMode(this.h, (C.uintptr_t)(cm)) } -func (this *QAbstractSpinBox) CorrectionMode() uintptr { +func (this *QAbstractSpinBox) CorrectionMode() QAbstractSpinBox__CorrectionMode { ret := C.QAbstractSpinBox_CorrectionMode(this.h) - return (uintptr)(ret) + return (QAbstractSpinBox__CorrectionMode)(ret) } func (this *QAbstractSpinBox) HasAcceptableInput() bool { @@ -217,7 +247,7 @@ func (this *QAbstractSpinBox) Event(event *QEvent) bool { return (bool)(ret) } -func (this *QAbstractSpinBox) InputMethodQuery(param1 uintptr) *QVariant { +func (this *QAbstractSpinBox) InputMethodQuery(param1 InputMethodQuery) *QVariant { ret := C.QAbstractSpinBox_InputMethodQuery(this.h, (C.uintptr_t)(param1)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -228,11 +258,11 @@ func (this *QAbstractSpinBox) InputMethodQuery(param1 uintptr) *QVariant { return ret1 } -func (this *QAbstractSpinBox) Validate(input string, pos *int) uintptr { +func (this *QAbstractSpinBox) Validate(input string, pos *int) QValidator__State { input_Cstring := C.CString(input) defer C.free(unsafe.Pointer(input_Cstring)) ret := C.QAbstractSpinBox_Validate(this.h, input_Cstring, C.size_t(len(input)), (*C.int)(unsafe.Pointer(pos))) - return (uintptr)(ret) + return (QValidator__State)(ret) } func (this *QAbstractSpinBox) Fixup(input string) { diff --git a/qt/gen_qabstracttextdocumentlayout.go b/qt/gen_qabstracttextdocumentlayout.go index 7ad7a868..005c491a 100644 --- a/qt/gen_qabstracttextdocumentlayout.go +++ b/qt/gen_qabstracttextdocumentlayout.go @@ -68,7 +68,7 @@ func (this *QAbstractTextDocumentLayout) Draw(painter *QPainter, context *QAbstr C.QAbstractTextDocumentLayout_Draw(this.h, painter.cPointer(), context.cPointer()) } -func (this *QAbstractTextDocumentLayout) HitTest(point *QPointF, accuracy uintptr) int { +func (this *QAbstractTextDocumentLayout) HitTest(point *QPointF, accuracy HitTestAccuracy) int { ret := C.QAbstractTextDocumentLayout_HitTest(this.h, point.cPointer(), (C.uintptr_t)(accuracy)) return (int)(ret) } diff --git a/qt/gen_qabstracttransition.go b/qt/gen_qabstracttransition.go index 819b689b..f08f7eb1 100644 --- a/qt/gen_qabstracttransition.go +++ b/qt/gen_qabstracttransition.go @@ -12,6 +12,13 @@ import ( "unsafe" ) +type QAbstractTransition__TransitionType int + +const ( + QAbstractTransition__TransitionType__ExternalTransition QAbstractTransition__TransitionType = 0 + QAbstractTransition__TransitionType__InternalTransition QAbstractTransition__TransitionType = 1 +) + type QAbstractTransition struct { h *C.QAbstractTransition *QObject @@ -99,12 +106,12 @@ func (this *QAbstractTransition) SetTargetStates(targets []*QAbstractState) { C.QAbstractTransition_SetTargetStates(this.h, &targets_CArray[0], C.size_t(len(targets))) } -func (this *QAbstractTransition) TransitionType() uintptr { +func (this *QAbstractTransition) TransitionType() QAbstractTransition__TransitionType { ret := C.QAbstractTransition_TransitionType(this.h) - return (uintptr)(ret) + return (QAbstractTransition__TransitionType)(ret) } -func (this *QAbstractTransition) SetTransitionType(typeVal uintptr) { +func (this *QAbstractTransition) SetTransitionType(typeVal QAbstractTransition__TransitionType) { C.QAbstractTransition_SetTransitionType(this.h, (C.uintptr_t)(typeVal)) } diff --git a/qt/gen_qaccessible.go b/qt/gen_qaccessible.go index 3c34a33d..1119072b 100644 --- a/qt/gen_qaccessible.go +++ b/qt/gen_qaccessible.go @@ -13,6 +13,218 @@ import ( "unsafe" ) +type QAccessible__Event int + +const ( + QAccessible__Event__SoundPlayed QAccessible__Event = 1 + QAccessible__Event__Alert QAccessible__Event = 2 + QAccessible__Event__ForegroundChanged QAccessible__Event = 3 + QAccessible__Event__MenuStart QAccessible__Event = 4 + QAccessible__Event__MenuEnd QAccessible__Event = 5 + QAccessible__Event__PopupMenuStart QAccessible__Event = 6 + QAccessible__Event__PopupMenuEnd QAccessible__Event = 7 + QAccessible__Event__ContextHelpStart QAccessible__Event = 12 + QAccessible__Event__ContextHelpEnd QAccessible__Event = 13 + QAccessible__Event__DragDropStart QAccessible__Event = 14 + QAccessible__Event__DragDropEnd QAccessible__Event = 15 + QAccessible__Event__DialogStart QAccessible__Event = 16 + QAccessible__Event__DialogEnd QAccessible__Event = 17 + QAccessible__Event__ScrollingStart QAccessible__Event = 18 + QAccessible__Event__ScrollingEnd QAccessible__Event = 19 + QAccessible__Event__MenuCommand QAccessible__Event = 24 + QAccessible__Event__ActionChanged QAccessible__Event = 257 + QAccessible__Event__ActiveDescendantChanged QAccessible__Event = 258 + QAccessible__Event__AttributeChanged QAccessible__Event = 259 + QAccessible__Event__DocumentContentChanged QAccessible__Event = 260 + QAccessible__Event__DocumentLoadComplete QAccessible__Event = 261 + QAccessible__Event__DocumentLoadStopped QAccessible__Event = 262 + QAccessible__Event__DocumentReload QAccessible__Event = 263 + QAccessible__Event__HyperlinkEndIndexChanged QAccessible__Event = 264 + QAccessible__Event__HyperlinkNumberOfAnchorsChanged QAccessible__Event = 265 + QAccessible__Event__HyperlinkSelectedLinkChanged QAccessible__Event = 266 + QAccessible__Event__HypertextLinkActivated QAccessible__Event = 267 + QAccessible__Event__HypertextLinkSelected QAccessible__Event = 268 + QAccessible__Event__HyperlinkStartIndexChanged QAccessible__Event = 269 + QAccessible__Event__HypertextChanged QAccessible__Event = 270 + QAccessible__Event__HypertextNLinksChanged QAccessible__Event = 271 + QAccessible__Event__ObjectAttributeChanged QAccessible__Event = 272 + QAccessible__Event__PageChanged QAccessible__Event = 273 + QAccessible__Event__SectionChanged QAccessible__Event = 274 + QAccessible__Event__TableCaptionChanged QAccessible__Event = 275 + QAccessible__Event__TableColumnDescriptionChanged QAccessible__Event = 276 + QAccessible__Event__TableColumnHeaderChanged QAccessible__Event = 277 + QAccessible__Event__TableModelChanged QAccessible__Event = 278 + QAccessible__Event__TableRowDescriptionChanged QAccessible__Event = 279 + QAccessible__Event__TableRowHeaderChanged QAccessible__Event = 280 + QAccessible__Event__TableSummaryChanged QAccessible__Event = 281 + QAccessible__Event__TextAttributeChanged QAccessible__Event = 282 + QAccessible__Event__TextCaretMoved QAccessible__Event = 283 + QAccessible__Event__TextColumnChanged QAccessible__Event = 285 + QAccessible__Event__TextInserted QAccessible__Event = 286 + QAccessible__Event__TextRemoved QAccessible__Event = 287 + QAccessible__Event__TextUpdated QAccessible__Event = 288 + QAccessible__Event__TextSelectionChanged QAccessible__Event = 289 + QAccessible__Event__VisibleDataChanged QAccessible__Event = 290 + QAccessible__Event__ObjectCreated QAccessible__Event = 32768 + QAccessible__Event__ObjectDestroyed QAccessible__Event = 32769 + QAccessible__Event__ObjectShow QAccessible__Event = 32770 + QAccessible__Event__ObjectHide QAccessible__Event = 32771 + QAccessible__Event__ObjectReorder QAccessible__Event = 32772 + QAccessible__Event__Focus QAccessible__Event = 32773 + QAccessible__Event__Selection QAccessible__Event = 32774 + QAccessible__Event__SelectionAdd QAccessible__Event = 32775 + QAccessible__Event__SelectionRemove QAccessible__Event = 32776 + QAccessible__Event__SelectionWithin QAccessible__Event = 32777 + QAccessible__Event__StateChanged QAccessible__Event = 32778 + QAccessible__Event__LocationChanged QAccessible__Event = 32779 + QAccessible__Event__NameChanged QAccessible__Event = 32780 + QAccessible__Event__DescriptionChanged QAccessible__Event = 32781 + QAccessible__Event__ValueChanged QAccessible__Event = 32782 + QAccessible__Event__ParentChanged QAccessible__Event = 32783 + QAccessible__Event__HelpChanged QAccessible__Event = 32928 + QAccessible__Event__DefaultActionChanged QAccessible__Event = 32944 + QAccessible__Event__AcceleratorChanged QAccessible__Event = 32960 + QAccessible__Event__InvalidEvent QAccessible__Event = 32961 +) + +type QAccessible__Role int + +const ( + QAccessible__Role__NoRole QAccessible__Role = 0 + QAccessible__Role__TitleBar QAccessible__Role = 1 + QAccessible__Role__MenuBar QAccessible__Role = 2 + QAccessible__Role__ScrollBar QAccessible__Role = 3 + QAccessible__Role__Grip QAccessible__Role = 4 + QAccessible__Role__Sound QAccessible__Role = 5 + QAccessible__Role__Cursor QAccessible__Role = 6 + QAccessible__Role__Caret QAccessible__Role = 7 + QAccessible__Role__AlertMessage QAccessible__Role = 8 + QAccessible__Role__Window QAccessible__Role = 9 + QAccessible__Role__Client QAccessible__Role = 10 + QAccessible__Role__PopupMenu QAccessible__Role = 11 + QAccessible__Role__MenuItem QAccessible__Role = 12 + QAccessible__Role__ToolTip QAccessible__Role = 13 + QAccessible__Role__Application QAccessible__Role = 14 + QAccessible__Role__Document QAccessible__Role = 15 + QAccessible__Role__Pane QAccessible__Role = 16 + QAccessible__Role__Chart QAccessible__Role = 17 + QAccessible__Role__Dialog QAccessible__Role = 18 + QAccessible__Role__Border QAccessible__Role = 19 + QAccessible__Role__Grouping QAccessible__Role = 20 + QAccessible__Role__Separator QAccessible__Role = 21 + QAccessible__Role__ToolBar QAccessible__Role = 22 + QAccessible__Role__StatusBar QAccessible__Role = 23 + QAccessible__Role__Table QAccessible__Role = 24 + QAccessible__Role__ColumnHeader QAccessible__Role = 25 + QAccessible__Role__RowHeader QAccessible__Role = 26 + QAccessible__Role__Column QAccessible__Role = 27 + QAccessible__Role__Row QAccessible__Role = 28 + QAccessible__Role__Cell QAccessible__Role = 29 + QAccessible__Role__Link QAccessible__Role = 30 + QAccessible__Role__HelpBalloon QAccessible__Role = 31 + QAccessible__Role__Assistant QAccessible__Role = 32 + QAccessible__Role__List QAccessible__Role = 33 + QAccessible__Role__ListItem QAccessible__Role = 34 + QAccessible__Role__Tree QAccessible__Role = 35 + QAccessible__Role__TreeItem QAccessible__Role = 36 + QAccessible__Role__PageTab QAccessible__Role = 37 + QAccessible__Role__PropertyPage QAccessible__Role = 38 + QAccessible__Role__Indicator QAccessible__Role = 39 + QAccessible__Role__Graphic QAccessible__Role = 40 + QAccessible__Role__StaticText QAccessible__Role = 41 + QAccessible__Role__EditableText QAccessible__Role = 42 + QAccessible__Role__Button QAccessible__Role = 43 + QAccessible__Role__PushButton QAccessible__Role = 43 + QAccessible__Role__CheckBox QAccessible__Role = 44 + QAccessible__Role__RadioButton QAccessible__Role = 45 + QAccessible__Role__ComboBox QAccessible__Role = 46 + QAccessible__Role__ProgressBar QAccessible__Role = 48 + QAccessible__Role__Dial QAccessible__Role = 49 + QAccessible__Role__HotkeyField QAccessible__Role = 50 + QAccessible__Role__Slider QAccessible__Role = 51 + QAccessible__Role__SpinBox QAccessible__Role = 52 + QAccessible__Role__Canvas QAccessible__Role = 53 + QAccessible__Role__Animation QAccessible__Role = 54 + QAccessible__Role__Equation QAccessible__Role = 55 + QAccessible__Role__ButtonDropDown QAccessible__Role = 56 + QAccessible__Role__ButtonMenu QAccessible__Role = 57 + QAccessible__Role__ButtonDropGrid QAccessible__Role = 58 + QAccessible__Role__Whitespace QAccessible__Role = 59 + QAccessible__Role__PageTabList QAccessible__Role = 60 + QAccessible__Role__Clock QAccessible__Role = 61 + QAccessible__Role__Splitter QAccessible__Role = 62 + QAccessible__Role__LayeredPane QAccessible__Role = 128 + QAccessible__Role__Terminal QAccessible__Role = 129 + QAccessible__Role__Desktop QAccessible__Role = 130 + QAccessible__Role__Paragraph QAccessible__Role = 131 + QAccessible__Role__WebDocument QAccessible__Role = 132 + QAccessible__Role__Section QAccessible__Role = 133 + QAccessible__Role__Notification QAccessible__Role = 134 + QAccessible__Role__ColorChooser QAccessible__Role = 1028 + QAccessible__Role__Footer QAccessible__Role = 1038 + QAccessible__Role__Form QAccessible__Role = 1040 + QAccessible__Role__Heading QAccessible__Role = 1044 + QAccessible__Role__Note QAccessible__Role = 1051 + QAccessible__Role__ComplementaryContent QAccessible__Role = 1068 + QAccessible__Role__UserRole QAccessible__Role = 65535 +) + +type QAccessible__Text int + +const ( + QAccessible__Text__Name QAccessible__Text = 0 + QAccessible__Text__Description QAccessible__Text = 1 + QAccessible__Text__Value QAccessible__Text = 2 + QAccessible__Text__Help QAccessible__Text = 3 + QAccessible__Text__Accelerator QAccessible__Text = 4 + QAccessible__Text__DebugDescription QAccessible__Text = 5 + QAccessible__Text__UserText QAccessible__Text = 65535 +) + +type QAccessible__RelationFlag int + +const ( + QAccessible__RelationFlag__Label QAccessible__RelationFlag = 1 + QAccessible__RelationFlag__Labelled QAccessible__RelationFlag = 2 + QAccessible__RelationFlag__Controller QAccessible__RelationFlag = 4 + QAccessible__RelationFlag__Controlled QAccessible__RelationFlag = 8 + QAccessible__RelationFlag__AllRelations QAccessible__RelationFlag = 4294967295 +) + +type QAccessible__InterfaceType int + +const ( + QAccessible__InterfaceType__TextInterface QAccessible__InterfaceType = 0 + QAccessible__InterfaceType__EditableTextInterface QAccessible__InterfaceType = 1 + QAccessible__InterfaceType__ValueInterface QAccessible__InterfaceType = 2 + QAccessible__InterfaceType__ActionInterface QAccessible__InterfaceType = 3 + QAccessible__InterfaceType__ImageInterface QAccessible__InterfaceType = 4 + QAccessible__InterfaceType__TableInterface QAccessible__InterfaceType = 5 + QAccessible__InterfaceType__TableCellInterface QAccessible__InterfaceType = 6 +) + +type QAccessible__TextBoundaryType int + +const ( + QAccessible__TextBoundaryType__CharBoundary QAccessible__TextBoundaryType = 0 + QAccessible__TextBoundaryType__WordBoundary QAccessible__TextBoundaryType = 1 + QAccessible__TextBoundaryType__SentenceBoundary QAccessible__TextBoundaryType = 2 + QAccessible__TextBoundaryType__ParagraphBoundary QAccessible__TextBoundaryType = 3 + QAccessible__TextBoundaryType__LineBoundary QAccessible__TextBoundaryType = 4 + QAccessible__TextBoundaryType__NoBoundary QAccessible__TextBoundaryType = 5 +) + +type QAccessibleTableModelChangeEvent__ModelChangeType int + +const ( + QAccessibleTableModelChangeEvent__ModelChangeType__ModelReset QAccessibleTableModelChangeEvent__ModelChangeType = 0 + QAccessibleTableModelChangeEvent__ModelChangeType__DataChanged QAccessibleTableModelChangeEvent__ModelChangeType = 1 + QAccessibleTableModelChangeEvent__ModelChangeType__RowsInserted QAccessibleTableModelChangeEvent__ModelChangeType = 2 + QAccessibleTableModelChangeEvent__ModelChangeType__ColumnsInserted QAccessibleTableModelChangeEvent__ModelChangeType = 3 + QAccessibleTableModelChangeEvent__ModelChangeType__RowsRemoved QAccessibleTableModelChangeEvent__ModelChangeType = 4 + QAccessibleTableModelChangeEvent__ModelChangeType__ColumnsRemoved QAccessibleTableModelChangeEvent__ModelChangeType = 5 +) + type QAccessible struct { h *C.QAccessible } @@ -159,7 +371,7 @@ func (this *QAccessibleInterface) IndexOfChild(param1 *QAccessibleInterface) int return (int)(ret) } -func (this *QAccessibleInterface) Text(t uintptr) string { +func (this *QAccessibleInterface) Text(t QAccessible__Text) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QAccessibleInterface_Text(this.h, (C.uintptr_t)(t), &_out, &_out_Strlen) @@ -168,7 +380,7 @@ func (this *QAccessibleInterface) Text(t uintptr) string { return ret } -func (this *QAccessibleInterface) SetText(t uintptr, text string) { +func (this *QAccessibleInterface) SetText(t QAccessible__Text, text string) { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) C.QAccessibleInterface_SetText(this.h, (C.uintptr_t)(t), text_Cstring, C.size_t(len(text))) @@ -185,9 +397,9 @@ func (this *QAccessibleInterface) Rect() *QRect { return ret1 } -func (this *QAccessibleInterface) Role() uintptr { +func (this *QAccessibleInterface) Role() QAccessible__Role { ret := C.QAccessibleInterface_Role(this.h) - return (uintptr)(ret) + return (QAccessible__Role)(ret) } func (this *QAccessibleInterface) State() *QAccessible__State { @@ -319,7 +531,7 @@ func (this *QAccessibleTextInterface) Text(startOffset int, endOffset int) strin return ret } -func (this *QAccessibleTextInterface) TextBeforeOffset(offset int, boundaryType uintptr, startOffset *int, endOffset *int) string { +func (this *QAccessibleTextInterface) TextBeforeOffset(offset int, boundaryType QAccessible__TextBoundaryType, startOffset *int, endOffset *int) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QAccessibleTextInterface_TextBeforeOffset(this.h, (C.int)(offset), (C.uintptr_t)(boundaryType), (*C.int)(unsafe.Pointer(startOffset)), (*C.int)(unsafe.Pointer(endOffset)), &_out, &_out_Strlen) @@ -328,7 +540,7 @@ func (this *QAccessibleTextInterface) TextBeforeOffset(offset int, boundaryType return ret } -func (this *QAccessibleTextInterface) TextAfterOffset(offset int, boundaryType uintptr, startOffset *int, endOffset *int) string { +func (this *QAccessibleTextInterface) TextAfterOffset(offset int, boundaryType QAccessible__TextBoundaryType, startOffset *int, endOffset *int) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QAccessibleTextInterface_TextAfterOffset(this.h, (C.int)(offset), (C.uintptr_t)(boundaryType), (*C.int)(unsafe.Pointer(startOffset)), (*C.int)(unsafe.Pointer(endOffset)), &_out, &_out_Strlen) @@ -337,7 +549,7 @@ func (this *QAccessibleTextInterface) TextAfterOffset(offset int, boundaryType u return ret } -func (this *QAccessibleTextInterface) TextAtOffset(offset int, boundaryType uintptr, startOffset *int, endOffset *int) string { +func (this *QAccessibleTextInterface) TextAtOffset(offset int, boundaryType QAccessible__TextBoundaryType, startOffset *int, endOffset *int) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QAccessibleTextInterface_TextAtOffset(this.h, (C.int)(offset), (C.uintptr_t)(boundaryType), (*C.int)(unsafe.Pointer(startOffset)), (*C.int)(unsafe.Pointer(endOffset)), &_out, &_out_Strlen) @@ -1111,20 +1323,20 @@ func newQAccessibleEvent_U(h unsafe.Pointer) *QAccessibleEvent { } // NewQAccessibleEvent constructs a new QAccessibleEvent object. -func NewQAccessibleEvent(obj *QObject, typ uintptr) *QAccessibleEvent { +func NewQAccessibleEvent(obj *QObject, typ QAccessible__Event) *QAccessibleEvent { ret := C.QAccessibleEvent_new(obj.cPointer(), (C.uintptr_t)(typ)) return newQAccessibleEvent(ret) } // NewQAccessibleEvent2 constructs a new QAccessibleEvent object. -func NewQAccessibleEvent2(iface *QAccessibleInterface, typ uintptr) *QAccessibleEvent { +func NewQAccessibleEvent2(iface *QAccessibleInterface, typ QAccessible__Event) *QAccessibleEvent { ret := C.QAccessibleEvent_new2(iface.cPointer(), (C.uintptr_t)(typ)) return newQAccessibleEvent(ret) } -func (this *QAccessibleEvent) Type() uintptr { +func (this *QAccessibleEvent) Type() QAccessible__Event { ret := C.QAccessibleEvent_Type(this.h) - return (uintptr)(ret) + return (QAccessible__Event)(ret) } func (this *QAccessibleEvent) Object() *QObject { @@ -1568,24 +1780,24 @@ func newQAccessibleTableModelChangeEvent_U(h unsafe.Pointer) *QAccessibleTableMo } // NewQAccessibleTableModelChangeEvent constructs a new QAccessibleTableModelChangeEvent object. -func NewQAccessibleTableModelChangeEvent(obj *QObject, changeType uintptr) *QAccessibleTableModelChangeEvent { +func NewQAccessibleTableModelChangeEvent(obj *QObject, changeType QAccessibleTableModelChangeEvent__ModelChangeType) *QAccessibleTableModelChangeEvent { ret := C.QAccessibleTableModelChangeEvent_new(obj.cPointer(), (C.uintptr_t)(changeType)) return newQAccessibleTableModelChangeEvent(ret) } // NewQAccessibleTableModelChangeEvent2 constructs a new QAccessibleTableModelChangeEvent object. -func NewQAccessibleTableModelChangeEvent2(iface *QAccessibleInterface, changeType uintptr) *QAccessibleTableModelChangeEvent { +func NewQAccessibleTableModelChangeEvent2(iface *QAccessibleInterface, changeType QAccessibleTableModelChangeEvent__ModelChangeType) *QAccessibleTableModelChangeEvent { ret := C.QAccessibleTableModelChangeEvent_new2(iface.cPointer(), (C.uintptr_t)(changeType)) return newQAccessibleTableModelChangeEvent(ret) } -func (this *QAccessibleTableModelChangeEvent) SetModelChangeType(changeType uintptr) { +func (this *QAccessibleTableModelChangeEvent) SetModelChangeType(changeType QAccessibleTableModelChangeEvent__ModelChangeType) { C.QAccessibleTableModelChangeEvent_SetModelChangeType(this.h, (C.uintptr_t)(changeType)) } -func (this *QAccessibleTableModelChangeEvent) ModelChangeType() uintptr { +func (this *QAccessibleTableModelChangeEvent) ModelChangeType() QAccessibleTableModelChangeEvent__ModelChangeType { ret := C.QAccessibleTableModelChangeEvent_ModelChangeType(this.h) - return (uintptr)(ret) + return (QAccessibleTableModelChangeEvent__ModelChangeType)(ret) } func (this *QAccessibleTableModelChangeEvent) SetFirstRow(row int) { diff --git a/qt/gen_qaccessibleobject.go b/qt/gen_qaccessibleobject.go index b05749e4..f41c4bb7 100644 --- a/qt/gen_qaccessibleobject.go +++ b/qt/gen_qaccessibleobject.go @@ -57,7 +57,7 @@ func (this *QAccessibleObject) Rect() *QRect { return ret1 } -func (this *QAccessibleObject) SetText(t uintptr, text string) { +func (this *QAccessibleObject) SetText(t QAccessible__Text, text string) { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) C.QAccessibleObject_SetText(this.h, (C.uintptr_t)(t), text_Cstring, C.size_t(len(text))) @@ -127,7 +127,7 @@ func (this *QAccessibleApplication) Child(index int) *QAccessibleInterface { return newQAccessibleInterface_U(unsafe.Pointer(ret)) } -func (this *QAccessibleApplication) Text(t uintptr) string { +func (this *QAccessibleApplication) Text(t QAccessible__Text) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QAccessibleApplication_Text(this.h, (C.uintptr_t)(t), &_out, &_out_Strlen) @@ -136,9 +136,9 @@ func (this *QAccessibleApplication) Text(t uintptr) string { return ret } -func (this *QAccessibleApplication) Role() uintptr { +func (this *QAccessibleApplication) Role() QAccessible__Role { ret := C.QAccessibleApplication_Role(this.h) - return (uintptr)(ret) + return (QAccessible__Role)(ret) } func (this *QAccessibleApplication) State() *QAccessible__State { diff --git a/qt/gen_qaccessiblewidget.go b/qt/gen_qaccessiblewidget.go index a68ae8f9..17e9a6ad 100644 --- a/qt/gen_qaccessiblewidget.go +++ b/qt/gen_qaccessiblewidget.go @@ -44,13 +44,13 @@ func NewQAccessibleWidget(o *QWidget) *QAccessibleWidget { } // NewQAccessibleWidget2 constructs a new QAccessibleWidget object. -func NewQAccessibleWidget2(o *QWidget, r uintptr) *QAccessibleWidget { +func NewQAccessibleWidget2(o *QWidget, r QAccessible__Role) *QAccessibleWidget { ret := C.QAccessibleWidget_new2(o.cPointer(), (C.uintptr_t)(r)) return newQAccessibleWidget(ret) } // NewQAccessibleWidget3 constructs a new QAccessibleWidget object. -func NewQAccessibleWidget3(o *QWidget, r uintptr, name string) *QAccessibleWidget { +func NewQAccessibleWidget3(o *QWidget, r QAccessible__Role, name string) *QAccessibleWidget { name_Cstring := C.CString(name) defer C.free(unsafe.Pointer(name_Cstring)) ret := C.QAccessibleWidget_new3(o.cPointer(), (C.uintptr_t)(r), name_Cstring, C.size_t(len(name))) @@ -103,7 +103,7 @@ func (this *QAccessibleWidget) Child(index int) *QAccessibleInterface { return newQAccessibleInterface_U(unsafe.Pointer(ret)) } -func (this *QAccessibleWidget) Text(t uintptr) string { +func (this *QAccessibleWidget) Text(t QAccessible__Text) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QAccessibleWidget_Text(this.h, (C.uintptr_t)(t), &_out, &_out_Strlen) @@ -112,9 +112,9 @@ func (this *QAccessibleWidget) Text(t uintptr) string { return ret } -func (this *QAccessibleWidget) Role() uintptr { +func (this *QAccessibleWidget) Role() QAccessible__Role { ret := C.QAccessibleWidget_Role(this.h) - return (uintptr)(ret) + return (QAccessible__Role)(ret) } func (this *QAccessibleWidget) State() *QAccessible__State { diff --git a/qt/gen_qaction.go b/qt/gen_qaction.go index dce4e4c5..d212378d 100644 --- a/qt/gen_qaction.go +++ b/qt/gen_qaction.go @@ -14,6 +14,33 @@ import ( "unsafe" ) +type QAction__MenuRole int + +const ( + QAction__MenuRole__NoRole QAction__MenuRole = 0 + QAction__MenuRole__TextHeuristicRole QAction__MenuRole = 1 + QAction__MenuRole__ApplicationSpecificRole QAction__MenuRole = 2 + QAction__MenuRole__AboutQtRole QAction__MenuRole = 3 + QAction__MenuRole__AboutRole QAction__MenuRole = 4 + QAction__MenuRole__PreferencesRole QAction__MenuRole = 5 + QAction__MenuRole__QuitRole QAction__MenuRole = 6 +) + +type QAction__Priority int + +const ( + QAction__Priority__LowPriority QAction__Priority = 0 + QAction__Priority__NormalPriority QAction__Priority = 128 + QAction__Priority__HighPriority QAction__Priority = 256 +) + +type QAction__ActionEvent int + +const ( + QAction__ActionEvent__Trigger QAction__ActionEvent = 0 + QAction__ActionEvent__Hover QAction__ActionEvent = 1 +) + type QAction struct { h *C.QAction *QObject @@ -207,13 +234,13 @@ func (this *QAction) WhatsThis() string { return ret } -func (this *QAction) SetPriority(priority uintptr) { +func (this *QAction) SetPriority(priority QAction__Priority) { C.QAction_SetPriority(this.h, (C.uintptr_t)(priority)) } -func (this *QAction) Priority() uintptr { +func (this *QAction) Priority() QAction__Priority { ret := C.QAction_Priority(this.h) - return (uintptr)(ret) + return (QAction__Priority)(ret) } func (this *QAction) Menu() *QMenu { @@ -259,7 +286,7 @@ func (this *QAction) SetShortcuts(shortcuts []QKeySequence) { C.QAction_SetShortcuts(this.h, &shortcuts_CArray[0], C.size_t(len(shortcuts))) } -func (this *QAction) SetShortcutsWithShortcuts(shortcuts uintptr) { +func (this *QAction) SetShortcutsWithShortcuts(shortcuts QKeySequence__StandardKey) { C.QAction_SetShortcutsWithShortcuts(this.h, (C.uintptr_t)(shortcuts)) } @@ -276,13 +303,13 @@ func (this *QAction) Shortcuts() []QKeySequence { return ret } -func (this *QAction) SetShortcutContext(context uintptr) { +func (this *QAction) SetShortcutContext(context ShortcutContext) { C.QAction_SetShortcutContext(this.h, (C.uintptr_t)(context)) } -func (this *QAction) ShortcutContext() uintptr { +func (this *QAction) ShortcutContext() ShortcutContext { ret := C.QAction_ShortcutContext(this.h) - return (uintptr)(ret) + return (ShortcutContext)(ret) } func (this *QAction) SetAutoRepeat(autoRepeat bool) { @@ -348,7 +375,7 @@ func (this *QAction) IsVisible() bool { return (bool)(ret) } -func (this *QAction) Activate(event uintptr) { +func (this *QAction) Activate(event QAction__ActionEvent) { C.QAction_Activate(this.h, (C.uintptr_t)(event)) } @@ -357,13 +384,13 @@ func (this *QAction) ShowStatusText() bool { return (bool)(ret) } -func (this *QAction) SetMenuRole(menuRole uintptr) { +func (this *QAction) SetMenuRole(menuRole QAction__MenuRole) { C.QAction_SetMenuRole(this.h, (C.uintptr_t)(menuRole)) } -func (this *QAction) MenuRole() uintptr { +func (this *QAction) MenuRole() QAction__MenuRole { ret := C.QAction_MenuRole(this.h) - return (uintptr)(ret) + return (QAction__MenuRole)(ret) } func (this *QAction) SetIconVisibleInMenu(visible bool) { diff --git a/qt/gen_qactiongroup.go b/qt/gen_qactiongroup.go index 43100fa5..78477667 100644 --- a/qt/gen_qactiongroup.go +++ b/qt/gen_qactiongroup.go @@ -13,6 +13,14 @@ import ( "unsafe" ) +type QActionGroup__ExclusionPolicy int + +const ( + QActionGroup__ExclusionPolicy__None QActionGroup__ExclusionPolicy = 0 + QActionGroup__ExclusionPolicy__Exclusive QActionGroup__ExclusionPolicy = 1 + QActionGroup__ExclusionPolicy__ExclusiveOptional QActionGroup__ExclusionPolicy = 2 +) + type QActionGroup struct { h *C.QActionGroup *QObject @@ -125,9 +133,9 @@ func (this *QActionGroup) IsVisible() bool { return (bool)(ret) } -func (this *QActionGroup) ExclusionPolicy() uintptr { +func (this *QActionGroup) ExclusionPolicy() QActionGroup__ExclusionPolicy { ret := C.QActionGroup_ExclusionPolicy(this.h) - return (uintptr)(ret) + return (QActionGroup__ExclusionPolicy)(ret) } func (this *QActionGroup) SetEnabled(enabled bool) { @@ -146,7 +154,7 @@ func (this *QActionGroup) SetExclusive(exclusive bool) { C.QActionGroup_SetExclusive(this.h, (C.bool)(exclusive)) } -func (this *QActionGroup) SetExclusionPolicy(policy uintptr) { +func (this *QActionGroup) SetExclusionPolicy(policy QActionGroup__ExclusionPolicy) { C.QActionGroup_SetExclusionPolicy(this.h, (C.uintptr_t)(policy)) } diff --git a/qt/gen_qapplication.go b/qt/gen_qapplication.go index b70b015f..c8b6188a 100644 --- a/qt/gen_qapplication.go +++ b/qt/gen_qapplication.go @@ -14,6 +14,14 @@ import ( "unsafe" ) +type QApplication__ColorSpec int + +const ( + QApplication__ColorSpec__NormalColor QApplication__ColorSpec = 0 + QApplication__ColorSpec__CustomColor QApplication__ColorSpec = 1 + QApplication__ColorSpec__ManyColor QApplication__ColorSpec = 2 +) + type QApplication struct { h *C.QApplication *QGuiApplication @@ -360,12 +368,12 @@ func QApplication_StartDragDistance() int { return (int)(ret) } -func QApplication_IsEffectEnabled(param1 uintptr) bool { +func QApplication_IsEffectEnabled(param1 UIEffect) bool { ret := C.QApplication_IsEffectEnabled((C.uintptr_t)(param1)) return (bool)(ret) } -func QApplication_SetEffectEnabled(param1 uintptr) { +func QApplication_SetEffectEnabled(param1 UIEffect) { C.QApplication_SetEffectEnabled((C.uintptr_t)(param1)) } @@ -491,7 +499,7 @@ func QApplication_Alert2(widget *QWidget, duration int) { C.QApplication_Alert2(widget.cPointer(), (C.int)(duration)) } -func QApplication_SetEffectEnabled2(param1 uintptr, enable bool) { +func QApplication_SetEffectEnabled2(param1 UIEffect, enable bool) { C.QApplication_SetEffectEnabled2((C.uintptr_t)(param1), (C.bool)(enable)) } diff --git a/qt/gen_qarraydata.go b/qt/gen_qarraydata.go index 67caaf26..e7b64570 100644 --- a/qt/gen_qarraydata.go +++ b/qt/gen_qarraydata.go @@ -12,6 +12,25 @@ import ( "unsafe" ) +type QArrayData__AllocationOption int + +const ( + QArrayData__AllocationOption__CapacityReserved QArrayData__AllocationOption = 1 + QArrayData__AllocationOption__Unsharable QArrayData__AllocationOption = 2 + QArrayData__AllocationOption__RawData QArrayData__AllocationOption = 4 + QArrayData__AllocationOption__Grow QArrayData__AllocationOption = 8 + QArrayData__AllocationOption__Default QArrayData__AllocationOption = 0 +) + +type QtPrivate__QContainerImplHelper__CutResult int + +const ( + QtPrivate__QContainerImplHelper__CutResult__Null QtPrivate__QContainerImplHelper__CutResult = 0 + QtPrivate__QContainerImplHelper__CutResult__Empty QtPrivate__QContainerImplHelper__CutResult = 1 + QtPrivate__QContainerImplHelper__CutResult__Full QtPrivate__QContainerImplHelper__CutResult = 2 + QtPrivate__QContainerImplHelper__CutResult__Subset QtPrivate__QContainerImplHelper__CutResult = 3 +) + type QArrayData struct { h *C.QArrayData } @@ -109,9 +128,9 @@ func newQtPrivate__QContainerImplHelper_U(h unsafe.Pointer) *QtPrivate__QContain return newQtPrivate__QContainerImplHelper((*C.QtPrivate__QContainerImplHelper)(h)) } -func QtPrivate__QContainerImplHelper_Mid(originalLength int, position *int, length *int) uintptr { +func QtPrivate__QContainerImplHelper_Mid(originalLength int, position *int, length *int) QtPrivate__QContainerImplHelper__CutResult { ret := C.QtPrivate__QContainerImplHelper_Mid((C.int)(originalLength), (*C.int)(unsafe.Pointer(position)), (*C.int)(unsafe.Pointer(length))) - return (uintptr)(ret) + return (QtPrivate__QContainerImplHelper__CutResult)(ret) } func (this *QtPrivate__QContainerImplHelper) Delete() { diff --git a/qt/gen_qbasictimer.go b/qt/gen_qbasictimer.go index 3958573e..708faefb 100644 --- a/qt/gen_qbasictimer.go +++ b/qt/gen_qbasictimer.go @@ -68,7 +68,7 @@ func (this *QBasicTimer) Start(msec int, obj *QObject) { C.QBasicTimer_Start(this.h, (C.int)(msec), obj.cPointer()) } -func (this *QBasicTimer) Start2(msec int, timerType uintptr, obj *QObject) { +func (this *QBasicTimer) Start2(msec int, timerType TimerType, obj *QObject) { C.QBasicTimer_Start2(this.h, (C.int)(msec), (C.uintptr_t)(timerType), obj.cPointer()) } diff --git a/qt/gen_qbitmap.go b/qt/gen_qbitmap.go index f8940c2f..1788a6b3 100644 --- a/qt/gen_qbitmap.go +++ b/qt/gen_qbitmap.go @@ -155,7 +155,7 @@ func QBitmap_FromImage2(image *QImage, flags int) *QBitmap { return ret1 } -func QBitmap_FromData3(size *QSize, bits *byte, monoFormat uintptr) *QBitmap { +func QBitmap_FromData3(size *QSize, bits *byte, monoFormat QImage__Format) *QBitmap { ret := C.QBitmap_FromData3(size.cPointer(), (*C.uchar)(unsafe.Pointer(bits)), (C.uintptr_t)(monoFormat)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQBitmap(ret) diff --git a/qt/gen_qboxlayout.go b/qt/gen_qboxlayout.go index 42b7e5f5..35488d03 100644 --- a/qt/gen_qboxlayout.go +++ b/qt/gen_qboxlayout.go @@ -13,6 +13,17 @@ import ( "unsafe" ) +type QBoxLayout__Direction int + +const ( + QBoxLayout__Direction__LeftToRight QBoxLayout__Direction = 0 + QBoxLayout__Direction__RightToLeft QBoxLayout__Direction = 1 + QBoxLayout__Direction__TopToBottom QBoxLayout__Direction = 2 + QBoxLayout__Direction__BottomToTop QBoxLayout__Direction = 3 + QBoxLayout__Direction__Down QBoxLayout__Direction = 2 + QBoxLayout__Direction__Up QBoxLayout__Direction = 3 +) + type QBoxLayout struct { h *C.QBoxLayout *QLayout @@ -37,13 +48,13 @@ func newQBoxLayout_U(h unsafe.Pointer) *QBoxLayout { } // NewQBoxLayout constructs a new QBoxLayout object. -func NewQBoxLayout(param1 uintptr) *QBoxLayout { +func NewQBoxLayout(param1 QBoxLayout__Direction) *QBoxLayout { ret := C.QBoxLayout_new((C.uintptr_t)(param1)) return newQBoxLayout(ret) } // NewQBoxLayout2 constructs a new QBoxLayout object. -func NewQBoxLayout2(param1 uintptr, parent *QWidget) *QBoxLayout { +func NewQBoxLayout2(param1 QBoxLayout__Direction, parent *QWidget) *QBoxLayout { ret := C.QBoxLayout_new2((C.uintptr_t)(param1), parent.cPointer()) return newQBoxLayout(ret) } @@ -75,12 +86,12 @@ func QBoxLayout_TrUtf8(s string) string { return ret } -func (this *QBoxLayout) Direction() uintptr { +func (this *QBoxLayout) Direction() QBoxLayout__Direction { ret := C.QBoxLayout_Direction(this.h) - return (uintptr)(ret) + return (QBoxLayout__Direction)(ret) } -func (this *QBoxLayout) SetDirection(direction uintptr) { +func (this *QBoxLayout) SetDirection(direction QBoxLayout__Direction) { C.QBoxLayout_SetDirection(this.h, (C.uintptr_t)(direction)) } diff --git a/qt/gen_qbrush.go b/qt/gen_qbrush.go index 92ee0379..b463db32 100644 --- a/qt/gen_qbrush.go +++ b/qt/gen_qbrush.go @@ -13,6 +13,213 @@ import ( "unsafe" ) +type QGradient__Type int + +const ( + QGradient__Type__LinearGradient QGradient__Type = 0 + QGradient__Type__RadialGradient QGradient__Type = 1 + QGradient__Type__ConicalGradient QGradient__Type = 2 + QGradient__Type__NoGradient QGradient__Type = 3 +) + +type QGradient__Spread int + +const ( + QGradient__Spread__PadSpread QGradient__Spread = 0 + QGradient__Spread__ReflectSpread QGradient__Spread = 1 + QGradient__Spread__RepeatSpread QGradient__Spread = 2 +) + +type QGradient__CoordinateMode int + +const ( + QGradient__CoordinateMode__LogicalMode QGradient__CoordinateMode = 0 + QGradient__CoordinateMode__StretchToDeviceMode QGradient__CoordinateMode = 1 + QGradient__CoordinateMode__ObjectBoundingMode QGradient__CoordinateMode = 2 + QGradient__CoordinateMode__ObjectMode QGradient__CoordinateMode = 3 +) + +type QGradient__InterpolationMode int + +const ( + QGradient__InterpolationMode__ColorInterpolation QGradient__InterpolationMode = 0 + QGradient__InterpolationMode__ComponentInterpolation QGradient__InterpolationMode = 1 +) + +type QGradient__Preset int + +const ( + QGradient__Preset__WarmFlame QGradient__Preset = 1 + QGradient__Preset__NightFade QGradient__Preset = 2 + QGradient__Preset__SpringWarmth QGradient__Preset = 3 + QGradient__Preset__JuicyPeach QGradient__Preset = 4 + QGradient__Preset__YoungPassion QGradient__Preset = 5 + QGradient__Preset__LadyLips QGradient__Preset = 6 + QGradient__Preset__SunnyMorning QGradient__Preset = 7 + QGradient__Preset__RainyAshville QGradient__Preset = 8 + QGradient__Preset__FrozenDreams QGradient__Preset = 9 + QGradient__Preset__WinterNeva QGradient__Preset = 10 + QGradient__Preset__DustyGrass QGradient__Preset = 11 + QGradient__Preset__TemptingAzure QGradient__Preset = 12 + QGradient__Preset__HeavyRain QGradient__Preset = 13 + QGradient__Preset__AmyCrisp QGradient__Preset = 14 + QGradient__Preset__MeanFruit QGradient__Preset = 15 + QGradient__Preset__DeepBlue QGradient__Preset = 16 + QGradient__Preset__RipeMalinka QGradient__Preset = 17 + QGradient__Preset__CloudyKnoxville QGradient__Preset = 18 + QGradient__Preset__MalibuBeach QGradient__Preset = 19 + QGradient__Preset__NewLife QGradient__Preset = 20 + QGradient__Preset__TrueSunset QGradient__Preset = 21 + QGradient__Preset__MorpheusDen QGradient__Preset = 22 + QGradient__Preset__RareWind QGradient__Preset = 23 + QGradient__Preset__NearMoon QGradient__Preset = 24 + QGradient__Preset__WildApple QGradient__Preset = 25 + QGradient__Preset__SaintPetersburg QGradient__Preset = 26 + QGradient__Preset__PlumPlate QGradient__Preset = 28 + QGradient__Preset__EverlastingSky QGradient__Preset = 29 + QGradient__Preset__HappyFisher QGradient__Preset = 30 + QGradient__Preset__Blessing QGradient__Preset = 31 + QGradient__Preset__SharpeyeEagle QGradient__Preset = 32 + QGradient__Preset__LadogaBottom QGradient__Preset = 33 + QGradient__Preset__LemonGate QGradient__Preset = 34 + QGradient__Preset__ItmeoBranding QGradient__Preset = 35 + QGradient__Preset__ZeusMiracle QGradient__Preset = 36 + QGradient__Preset__OldHat QGradient__Preset = 37 + QGradient__Preset__StarWine QGradient__Preset = 38 + QGradient__Preset__HappyAcid QGradient__Preset = 41 + QGradient__Preset__AwesomePine QGradient__Preset = 42 + QGradient__Preset__NewYork QGradient__Preset = 43 + QGradient__Preset__ShyRainbow QGradient__Preset = 44 + QGradient__Preset__MixedHopes QGradient__Preset = 46 + QGradient__Preset__FlyHigh QGradient__Preset = 47 + QGradient__Preset__StrongBliss QGradient__Preset = 48 + QGradient__Preset__FreshMilk QGradient__Preset = 49 + QGradient__Preset__SnowAgain QGradient__Preset = 50 + QGradient__Preset__FebruaryInk QGradient__Preset = 51 + QGradient__Preset__KindSteel QGradient__Preset = 52 + QGradient__Preset__SoftGrass QGradient__Preset = 53 + QGradient__Preset__GrownEarly QGradient__Preset = 54 + QGradient__Preset__SharpBlues QGradient__Preset = 55 + QGradient__Preset__ShadyWater QGradient__Preset = 56 + QGradient__Preset__DirtyBeauty QGradient__Preset = 57 + QGradient__Preset__GreatWhale QGradient__Preset = 58 + QGradient__Preset__TeenNotebook QGradient__Preset = 59 + QGradient__Preset__PoliteRumors QGradient__Preset = 60 + QGradient__Preset__SweetPeriod QGradient__Preset = 61 + QGradient__Preset__WideMatrix QGradient__Preset = 62 + QGradient__Preset__SoftCherish QGradient__Preset = 63 + QGradient__Preset__RedSalvation QGradient__Preset = 64 + QGradient__Preset__BurningSpring QGradient__Preset = 65 + QGradient__Preset__NightParty QGradient__Preset = 66 + QGradient__Preset__SkyGlider QGradient__Preset = 67 + QGradient__Preset__HeavenPeach QGradient__Preset = 68 + QGradient__Preset__PurpleDivision QGradient__Preset = 69 + QGradient__Preset__AquaSplash QGradient__Preset = 70 + QGradient__Preset__SpikyNaga QGradient__Preset = 72 + QGradient__Preset__LoveKiss QGradient__Preset = 73 + QGradient__Preset__CleanMirror QGradient__Preset = 75 + QGradient__Preset__PremiumDark QGradient__Preset = 76 + QGradient__Preset__ColdEvening QGradient__Preset = 77 + QGradient__Preset__CochitiLake QGradient__Preset = 78 + QGradient__Preset__SummerGames QGradient__Preset = 79 + QGradient__Preset__PassionateBed QGradient__Preset = 80 + QGradient__Preset__MountainRock QGradient__Preset = 81 + QGradient__Preset__DesertHump QGradient__Preset = 82 + QGradient__Preset__JungleDay QGradient__Preset = 83 + QGradient__Preset__PhoenixStart QGradient__Preset = 84 + QGradient__Preset__OctoberSilence QGradient__Preset = 85 + QGradient__Preset__FarawayRiver QGradient__Preset = 86 + QGradient__Preset__AlchemistLab QGradient__Preset = 87 + QGradient__Preset__OverSun QGradient__Preset = 88 + QGradient__Preset__PremiumWhite QGradient__Preset = 89 + QGradient__Preset__MarsParty QGradient__Preset = 90 + QGradient__Preset__EternalConstance QGradient__Preset = 91 + QGradient__Preset__JapanBlush QGradient__Preset = 92 + QGradient__Preset__SmilingRain QGradient__Preset = 93 + QGradient__Preset__CloudyApple QGradient__Preset = 94 + QGradient__Preset__BigMango QGradient__Preset = 95 + QGradient__Preset__HealthyWater QGradient__Preset = 96 + QGradient__Preset__AmourAmour QGradient__Preset = 97 + QGradient__Preset__RiskyConcrete QGradient__Preset = 98 + QGradient__Preset__StrongStick QGradient__Preset = 99 + QGradient__Preset__ViciousStance QGradient__Preset = 100 + QGradient__Preset__PaloAlto QGradient__Preset = 101 + QGradient__Preset__HappyMemories QGradient__Preset = 102 + QGradient__Preset__MidnightBloom QGradient__Preset = 103 + QGradient__Preset__Crystalline QGradient__Preset = 104 + QGradient__Preset__PartyBliss QGradient__Preset = 106 + QGradient__Preset__ConfidentCloud QGradient__Preset = 107 + QGradient__Preset__LeCocktail QGradient__Preset = 108 + QGradient__Preset__RiverCity QGradient__Preset = 109 + QGradient__Preset__FrozenBerry QGradient__Preset = 110 + QGradient__Preset__ChildCare QGradient__Preset = 112 + QGradient__Preset__FlyingLemon QGradient__Preset = 113 + QGradient__Preset__NewRetrowave QGradient__Preset = 114 + QGradient__Preset__HiddenJaguar QGradient__Preset = 115 + QGradient__Preset__AboveTheSky QGradient__Preset = 116 + QGradient__Preset__Nega QGradient__Preset = 117 + QGradient__Preset__DenseWater QGradient__Preset = 118 + QGradient__Preset__Seashore QGradient__Preset = 120 + QGradient__Preset__MarbleWall QGradient__Preset = 121 + QGradient__Preset__CheerfulCaramel QGradient__Preset = 122 + QGradient__Preset__NightSky QGradient__Preset = 123 + QGradient__Preset__MagicLake QGradient__Preset = 124 + QGradient__Preset__YoungGrass QGradient__Preset = 125 + QGradient__Preset__ColorfulPeach QGradient__Preset = 126 + QGradient__Preset__GentleCare QGradient__Preset = 127 + QGradient__Preset__PlumBath QGradient__Preset = 128 + QGradient__Preset__HappyUnicorn QGradient__Preset = 129 + QGradient__Preset__AfricanField QGradient__Preset = 131 + QGradient__Preset__SolidStone QGradient__Preset = 132 + QGradient__Preset__OrangeJuice QGradient__Preset = 133 + QGradient__Preset__GlassWater QGradient__Preset = 134 + QGradient__Preset__NorthMiracle QGradient__Preset = 136 + QGradient__Preset__FruitBlend QGradient__Preset = 137 + QGradient__Preset__MillenniumPine QGradient__Preset = 138 + QGradient__Preset__HighFlight QGradient__Preset = 139 + QGradient__Preset__MoleHall QGradient__Preset = 140 + QGradient__Preset__SpaceShift QGradient__Preset = 142 + QGradient__Preset__ForestInei QGradient__Preset = 143 + QGradient__Preset__RoyalGarden QGradient__Preset = 144 + QGradient__Preset__RichMetal QGradient__Preset = 145 + QGradient__Preset__JuicyCake QGradient__Preset = 146 + QGradient__Preset__SmartIndigo QGradient__Preset = 147 + QGradient__Preset__SandStrike QGradient__Preset = 148 + QGradient__Preset__NorseBeauty QGradient__Preset = 149 + QGradient__Preset__AquaGuidance QGradient__Preset = 150 + QGradient__Preset__SunVeggie QGradient__Preset = 151 + QGradient__Preset__SeaLord QGradient__Preset = 152 + QGradient__Preset__BlackSea QGradient__Preset = 153 + QGradient__Preset__GrassShampoo QGradient__Preset = 154 + QGradient__Preset__LandingAircraft QGradient__Preset = 155 + QGradient__Preset__WitchDance QGradient__Preset = 156 + QGradient__Preset__SleeplessNight QGradient__Preset = 157 + QGradient__Preset__AngelCare QGradient__Preset = 158 + QGradient__Preset__CrystalRiver QGradient__Preset = 159 + QGradient__Preset__SoftLipstick QGradient__Preset = 160 + QGradient__Preset__SaltMountain QGradient__Preset = 161 + QGradient__Preset__PerfectWhite QGradient__Preset = 162 + QGradient__Preset__FreshOasis QGradient__Preset = 163 + QGradient__Preset__StrictNovember QGradient__Preset = 164 + QGradient__Preset__MorningSalad QGradient__Preset = 165 + QGradient__Preset__DeepRelief QGradient__Preset = 166 + QGradient__Preset__SeaStrike QGradient__Preset = 167 + QGradient__Preset__NightCall QGradient__Preset = 168 + QGradient__Preset__SupremeSky QGradient__Preset = 169 + QGradient__Preset__LightBlue QGradient__Preset = 170 + QGradient__Preset__MindCrawl QGradient__Preset = 171 + QGradient__Preset__LilyMeadow QGradient__Preset = 172 + QGradient__Preset__SugarLollipop QGradient__Preset = 173 + QGradient__Preset__SweetDessert QGradient__Preset = 174 + QGradient__Preset__MagicRay QGradient__Preset = 175 + QGradient__Preset__TeenParty QGradient__Preset = 176 + QGradient__Preset__FrozenHeat QGradient__Preset = 177 + QGradient__Preset__GagarinView QGradient__Preset = 178 + QGradient__Preset__FabledSunset QGradient__Preset = 179 + QGradient__Preset__PerfectBlue QGradient__Preset = 180 + QGradient__Preset__NumPresets QGradient__Preset = 181 +) + type QBrush struct { h *C.QBrush } @@ -42,7 +249,7 @@ func NewQBrush() *QBrush { } // NewQBrush2 constructs a new QBrush object. -func NewQBrush2(bs uintptr) *QBrush { +func NewQBrush2(bs BrushStyle) *QBrush { ret := C.QBrush_new2((C.uintptr_t)(bs)) return newQBrush(ret) } @@ -54,7 +261,7 @@ func NewQBrush3(color *QColor) *QBrush { } // NewQBrush4 constructs a new QBrush object. -func NewQBrush4(color uintptr) *QBrush { +func NewQBrush4(color GlobalColor) *QBrush { ret := C.QBrush_new4((C.uintptr_t)(color)) return newQBrush(ret) } @@ -66,7 +273,7 @@ func NewQBrush5(color *QColor, pixmap *QPixmap) *QBrush { } // NewQBrush6 constructs a new QBrush object. -func NewQBrush6(color uintptr, pixmap *QPixmap) *QBrush { +func NewQBrush6(color GlobalColor, pixmap *QPixmap) *QBrush { ret := C.QBrush_new6((C.uintptr_t)(color), pixmap.cPointer()) return newQBrush(ret) } @@ -96,13 +303,13 @@ func NewQBrush10(gradient *QGradient) *QBrush { } // NewQBrush11 constructs a new QBrush object. -func NewQBrush11(color *QColor, bs uintptr) *QBrush { +func NewQBrush11(color *QColor, bs BrushStyle) *QBrush { ret := C.QBrush_new11(color.cPointer(), (C.uintptr_t)(bs)) return newQBrush(ret) } // NewQBrush12 constructs a new QBrush object. -func NewQBrush12(color uintptr, bs uintptr) *QBrush { +func NewQBrush12(color GlobalColor, bs BrushStyle) *QBrush { ret := C.QBrush_new12((C.uintptr_t)(color), (C.uintptr_t)(bs)) return newQBrush(ret) } @@ -115,12 +322,12 @@ func (this *QBrush) Swap(other *QBrush) { C.QBrush_Swap(this.h, other.cPointer()) } -func (this *QBrush) Style() uintptr { +func (this *QBrush) Style() BrushStyle { ret := C.QBrush_Style(this.h) - return (uintptr)(ret) + return (BrushStyle)(ret) } -func (this *QBrush) SetStyle(style uintptr) { +func (this *QBrush) SetStyle(style BrushStyle) { C.QBrush_SetStyle(this.h, (C.uintptr_t)(style)) } @@ -187,7 +394,7 @@ func (this *QBrush) SetColor(color *QColor) { C.QBrush_SetColor(this.h, color.cPointer()) } -func (this *QBrush) SetColorWithColor(color uintptr) { +func (this *QBrush) SetColorWithColor(color GlobalColor) { C.QBrush_SetColorWithColor(this.h, (C.uintptr_t)(color)) } @@ -285,7 +492,7 @@ func NewQGradient() *QGradient { } // NewQGradient2 constructs a new QGradient object. -func NewQGradient2(param1 uintptr) *QGradient { +func NewQGradient2(param1 QGradient__Preset) *QGradient { ret := C.QGradient_new2((C.uintptr_t)(param1)) return newQGradient(ret) } @@ -296,39 +503,39 @@ func NewQGradient3(param1 *QGradient) *QGradient { return newQGradient(ret) } -func (this *QGradient) Type() uintptr { +func (this *QGradient) Type() QGradient__Type { ret := C.QGradient_Type(this.h) - return (uintptr)(ret) + return (QGradient__Type)(ret) } -func (this *QGradient) SetSpread(spread uintptr) { +func (this *QGradient) SetSpread(spread QGradient__Spread) { C.QGradient_SetSpread(this.h, (C.uintptr_t)(spread)) } -func (this *QGradient) Spread() uintptr { +func (this *QGradient) Spread() QGradient__Spread { ret := C.QGradient_Spread(this.h) - return (uintptr)(ret) + return (QGradient__Spread)(ret) } func (this *QGradient) SetColorAt(pos float64, color *QColor) { C.QGradient_SetColorAt(this.h, (C.double)(pos), color.cPointer()) } -func (this *QGradient) CoordinateMode() uintptr { +func (this *QGradient) CoordinateMode() QGradient__CoordinateMode { ret := C.QGradient_CoordinateMode(this.h) - return (uintptr)(ret) + return (QGradient__CoordinateMode)(ret) } -func (this *QGradient) SetCoordinateMode(mode uintptr) { +func (this *QGradient) SetCoordinateMode(mode QGradient__CoordinateMode) { C.QGradient_SetCoordinateMode(this.h, (C.uintptr_t)(mode)) } -func (this *QGradient) InterpolationMode() uintptr { +func (this *QGradient) InterpolationMode() QGradient__InterpolationMode { ret := C.QGradient_InterpolationMode(this.h) - return (uintptr)(ret) + return (QGradient__InterpolationMode)(ret) } -func (this *QGradient) SetInterpolationMode(mode uintptr) { +func (this *QGradient) SetInterpolationMode(mode QGradient__InterpolationMode) { C.QGradient_SetInterpolationMode(this.h, (C.uintptr_t)(mode)) } diff --git a/qt/gen_qbytearray.go b/qt/gen_qbytearray.go index f02d4dff..85f24734 100644 --- a/qt/gen_qbytearray.go +++ b/qt/gen_qbytearray.go @@ -13,6 +13,40 @@ import ( "unsafe" ) +type DeprecatedRefClassBehavior__EmittingClass int + +const ( + DeprecatedRefClassBehavior__EmittingClass__QByteRef DeprecatedRefClassBehavior__EmittingClass = 0 + DeprecatedRefClassBehavior__EmittingClass__QCharRef DeprecatedRefClassBehavior__EmittingClass = 1 +) + +type DeprecatedRefClassBehavior__WarningType int + +const ( + DeprecatedRefClassBehavior__WarningType__OutOfRange DeprecatedRefClassBehavior__WarningType = 0 + DeprecatedRefClassBehavior__WarningType__DelayedDetach DeprecatedRefClassBehavior__WarningType = 1 +) + +type QByteArray__Base64Option int + +const ( + QByteArray__Base64Option__Base64Encoding QByteArray__Base64Option = 0 + QByteArray__Base64Option__Base64UrlEncoding QByteArray__Base64Option = 1 + QByteArray__Base64Option__KeepTrailingEquals QByteArray__Base64Option = 0 + QByteArray__Base64Option__OmitTrailingEquals QByteArray__Base64Option = 2 + QByteArray__Base64Option__IgnoreBase64DecodingErrors QByteArray__Base64Option = 0 + QByteArray__Base64Option__AbortOnBase64DecodingErrors QByteArray__Base64Option = 4 +) + +type QByteArray__Base64DecodingStatus int + +const ( + QByteArray__Base64DecodingStatus__Ok QByteArray__Base64DecodingStatus = 0 + QByteArray__Base64DecodingStatus__IllegalInputLength QByteArray__Base64DecodingStatus = 1 + QByteArray__Base64DecodingStatus__IllegalCharacter QByteArray__Base64DecodingStatus = 2 + QByteArray__Base64DecodingStatus__IllegalPadding QByteArray__Base64DecodingStatus = 3 +) + type QByteArrayDataPtr struct { h *C.QByteArrayDataPtr } @@ -94,7 +128,7 @@ func NewQByteArray3(size int, c byte) *QByteArray { } // NewQByteArray4 constructs a new QByteArray object. -func NewQByteArray4(size int, param2 uintptr) *QByteArray { +func NewQByteArray4(size int, param2 Initialization) *QByteArray { ret := C.QByteArray_new4((C.int)(size), (C.uintptr_t)(param2)) return newQByteArray(ret) } @@ -1216,14 +1250,14 @@ func (this *QByteArray) LastIndexOf23(a *QByteArray, from int) int { return (int)(ret) } -func (this *QByteArray) Compare2(c string, cs uintptr) int { +func (this *QByteArray) Compare2(c string, cs CaseSensitivity) int { c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) ret := C.QByteArray_Compare2(this.h, c_Cstring, (C.uintptr_t)(cs)) return (int)(ret) } -func (this *QByteArray) Compare22(a *QByteArray, cs uintptr) int { +func (this *QByteArray) Compare22(a *QByteArray, cs CaseSensitivity) int { ret := C.QByteArray_Compare22(this.h, a.cPointer(), (C.uintptr_t)(cs)) return (int)(ret) } diff --git a/qt/gen_qcalendar.go b/qt/gen_qcalendar.go index c9ac7661..c22cf3dc 100644 --- a/qt/gen_qcalendar.go +++ b/qt/gen_qcalendar.go @@ -13,6 +13,24 @@ import ( "unsafe" ) +type QCalendar__ int + +const ( + QCalendar____Unspecified QCalendar__ = -2147483648 +) + +type QCalendar__System int + +const ( + QCalendar__System__Gregorian QCalendar__System = 0 + QCalendar__System__Julian QCalendar__System = 8 + QCalendar__System__Milankovic QCalendar__System = 9 + QCalendar__System__Jalali QCalendar__System = 10 + QCalendar__System__IslamicCivil QCalendar__System = 11 + QCalendar__System__Last QCalendar__System = 11 + QCalendar__System__User QCalendar__System = -1 +) + type QCalendar struct { h *C.QCalendar } @@ -42,7 +60,7 @@ func NewQCalendar() *QCalendar { } // NewQCalendar2 constructs a new QCalendar object. -func NewQCalendar2(system uintptr) *QCalendar { +func NewQCalendar2(system QCalendar__System) *QCalendar { ret := C.QCalendar_new2((C.uintptr_t)(system)) return newQCalendar(ret) } @@ -234,7 +252,7 @@ func (this *QCalendar) MonthName3(locale *QLocale, month int, year int) string { return ret } -func (this *QCalendar) MonthName4(locale *QLocale, month int, year int, format uintptr) string { +func (this *QCalendar) MonthName4(locale *QLocale, month int, year int, format QLocale__FormatType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QCalendar_MonthName4(this.h, locale.cPointer(), (C.int)(month), (C.int)(year), (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -252,7 +270,7 @@ func (this *QCalendar) StandaloneMonthName3(locale *QLocale, month int, year int return ret } -func (this *QCalendar) StandaloneMonthName4(locale *QLocale, month int, year int, format uintptr) string { +func (this *QCalendar) StandaloneMonthName4(locale *QLocale, month int, year int, format QLocale__FormatType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QCalendar_StandaloneMonthName4(this.h, locale.cPointer(), (C.int)(month), (C.int)(year), (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -261,7 +279,7 @@ func (this *QCalendar) StandaloneMonthName4(locale *QLocale, month int, year int return ret } -func (this *QCalendar) WeekDayName3(locale *QLocale, day int, format uintptr) string { +func (this *QCalendar) WeekDayName3(locale *QLocale, day int, format QLocale__FormatType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QCalendar_WeekDayName3(this.h, locale.cPointer(), (C.int)(day), (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -270,7 +288,7 @@ func (this *QCalendar) WeekDayName3(locale *QLocale, day int, format uintptr) st return ret } -func (this *QCalendar) StandaloneWeekDayName3(locale *QLocale, day int, format uintptr) string { +func (this *QCalendar) StandaloneWeekDayName3(locale *QLocale, day int, format QLocale__FormatType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QCalendar_StandaloneWeekDayName3(this.h, locale.cPointer(), (C.int)(day), (C.uintptr_t)(format), &_out, &_out_Strlen) diff --git a/qt/gen_qcalendarwidget.go b/qt/gen_qcalendarwidget.go index 0971fdf7..be5a6ec5 100644 --- a/qt/gen_qcalendarwidget.go +++ b/qt/gen_qcalendarwidget.go @@ -14,6 +14,29 @@ import ( "unsafe" ) +type QCalendarWidget__HorizontalHeaderFormat int + +const ( + QCalendarWidget__HorizontalHeaderFormat__NoHorizontalHeader QCalendarWidget__HorizontalHeaderFormat = 0 + QCalendarWidget__HorizontalHeaderFormat__SingleLetterDayNames QCalendarWidget__HorizontalHeaderFormat = 1 + QCalendarWidget__HorizontalHeaderFormat__ShortDayNames QCalendarWidget__HorizontalHeaderFormat = 2 + QCalendarWidget__HorizontalHeaderFormat__LongDayNames QCalendarWidget__HorizontalHeaderFormat = 3 +) + +type QCalendarWidget__VerticalHeaderFormat int + +const ( + QCalendarWidget__VerticalHeaderFormat__NoVerticalHeader QCalendarWidget__VerticalHeaderFormat = 0 + QCalendarWidget__VerticalHeaderFormat__ISOWeekNumbers QCalendarWidget__VerticalHeaderFormat = 1 +) + +type QCalendarWidget__SelectionMode int + +const ( + QCalendarWidget__SelectionMode__NoSelection QCalendarWidget__SelectionMode = 0 + QCalendarWidget__SelectionMode__SingleSelection QCalendarWidget__SelectionMode = 1 +) + type QCalendarWidget struct { h *C.QCalendarWidget *QWidget @@ -149,12 +172,12 @@ func (this *QCalendarWidget) SetMaximumDate(date *QDate) { C.QCalendarWidget_SetMaximumDate(this.h, date.cPointer()) } -func (this *QCalendarWidget) FirstDayOfWeek() uintptr { +func (this *QCalendarWidget) FirstDayOfWeek() DayOfWeek { ret := C.QCalendarWidget_FirstDayOfWeek(this.h) - return (uintptr)(ret) + return (DayOfWeek)(ret) } -func (this *QCalendarWidget) SetFirstDayOfWeek(dayOfWeek uintptr) { +func (this *QCalendarWidget) SetFirstDayOfWeek(dayOfWeek DayOfWeek) { C.QCalendarWidget_SetFirstDayOfWeek(this.h, (C.uintptr_t)(dayOfWeek)) } @@ -183,30 +206,30 @@ func (this *QCalendarWidget) SetCalendar(calendar QCalendar) { C.QCalendarWidget_SetCalendar(this.h, calendar.cPointer()) } -func (this *QCalendarWidget) SelectionMode() uintptr { +func (this *QCalendarWidget) SelectionMode() QCalendarWidget__SelectionMode { ret := C.QCalendarWidget_SelectionMode(this.h) - return (uintptr)(ret) + return (QCalendarWidget__SelectionMode)(ret) } -func (this *QCalendarWidget) SetSelectionMode(mode uintptr) { +func (this *QCalendarWidget) SetSelectionMode(mode QCalendarWidget__SelectionMode) { C.QCalendarWidget_SetSelectionMode(this.h, (C.uintptr_t)(mode)) } -func (this *QCalendarWidget) HorizontalHeaderFormat() uintptr { +func (this *QCalendarWidget) HorizontalHeaderFormat() QCalendarWidget__HorizontalHeaderFormat { ret := C.QCalendarWidget_HorizontalHeaderFormat(this.h) - return (uintptr)(ret) + return (QCalendarWidget__HorizontalHeaderFormat)(ret) } -func (this *QCalendarWidget) SetHorizontalHeaderFormat(format uintptr) { +func (this *QCalendarWidget) SetHorizontalHeaderFormat(format QCalendarWidget__HorizontalHeaderFormat) { C.QCalendarWidget_SetHorizontalHeaderFormat(this.h, (C.uintptr_t)(format)) } -func (this *QCalendarWidget) VerticalHeaderFormat() uintptr { +func (this *QCalendarWidget) VerticalHeaderFormat() QCalendarWidget__VerticalHeaderFormat { ret := C.QCalendarWidget_VerticalHeaderFormat(this.h) - return (uintptr)(ret) + return (QCalendarWidget__VerticalHeaderFormat)(ret) } -func (this *QCalendarWidget) SetVerticalHeaderFormat(format uintptr) { +func (this *QCalendarWidget) SetVerticalHeaderFormat(format QCalendarWidget__VerticalHeaderFormat) { C.QCalendarWidget_SetVerticalHeaderFormat(this.h, (C.uintptr_t)(format)) } @@ -225,7 +248,7 @@ func (this *QCalendarWidget) SetHeaderTextFormat(format *QTextCharFormat) { C.QCalendarWidget_SetHeaderTextFormat(this.h, format.cPointer()) } -func (this *QCalendarWidget) WeekdayTextFormat(dayOfWeek uintptr) *QTextCharFormat { +func (this *QCalendarWidget) WeekdayTextFormat(dayOfWeek DayOfWeek) *QTextCharFormat { ret := C.QCalendarWidget_WeekdayTextFormat(this.h, (C.uintptr_t)(dayOfWeek)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQTextCharFormat(ret) @@ -236,7 +259,7 @@ func (this *QCalendarWidget) WeekdayTextFormat(dayOfWeek uintptr) *QTextCharForm return ret1 } -func (this *QCalendarWidget) SetWeekdayTextFormat(dayOfWeek uintptr, format *QTextCharFormat) { +func (this *QCalendarWidget) SetWeekdayTextFormat(dayOfWeek DayOfWeek, format *QTextCharFormat) { C.QCalendarWidget_SetWeekdayTextFormat(this.h, (C.uintptr_t)(dayOfWeek), format.cPointer()) } diff --git a/qt/gen_qcborcommon.go b/qt/gen_qcborcommon.go index 663dc84d..146cf9f7 100644 --- a/qt/gen_qcborcommon.go +++ b/qt/gen_qcborcommon.go @@ -12,6 +12,63 @@ import ( "unsafe" ) +type QCborSimpleType int + +const ( + QCborSimpleType__False QCborSimpleType = 20 + QCborSimpleType__True QCborSimpleType = 21 + QCborSimpleType__Null QCborSimpleType = 22 + QCborSimpleType__Undefined QCborSimpleType = 23 +) + +type QCborKnownTags int + +const ( + QCborKnownTags__DateTimeString QCborKnownTags = 0 + QCborKnownTags__UnixTime_t QCborKnownTags = 1 + QCborKnownTags__PositiveBignum QCborKnownTags = 2 + QCborKnownTags__NegativeBignum QCborKnownTags = 3 + QCborKnownTags__Decimal QCborKnownTags = 4 + QCborKnownTags__Bigfloat QCborKnownTags = 5 + QCborKnownTags__COSE_Encrypt0 QCborKnownTags = 16 + QCborKnownTags__COSE_Mac0 QCborKnownTags = 17 + QCborKnownTags__COSE_Sign1 QCborKnownTags = 18 + QCborKnownTags__ExpectedBase64url QCborKnownTags = 21 + QCborKnownTags__ExpectedBase64 QCborKnownTags = 22 + QCborKnownTags__ExpectedBase16 QCborKnownTags = 23 + QCborKnownTags__EncodedCbor QCborKnownTags = 24 + QCborKnownTags__Url QCborKnownTags = 32 + QCborKnownTags__Base64url QCborKnownTags = 33 + QCborKnownTags__Base64 QCborKnownTags = 34 + QCborKnownTags__RegularExpression QCborKnownTags = 35 + QCborKnownTags__MimeMessage QCborKnownTags = 36 + QCborKnownTags__Uuid QCborKnownTags = 37 + QCborKnownTags__COSE_Encrypt QCborKnownTags = 96 + QCborKnownTags__COSE_Mac QCborKnownTags = 97 + QCborKnownTags__COSE_Sign QCborKnownTags = 98 + QCborKnownTags__Signature QCborKnownTags = 55799 +) + +type QCborError__Code int + +const ( + QCborError__Code__UnknownError QCborError__Code = 1 + QCborError__Code__AdvancePastEnd QCborError__Code = 3 + QCborError__Code__InputOutputError QCborError__Code = 4 + QCborError__Code__GarbageAtEnd QCborError__Code = 256 + QCborError__Code__EndOfFile QCborError__Code = 257 + QCborError__Code__UnexpectedBreak QCborError__Code = 258 + QCborError__Code__UnknownType QCborError__Code = 259 + QCborError__Code__IllegalType QCborError__Code = 260 + QCborError__Code__IllegalNumber QCborError__Code = 261 + QCborError__Code__IllegalSimpleType QCborError__Code = 262 + QCborError__Code__InvalidUtf8String QCborError__Code = 516 + QCborError__Code__DataTooLarge QCborError__Code = 1024 + QCborError__Code__NestingTooDeep QCborError__Code = 1025 + QCborError__Code__UnsupportedType QCborError__Code = 1026 + QCborError__Code__NoError QCborError__Code = 0 +) + type QCborError struct { h *C.QCborError } diff --git a/qt/gen_qcborstreamreader.go b/qt/gen_qcborstreamreader.go index 951bfdb3..f4f2ecb4 100644 --- a/qt/gen_qcborstreamreader.go +++ b/qt/gen_qcborstreamreader.go @@ -13,6 +13,34 @@ import ( "unsafe" ) +type QCborStreamReader__Type int + +const ( + QCborStreamReader__Type__UnsignedInteger QCborStreamReader__Type = 0 + QCborStreamReader__Type__NegativeInteger QCborStreamReader__Type = 32 + QCborStreamReader__Type__ByteString QCborStreamReader__Type = 64 + QCborStreamReader__Type__ByteArray QCborStreamReader__Type = 64 + QCborStreamReader__Type__TextString QCborStreamReader__Type = 96 + QCborStreamReader__Type__String QCborStreamReader__Type = 96 + QCborStreamReader__Type__Array QCborStreamReader__Type = 128 + QCborStreamReader__Type__Map QCborStreamReader__Type = 160 + QCborStreamReader__Type__Tag QCborStreamReader__Type = 192 + QCborStreamReader__Type__SimpleType QCborStreamReader__Type = 224 + QCborStreamReader__Type__HalfFloat QCborStreamReader__Type = 249 + QCborStreamReader__Type__Float16 QCborStreamReader__Type = 249 + QCborStreamReader__Type__Float QCborStreamReader__Type = 250 + QCborStreamReader__Type__Double QCborStreamReader__Type = 251 + QCborStreamReader__Type__Invalid QCborStreamReader__Type = 255 +) + +type QCborStreamReader__StringResultCode int + +const ( + QCborStreamReader__StringResultCode__EndOfString QCborStreamReader__StringResultCode = 0 + QCborStreamReader__StringResultCode__Ok QCborStreamReader__StringResultCode = 1 + QCborStreamReader__StringResultCode__Error QCborStreamReader__StringResultCode = -1 +) + type QCborStreamReader struct { h *C.QCborStreamReader } @@ -128,9 +156,9 @@ func (this *QCborStreamReader) ContainerDepth() int { return (int)(ret) } -func (this *QCborStreamReader) ParentContainerType() uintptr { +func (this *QCborStreamReader) ParentContainerType() QCborStreamReader__Type { ret := C.QCborStreamReader_ParentContainerType(this.h) - return (uintptr)(ret) + return (QCborStreamReader__Type)(ret) } func (this *QCborStreamReader) HasNext() bool { @@ -143,9 +171,9 @@ func (this *QCborStreamReader) Next() bool { return (bool)(ret) } -func (this *QCborStreamReader) Type() uintptr { +func (this *QCborStreamReader) Type() QCborStreamReader__Type { ret := C.QCborStreamReader_Type(this.h) - return (uintptr)(ret) + return (QCborStreamReader__Type)(ret) } func (this *QCborStreamReader) IsUnsignedInteger() bool { diff --git a/qt/gen_qcborvalue.go b/qt/gen_qcborvalue.go index 20c08224..8683a726 100644 --- a/qt/gen_qcborvalue.go +++ b/qt/gen_qcborvalue.go @@ -13,6 +13,46 @@ import ( "unsafe" ) +type QCborValue__EncodingOption int + +const ( + QCborValue__EncodingOption__SortKeysInMaps QCborValue__EncodingOption = 1 + QCborValue__EncodingOption__UseFloat QCborValue__EncodingOption = 2 + QCborValue__EncodingOption__UseFloat16 QCborValue__EncodingOption = 6 + QCborValue__EncodingOption__UseIntegers QCborValue__EncodingOption = 8 + QCborValue__EncodingOption__NoTransformation QCborValue__EncodingOption = 0 +) + +type QCborValue__DiagnosticNotationOption int + +const ( + QCborValue__DiagnosticNotationOption__Compact QCborValue__DiagnosticNotationOption = 0 + QCborValue__DiagnosticNotationOption__LineWrapped QCborValue__DiagnosticNotationOption = 1 + QCborValue__DiagnosticNotationOption__ExtendedFormat QCborValue__DiagnosticNotationOption = 2 +) + +type QCborValue__Type int + +const ( + QCborValue__Type__Integer QCborValue__Type = 0 + QCborValue__Type__ByteArray QCborValue__Type = 64 + QCborValue__Type__String QCborValue__Type = 96 + QCborValue__Type__Array QCborValue__Type = 128 + QCborValue__Type__Map QCborValue__Type = 160 + QCborValue__Type__Tag QCborValue__Type = 192 + QCborValue__Type__SimpleType QCborValue__Type = 256 + QCborValue__Type__False QCborValue__Type = 276 + QCborValue__Type__True QCborValue__Type = 277 + QCborValue__Type__Null QCborValue__Type = 278 + QCborValue__Type__Undefined QCborValue__Type = 279 + QCborValue__Type__Double QCborValue__Type = 514 + QCborValue__Type__DateTime QCborValue__Type = 65536 + QCborValue__Type__Url QCborValue__Type = 65568 + QCborValue__Type__RegularExpression QCborValue__Type = 65571 + QCborValue__Type__Uuid QCborValue__Type = 65573 + QCborValue__Type__Invalid QCborValue__Type = -1 +) + type QCborParserError struct { h *C.QCborParserError } @@ -77,7 +117,7 @@ func NewQCborValue() *QCborValue { } // NewQCborValue2 constructs a new QCborValue object. -func NewQCborValue2(t_ uintptr) *QCborValue { +func NewQCborValue2(t_ QCborValue__Type) *QCborValue { ret := C.QCborValue_new2((C.uintptr_t)(t_)) return newQCborValue(ret) } @@ -184,9 +224,9 @@ func (this *QCborValue) Swap(other *QCborValue) { C.QCborValue_Swap(this.h, other.cPointer()) } -func (this *QCborValue) Type() uintptr { +func (this *QCborValue) Type() QCborValue__Type { ret := C.QCborValue_Type(this.h) - return (uintptr)(ret) + return (QCborValue__Type)(ret) } func (this *QCborValue) IsInteger() bool { @@ -791,9 +831,9 @@ func (this *QCborValueRef) OperatorAssignWithOther(other *QCborValueRef) { C.QCborValueRef_OperatorAssignWithOther(this.h, other.cPointer()) } -func (this *QCborValueRef) Type() uintptr { +func (this *QCborValueRef) Type() QCborValue__Type { ret := C.QCborValueRef_Type(this.h) - return (uintptr)(ret) + return (QCborValue__Type)(ret) } func (this *QCborValueRef) IsInteger() bool { diff --git a/qt/gen_qchar.go b/qt/gen_qchar.go index db30608b..a23902de 100644 --- a/qt/gen_qchar.go +++ b/qt/gen_qchar.go @@ -13,6 +13,348 @@ import ( "unsafe" ) +type QChar__SpecialCharacter int + +const ( + QChar__SpecialCharacter__Null QChar__SpecialCharacter = 0 + QChar__SpecialCharacter__Tabulation QChar__SpecialCharacter = 9 + QChar__SpecialCharacter__LineFeed QChar__SpecialCharacter = 10 + QChar__SpecialCharacter__FormFeed QChar__SpecialCharacter = 12 + QChar__SpecialCharacter__CarriageReturn QChar__SpecialCharacter = 13 + QChar__SpecialCharacter__Space QChar__SpecialCharacter = 32 + QChar__SpecialCharacter__Nbsp QChar__SpecialCharacter = 160 + QChar__SpecialCharacter__SoftHyphen QChar__SpecialCharacter = 173 + QChar__SpecialCharacter__ReplacementCharacter QChar__SpecialCharacter = 65533 + QChar__SpecialCharacter__ObjectReplacementCharacter QChar__SpecialCharacter = 65532 + QChar__SpecialCharacter__ByteOrderMark QChar__SpecialCharacter = 65279 + QChar__SpecialCharacter__ByteOrderSwapped QChar__SpecialCharacter = 65534 + QChar__SpecialCharacter__ParagraphSeparator QChar__SpecialCharacter = 8233 + QChar__SpecialCharacter__LineSeparator QChar__SpecialCharacter = 8232 + QChar__SpecialCharacter__LastValidCodePoint QChar__SpecialCharacter = 1114111 +) + +type QChar__Category int + +const ( + QChar__Category__Mark_NonSpacing QChar__Category = 0 + QChar__Category__Mark_SpacingCombining QChar__Category = 1 + QChar__Category__Mark_Enclosing QChar__Category = 2 + QChar__Category__Number_DecimalDigit QChar__Category = 3 + QChar__Category__Number_Letter QChar__Category = 4 + QChar__Category__Number_Other QChar__Category = 5 + QChar__Category__Separator_Space QChar__Category = 6 + QChar__Category__Separator_Line QChar__Category = 7 + QChar__Category__Separator_Paragraph QChar__Category = 8 + QChar__Category__Other_Control QChar__Category = 9 + QChar__Category__Other_Format QChar__Category = 10 + QChar__Category__Other_Surrogate QChar__Category = 11 + QChar__Category__Other_PrivateUse QChar__Category = 12 + QChar__Category__Other_NotAssigned QChar__Category = 13 + QChar__Category__Letter_Uppercase QChar__Category = 14 + QChar__Category__Letter_Lowercase QChar__Category = 15 + QChar__Category__Letter_Titlecase QChar__Category = 16 + QChar__Category__Letter_Modifier QChar__Category = 17 + QChar__Category__Letter_Other QChar__Category = 18 + QChar__Category__Punctuation_Connector QChar__Category = 19 + QChar__Category__Punctuation_Dash QChar__Category = 20 + QChar__Category__Punctuation_Open QChar__Category = 21 + QChar__Category__Punctuation_Close QChar__Category = 22 + QChar__Category__Punctuation_InitialQuote QChar__Category = 23 + QChar__Category__Punctuation_FinalQuote QChar__Category = 24 + QChar__Category__Punctuation_Other QChar__Category = 25 + QChar__Category__Symbol_Math QChar__Category = 26 + QChar__Category__Symbol_Currency QChar__Category = 27 + QChar__Category__Symbol_Modifier QChar__Category = 28 + QChar__Category__Symbol_Other QChar__Category = 29 +) + +type QChar__Script int + +const ( + QChar__Script__Script_Unknown QChar__Script = 0 + QChar__Script__Script_Inherited QChar__Script = 1 + QChar__Script__Script_Common QChar__Script = 2 + QChar__Script__Script_Latin QChar__Script = 3 + QChar__Script__Script_Greek QChar__Script = 4 + QChar__Script__Script_Cyrillic QChar__Script = 5 + QChar__Script__Script_Armenian QChar__Script = 6 + QChar__Script__Script_Hebrew QChar__Script = 7 + QChar__Script__Script_Arabic QChar__Script = 8 + QChar__Script__Script_Syriac QChar__Script = 9 + QChar__Script__Script_Thaana QChar__Script = 10 + QChar__Script__Script_Devanagari QChar__Script = 11 + QChar__Script__Script_Bengali QChar__Script = 12 + QChar__Script__Script_Gurmukhi QChar__Script = 13 + QChar__Script__Script_Gujarati QChar__Script = 14 + QChar__Script__Script_Oriya QChar__Script = 15 + QChar__Script__Script_Tamil QChar__Script = 16 + QChar__Script__Script_Telugu QChar__Script = 17 + QChar__Script__Script_Kannada QChar__Script = 18 + QChar__Script__Script_Malayalam QChar__Script = 19 + QChar__Script__Script_Sinhala QChar__Script = 20 + QChar__Script__Script_Thai QChar__Script = 21 + QChar__Script__Script_Lao QChar__Script = 22 + QChar__Script__Script_Tibetan QChar__Script = 23 + QChar__Script__Script_Myanmar QChar__Script = 24 + QChar__Script__Script_Georgian QChar__Script = 25 + QChar__Script__Script_Hangul QChar__Script = 26 + QChar__Script__Script_Ethiopic QChar__Script = 27 + QChar__Script__Script_Cherokee QChar__Script = 28 + QChar__Script__Script_CanadianAboriginal QChar__Script = 29 + QChar__Script__Script_Ogham QChar__Script = 30 + QChar__Script__Script_Runic QChar__Script = 31 + QChar__Script__Script_Khmer QChar__Script = 32 + QChar__Script__Script_Mongolian QChar__Script = 33 + QChar__Script__Script_Hiragana QChar__Script = 34 + QChar__Script__Script_Katakana QChar__Script = 35 + QChar__Script__Script_Bopomofo QChar__Script = 36 + QChar__Script__Script_Han QChar__Script = 37 + QChar__Script__Script_Yi QChar__Script = 38 + QChar__Script__Script_OldItalic QChar__Script = 39 + QChar__Script__Script_Gothic QChar__Script = 40 + QChar__Script__Script_Deseret QChar__Script = 41 + QChar__Script__Script_Tagalog QChar__Script = 42 + QChar__Script__Script_Hanunoo QChar__Script = 43 + QChar__Script__Script_Buhid QChar__Script = 44 + QChar__Script__Script_Tagbanwa QChar__Script = 45 + QChar__Script__Script_Coptic QChar__Script = 46 + QChar__Script__Script_Limbu QChar__Script = 47 + QChar__Script__Script_TaiLe QChar__Script = 48 + QChar__Script__Script_LinearB QChar__Script = 49 + QChar__Script__Script_Ugaritic QChar__Script = 50 + QChar__Script__Script_Shavian QChar__Script = 51 + QChar__Script__Script_Osmanya QChar__Script = 52 + QChar__Script__Script_Cypriot QChar__Script = 53 + QChar__Script__Script_Braille QChar__Script = 54 + QChar__Script__Script_Buginese QChar__Script = 55 + QChar__Script__Script_NewTaiLue QChar__Script = 56 + QChar__Script__Script_Glagolitic QChar__Script = 57 + QChar__Script__Script_Tifinagh QChar__Script = 58 + QChar__Script__Script_SylotiNagri QChar__Script = 59 + QChar__Script__Script_OldPersian QChar__Script = 60 + QChar__Script__Script_Kharoshthi QChar__Script = 61 + QChar__Script__Script_Balinese QChar__Script = 62 + QChar__Script__Script_Cuneiform QChar__Script = 63 + QChar__Script__Script_Phoenician QChar__Script = 64 + QChar__Script__Script_PhagsPa QChar__Script = 65 + QChar__Script__Script_Nko QChar__Script = 66 + QChar__Script__Script_Sundanese QChar__Script = 67 + QChar__Script__Script_Lepcha QChar__Script = 68 + QChar__Script__Script_OlChiki QChar__Script = 69 + QChar__Script__Script_Vai QChar__Script = 70 + QChar__Script__Script_Saurashtra QChar__Script = 71 + QChar__Script__Script_KayahLi QChar__Script = 72 + QChar__Script__Script_Rejang QChar__Script = 73 + QChar__Script__Script_Lycian QChar__Script = 74 + QChar__Script__Script_Carian QChar__Script = 75 + QChar__Script__Script_Lydian QChar__Script = 76 + QChar__Script__Script_Cham QChar__Script = 77 + QChar__Script__Script_TaiTham QChar__Script = 78 + QChar__Script__Script_TaiViet QChar__Script = 79 + QChar__Script__Script_Avestan QChar__Script = 80 + QChar__Script__Script_EgyptianHieroglyphs QChar__Script = 81 + QChar__Script__Script_Samaritan QChar__Script = 82 + QChar__Script__Script_Lisu QChar__Script = 83 + QChar__Script__Script_Bamum QChar__Script = 84 + QChar__Script__Script_Javanese QChar__Script = 85 + QChar__Script__Script_MeeteiMayek QChar__Script = 86 + QChar__Script__Script_ImperialAramaic QChar__Script = 87 + QChar__Script__Script_OldSouthArabian QChar__Script = 88 + QChar__Script__Script_InscriptionalParthian QChar__Script = 89 + QChar__Script__Script_InscriptionalPahlavi QChar__Script = 90 + QChar__Script__Script_OldTurkic QChar__Script = 91 + QChar__Script__Script_Kaithi QChar__Script = 92 + QChar__Script__Script_Batak QChar__Script = 93 + QChar__Script__Script_Brahmi QChar__Script = 94 + QChar__Script__Script_Mandaic QChar__Script = 95 + QChar__Script__Script_Chakma QChar__Script = 96 + QChar__Script__Script_MeroiticCursive QChar__Script = 97 + QChar__Script__Script_MeroiticHieroglyphs QChar__Script = 98 + QChar__Script__Script_Miao QChar__Script = 99 + QChar__Script__Script_Sharada QChar__Script = 100 + QChar__Script__Script_SoraSompeng QChar__Script = 101 + QChar__Script__Script_Takri QChar__Script = 102 + QChar__Script__Script_CaucasianAlbanian QChar__Script = 103 + QChar__Script__Script_BassaVah QChar__Script = 104 + QChar__Script__Script_Duployan QChar__Script = 105 + QChar__Script__Script_Elbasan QChar__Script = 106 + QChar__Script__Script_Grantha QChar__Script = 107 + QChar__Script__Script_PahawhHmong QChar__Script = 108 + QChar__Script__Script_Khojki QChar__Script = 109 + QChar__Script__Script_LinearA QChar__Script = 110 + QChar__Script__Script_Mahajani QChar__Script = 111 + QChar__Script__Script_Manichaean QChar__Script = 112 + QChar__Script__Script_MendeKikakui QChar__Script = 113 + QChar__Script__Script_Modi QChar__Script = 114 + QChar__Script__Script_Mro QChar__Script = 115 + QChar__Script__Script_OldNorthArabian QChar__Script = 116 + QChar__Script__Script_Nabataean QChar__Script = 117 + QChar__Script__Script_Palmyrene QChar__Script = 118 + QChar__Script__Script_PauCinHau QChar__Script = 119 + QChar__Script__Script_OldPermic QChar__Script = 120 + QChar__Script__Script_PsalterPahlavi QChar__Script = 121 + QChar__Script__Script_Siddham QChar__Script = 122 + QChar__Script__Script_Khudawadi QChar__Script = 123 + QChar__Script__Script_Tirhuta QChar__Script = 124 + QChar__Script__Script_WarangCiti QChar__Script = 125 + QChar__Script__Script_Ahom QChar__Script = 126 + QChar__Script__Script_AnatolianHieroglyphs QChar__Script = 127 + QChar__Script__Script_Hatran QChar__Script = 128 + QChar__Script__Script_Multani QChar__Script = 129 + QChar__Script__Script_OldHungarian QChar__Script = 130 + QChar__Script__Script_SignWriting QChar__Script = 131 + QChar__Script__Script_Adlam QChar__Script = 132 + QChar__Script__Script_Bhaiksuki QChar__Script = 133 + QChar__Script__Script_Marchen QChar__Script = 134 + QChar__Script__Script_Newa QChar__Script = 135 + QChar__Script__Script_Osage QChar__Script = 136 + QChar__Script__Script_Tangut QChar__Script = 137 + QChar__Script__Script_MasaramGondi QChar__Script = 138 + QChar__Script__Script_Nushu QChar__Script = 139 + QChar__Script__Script_Soyombo QChar__Script = 140 + QChar__Script__Script_ZanabazarSquare QChar__Script = 141 + QChar__Script__Script_Dogra QChar__Script = 142 + QChar__Script__Script_GunjalaGondi QChar__Script = 143 + QChar__Script__Script_HanifiRohingya QChar__Script = 144 + QChar__Script__Script_Makasar QChar__Script = 145 + QChar__Script__Script_Medefaidrin QChar__Script = 146 + QChar__Script__Script_OldSogdian QChar__Script = 147 + QChar__Script__Script_Sogdian QChar__Script = 148 + QChar__Script__Script_Elymaic QChar__Script = 149 + QChar__Script__Script_Nandinagari QChar__Script = 150 + QChar__Script__Script_NyiakengPuachueHmong QChar__Script = 151 + QChar__Script__Script_Wancho QChar__Script = 152 + QChar__Script__Script_Chorasmian QChar__Script = 153 + QChar__Script__Script_DivesAkuru QChar__Script = 154 + QChar__Script__Script_KhitanSmallScript QChar__Script = 155 + QChar__Script__Script_Yezidi QChar__Script = 156 + QChar__Script__ScriptCount QChar__Script = 157 +) + +type QChar__Direction int + +const ( + QChar__Direction__DirL QChar__Direction = 0 + QChar__Direction__DirR QChar__Direction = 1 + QChar__Direction__DirEN QChar__Direction = 2 + QChar__Direction__DirES QChar__Direction = 3 + QChar__Direction__DirET QChar__Direction = 4 + QChar__Direction__DirAN QChar__Direction = 5 + QChar__Direction__DirCS QChar__Direction = 6 + QChar__Direction__DirB QChar__Direction = 7 + QChar__Direction__DirS QChar__Direction = 8 + QChar__Direction__DirWS QChar__Direction = 9 + QChar__Direction__DirON QChar__Direction = 10 + QChar__Direction__DirLRE QChar__Direction = 11 + QChar__Direction__DirLRO QChar__Direction = 12 + QChar__Direction__DirAL QChar__Direction = 13 + QChar__Direction__DirRLE QChar__Direction = 14 + QChar__Direction__DirRLO QChar__Direction = 15 + QChar__Direction__DirPDF QChar__Direction = 16 + QChar__Direction__DirNSM QChar__Direction = 17 + QChar__Direction__DirBN QChar__Direction = 18 + QChar__Direction__DirLRI QChar__Direction = 19 + QChar__Direction__DirRLI QChar__Direction = 20 + QChar__Direction__DirFSI QChar__Direction = 21 + QChar__Direction__DirPDI QChar__Direction = 22 +) + +type QChar__Decomposition int + +const ( + QChar__Decomposition__NoDecomposition QChar__Decomposition = 0 + QChar__Decomposition__Canonical QChar__Decomposition = 1 + QChar__Decomposition__Font QChar__Decomposition = 2 + QChar__Decomposition__NoBreak QChar__Decomposition = 3 + QChar__Decomposition__Initial QChar__Decomposition = 4 + QChar__Decomposition__Medial QChar__Decomposition = 5 + QChar__Decomposition__Final QChar__Decomposition = 6 + QChar__Decomposition__Isolated QChar__Decomposition = 7 + QChar__Decomposition__Circle QChar__Decomposition = 8 + QChar__Decomposition__Super QChar__Decomposition = 9 + QChar__Decomposition__Sub QChar__Decomposition = 10 + QChar__Decomposition__Vertical QChar__Decomposition = 11 + QChar__Decomposition__Wide QChar__Decomposition = 12 + QChar__Decomposition__Narrow QChar__Decomposition = 13 + QChar__Decomposition__Small QChar__Decomposition = 14 + QChar__Decomposition__Square QChar__Decomposition = 15 + QChar__Decomposition__Compat QChar__Decomposition = 16 + QChar__Decomposition__Fraction QChar__Decomposition = 17 +) + +type QChar__JoiningType int + +const ( + QChar__JoiningType__Joining_None QChar__JoiningType = 0 + QChar__JoiningType__Joining_Causing QChar__JoiningType = 1 + QChar__JoiningType__Joining_Dual QChar__JoiningType = 2 + QChar__JoiningType__Joining_Right QChar__JoiningType = 3 + QChar__JoiningType__Joining_Left QChar__JoiningType = 4 + QChar__JoiningType__Joining_Transparent QChar__JoiningType = 5 +) + +type QChar__Joining int + +const ( + QChar__Joining__OtherJoining QChar__Joining = 0 + QChar__Joining__Dual QChar__Joining = 1 + QChar__Joining__Right QChar__Joining = 2 + QChar__Joining__Center QChar__Joining = 3 +) + +type QChar__CombiningClass int + +const ( + QChar__CombiningClass__Combining_BelowLeftAttached QChar__CombiningClass = 200 + QChar__CombiningClass__Combining_BelowAttached QChar__CombiningClass = 202 + QChar__CombiningClass__Combining_BelowRightAttached QChar__CombiningClass = 204 + QChar__CombiningClass__Combining_LeftAttached QChar__CombiningClass = 208 + QChar__CombiningClass__Combining_RightAttached QChar__CombiningClass = 210 + QChar__CombiningClass__Combining_AboveLeftAttached QChar__CombiningClass = 212 + QChar__CombiningClass__Combining_AboveAttached QChar__CombiningClass = 214 + QChar__CombiningClass__Combining_AboveRightAttached QChar__CombiningClass = 216 + QChar__CombiningClass__Combining_BelowLeft QChar__CombiningClass = 218 + QChar__CombiningClass__Combining_Below QChar__CombiningClass = 220 + QChar__CombiningClass__Combining_BelowRight QChar__CombiningClass = 222 + QChar__CombiningClass__Combining_Left QChar__CombiningClass = 224 + QChar__CombiningClass__Combining_Right QChar__CombiningClass = 226 + QChar__CombiningClass__Combining_AboveLeft QChar__CombiningClass = 228 + QChar__CombiningClass__Combining_Above QChar__CombiningClass = 230 + QChar__CombiningClass__Combining_AboveRight QChar__CombiningClass = 232 + QChar__CombiningClass__Combining_DoubleBelow QChar__CombiningClass = 233 + QChar__CombiningClass__Combining_DoubleAbove QChar__CombiningClass = 234 + QChar__CombiningClass__Combining_IotaSubscript QChar__CombiningClass = 240 +) + +type QChar__UnicodeVersion int + +const ( + QChar__UnicodeVersion__Unicode_Unassigned QChar__UnicodeVersion = 0 + QChar__UnicodeVersion__Unicode_1_1 QChar__UnicodeVersion = 1 + QChar__UnicodeVersion__Unicode_2_0 QChar__UnicodeVersion = 2 + QChar__UnicodeVersion__Unicode_2_1_2 QChar__UnicodeVersion = 3 + QChar__UnicodeVersion__Unicode_3_0 QChar__UnicodeVersion = 4 + QChar__UnicodeVersion__Unicode_3_1 QChar__UnicodeVersion = 5 + QChar__UnicodeVersion__Unicode_3_2 QChar__UnicodeVersion = 6 + QChar__UnicodeVersion__Unicode_4_0 QChar__UnicodeVersion = 7 + QChar__UnicodeVersion__Unicode_4_1 QChar__UnicodeVersion = 8 + QChar__UnicodeVersion__Unicode_5_0 QChar__UnicodeVersion = 9 + QChar__UnicodeVersion__Unicode_5_1 QChar__UnicodeVersion = 10 + QChar__UnicodeVersion__Unicode_5_2 QChar__UnicodeVersion = 11 + QChar__UnicodeVersion__Unicode_6_0 QChar__UnicodeVersion = 12 + QChar__UnicodeVersion__Unicode_6_1 QChar__UnicodeVersion = 13 + QChar__UnicodeVersion__Unicode_6_2 QChar__UnicodeVersion = 14 + QChar__UnicodeVersion__Unicode_6_3 QChar__UnicodeVersion = 15 + QChar__UnicodeVersion__Unicode_7_0 QChar__UnicodeVersion = 16 + QChar__UnicodeVersion__Unicode_8_0 QChar__UnicodeVersion = 17 + QChar__UnicodeVersion__Unicode_9_0 QChar__UnicodeVersion = 18 + QChar__UnicodeVersion__Unicode_10_0 QChar__UnicodeVersion = 19 + QChar__UnicodeVersion__Unicode_11_0 QChar__UnicodeVersion = 20 + QChar__UnicodeVersion__Unicode_12_0 QChar__UnicodeVersion = 21 + QChar__UnicodeVersion__Unicode_12_1 QChar__UnicodeVersion = 22 + QChar__UnicodeVersion__Unicode_13_0 QChar__UnicodeVersion = 23 +) + type QLatin1Char struct { h *C.QLatin1Char } @@ -120,7 +462,7 @@ func NewQChar6(rc int) *QChar { } // NewQChar7 constructs a new QChar object. -func NewQChar7(s uintptr) *QChar { +func NewQChar7(s QChar__SpecialCharacter) *QChar { ret := C.QChar_new7((C.uintptr_t)(s)) return newQChar(ret) } @@ -149,24 +491,24 @@ func NewQChar11(param1 *QChar) *QChar { return newQChar(ret) } -func (this *QChar) Category() uintptr { +func (this *QChar) Category() QChar__Category { ret := C.QChar_Category(this.h) - return (uintptr)(ret) + return (QChar__Category)(ret) } -func (this *QChar) Direction() uintptr { +func (this *QChar) Direction() QChar__Direction { ret := C.QChar_Direction(this.h) - return (uintptr)(ret) + return (QChar__Direction)(ret) } -func (this *QChar) JoiningType() uintptr { +func (this *QChar) JoiningType() QChar__JoiningType { ret := C.QChar_JoiningType(this.h) - return (uintptr)(ret) + return (QChar__JoiningType)(ret) } -func (this *QChar) Joining() uintptr { +func (this *QChar) Joining() QChar__Joining { ret := C.QChar_Joining(this.h) - return (uintptr)(ret) + return (QChar__Joining)(ret) } func (this *QChar) CombiningClass() byte { @@ -199,9 +541,9 @@ func (this *QChar) Decomposition() string { return ret } -func (this *QChar) DecompositionTag() uintptr { +func (this *QChar) DecompositionTag() QChar__Decomposition { ret := C.QChar_DecompositionTag(this.h) - return (uintptr)(ret) + return (QChar__Decomposition)(ret) } func (this *QChar) DigitValue() int { @@ -253,14 +595,14 @@ func (this *QChar) ToCaseFolded() *QChar { return ret1 } -func (this *QChar) Script() uintptr { +func (this *QChar) Script() QChar__Script { ret := C.QChar_Script(this.h) - return (uintptr)(ret) + return (QChar__Script)(ret) } -func (this *QChar) UnicodeVersion() uintptr { +func (this *QChar) UnicodeVersion() QChar__UnicodeVersion { ret := C.QChar_UnicodeVersion(this.h) - return (uintptr)(ret) + return (QChar__UnicodeVersion)(ret) } func (this *QChar) ToLatin1() byte { @@ -432,24 +774,24 @@ func QChar_LowSurrogate(ucs4 uint) uint16 { return (uint16)(ret) } -func QChar_CategoryWithUcs4(ucs4 uint) uintptr { +func QChar_CategoryWithUcs4(ucs4 uint) QChar__Category { ret := C.QChar_CategoryWithUcs4((C.uint)(ucs4)) - return (uintptr)(ret) + return (QChar__Category)(ret) } -func QChar_DirectionWithUcs4(ucs4 uint) uintptr { +func QChar_DirectionWithUcs4(ucs4 uint) QChar__Direction { ret := C.QChar_DirectionWithUcs4((C.uint)(ucs4)) - return (uintptr)(ret) + return (QChar__Direction)(ret) } -func QChar_JoiningTypeWithUcs4(ucs4 uint) uintptr { +func QChar_JoiningTypeWithUcs4(ucs4 uint) QChar__JoiningType { ret := C.QChar_JoiningTypeWithUcs4((C.uint)(ucs4)) - return (uintptr)(ret) + return (QChar__JoiningType)(ret) } -func QChar_JoiningWithUcs4(ucs4 uint) uintptr { +func QChar_JoiningWithUcs4(ucs4 uint) QChar__Joining { ret := C.QChar_JoiningWithUcs4((C.uint)(ucs4)) - return (uintptr)(ret) + return (QChar__Joining)(ret) } func QChar_CombiningClassWithUcs4(ucs4 uint) byte { @@ -476,9 +818,9 @@ func QChar_DecompositionWithUcs4(ucs4 uint) string { return ret } -func QChar_DecompositionTagWithUcs4(ucs4 uint) uintptr { +func QChar_DecompositionTagWithUcs4(ucs4 uint) QChar__Decomposition { ret := C.QChar_DecompositionTagWithUcs4((C.uint)(ucs4)) - return (uintptr)(ret) + return (QChar__Decomposition)(ret) } func QChar_DigitValueWithUcs4(ucs4 uint) int { @@ -506,19 +848,19 @@ func QChar_ToCaseFoldedWithUcs4(ucs4 uint) uint { return (uint)(ret) } -func QChar_ScriptWithUcs4(ucs4 uint) uintptr { +func QChar_ScriptWithUcs4(ucs4 uint) QChar__Script { ret := C.QChar_ScriptWithUcs4((C.uint)(ucs4)) - return (uintptr)(ret) + return (QChar__Script)(ret) } -func QChar_UnicodeVersionWithUcs4(ucs4 uint) uintptr { +func QChar_UnicodeVersionWithUcs4(ucs4 uint) QChar__UnicodeVersion { ret := C.QChar_UnicodeVersionWithUcs4((C.uint)(ucs4)) - return (uintptr)(ret) + return (QChar__UnicodeVersion)(ret) } -func QChar_CurrentUnicodeVersion() uintptr { +func QChar_CurrentUnicodeVersion() QChar__UnicodeVersion { ret := C.QChar_CurrentUnicodeVersion() - return (uintptr)(ret) + return (QChar__UnicodeVersion)(ret) } func QChar_IsPrintWithUcs4(ucs4 uint) bool { diff --git a/qt/gen_qcheckbox.go b/qt/gen_qcheckbox.go index ab787ba9..cb9fe81e 100644 --- a/qt/gen_qcheckbox.go +++ b/qt/gen_qcheckbox.go @@ -123,12 +123,12 @@ func (this *QCheckBox) IsTristate() bool { return (bool)(ret) } -func (this *QCheckBox) CheckState() uintptr { +func (this *QCheckBox) CheckState() CheckState { ret := C.QCheckBox_CheckState(this.h) - return (uintptr)(ret) + return (CheckState)(ret) } -func (this *QCheckBox) SetCheckState(state uintptr) { +func (this *QCheckBox) SetCheckState(state CheckState) { C.QCheckBox_SetCheckState(this.h, (C.uintptr_t)(state)) } diff --git a/qt/gen_qclipboard.go b/qt/gen_qclipboard.go index 4f5d1dfe..b993b6bb 100644 --- a/qt/gen_qclipboard.go +++ b/qt/gen_qclipboard.go @@ -14,6 +14,15 @@ import ( "unsafe" ) +type QClipboard__Mode int + +const ( + QClipboard__Mode__Clipboard QClipboard__Mode = 0 + QClipboard__Mode__Selection QClipboard__Mode = 1 + QClipboard__Mode__FindBuffer QClipboard__Mode = 2 + QClipboard__Mode__LastMode QClipboard__Mode = 2 +) + type QClipboard struct { h *C.QClipboard *QObject @@ -158,7 +167,7 @@ func (this *QClipboard) SetPixmap(param1 *QPixmap) { C.QClipboard_SetPixmap(this.h, param1.cPointer()) } -func (this *QClipboard) Changed(mode uintptr) { +func (this *QClipboard) Changed(mode QClipboard__Mode) { C.QClipboard_Changed(this.h, (C.uintptr_t)(mode)) } @@ -258,11 +267,11 @@ func QClipboard_TrUtf83(s string, c string, n int) string { return ret } -func (this *QClipboard) Clear1(mode uintptr) { +func (this *QClipboard) Clear1(mode QClipboard__Mode) { C.QClipboard_Clear1(this.h, (C.uintptr_t)(mode)) } -func (this *QClipboard) Text1(mode uintptr) string { +func (this *QClipboard) Text1(mode QClipboard__Mode) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QClipboard_Text1(this.h, (C.uintptr_t)(mode), &_out, &_out_Strlen) @@ -271,7 +280,7 @@ func (this *QClipboard) Text1(mode uintptr) string { return ret } -func (this *QClipboard) Text2(subtype string, mode uintptr) string { +func (this *QClipboard) Text2(subtype string, mode QClipboard__Mode) string { subtype_Cstring := C.CString(subtype) defer C.free(unsafe.Pointer(subtype_Cstring)) var _out *C.char = nil @@ -282,22 +291,22 @@ func (this *QClipboard) Text2(subtype string, mode uintptr) string { return ret } -func (this *QClipboard) SetText2(param1 string, mode uintptr) { +func (this *QClipboard) SetText2(param1 string, mode QClipboard__Mode) { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) C.QClipboard_SetText2(this.h, param1_Cstring, C.size_t(len(param1)), (C.uintptr_t)(mode)) } -func (this *QClipboard) MimeData1(mode uintptr) *QMimeData { +func (this *QClipboard) MimeData1(mode QClipboard__Mode) *QMimeData { ret := C.QClipboard_MimeData1(this.h, (C.uintptr_t)(mode)) return newQMimeData_U(unsafe.Pointer(ret)) } -func (this *QClipboard) SetMimeData2(data *QMimeData, mode uintptr) { +func (this *QClipboard) SetMimeData2(data *QMimeData, mode QClipboard__Mode) { C.QClipboard_SetMimeData2(this.h, data.cPointer(), (C.uintptr_t)(mode)) } -func (this *QClipboard) Image1(mode uintptr) *QImage { +func (this *QClipboard) Image1(mode QClipboard__Mode) *QImage { ret := C.QClipboard_Image1(this.h, (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQImage(ret) @@ -308,7 +317,7 @@ func (this *QClipboard) Image1(mode uintptr) *QImage { return ret1 } -func (this *QClipboard) Pixmap1(mode uintptr) *QPixmap { +func (this *QClipboard) Pixmap1(mode QClipboard__Mode) *QPixmap { ret := C.QClipboard_Pixmap1(this.h, (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -319,10 +328,10 @@ func (this *QClipboard) Pixmap1(mode uintptr) *QPixmap { return ret1 } -func (this *QClipboard) SetImage2(param1 *QImage, mode uintptr) { +func (this *QClipboard) SetImage2(param1 *QImage, mode QClipboard__Mode) { C.QClipboard_SetImage2(this.h, param1.cPointer(), (C.uintptr_t)(mode)) } -func (this *QClipboard) SetPixmap2(param1 *QPixmap, mode uintptr) { +func (this *QClipboard) SetPixmap2(param1 *QPixmap, mode QClipboard__Mode) { C.QClipboard_SetPixmap2(this.h, param1.cPointer(), (C.uintptr_t)(mode)) } diff --git a/qt/gen_qcollator.go b/qt/gen_qcollator.go index 79b05990..5ee59c5d 100644 --- a/qt/gen_qcollator.go +++ b/qt/gen_qcollator.go @@ -121,12 +121,12 @@ func (this *QCollator) Locale() *QLocale { return ret1 } -func (this *QCollator) CaseSensitivity() uintptr { +func (this *QCollator) CaseSensitivity() CaseSensitivity { ret := C.QCollator_CaseSensitivity(this.h) - return (uintptr)(ret) + return (CaseSensitivity)(ret) } -func (this *QCollator) SetCaseSensitivity(cs uintptr) { +func (this *QCollator) SetCaseSensitivity(cs CaseSensitivity) { C.QCollator_SetCaseSensitivity(this.h, (C.uintptr_t)(cs)) } diff --git a/qt/gen_qcolor.go b/qt/gen_qcolor.go index 4dfcb734..d73ea7fd 100644 --- a/qt/gen_qcolor.go +++ b/qt/gen_qcolor.go @@ -13,6 +13,24 @@ import ( "unsafe" ) +type QColor__Spec int + +const ( + QColor__Spec__Invalid QColor__Spec = 0 + QColor__Spec__Rgb QColor__Spec = 1 + QColor__Spec__Hsv QColor__Spec = 2 + QColor__Spec__Cmyk QColor__Spec = 3 + QColor__Spec__Hsl QColor__Spec = 4 + QColor__Spec__ExtendedRgb QColor__Spec = 5 +) + +type QColor__NameFormat int + +const ( + QColor__NameFormat__HexRgb QColor__NameFormat = 0 + QColor__NameFormat__HexArgb QColor__NameFormat = 1 +) + type QColor struct { h *C.QColor } @@ -42,7 +60,7 @@ func NewQColor() *QColor { } // NewQColor2 constructs a new QColor object. -func NewQColor2(color uintptr) *QColor { +func NewQColor2(color GlobalColor) *QColor { ret := C.QColor_new2((C.uintptr_t)(color)) return newQColor(ret) } @@ -82,7 +100,7 @@ func NewQColor7(aname string) *QColor { } // NewQColor8 constructs a new QColor object. -func NewQColor8(spec uintptr) *QColor { +func NewQColor8(spec QColor__Spec) *QColor { ret := C.QColor_new8((C.uintptr_t)(spec)) return newQColor(ret) } @@ -94,7 +112,7 @@ func NewQColor9(color *QColor) *QColor { } // NewQColor10 constructs a new QColor object. -func NewQColor10(spec uintptr, a1 uint16, a2 uint16, a3 uint16, a4 uint16) *QColor { +func NewQColor10(spec QColor__Spec, a1 uint16, a2 uint16, a3 uint16, a4 uint16) *QColor { ret := C.QColor_new10((C.uintptr_t)(spec), (C.uint16_t)(a1), (C.uint16_t)(a2), (C.uint16_t)(a3), (C.uint16_t)(a4)) return newQColor(ret) } @@ -106,7 +124,7 @@ func NewQColor11(r int, g int, b int, a int) *QColor { } // NewQColor12 constructs a new QColor object. -func NewQColor12(spec uintptr, a1 uint16, a2 uint16, a3 uint16, a4 uint16, a5 uint16) *QColor { +func NewQColor12(spec QColor__Spec, a1 uint16, a2 uint16, a3 uint16, a4 uint16, a5 uint16) *QColor { ret := C.QColor_new12((C.uintptr_t)(spec), (C.uint16_t)(a1), (C.uint16_t)(a2), (C.uint16_t)(a3), (C.uint16_t)(a4), (C.uint16_t)(a5)) return newQColor(ret) } @@ -115,7 +133,7 @@ func (this *QColor) OperatorAssign(param1 *QColor) { C.QColor_OperatorAssign(this.h, param1.cPointer()) } -func (this *QColor) OperatorAssignWithColor(color uintptr) { +func (this *QColor) OperatorAssignWithColor(color GlobalColor) { C.QColor_OperatorAssignWithColor(this.h, (C.uintptr_t)(color)) } @@ -133,7 +151,7 @@ func (this *QColor) Name() string { return ret } -func (this *QColor) NameWithFormat(format uintptr) string { +func (this *QColor) NameWithFormat(format QColor__NameFormat) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QColor_NameWithFormat(this.h, (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -163,9 +181,9 @@ func QColor_ColorNames() []string { return ret } -func (this *QColor) Spec() uintptr { +func (this *QColor) Spec() QColor__Spec { ret := C.QColor_Spec(this.h) - return (uintptr)(ret) + return (QColor__Spec)(ret) } func (this *QColor) Alpha() int { @@ -520,7 +538,7 @@ func (this *QColor) ToExtendedRgb() *QColor { return ret1 } -func (this *QColor) ConvertTo(colorSpec uintptr) *QColor { +func (this *QColor) ConvertTo(colorSpec QColor__Spec) *QColor { ret := C.QColor_ConvertTo(this.h, (C.uintptr_t)(colorSpec)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQColor(ret) diff --git a/qt/gen_qcolordialog.go b/qt/gen_qcolordialog.go index 0be9684d..37618b17 100644 --- a/qt/gen_qcolordialog.go +++ b/qt/gen_qcolordialog.go @@ -14,6 +14,14 @@ import ( "unsafe" ) +type QColorDialog__ColorDialogOption int + +const ( + QColorDialog__ColorDialogOption__ShowAlphaChannel QColorDialog__ColorDialogOption = 1 + QColorDialog__ColorDialogOption__NoButtons QColorDialog__ColorDialogOption = 2 + QColorDialog__ColorDialogOption__DontUseNativeDialog QColorDialog__ColorDialogOption = 4 +) + type QColorDialog struct { h *C.QColorDialog *QDialog @@ -114,11 +122,11 @@ func (this *QColorDialog) SelectedColor() *QColor { return ret1 } -func (this *QColorDialog) SetOption(option uintptr) { +func (this *QColorDialog) SetOption(option QColorDialog__ColorDialogOption) { C.QColorDialog_SetOption(this.h, (C.uintptr_t)(option)) } -func (this *QColorDialog) TestOption(option uintptr) bool { +func (this *QColorDialog) TestOption(option QColorDialog__ColorDialogOption) bool { ret := C.QColorDialog_TestOption(this.h, (C.uintptr_t)(option)) return (bool)(ret) } @@ -263,7 +271,7 @@ func QColorDialog_TrUtf83(s string, c string, n int) string { return ret } -func (this *QColorDialog) SetOption2(option uintptr, on bool) { +func (this *QColorDialog) SetOption2(option QColorDialog__ColorDialogOption, on bool) { C.QColorDialog_SetOption2(this.h, (C.uintptr_t)(option), (C.bool)(on)) } diff --git a/qt/gen_qcolormap.go b/qt/gen_qcolormap.go index 49619a76..3dcbc28d 100644 --- a/qt/gen_qcolormap.go +++ b/qt/gen_qcolormap.go @@ -13,6 +13,14 @@ import ( "unsafe" ) +type QColormap__Mode int + +const ( + QColormap__Mode__Direct QColormap__Mode = 0 + QColormap__Mode__Indexed QColormap__Mode = 1 + QColormap__Mode__Gray QColormap__Mode = 2 +) + type QColormap struct { h *C.QColormap } @@ -64,9 +72,9 @@ func (this *QColormap) OperatorAssign(colormap *QColormap) { C.QColormap_OperatorAssign(this.h, colormap.cPointer()) } -func (this *QColormap) Mode() uintptr { +func (this *QColormap) Mode() QColormap__Mode { ret := C.QColormap_Mode(this.h) - return (uintptr)(ret) + return (QColormap__Mode)(ret) } func (this *QColormap) Depth() int { diff --git a/qt/gen_qcolorspace.go b/qt/gen_qcolorspace.go index 8f3b323a..0a6cb34b 100644 --- a/qt/gen_qcolorspace.go +++ b/qt/gen_qcolorspace.go @@ -13,6 +13,36 @@ import ( "unsafe" ) +type QColorSpace__NamedColorSpace int + +const ( + QColorSpace__NamedColorSpace__SRgb QColorSpace__NamedColorSpace = 1 + QColorSpace__NamedColorSpace__SRgbLinear QColorSpace__NamedColorSpace = 2 + QColorSpace__NamedColorSpace__AdobeRgb QColorSpace__NamedColorSpace = 3 + QColorSpace__NamedColorSpace__DisplayP3 QColorSpace__NamedColorSpace = 4 + QColorSpace__NamedColorSpace__ProPhotoRgb QColorSpace__NamedColorSpace = 5 +) + +type QColorSpace__Primaries int + +const ( + QColorSpace__Primaries__Custom QColorSpace__Primaries = 0 + QColorSpace__Primaries__SRgb QColorSpace__Primaries = 1 + QColorSpace__Primaries__AdobeRgb QColorSpace__Primaries = 2 + QColorSpace__Primaries__DciP3D65 QColorSpace__Primaries = 3 + QColorSpace__Primaries__ProPhotoRgb QColorSpace__Primaries = 4 +) + +type QColorSpace__TransferFunction int + +const ( + QColorSpace__TransferFunction__Custom QColorSpace__TransferFunction = 0 + QColorSpace__TransferFunction__Linear QColorSpace__TransferFunction = 1 + QColorSpace__TransferFunction__Gamma QColorSpace__TransferFunction = 2 + QColorSpace__TransferFunction__SRgb QColorSpace__TransferFunction = 3 + QColorSpace__TransferFunction__ProPhotoRgb QColorSpace__TransferFunction = 4 +) + type QColorSpace struct { h *C.QColorSpace } @@ -42,25 +72,25 @@ func NewQColorSpace() *QColorSpace { } // NewQColorSpace2 constructs a new QColorSpace object. -func NewQColorSpace2(namedColorSpace uintptr) *QColorSpace { +func NewQColorSpace2(namedColorSpace QColorSpace__NamedColorSpace) *QColorSpace { ret := C.QColorSpace_new2((C.uintptr_t)(namedColorSpace)) return newQColorSpace(ret) } // NewQColorSpace3 constructs a new QColorSpace object. -func NewQColorSpace3(primaries uintptr, transferFunction uintptr) *QColorSpace { +func NewQColorSpace3(primaries QColorSpace__Primaries, transferFunction QColorSpace__TransferFunction) *QColorSpace { ret := C.QColorSpace_new3((C.uintptr_t)(primaries), (C.uintptr_t)(transferFunction)) return newQColorSpace(ret) } // NewQColorSpace4 constructs a new QColorSpace object. -func NewQColorSpace4(primaries uintptr, gamma float32) *QColorSpace { +func NewQColorSpace4(primaries QColorSpace__Primaries, gamma float32) *QColorSpace { ret := C.QColorSpace_new4((C.uintptr_t)(primaries), (C.float)(gamma)) return newQColorSpace(ret) } // NewQColorSpace5 constructs a new QColorSpace object. -func NewQColorSpace5(whitePoint *QPointF, redPoint *QPointF, greenPoint *QPointF, bluePoint *QPointF, transferFunction uintptr) *QColorSpace { +func NewQColorSpace5(whitePoint *QPointF, redPoint *QPointF, greenPoint *QPointF, bluePoint *QPointF, transferFunction QColorSpace__TransferFunction) *QColorSpace { ret := C.QColorSpace_new5(whitePoint.cPointer(), redPoint.cPointer(), greenPoint.cPointer(), bluePoint.cPointer(), (C.uintptr_t)(transferFunction)) return newQColorSpace(ret) } @@ -72,13 +102,13 @@ func NewQColorSpace6(colorSpace *QColorSpace) *QColorSpace { } // NewQColorSpace7 constructs a new QColorSpace object. -func NewQColorSpace7(primaries uintptr, transferFunction uintptr, gamma float32) *QColorSpace { +func NewQColorSpace7(primaries QColorSpace__Primaries, transferFunction QColorSpace__TransferFunction, gamma float32) *QColorSpace { ret := C.QColorSpace_new7((C.uintptr_t)(primaries), (C.uintptr_t)(transferFunction), (C.float)(gamma)) return newQColorSpace(ret) } // NewQColorSpace8 constructs a new QColorSpace object. -func NewQColorSpace8(whitePoint *QPointF, redPoint *QPointF, greenPoint *QPointF, bluePoint *QPointF, transferFunction uintptr, gamma float32) *QColorSpace { +func NewQColorSpace8(whitePoint *QPointF, redPoint *QPointF, greenPoint *QPointF, bluePoint *QPointF, transferFunction QColorSpace__TransferFunction, gamma float32) *QColorSpace { ret := C.QColorSpace_new8(whitePoint.cPointer(), redPoint.cPointer(), greenPoint.cPointer(), bluePoint.cPointer(), (C.uintptr_t)(transferFunction), (C.float)(gamma)) return newQColorSpace(ret) } @@ -91,14 +121,14 @@ func (this *QColorSpace) Swap(colorSpace *QColorSpace) { C.QColorSpace_Swap(this.h, colorSpace.cPointer()) } -func (this *QColorSpace) Primaries() uintptr { +func (this *QColorSpace) Primaries() QColorSpace__Primaries { ret := C.QColorSpace_Primaries(this.h) - return (uintptr)(ret) + return (QColorSpace__Primaries)(ret) } -func (this *QColorSpace) TransferFunction() uintptr { +func (this *QColorSpace) TransferFunction() QColorSpace__TransferFunction { ret := C.QColorSpace_TransferFunction(this.h) - return (uintptr)(ret) + return (QColorSpace__TransferFunction)(ret) } func (this *QColorSpace) Gamma() float32 { @@ -106,11 +136,11 @@ func (this *QColorSpace) Gamma() float32 { return (float32)(ret) } -func (this *QColorSpace) SetTransferFunction(transferFunction uintptr) { +func (this *QColorSpace) SetTransferFunction(transferFunction QColorSpace__TransferFunction) { C.QColorSpace_SetTransferFunction(this.h, (C.uintptr_t)(transferFunction)) } -func (this *QColorSpace) WithTransferFunction(transferFunction uintptr) *QColorSpace { +func (this *QColorSpace) WithTransferFunction(transferFunction QColorSpace__TransferFunction) *QColorSpace { ret := C.QColorSpace_WithTransferFunction(this.h, (C.uintptr_t)(transferFunction)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQColorSpace(ret) @@ -121,7 +151,7 @@ func (this *QColorSpace) WithTransferFunction(transferFunction uintptr) *QColorS return ret1 } -func (this *QColorSpace) SetPrimaries(primariesId uintptr) { +func (this *QColorSpace) SetPrimaries(primariesId QColorSpace__Primaries) { C.QColorSpace_SetPrimaries(this.h, (C.uintptr_t)(primariesId)) } @@ -167,11 +197,11 @@ func (this *QColorSpace) TransformationToColorSpace(colorspace *QColorSpace) *QC return ret1 } -func (this *QColorSpace) SetTransferFunction2(transferFunction uintptr, gamma float32) { +func (this *QColorSpace) SetTransferFunction2(transferFunction QColorSpace__TransferFunction, gamma float32) { C.QColorSpace_SetTransferFunction2(this.h, (C.uintptr_t)(transferFunction), (C.float)(gamma)) } -func (this *QColorSpace) WithTransferFunction2(transferFunction uintptr, gamma float32) *QColorSpace { +func (this *QColorSpace) WithTransferFunction2(transferFunction QColorSpace__TransferFunction, gamma float32) *QColorSpace { ret := C.QColorSpace_WithTransferFunction2(this.h, (C.uintptr_t)(transferFunction), (C.float)(gamma)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQColorSpace(ret) diff --git a/qt/gen_qcolumnview.go b/qt/gen_qcolumnview.go index a499fb01..6331a644 100644 --- a/qt/gen_qcolumnview.go +++ b/qt/gen_qcolumnview.go @@ -234,7 +234,7 @@ func QColumnView_TrUtf83(s string, c string, n int) string { return ret } -func (this *QColumnView) ScrollTo2(index *QModelIndex, hint uintptr) { +func (this *QColumnView) ScrollTo2(index *QModelIndex, hint QAbstractItemView__ScrollHint) { C.QColumnView_ScrollTo2(this.h, index.cPointer(), (C.uintptr_t)(hint)) } diff --git a/qt/gen_qcombobox.go b/qt/gen_qcombobox.go index ddcf101b..5a7e7235 100644 --- a/qt/gen_qcombobox.go +++ b/qt/gen_qcombobox.go @@ -14,6 +14,27 @@ import ( "unsafe" ) +type QComboBox__InsertPolicy int + +const ( + QComboBox__InsertPolicy__NoInsert QComboBox__InsertPolicy = 0 + QComboBox__InsertPolicy__InsertAtTop QComboBox__InsertPolicy = 1 + QComboBox__InsertPolicy__InsertAtCurrent QComboBox__InsertPolicy = 2 + QComboBox__InsertPolicy__InsertAtBottom QComboBox__InsertPolicy = 3 + QComboBox__InsertPolicy__InsertAfterCurrent QComboBox__InsertPolicy = 4 + QComboBox__InsertPolicy__InsertBeforeCurrent QComboBox__InsertPolicy = 5 + QComboBox__InsertPolicy__InsertAlphabetically QComboBox__InsertPolicy = 6 +) + +type QComboBox__SizeAdjustPolicy int + +const ( + QComboBox__SizeAdjustPolicy__AdjustToContents QComboBox__SizeAdjustPolicy = 0 + QComboBox__SizeAdjustPolicy__AdjustToContentsOnFirstShow QComboBox__SizeAdjustPolicy = 1 + QComboBox__SizeAdjustPolicy__AdjustToMinimumContentsLength QComboBox__SizeAdjustPolicy = 2 + QComboBox__SizeAdjustPolicy__AdjustToMinimumContentsLengthWithIcon QComboBox__SizeAdjustPolicy = 3 +) + type QComboBox struct { h *C.QComboBox *QWidget @@ -108,12 +129,12 @@ func (this *QComboBox) SetAutoCompletion(enable bool) { C.QComboBox_SetAutoCompletion(this.h, (C.bool)(enable)) } -func (this *QComboBox) AutoCompletionCaseSensitivity() uintptr { +func (this *QComboBox) AutoCompletionCaseSensitivity() CaseSensitivity { ret := C.QComboBox_AutoCompletionCaseSensitivity(this.h) - return (uintptr)(ret) + return (CaseSensitivity)(ret) } -func (this *QComboBox) SetAutoCompletionCaseSensitivity(sensitivity uintptr) { +func (this *QComboBox) SetAutoCompletionCaseSensitivity(sensitivity CaseSensitivity) { C.QComboBox_SetAutoCompletionCaseSensitivity(this.h, (C.uintptr_t)(sensitivity)) } @@ -147,21 +168,21 @@ func (this *QComboBox) FindData(data *QVariant) int { return (int)(ret) } -func (this *QComboBox) InsertPolicy() uintptr { +func (this *QComboBox) InsertPolicy() QComboBox__InsertPolicy { ret := C.QComboBox_InsertPolicy(this.h) - return (uintptr)(ret) + return (QComboBox__InsertPolicy)(ret) } -func (this *QComboBox) SetInsertPolicy(policy uintptr) { +func (this *QComboBox) SetInsertPolicy(policy QComboBox__InsertPolicy) { C.QComboBox_SetInsertPolicy(this.h, (C.uintptr_t)(policy)) } -func (this *QComboBox) SizeAdjustPolicy() uintptr { +func (this *QComboBox) SizeAdjustPolicy() QComboBox__SizeAdjustPolicy { ret := C.QComboBox_SizeAdjustPolicy(this.h) - return (uintptr)(ret) + return (QComboBox__SizeAdjustPolicy)(ret) } -func (this *QComboBox) SetSizeAdjustPolicy(policy uintptr) { +func (this *QComboBox) SetSizeAdjustPolicy(policy QComboBox__SizeAdjustPolicy) { C.QComboBox_SetSizeAdjustPolicy(this.h, (C.uintptr_t)(policy)) } @@ -458,7 +479,7 @@ func (this *QComboBox) Event(event *QEvent) bool { return (bool)(ret) } -func (this *QComboBox) InputMethodQuery(param1 uintptr) *QVariant { +func (this *QComboBox) InputMethodQuery(param1 InputMethodQuery) *QVariant { ret := C.QComboBox_InputMethodQuery(this.h, (C.uintptr_t)(param1)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -469,7 +490,7 @@ func (this *QComboBox) InputMethodQuery(param1 uintptr) *QVariant { return ret1 } -func (this *QComboBox) InputMethodQuery2(query uintptr, argument *QVariant) *QVariant { +func (this *QComboBox) InputMethodQuery2(query InputMethodQuery, argument *QVariant) *QVariant { ret := C.QComboBox_InputMethodQuery2(this.h, (C.uintptr_t)(query), argument.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) diff --git a/qt/gen_qcommandlineoption.go b/qt/gen_qcommandlineoption.go index d6a584db..daaea490 100644 --- a/qt/gen_qcommandlineoption.go +++ b/qt/gen_qcommandlineoption.go @@ -12,6 +12,13 @@ import ( "unsafe" ) +type QCommandLineOption__Flag int + +const ( + QCommandLineOption__Flag__HiddenFromHelp QCommandLineOption__Flag = 1 + QCommandLineOption__Flag__ShortOptionStyle QCommandLineOption__Flag = 2 +) + type QCommandLineOption struct { h *C.QCommandLineOption } diff --git a/qt/gen_qcommandlineparser.go b/qt/gen_qcommandlineparser.go index 1a1594aa..86e3e870 100644 --- a/qt/gen_qcommandlineparser.go +++ b/qt/gen_qcommandlineparser.go @@ -13,6 +13,20 @@ import ( "unsafe" ) +type QCommandLineParser__SingleDashWordOptionMode int + +const ( + QCommandLineParser__SingleDashWordOptionMode__ParseAsCompactedShortOptions QCommandLineParser__SingleDashWordOptionMode = 0 + QCommandLineParser__SingleDashWordOptionMode__ParseAsLongOptions QCommandLineParser__SingleDashWordOptionMode = 1 +) + +type QCommandLineParser__OptionsAfterPositionalArgumentsMode int + +const ( + QCommandLineParser__OptionsAfterPositionalArgumentsMode__ParseAsOptions QCommandLineParser__OptionsAfterPositionalArgumentsMode = 0 + QCommandLineParser__OptionsAfterPositionalArgumentsMode__ParseAsPositionalArguments QCommandLineParser__OptionsAfterPositionalArgumentsMode = 1 +) + type QCommandLineParser struct { h *C.QCommandLineParser } @@ -63,11 +77,11 @@ func QCommandLineParser_TrUtf8(sourceText string) string { return ret } -func (this *QCommandLineParser) SetSingleDashWordOptionMode(parsingMode uintptr) { +func (this *QCommandLineParser) SetSingleDashWordOptionMode(parsingMode QCommandLineParser__SingleDashWordOptionMode) { C.QCommandLineParser_SetSingleDashWordOptionMode(this.h, (C.uintptr_t)(parsingMode)) } -func (this *QCommandLineParser) SetOptionsAfterPositionalArgumentsMode(mode uintptr) { +func (this *QCommandLineParser) SetOptionsAfterPositionalArgumentsMode(mode QCommandLineParser__OptionsAfterPositionalArgumentsMode) { C.QCommandLineParser_SetOptionsAfterPositionalArgumentsMode(this.h, (C.uintptr_t)(mode)) } diff --git a/qt/gen_qcommonstyle.go b/qt/gen_qcommonstyle.go index 4a545730..cece2143 100644 --- a/qt/gen_qcommonstyle.go +++ b/qt/gen_qcommonstyle.go @@ -69,15 +69,15 @@ func QCommonStyle_TrUtf8(s string) string { return ret } -func (this *QCommonStyle) DrawPrimitive(pe uintptr, opt *QStyleOption, p *QPainter) { +func (this *QCommonStyle) DrawPrimitive(pe QStyle__PrimitiveElement, opt *QStyleOption, p *QPainter) { C.QCommonStyle_DrawPrimitive(this.h, (C.uintptr_t)(pe), opt.cPointer(), p.cPointer()) } -func (this *QCommonStyle) DrawControl(element uintptr, opt *QStyleOption, p *QPainter) { +func (this *QCommonStyle) DrawControl(element QStyle__ControlElement, opt *QStyleOption, p *QPainter) { C.QCommonStyle_DrawControl(this.h, (C.uintptr_t)(element), opt.cPointer(), p.cPointer()) } -func (this *QCommonStyle) SubElementRect(r uintptr, opt *QStyleOption) *QRect { +func (this *QCommonStyle) SubElementRect(r QStyle__SubElement, opt *QStyleOption) *QRect { ret := C.QCommonStyle_SubElementRect(this.h, (C.uintptr_t)(r), opt.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRect(ret) @@ -88,16 +88,16 @@ func (this *QCommonStyle) SubElementRect(r uintptr, opt *QStyleOption) *QRect { return ret1 } -func (this *QCommonStyle) DrawComplexControl(cc uintptr, opt *QStyleOptionComplex, p *QPainter) { +func (this *QCommonStyle) DrawComplexControl(cc QStyle__ComplexControl, opt *QStyleOptionComplex, p *QPainter) { C.QCommonStyle_DrawComplexControl(this.h, (C.uintptr_t)(cc), opt.cPointer(), p.cPointer()) } -func (this *QCommonStyle) HitTestComplexControl(cc uintptr, opt *QStyleOptionComplex, pt *QPoint) uintptr { +func (this *QCommonStyle) HitTestComplexControl(cc QStyle__ComplexControl, opt *QStyleOptionComplex, pt *QPoint) QStyle__SubControl { ret := C.QCommonStyle_HitTestComplexControl(this.h, (C.uintptr_t)(cc), opt.cPointer(), pt.cPointer()) - return (uintptr)(ret) + return (QStyle__SubControl)(ret) } -func (this *QCommonStyle) SubControlRect(cc uintptr, opt *QStyleOptionComplex, sc uintptr) *QRect { +func (this *QCommonStyle) SubControlRect(cc QStyle__ComplexControl, opt *QStyleOptionComplex, sc QStyle__SubControl) *QRect { ret := C.QCommonStyle_SubControlRect(this.h, (C.uintptr_t)(cc), opt.cPointer(), (C.uintptr_t)(sc)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRect(ret) @@ -108,7 +108,7 @@ func (this *QCommonStyle) SubControlRect(cc uintptr, opt *QStyleOptionComplex, s return ret1 } -func (this *QCommonStyle) SizeFromContents(ct uintptr, opt *QStyleOption, contentsSize *QSize) *QSize { +func (this *QCommonStyle) SizeFromContents(ct QStyle__ContentsType, opt *QStyleOption, contentsSize *QSize) *QSize { ret := C.QCommonStyle_SizeFromContents(this.h, (C.uintptr_t)(ct), opt.cPointer(), contentsSize.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSize(ret) @@ -119,17 +119,17 @@ func (this *QCommonStyle) SizeFromContents(ct uintptr, opt *QStyleOption, conten return ret1 } -func (this *QCommonStyle) PixelMetric(m uintptr) int { +func (this *QCommonStyle) PixelMetric(m QStyle__PixelMetric) int { ret := C.QCommonStyle_PixelMetric(this.h, (C.uintptr_t)(m)) return (int)(ret) } -func (this *QCommonStyle) StyleHint(sh uintptr) int { +func (this *QCommonStyle) StyleHint(sh QStyle__StyleHint) int { ret := C.QCommonStyle_StyleHint(this.h, (C.uintptr_t)(sh)) return (int)(ret) } -func (this *QCommonStyle) StandardIcon(standardIcon uintptr) *QIcon { +func (this *QCommonStyle) StandardIcon(standardIcon QStyle__StandardPixmap) *QIcon { ret := C.QCommonStyle_StandardIcon(this.h, (C.uintptr_t)(standardIcon)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQIcon(ret) @@ -140,7 +140,7 @@ func (this *QCommonStyle) StandardIcon(standardIcon uintptr) *QIcon { return ret1 } -func (this *QCommonStyle) StandardPixmap(sp uintptr) *QPixmap { +func (this *QCommonStyle) StandardPixmap(sp QStyle__StandardPixmap) *QPixmap { ret := C.QCommonStyle_StandardPixmap(this.h, (C.uintptr_t)(sp)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -151,7 +151,7 @@ func (this *QCommonStyle) StandardPixmap(sp uintptr) *QPixmap { return ret1 } -func (this *QCommonStyle) GeneratedIconPixmap(iconMode uintptr, pixmap *QPixmap, opt *QStyleOption) *QPixmap { +func (this *QCommonStyle) GeneratedIconPixmap(iconMode QIcon__Mode, pixmap *QPixmap, opt *QStyleOption) *QPixmap { ret := C.QCommonStyle_GeneratedIconPixmap(this.h, (C.uintptr_t)(iconMode), pixmap.cPointer(), opt.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -162,7 +162,7 @@ func (this *QCommonStyle) GeneratedIconPixmap(iconMode uintptr, pixmap *QPixmap, return ret1 } -func (this *QCommonStyle) LayoutSpacing(control1 uintptr, control2 uintptr, orientation uintptr) int { +func (this *QCommonStyle) LayoutSpacing(control1 QSizePolicy__ControlType, control2 QSizePolicy__ControlType, orientation Orientation) int { ret := C.QCommonStyle_LayoutSpacing(this.h, (C.uintptr_t)(control1), (C.uintptr_t)(control2), (C.uintptr_t)(orientation)) return (int)(ret) } @@ -239,15 +239,15 @@ func QCommonStyle_TrUtf83(s string, c string, n int) string { return ret } -func (this *QCommonStyle) DrawPrimitive4(pe uintptr, opt *QStyleOption, p *QPainter, w *QWidget) { +func (this *QCommonStyle) DrawPrimitive4(pe QStyle__PrimitiveElement, opt *QStyleOption, p *QPainter, w *QWidget) { C.QCommonStyle_DrawPrimitive4(this.h, (C.uintptr_t)(pe), opt.cPointer(), p.cPointer(), w.cPointer()) } -func (this *QCommonStyle) DrawControl4(element uintptr, opt *QStyleOption, p *QPainter, w *QWidget) { +func (this *QCommonStyle) DrawControl4(element QStyle__ControlElement, opt *QStyleOption, p *QPainter, w *QWidget) { C.QCommonStyle_DrawControl4(this.h, (C.uintptr_t)(element), opt.cPointer(), p.cPointer(), w.cPointer()) } -func (this *QCommonStyle) SubElementRect3(r uintptr, opt *QStyleOption, widget *QWidget) *QRect { +func (this *QCommonStyle) SubElementRect3(r QStyle__SubElement, opt *QStyleOption, widget *QWidget) *QRect { ret := C.QCommonStyle_SubElementRect3(this.h, (C.uintptr_t)(r), opt.cPointer(), widget.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRect(ret) @@ -258,16 +258,16 @@ func (this *QCommonStyle) SubElementRect3(r uintptr, opt *QStyleOption, widget * return ret1 } -func (this *QCommonStyle) DrawComplexControl4(cc uintptr, opt *QStyleOptionComplex, p *QPainter, w *QWidget) { +func (this *QCommonStyle) DrawComplexControl4(cc QStyle__ComplexControl, opt *QStyleOptionComplex, p *QPainter, w *QWidget) { C.QCommonStyle_DrawComplexControl4(this.h, (C.uintptr_t)(cc), opt.cPointer(), p.cPointer(), w.cPointer()) } -func (this *QCommonStyle) HitTestComplexControl4(cc uintptr, opt *QStyleOptionComplex, pt *QPoint, w *QWidget) uintptr { +func (this *QCommonStyle) HitTestComplexControl4(cc QStyle__ComplexControl, opt *QStyleOptionComplex, pt *QPoint, w *QWidget) QStyle__SubControl { ret := C.QCommonStyle_HitTestComplexControl4(this.h, (C.uintptr_t)(cc), opt.cPointer(), pt.cPointer(), w.cPointer()) - return (uintptr)(ret) + return (QStyle__SubControl)(ret) } -func (this *QCommonStyle) SubControlRect4(cc uintptr, opt *QStyleOptionComplex, sc uintptr, w *QWidget) *QRect { +func (this *QCommonStyle) SubControlRect4(cc QStyle__ComplexControl, opt *QStyleOptionComplex, sc QStyle__SubControl, w *QWidget) *QRect { ret := C.QCommonStyle_SubControlRect4(this.h, (C.uintptr_t)(cc), opt.cPointer(), (C.uintptr_t)(sc), w.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRect(ret) @@ -278,7 +278,7 @@ func (this *QCommonStyle) SubControlRect4(cc uintptr, opt *QStyleOptionComplex, return ret1 } -func (this *QCommonStyle) SizeFromContents4(ct uintptr, opt *QStyleOption, contentsSize *QSize, widget *QWidget) *QSize { +func (this *QCommonStyle) SizeFromContents4(ct QStyle__ContentsType, opt *QStyleOption, contentsSize *QSize, widget *QWidget) *QSize { ret := C.QCommonStyle_SizeFromContents4(this.h, (C.uintptr_t)(ct), opt.cPointer(), contentsSize.cPointer(), widget.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSize(ret) @@ -289,32 +289,32 @@ func (this *QCommonStyle) SizeFromContents4(ct uintptr, opt *QStyleOption, conte return ret1 } -func (this *QCommonStyle) PixelMetric2(m uintptr, opt *QStyleOption) int { +func (this *QCommonStyle) PixelMetric2(m QStyle__PixelMetric, opt *QStyleOption) int { ret := C.QCommonStyle_PixelMetric2(this.h, (C.uintptr_t)(m), opt.cPointer()) return (int)(ret) } -func (this *QCommonStyle) PixelMetric3(m uintptr, opt *QStyleOption, widget *QWidget) int { +func (this *QCommonStyle) PixelMetric3(m QStyle__PixelMetric, opt *QStyleOption, widget *QWidget) int { ret := C.QCommonStyle_PixelMetric3(this.h, (C.uintptr_t)(m), opt.cPointer(), widget.cPointer()) return (int)(ret) } -func (this *QCommonStyle) StyleHint2(sh uintptr, opt *QStyleOption) int { +func (this *QCommonStyle) StyleHint2(sh QStyle__StyleHint, opt *QStyleOption) int { ret := C.QCommonStyle_StyleHint2(this.h, (C.uintptr_t)(sh), opt.cPointer()) return (int)(ret) } -func (this *QCommonStyle) StyleHint3(sh uintptr, opt *QStyleOption, w *QWidget) int { +func (this *QCommonStyle) StyleHint3(sh QStyle__StyleHint, opt *QStyleOption, w *QWidget) int { ret := C.QCommonStyle_StyleHint3(this.h, (C.uintptr_t)(sh), opt.cPointer(), w.cPointer()) return (int)(ret) } -func (this *QCommonStyle) StyleHint4(sh uintptr, opt *QStyleOption, w *QWidget, shret *QStyleHintReturn) int { +func (this *QCommonStyle) StyleHint4(sh QStyle__StyleHint, opt *QStyleOption, w *QWidget, shret *QStyleHintReturn) int { ret := C.QCommonStyle_StyleHint4(this.h, (C.uintptr_t)(sh), opt.cPointer(), w.cPointer(), shret.cPointer()) return (int)(ret) } -func (this *QCommonStyle) StandardIcon2(standardIcon uintptr, opt *QStyleOption) *QIcon { +func (this *QCommonStyle) StandardIcon2(standardIcon QStyle__StandardPixmap, opt *QStyleOption) *QIcon { ret := C.QCommonStyle_StandardIcon2(this.h, (C.uintptr_t)(standardIcon), opt.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQIcon(ret) @@ -325,7 +325,7 @@ func (this *QCommonStyle) StandardIcon2(standardIcon uintptr, opt *QStyleOption) return ret1 } -func (this *QCommonStyle) StandardIcon3(standardIcon uintptr, opt *QStyleOption, widget *QWidget) *QIcon { +func (this *QCommonStyle) StandardIcon3(standardIcon QStyle__StandardPixmap, opt *QStyleOption, widget *QWidget) *QIcon { ret := C.QCommonStyle_StandardIcon3(this.h, (C.uintptr_t)(standardIcon), opt.cPointer(), widget.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQIcon(ret) @@ -336,7 +336,7 @@ func (this *QCommonStyle) StandardIcon3(standardIcon uintptr, opt *QStyleOption, return ret1 } -func (this *QCommonStyle) StandardPixmap2(sp uintptr, opt *QStyleOption) *QPixmap { +func (this *QCommonStyle) StandardPixmap2(sp QStyle__StandardPixmap, opt *QStyleOption) *QPixmap { ret := C.QCommonStyle_StandardPixmap2(this.h, (C.uintptr_t)(sp), opt.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -347,7 +347,7 @@ func (this *QCommonStyle) StandardPixmap2(sp uintptr, opt *QStyleOption) *QPixma return ret1 } -func (this *QCommonStyle) StandardPixmap3(sp uintptr, opt *QStyleOption, widget *QWidget) *QPixmap { +func (this *QCommonStyle) StandardPixmap3(sp QStyle__StandardPixmap, opt *QStyleOption, widget *QWidget) *QPixmap { ret := C.QCommonStyle_StandardPixmap3(this.h, (C.uintptr_t)(sp), opt.cPointer(), widget.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -358,12 +358,12 @@ func (this *QCommonStyle) StandardPixmap3(sp uintptr, opt *QStyleOption, widget return ret1 } -func (this *QCommonStyle) LayoutSpacing4(control1 uintptr, control2 uintptr, orientation uintptr, option *QStyleOption) int { +func (this *QCommonStyle) LayoutSpacing4(control1 QSizePolicy__ControlType, control2 QSizePolicy__ControlType, orientation Orientation, option *QStyleOption) int { ret := C.QCommonStyle_LayoutSpacing4(this.h, (C.uintptr_t)(control1), (C.uintptr_t)(control2), (C.uintptr_t)(orientation), option.cPointer()) return (int)(ret) } -func (this *QCommonStyle) LayoutSpacing5(control1 uintptr, control2 uintptr, orientation uintptr, option *QStyleOption, widget *QWidget) int { +func (this *QCommonStyle) LayoutSpacing5(control1 QSizePolicy__ControlType, control2 QSizePolicy__ControlType, orientation Orientation, option *QStyleOption, widget *QWidget) int { ret := C.QCommonStyle_LayoutSpacing5(this.h, (C.uintptr_t)(control1), (C.uintptr_t)(control2), (C.uintptr_t)(orientation), option.cPointer(), widget.cPointer()) return (int)(ret) } diff --git a/qt/gen_qcompleter.go b/qt/gen_qcompleter.go index 8824b91a..abd68366 100644 --- a/qt/gen_qcompleter.go +++ b/qt/gen_qcompleter.go @@ -14,6 +14,22 @@ import ( "unsafe" ) +type QCompleter__CompletionMode int + +const ( + QCompleter__CompletionMode__PopupCompletion QCompleter__CompletionMode = 0 + QCompleter__CompletionMode__UnfilteredPopupCompletion QCompleter__CompletionMode = 1 + QCompleter__CompletionMode__InlineCompletion QCompleter__CompletionMode = 2 +) + +type QCompleter__ModelSorting int + +const ( + QCompleter__ModelSorting__UnsortedModel QCompleter__ModelSorting = 0 + QCompleter__ModelSorting__CaseSensitivelySortedModel QCompleter__ModelSorting = 1 + QCompleter__ModelSorting__CaseInsensitivelySortedModel QCompleter__ModelSorting = 2 +) + type QCompleter struct { h *C.QCompleter *QObject @@ -140,13 +156,13 @@ func (this *QCompleter) Model() *QAbstractItemModel { return newQAbstractItemModel_U(unsafe.Pointer(ret)) } -func (this *QCompleter) SetCompletionMode(mode uintptr) { +func (this *QCompleter) SetCompletionMode(mode QCompleter__CompletionMode) { C.QCompleter_SetCompletionMode(this.h, (C.uintptr_t)(mode)) } -func (this *QCompleter) CompletionMode() uintptr { +func (this *QCompleter) CompletionMode() QCompleter__CompletionMode { ret := C.QCompleter_CompletionMode(this.h) - return (uintptr)(ret) + return (QCompleter__CompletionMode)(ret) } func (this *QCompleter) SetFilterMode(filterMode int) { @@ -167,22 +183,22 @@ func (this *QCompleter) SetPopup(popup *QAbstractItemView) { C.QCompleter_SetPopup(this.h, popup.cPointer()) } -func (this *QCompleter) SetCaseSensitivity(caseSensitivity uintptr) { +func (this *QCompleter) SetCaseSensitivity(caseSensitivity CaseSensitivity) { C.QCompleter_SetCaseSensitivity(this.h, (C.uintptr_t)(caseSensitivity)) } -func (this *QCompleter) CaseSensitivity() uintptr { +func (this *QCompleter) CaseSensitivity() CaseSensitivity { ret := C.QCompleter_CaseSensitivity(this.h) - return (uintptr)(ret) + return (CaseSensitivity)(ret) } -func (this *QCompleter) SetModelSorting(sorting uintptr) { +func (this *QCompleter) SetModelSorting(sorting QCompleter__ModelSorting) { C.QCompleter_SetModelSorting(this.h, (C.uintptr_t)(sorting)) } -func (this *QCompleter) ModelSorting() uintptr { +func (this *QCompleter) ModelSorting() QCompleter__ModelSorting { ret := C.QCompleter_ModelSorting(this.h) - return (uintptr)(ret) + return (QCompleter__ModelSorting)(ret) } func (this *QCompleter) SetCompletionColumn(column int) { diff --git a/qt/gen_qconcatenatetablesproxymodel.go b/qt/gen_qconcatenatetablesproxymodel.go index a2c7aaa8..62056d63 100644 --- a/qt/gen_qconcatenatetablesproxymodel.go +++ b/qt/gen_qconcatenatetablesproxymodel.go @@ -166,7 +166,7 @@ func (this *QConcatenateTablesProxyModel) RowCount() int { return (int)(ret) } -func (this *QConcatenateTablesProxyModel) HeaderData(section int, orientation uintptr) *QVariant { +func (this *QConcatenateTablesProxyModel) HeaderData(section int, orientation Orientation) *QVariant { ret := C.QConcatenateTablesProxyModel_HeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -208,12 +208,12 @@ func (this *QConcatenateTablesProxyModel) MimeData(indexes []QModelIndex) *QMime return newQMimeData_U(unsafe.Pointer(ret)) } -func (this *QConcatenateTablesProxyModel) CanDropMimeData(data *QMimeData, action uintptr, row int, column int, parent *QModelIndex) bool { +func (this *QConcatenateTablesProxyModel) CanDropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool { ret := C.QConcatenateTablesProxyModel_CanDropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()) return (bool)(ret) } -func (this *QConcatenateTablesProxyModel) DropMimeData(data *QMimeData, action uintptr, row int, column int, parent *QModelIndex) bool { +func (this *QConcatenateTablesProxyModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool { ret := C.QConcatenateTablesProxyModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()) return (bool)(ret) } @@ -313,7 +313,7 @@ func (this *QConcatenateTablesProxyModel) RowCount1(parent *QModelIndex) int { return (int)(ret) } -func (this *QConcatenateTablesProxyModel) HeaderData3(section int, orientation uintptr, role int) *QVariant { +func (this *QConcatenateTablesProxyModel) HeaderData3(section int, orientation Orientation, role int) *QVariant { ret := C.QConcatenateTablesProxyModel_HeaderData3(this.h, (C.int)(section), (C.uintptr_t)(orientation), (C.int)(role)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) diff --git a/qt/gen_qcoreapplication.go b/qt/gen_qcoreapplication.go index 17da6ab1..df5f71c6 100644 --- a/qt/gen_qcoreapplication.go +++ b/qt/gen_qcoreapplication.go @@ -13,6 +13,12 @@ import ( "unsafe" ) +type QCoreApplication__ int + +const ( + QCoreApplication____ApplicationFlags QCoreApplication__ = 331528 +) + type QCoreApplication struct { h *C.QCoreApplication *QObject @@ -104,11 +110,11 @@ func QCoreApplication_Arguments() []string { return ret } -func QCoreApplication_SetAttribute(attribute uintptr) { +func QCoreApplication_SetAttribute(attribute ApplicationAttribute) { C.QCoreApplication_SetAttribute((C.uintptr_t)(attribute)) } -func QCoreApplication_TestAttribute(attribute uintptr) bool { +func QCoreApplication_TestAttribute(attribute ApplicationAttribute) bool { ret := C.QCoreApplication_TestAttribute((C.uintptr_t)(attribute)) return (bool)(ret) } @@ -463,7 +469,7 @@ func QCoreApplication_TrUtf83(s string, c string, n int) string { return ret } -func QCoreApplication_SetAttribute2(attribute uintptr, on bool) { +func QCoreApplication_SetAttribute2(attribute ApplicationAttribute, on bool) { C.QCoreApplication_SetAttribute2((C.uintptr_t)(attribute), (C.bool)(on)) } diff --git a/qt/gen_qcoreevent.go b/qt/gen_qcoreevent.go index d57827ea..bcc173cb 100644 --- a/qt/gen_qcoreevent.go +++ b/qt/gen_qcoreevent.go @@ -13,6 +13,183 @@ import ( "unsafe" ) +type QEvent__Type int + +const ( + QEvent__Type__None QEvent__Type = 0 + QEvent__Type__Timer QEvent__Type = 1 + QEvent__Type__MouseButtonPress QEvent__Type = 2 + QEvent__Type__MouseButtonRelease QEvent__Type = 3 + QEvent__Type__MouseButtonDblClick QEvent__Type = 4 + QEvent__Type__MouseMove QEvent__Type = 5 + QEvent__Type__KeyPress QEvent__Type = 6 + QEvent__Type__KeyRelease QEvent__Type = 7 + QEvent__Type__FocusIn QEvent__Type = 8 + QEvent__Type__FocusOut QEvent__Type = 9 + QEvent__Type__FocusAboutToChange QEvent__Type = 23 + QEvent__Type__Enter QEvent__Type = 10 + QEvent__Type__Leave QEvent__Type = 11 + QEvent__Type__Paint QEvent__Type = 12 + QEvent__Type__Move QEvent__Type = 13 + QEvent__Type__Resize QEvent__Type = 14 + QEvent__Type__Create QEvent__Type = 15 + QEvent__Type__Destroy QEvent__Type = 16 + QEvent__Type__Show QEvent__Type = 17 + QEvent__Type__Hide QEvent__Type = 18 + QEvent__Type__Close QEvent__Type = 19 + QEvent__Type__Quit QEvent__Type = 20 + QEvent__Type__ParentChange QEvent__Type = 21 + QEvent__Type__ParentAboutToChange QEvent__Type = 131 + QEvent__Type__ThreadChange QEvent__Type = 22 + QEvent__Type__WindowActivate QEvent__Type = 24 + QEvent__Type__WindowDeactivate QEvent__Type = 25 + QEvent__Type__ShowToParent QEvent__Type = 26 + QEvent__Type__HideToParent QEvent__Type = 27 + QEvent__Type__Wheel QEvent__Type = 31 + QEvent__Type__WindowTitleChange QEvent__Type = 33 + QEvent__Type__WindowIconChange QEvent__Type = 34 + QEvent__Type__ApplicationWindowIconChange QEvent__Type = 35 + QEvent__Type__ApplicationFontChange QEvent__Type = 36 + QEvent__Type__ApplicationLayoutDirectionChange QEvent__Type = 37 + QEvent__Type__ApplicationPaletteChange QEvent__Type = 38 + QEvent__Type__PaletteChange QEvent__Type = 39 + QEvent__Type__Clipboard QEvent__Type = 40 + QEvent__Type__Speech QEvent__Type = 42 + QEvent__Type__MetaCall QEvent__Type = 43 + QEvent__Type__SockAct QEvent__Type = 50 + QEvent__Type__WinEventAct QEvent__Type = 132 + QEvent__Type__DeferredDelete QEvent__Type = 52 + QEvent__Type__DragEnter QEvent__Type = 60 + QEvent__Type__DragMove QEvent__Type = 61 + QEvent__Type__DragLeave QEvent__Type = 62 + QEvent__Type__Drop QEvent__Type = 63 + QEvent__Type__DragResponse QEvent__Type = 64 + QEvent__Type__ChildAdded QEvent__Type = 68 + QEvent__Type__ChildPolished QEvent__Type = 69 + QEvent__Type__ChildRemoved QEvent__Type = 71 + QEvent__Type__ShowWindowRequest QEvent__Type = 73 + QEvent__Type__PolishRequest QEvent__Type = 74 + QEvent__Type__Polish QEvent__Type = 75 + QEvent__Type__LayoutRequest QEvent__Type = 76 + QEvent__Type__UpdateRequest QEvent__Type = 77 + QEvent__Type__UpdateLater QEvent__Type = 78 + QEvent__Type__EmbeddingControl QEvent__Type = 79 + QEvent__Type__ActivateControl QEvent__Type = 80 + QEvent__Type__DeactivateControl QEvent__Type = 81 + QEvent__Type__ContextMenu QEvent__Type = 82 + QEvent__Type__InputMethod QEvent__Type = 83 + QEvent__Type__TabletMove QEvent__Type = 87 + QEvent__Type__LocaleChange QEvent__Type = 88 + QEvent__Type__LanguageChange QEvent__Type = 89 + QEvent__Type__LayoutDirectionChange QEvent__Type = 90 + QEvent__Type__Style QEvent__Type = 91 + QEvent__Type__TabletPress QEvent__Type = 92 + QEvent__Type__TabletRelease QEvent__Type = 93 + QEvent__Type__OkRequest QEvent__Type = 94 + QEvent__Type__HelpRequest QEvent__Type = 95 + QEvent__Type__IconDrag QEvent__Type = 96 + QEvent__Type__FontChange QEvent__Type = 97 + QEvent__Type__EnabledChange QEvent__Type = 98 + QEvent__Type__ActivationChange QEvent__Type = 99 + QEvent__Type__StyleChange QEvent__Type = 100 + QEvent__Type__IconTextChange QEvent__Type = 101 + QEvent__Type__ModifiedChange QEvent__Type = 102 + QEvent__Type__MouseTrackingChange QEvent__Type = 109 + QEvent__Type__WindowBlocked QEvent__Type = 103 + QEvent__Type__WindowUnblocked QEvent__Type = 104 + QEvent__Type__WindowStateChange QEvent__Type = 105 + QEvent__Type__ReadOnlyChange QEvent__Type = 106 + QEvent__Type__ToolTip QEvent__Type = 110 + QEvent__Type__WhatsThis QEvent__Type = 111 + QEvent__Type__StatusTip QEvent__Type = 112 + QEvent__Type__ActionChanged QEvent__Type = 113 + QEvent__Type__ActionAdded QEvent__Type = 114 + QEvent__Type__ActionRemoved QEvent__Type = 115 + QEvent__Type__FileOpen QEvent__Type = 116 + QEvent__Type__Shortcut QEvent__Type = 117 + QEvent__Type__ShortcutOverride QEvent__Type = 51 + QEvent__Type__WhatsThisClicked QEvent__Type = 118 + QEvent__Type__ToolBarChange QEvent__Type = 120 + QEvent__Type__ApplicationActivate QEvent__Type = 121 + QEvent__Type__ApplicationActivated QEvent__Type = 121 + QEvent__Type__ApplicationDeactivate QEvent__Type = 122 + QEvent__Type__ApplicationDeactivated QEvent__Type = 122 + QEvent__Type__QueryWhatsThis QEvent__Type = 123 + QEvent__Type__EnterWhatsThisMode QEvent__Type = 124 + QEvent__Type__LeaveWhatsThisMode QEvent__Type = 125 + QEvent__Type__ZOrderChange QEvent__Type = 126 + QEvent__Type__HoverEnter QEvent__Type = 127 + QEvent__Type__HoverLeave QEvent__Type = 128 + QEvent__Type__HoverMove QEvent__Type = 129 + QEvent__Type__AcceptDropsChange QEvent__Type = 152 + QEvent__Type__ZeroTimerEvent QEvent__Type = 154 + QEvent__Type__GraphicsSceneMouseMove QEvent__Type = 155 + QEvent__Type__GraphicsSceneMousePress QEvent__Type = 156 + QEvent__Type__GraphicsSceneMouseRelease QEvent__Type = 157 + QEvent__Type__GraphicsSceneMouseDoubleClick QEvent__Type = 158 + QEvent__Type__GraphicsSceneContextMenu QEvent__Type = 159 + QEvent__Type__GraphicsSceneHoverEnter QEvent__Type = 160 + QEvent__Type__GraphicsSceneHoverMove QEvent__Type = 161 + QEvent__Type__GraphicsSceneHoverLeave QEvent__Type = 162 + QEvent__Type__GraphicsSceneHelp QEvent__Type = 163 + QEvent__Type__GraphicsSceneDragEnter QEvent__Type = 164 + QEvent__Type__GraphicsSceneDragMove QEvent__Type = 165 + QEvent__Type__GraphicsSceneDragLeave QEvent__Type = 166 + QEvent__Type__GraphicsSceneDrop QEvent__Type = 167 + QEvent__Type__GraphicsSceneWheel QEvent__Type = 168 + QEvent__Type__KeyboardLayoutChange QEvent__Type = 169 + QEvent__Type__DynamicPropertyChange QEvent__Type = 170 + QEvent__Type__TabletEnterProximity QEvent__Type = 171 + QEvent__Type__TabletLeaveProximity QEvent__Type = 172 + QEvent__Type__NonClientAreaMouseMove QEvent__Type = 173 + QEvent__Type__NonClientAreaMouseButtonPress QEvent__Type = 174 + QEvent__Type__NonClientAreaMouseButtonRelease QEvent__Type = 175 + QEvent__Type__NonClientAreaMouseButtonDblClick QEvent__Type = 176 + QEvent__Type__MacSizeChange QEvent__Type = 177 + QEvent__Type__ContentsRectChange QEvent__Type = 178 + QEvent__Type__MacGLWindowChange QEvent__Type = 179 + QEvent__Type__FutureCallOut QEvent__Type = 180 + QEvent__Type__GraphicsSceneResize QEvent__Type = 181 + QEvent__Type__GraphicsSceneMove QEvent__Type = 182 + QEvent__Type__CursorChange QEvent__Type = 183 + QEvent__Type__ToolTipChange QEvent__Type = 184 + QEvent__Type__NetworkReplyUpdated QEvent__Type = 185 + QEvent__Type__GrabMouse QEvent__Type = 186 + QEvent__Type__UngrabMouse QEvent__Type = 187 + QEvent__Type__GrabKeyboard QEvent__Type = 188 + QEvent__Type__UngrabKeyboard QEvent__Type = 189 + QEvent__Type__MacGLClearDrawable QEvent__Type = 191 + QEvent__Type__StateMachineSignal QEvent__Type = 192 + QEvent__Type__StateMachineWrapped QEvent__Type = 193 + QEvent__Type__TouchBegin QEvent__Type = 194 + QEvent__Type__TouchUpdate QEvent__Type = 195 + QEvent__Type__TouchEnd QEvent__Type = 196 + QEvent__Type__NativeGesture QEvent__Type = 197 + QEvent__Type__RequestSoftwareInputPanel QEvent__Type = 199 + QEvent__Type__CloseSoftwareInputPanel QEvent__Type = 200 + QEvent__Type__WinIdChange QEvent__Type = 203 + QEvent__Type__Gesture QEvent__Type = 198 + QEvent__Type__GestureOverride QEvent__Type = 202 + QEvent__Type__ScrollPrepare QEvent__Type = 204 + QEvent__Type__Scroll QEvent__Type = 205 + QEvent__Type__Expose QEvent__Type = 206 + QEvent__Type__InputMethodQuery QEvent__Type = 207 + QEvent__Type__OrientationChange QEvent__Type = 208 + QEvent__Type__TouchCancel QEvent__Type = 209 + QEvent__Type__ThemeChange QEvent__Type = 210 + QEvent__Type__SockClose QEvent__Type = 211 + QEvent__Type__PlatformPanel QEvent__Type = 212 + QEvent__Type__StyleAnimationUpdate QEvent__Type = 213 + QEvent__Type__ApplicationStateChange QEvent__Type = 214 + QEvent__Type__WindowChangeInternal QEvent__Type = 215 + QEvent__Type__ScreenChangeInternal QEvent__Type = 216 + QEvent__Type__PlatformSurface QEvent__Type = 217 + QEvent__Type__Pointer QEvent__Type = 218 + QEvent__Type__TabletTrackingChange QEvent__Type = 219 + QEvent__Type__User QEvent__Type = 1000 + QEvent__Type__MaxUser QEvent__Type = 65535 +) + type QEvent struct { h *C.QEvent } @@ -36,7 +213,7 @@ func newQEvent_U(h unsafe.Pointer) *QEvent { } // NewQEvent constructs a new QEvent object. -func NewQEvent(typeVal uintptr) *QEvent { +func NewQEvent(typeVal QEvent__Type) *QEvent { ret := C.QEvent_new((C.uintptr_t)(typeVal)) return newQEvent(ret) } @@ -51,9 +228,9 @@ func (this *QEvent) OperatorAssign(other *QEvent) { C.QEvent_OperatorAssign(this.h, other.cPointer()) } -func (this *QEvent) Type() uintptr { +func (this *QEvent) Type() QEvent__Type { ret := C.QEvent_Type(this.h) - return (uintptr)(ret) + return (QEvent__Type)(ret) } func (this *QEvent) Spontaneous() bool { @@ -160,7 +337,7 @@ func newQChildEvent_U(h unsafe.Pointer) *QChildEvent { } // NewQChildEvent constructs a new QChildEvent object. -func NewQChildEvent(typeVal uintptr, child *QObject) *QChildEvent { +func NewQChildEvent(typeVal QEvent__Type, child *QObject) *QChildEvent { ret := C.QChildEvent_new((C.uintptr_t)(typeVal), child.cPointer()) return newQChildEvent(ret) } diff --git a/qt/gen_qcryptographichash.go b/qt/gen_qcryptographichash.go index 06ca3dd6..0e75827f 100644 --- a/qt/gen_qcryptographichash.go +++ b/qt/gen_qcryptographichash.go @@ -13,6 +13,30 @@ import ( "unsafe" ) +type QCryptographicHash__Algorithm int + +const ( + QCryptographicHash__Algorithm__Md4 QCryptographicHash__Algorithm = 0 + QCryptographicHash__Algorithm__Md5 QCryptographicHash__Algorithm = 1 + QCryptographicHash__Algorithm__Sha1 QCryptographicHash__Algorithm = 2 + QCryptographicHash__Algorithm__Sha224 QCryptographicHash__Algorithm = 3 + QCryptographicHash__Algorithm__Sha256 QCryptographicHash__Algorithm = 4 + QCryptographicHash__Algorithm__Sha384 QCryptographicHash__Algorithm = 5 + QCryptographicHash__Algorithm__Sha512 QCryptographicHash__Algorithm = 6 + QCryptographicHash__Algorithm__Keccak_224 QCryptographicHash__Algorithm = 7 + QCryptographicHash__Algorithm__Keccak_256 QCryptographicHash__Algorithm = 8 + QCryptographicHash__Algorithm__Keccak_384 QCryptographicHash__Algorithm = 9 + QCryptographicHash__Algorithm__Keccak_512 QCryptographicHash__Algorithm = 10 + QCryptographicHash__Algorithm__RealSha3_224 QCryptographicHash__Algorithm = 11 + QCryptographicHash__Algorithm__RealSha3_256 QCryptographicHash__Algorithm = 12 + QCryptographicHash__Algorithm__RealSha3_384 QCryptographicHash__Algorithm = 13 + QCryptographicHash__Algorithm__RealSha3_512 QCryptographicHash__Algorithm = 14 + QCryptographicHash__Algorithm__Sha3_224 QCryptographicHash__Algorithm = 11 + QCryptographicHash__Algorithm__Sha3_256 QCryptographicHash__Algorithm = 12 + QCryptographicHash__Algorithm__Sha3_384 QCryptographicHash__Algorithm = 13 + QCryptographicHash__Algorithm__Sha3_512 QCryptographicHash__Algorithm = 14 +) + type QCryptographicHash struct { h *C.QCryptographicHash } @@ -36,7 +60,7 @@ func newQCryptographicHash_U(h unsafe.Pointer) *QCryptographicHash { } // NewQCryptographicHash constructs a new QCryptographicHash object. -func NewQCryptographicHash(method uintptr) *QCryptographicHash { +func NewQCryptographicHash(method QCryptographicHash__Algorithm) *QCryptographicHash { ret := C.QCryptographicHash_new((C.uintptr_t)(method)) return newQCryptographicHash(ret) } @@ -71,7 +95,7 @@ func (this *QCryptographicHash) Result() *QByteArray { return ret1 } -func QCryptographicHash_Hash(data *QByteArray, method uintptr) *QByteArray { +func QCryptographicHash_Hash(data *QByteArray, method QCryptographicHash__Algorithm) *QByteArray { ret := C.QCryptographicHash_Hash(data.cPointer(), (C.uintptr_t)(method)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQByteArray(ret) @@ -82,7 +106,7 @@ func QCryptographicHash_Hash(data *QByteArray, method uintptr) *QByteArray { return ret1 } -func QCryptographicHash_HashLength(method uintptr) int { +func QCryptographicHash_HashLength(method QCryptographicHash__Algorithm) int { ret := C.QCryptographicHash_HashLength((C.uintptr_t)(method)) return (int)(ret) } diff --git a/qt/gen_qcursor.go b/qt/gen_qcursor.go index 7c3bba47..0cc2da33 100644 --- a/qt/gen_qcursor.go +++ b/qt/gen_qcursor.go @@ -42,7 +42,7 @@ func NewQCursor() *QCursor { } // NewQCursor2 constructs a new QCursor object. -func NewQCursor2(shape uintptr) *QCursor { +func NewQCursor2(shape CursorShape) *QCursor { ret := C.QCursor_new2((C.uintptr_t)(shape)) return newQCursor(ret) } @@ -97,12 +97,12 @@ func (this *QCursor) Swap(other *QCursor) { C.QCursor_Swap(this.h, other.cPointer()) } -func (this *QCursor) Shape() uintptr { +func (this *QCursor) Shape() CursorShape { ret := C.QCursor_Shape(this.h) - return (uintptr)(ret) + return (CursorShape)(ret) } -func (this *QCursor) SetShape(newShape uintptr) { +func (this *QCursor) SetShape(newShape CursorShape) { C.QCursor_SetShape(this.h, (C.uintptr_t)(newShape)) } @@ -116,7 +116,7 @@ func (this *QCursor) Mask() *QBitmap { return newQBitmap_U(unsafe.Pointer(ret)) } -func (this *QCursor) BitmapWithQtReturnByValueConstant(param1 uintptr) *QBitmap { +func (this *QCursor) BitmapWithQtReturnByValueConstant(param1 ReturnByValueConstant) *QBitmap { ret := C.QCursor_BitmapWithQtReturnByValueConstant(this.h, (C.uintptr_t)(param1)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQBitmap(ret) @@ -127,7 +127,7 @@ func (this *QCursor) BitmapWithQtReturnByValueConstant(param1 uintptr) *QBitmap return ret1 } -func (this *QCursor) MaskWithQtReturnByValueConstant(param1 uintptr) *QBitmap { +func (this *QCursor) MaskWithQtReturnByValueConstant(param1 ReturnByValueConstant) *QBitmap { ret := C.QCursor_MaskWithQtReturnByValueConstant(this.h, (C.uintptr_t)(param1)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQBitmap(ret) diff --git a/qt/gen_qdatastream.go b/qt/gen_qdatastream.go index fb1da5a1..da9ab56b 100644 --- a/qt/gen_qdatastream.go +++ b/qt/gen_qdatastream.go @@ -12,6 +12,67 @@ import ( "unsafe" ) +type QDataStream__Version int + +const ( + QDataStream__Version__Qt_1_0 QDataStream__Version = 1 + QDataStream__Version__Qt_2_0 QDataStream__Version = 2 + QDataStream__Version__Qt_2_1 QDataStream__Version = 3 + QDataStream__Version__Qt_3_0 QDataStream__Version = 4 + QDataStream__Version__Qt_3_1 QDataStream__Version = 5 + QDataStream__Version__Qt_3_3 QDataStream__Version = 6 + QDataStream__Version__Qt_4_0 QDataStream__Version = 7 + QDataStream__Version__Qt_4_1 QDataStream__Version = 7 + QDataStream__Version__Qt_4_2 QDataStream__Version = 8 + QDataStream__Version__Qt_4_3 QDataStream__Version = 9 + QDataStream__Version__Qt_4_4 QDataStream__Version = 10 + QDataStream__Version__Qt_4_5 QDataStream__Version = 11 + QDataStream__Version__Qt_4_6 QDataStream__Version = 12 + QDataStream__Version__Qt_4_7 QDataStream__Version = 12 + QDataStream__Version__Qt_4_8 QDataStream__Version = 12 + QDataStream__Version__Qt_4_9 QDataStream__Version = 12 + QDataStream__Version__Qt_5_0 QDataStream__Version = 13 + QDataStream__Version__Qt_5_1 QDataStream__Version = 14 + QDataStream__Version__Qt_5_2 QDataStream__Version = 15 + QDataStream__Version__Qt_5_3 QDataStream__Version = 15 + QDataStream__Version__Qt_5_4 QDataStream__Version = 16 + QDataStream__Version__Qt_5_5 QDataStream__Version = 16 + QDataStream__Version__Qt_5_6 QDataStream__Version = 17 + QDataStream__Version__Qt_5_7 QDataStream__Version = 17 + QDataStream__Version__Qt_5_8 QDataStream__Version = 17 + QDataStream__Version__Qt_5_9 QDataStream__Version = 17 + QDataStream__Version__Qt_5_10 QDataStream__Version = 17 + QDataStream__Version__Qt_5_11 QDataStream__Version = 17 + QDataStream__Version__Qt_5_12 QDataStream__Version = 18 + QDataStream__Version__Qt_5_13 QDataStream__Version = 19 + QDataStream__Version__Qt_5_14 QDataStream__Version = 19 + QDataStream__Version__Qt_5_15 QDataStream__Version = 19 + QDataStream__Version__Qt_DefaultCompiledVersion QDataStream__Version = 19 +) + +type QDataStream__ByteOrder int + +const ( + QDataStream__ByteOrder__BigEndian QDataStream__ByteOrder = 0 + QDataStream__ByteOrder__LittleEndian QDataStream__ByteOrder = 1 +) + +type QDataStream__Status int + +const ( + QDataStream__Status__Ok QDataStream__Status = 0 + QDataStream__Status__ReadPastEnd QDataStream__Status = 1 + QDataStream__Status__ReadCorruptData QDataStream__Status = 2 + QDataStream__Status__WriteFailed QDataStream__Status = 3 +) + +type QDataStream__FloatingPointPrecision int + +const ( + QDataStream__FloatingPointPrecision__SinglePrecision QDataStream__FloatingPointPrecision = 0 + QDataStream__FloatingPointPrecision__DoublePrecision QDataStream__FloatingPointPrecision = 1 +) + type QDataStream struct { h *C.QDataStream } @@ -76,12 +137,12 @@ func (this *QDataStream) AtEnd() bool { return (bool)(ret) } -func (this *QDataStream) Status() uintptr { +func (this *QDataStream) Status() QDataStream__Status { ret := C.QDataStream_Status(this.h) - return (uintptr)(ret) + return (QDataStream__Status)(ret) } -func (this *QDataStream) SetStatus(status uintptr) { +func (this *QDataStream) SetStatus(status QDataStream__Status) { C.QDataStream_SetStatus(this.h, (C.uintptr_t)(status)) } @@ -89,21 +150,21 @@ func (this *QDataStream) ResetStatus() { C.QDataStream_ResetStatus(this.h) } -func (this *QDataStream) FloatingPointPrecision() uintptr { +func (this *QDataStream) FloatingPointPrecision() QDataStream__FloatingPointPrecision { ret := C.QDataStream_FloatingPointPrecision(this.h) - return (uintptr)(ret) + return (QDataStream__FloatingPointPrecision)(ret) } -func (this *QDataStream) SetFloatingPointPrecision(precision uintptr) { +func (this *QDataStream) SetFloatingPointPrecision(precision QDataStream__FloatingPointPrecision) { C.QDataStream_SetFloatingPointPrecision(this.h, (C.uintptr_t)(precision)) } -func (this *QDataStream) ByteOrder() uintptr { +func (this *QDataStream) ByteOrder() QDataStream__ByteOrder { ret := C.QDataStream_ByteOrder(this.h) - return (uintptr)(ret) + return (QDataStream__ByteOrder)(ret) } -func (this *QDataStream) SetByteOrder(byteOrder uintptr) { +func (this *QDataStream) SetByteOrder(byteOrder QDataStream__ByteOrder) { C.QDataStream_SetByteOrder(this.h, (C.uintptr_t)(byteOrder)) } diff --git a/qt/gen_qdatawidgetmapper.go b/qt/gen_qdatawidgetmapper.go index 26de7078..5a474939 100644 --- a/qt/gen_qdatawidgetmapper.go +++ b/qt/gen_qdatawidgetmapper.go @@ -14,6 +14,13 @@ import ( "unsafe" ) +type QDataWidgetMapper__SubmitPolicy int + +const ( + QDataWidgetMapper__SubmitPolicy__AutoSubmit QDataWidgetMapper__SubmitPolicy = 0 + QDataWidgetMapper__SubmitPolicy__ManualSubmit QDataWidgetMapper__SubmitPolicy = 1 +) + type QDataWidgetMapper struct { h *C.QDataWidgetMapper *QObject @@ -109,22 +116,22 @@ func (this *QDataWidgetMapper) RootIndex() *QModelIndex { return ret1 } -func (this *QDataWidgetMapper) SetOrientation(aOrientation uintptr) { +func (this *QDataWidgetMapper) SetOrientation(aOrientation Orientation) { C.QDataWidgetMapper_SetOrientation(this.h, (C.uintptr_t)(aOrientation)) } -func (this *QDataWidgetMapper) Orientation() uintptr { +func (this *QDataWidgetMapper) Orientation() Orientation { ret := C.QDataWidgetMapper_Orientation(this.h) - return (uintptr)(ret) + return (Orientation)(ret) } -func (this *QDataWidgetMapper) SetSubmitPolicy(policy uintptr) { +func (this *QDataWidgetMapper) SetSubmitPolicy(policy QDataWidgetMapper__SubmitPolicy) { C.QDataWidgetMapper_SetSubmitPolicy(this.h, (C.uintptr_t)(policy)) } -func (this *QDataWidgetMapper) SubmitPolicy() uintptr { +func (this *QDataWidgetMapper) SubmitPolicy() QDataWidgetMapper__SubmitPolicy { ret := C.QDataWidgetMapper_SubmitPolicy(this.h) - return (uintptr)(ret) + return (QDataWidgetMapper__SubmitPolicy)(ret) } func (this *QDataWidgetMapper) AddMapping(widget *QWidget, section int) { diff --git a/qt/gen_qdatetime.go b/qt/gen_qdatetime.go index b6128f35..6f992274 100644 --- a/qt/gen_qdatetime.go +++ b/qt/gen_qdatetime.go @@ -13,6 +13,20 @@ import ( "unsafe" ) +type QDate__MonthNameType int + +const ( + QDate__MonthNameType__DateFormat QDate__MonthNameType = 0 + QDate__MonthNameType__StandaloneFormat QDate__MonthNameType = 1 +) + +type QDateTime__YearRange int + +const ( + QDateTime__YearRange__First QDateTime__YearRange = -292275056 + QDateTime__YearRange__Last QDateTime__YearRange = 292278994 +) + type QDate struct { h *C.QDate } @@ -233,7 +247,7 @@ func (this *QDate) ToString() string { return ret } -func (this *QDate) ToString2(format uintptr, cal QCalendar) string { +func (this *QDate) ToString2(format DateFormat, cal QCalendar) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QDate_ToString2(this.h, (C.uintptr_t)(format), cal.cPointer(), &_out, &_out_Strlen) @@ -457,7 +471,7 @@ func (this *QDate) WeekNumber1(yearNum *int) int { return (int)(ret) } -func (this *QDate) StartOfDay1(spec uintptr) *QDateTime { +func (this *QDate) StartOfDay1(spec TimeSpec) *QDateTime { ret := C.QDate_StartOfDay1(this.h, (C.uintptr_t)(spec)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQDateTime(ret) @@ -468,7 +482,7 @@ func (this *QDate) StartOfDay1(spec uintptr) *QDateTime { return ret1 } -func (this *QDate) StartOfDay2(spec uintptr, offsetSeconds int) *QDateTime { +func (this *QDate) StartOfDay2(spec TimeSpec, offsetSeconds int) *QDateTime { ret := C.QDate_StartOfDay2(this.h, (C.uintptr_t)(spec), (C.int)(offsetSeconds)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQDateTime(ret) @@ -479,7 +493,7 @@ func (this *QDate) StartOfDay2(spec uintptr, offsetSeconds int) *QDateTime { return ret1 } -func (this *QDate) EndOfDay1(spec uintptr) *QDateTime { +func (this *QDate) EndOfDay1(spec TimeSpec) *QDateTime { ret := C.QDate_EndOfDay1(this.h, (C.uintptr_t)(spec)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQDateTime(ret) @@ -490,7 +504,7 @@ func (this *QDate) EndOfDay1(spec uintptr) *QDateTime { return ret1 } -func (this *QDate) EndOfDay2(spec uintptr, offsetSeconds int) *QDateTime { +func (this *QDate) EndOfDay2(spec TimeSpec, offsetSeconds int) *QDateTime { ret := C.QDate_EndOfDay2(this.h, (C.uintptr_t)(spec), (C.int)(offsetSeconds)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQDateTime(ret) @@ -501,7 +515,7 @@ func (this *QDate) EndOfDay2(spec uintptr, offsetSeconds int) *QDateTime { return ret1 } -func QDate_ShortMonthName2(month int, typeVal uintptr) string { +func QDate_ShortMonthName2(month int, typeVal QDate__MonthNameType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QDate_ShortMonthName2((C.int)(month), (C.uintptr_t)(typeVal), &_out, &_out_Strlen) @@ -510,7 +524,7 @@ func QDate_ShortMonthName2(month int, typeVal uintptr) string { return ret } -func QDate_ShortDayName2(weekday int, typeVal uintptr) string { +func QDate_ShortDayName2(weekday int, typeVal QDate__MonthNameType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QDate_ShortDayName2((C.int)(weekday), (C.uintptr_t)(typeVal), &_out, &_out_Strlen) @@ -519,7 +533,7 @@ func QDate_ShortDayName2(weekday int, typeVal uintptr) string { return ret } -func QDate_LongMonthName2(month int, typeVal uintptr) string { +func QDate_LongMonthName2(month int, typeVal QDate__MonthNameType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QDate_LongMonthName2((C.int)(month), (C.uintptr_t)(typeVal), &_out, &_out_Strlen) @@ -528,7 +542,7 @@ func QDate_LongMonthName2(month int, typeVal uintptr) string { return ret } -func QDate_LongDayName2(weekday int, typeVal uintptr) string { +func QDate_LongDayName2(weekday int, typeVal QDate__MonthNameType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QDate_LongDayName2((C.int)(weekday), (C.uintptr_t)(typeVal), &_out, &_out_Strlen) @@ -537,7 +551,7 @@ func QDate_LongDayName2(weekday int, typeVal uintptr) string { return ret } -func (this *QDate) ToString1(format uintptr) string { +func (this *QDate) ToString1(format DateFormat) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QDate_ToString1(this.h, (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -546,7 +560,7 @@ func (this *QDate) ToString1(format uintptr) string { return ret } -func QDate_FromString22(s string, f uintptr) *QDate { +func QDate_FromString22(s string, f DateFormat) *QDate { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) ret := C.QDate_FromString22(s_Cstring, C.size_t(len(s)), (C.uintptr_t)(f)) @@ -806,7 +820,7 @@ func (this *QTime) Elapsed() int { return (int)(ret) } -func (this *QTime) ToString1(f uintptr) string { +func (this *QTime) ToString1(f DateFormat) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QTime_ToString1(this.h, (C.uintptr_t)(f), &_out, &_out_Strlen) @@ -820,7 +834,7 @@ func (this *QTime) SetHMS4(h int, m int, s int, ms int) bool { return (bool)(ret) } -func QTime_FromString22(s string, f uintptr) *QTime { +func QTime_FromString22(s string, f DateFormat) *QTime { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) ret := C.QTime_FromString22(s_Cstring, C.size_t(len(s)), (C.uintptr_t)(f)) @@ -877,7 +891,7 @@ func NewQDateTime2(param1 *QDate, param2 *QTime) *QDateTime { } // NewQDateTime3 constructs a new QDateTime object. -func NewQDateTime3(date *QDate, time *QTime, spec uintptr, offsetSeconds int) *QDateTime { +func NewQDateTime3(date *QDate, time *QTime, spec TimeSpec, offsetSeconds int) *QDateTime { ret := C.QDateTime_new3(date.cPointer(), time.cPointer(), (C.uintptr_t)(spec), (C.int)(offsetSeconds)) return newQDateTime(ret) } @@ -895,7 +909,7 @@ func NewQDateTime5(other *QDateTime) *QDateTime { } // NewQDateTime6 constructs a new QDateTime object. -func NewQDateTime6(param1 *QDate, param2 *QTime, spec uintptr) *QDateTime { +func NewQDateTime6(param1 *QDate, param2 *QTime, spec TimeSpec) *QDateTime { ret := C.QDateTime_new6(param1.cPointer(), param2.cPointer(), (C.uintptr_t)(spec)) return newQDateTime(ret) } @@ -940,9 +954,9 @@ func (this *QDateTime) Time() *QTime { return ret1 } -func (this *QDateTime) TimeSpec() uintptr { +func (this *QDateTime) TimeSpec() TimeSpec { ret := C.QDateTime_TimeSpec(this.h) - return (uintptr)(ret) + return (TimeSpec)(ret) } func (this *QDateTime) OffsetFromUtc() int { @@ -993,7 +1007,7 @@ func (this *QDateTime) SetTime(time *QTime) { C.QDateTime_SetTime(this.h, time.cPointer()) } -func (this *QDateTime) SetTimeSpec(spec uintptr) { +func (this *QDateTime) SetTimeSpec(spec TimeSpec) { C.QDateTime_SetTimeSpec(this.h, (C.uintptr_t)(spec)) } @@ -1099,7 +1113,7 @@ func (this *QDateTime) AddMSecs(msecs int64) *QDateTime { return ret1 } -func (this *QDateTime) ToTimeSpec(spec uintptr) *QDateTime { +func (this *QDateTime) ToTimeSpec(spec TimeSpec) *QDateTime { ret := C.QDateTime_ToTimeSpec(this.h, (C.uintptr_t)(spec)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQDateTime(ret) @@ -1293,7 +1307,7 @@ func QDateTime_FromTimeT(secsSince1Jan1970UTC uint) *QDateTime { return ret1 } -func QDateTime_FromTimeT2(secsSince1Jan1970UTC uint, spec uintptr) *QDateTime { +func QDateTime_FromTimeT2(secsSince1Jan1970UTC uint, spec TimeSpec) *QDateTime { ret := C.QDateTime_FromTimeT2((C.uint)(secsSince1Jan1970UTC), (C.uintptr_t)(spec)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQDateTime(ret) @@ -1326,7 +1340,7 @@ func QDateTime_FromMSecsSinceEpoch(msecs int64) *QDateTime { return ret1 } -func QDateTime_FromMSecsSinceEpoch2(msecs int64, spec uintptr) *QDateTime { +func QDateTime_FromMSecsSinceEpoch2(msecs int64, spec TimeSpec) *QDateTime { ret := C.QDateTime_FromMSecsSinceEpoch2((C.longlong)(msecs), (C.uintptr_t)(spec)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQDateTime(ret) @@ -1380,7 +1394,7 @@ func QDateTime_CurrentSecsSinceEpoch() int64 { return (int64)(ret) } -func (this *QDateTime) ToString1(format uintptr) string { +func (this *QDateTime) ToString1(format DateFormat) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QDateTime_ToString1(this.h, (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -1389,7 +1403,7 @@ func (this *QDateTime) ToString1(format uintptr) string { return ret } -func QDateTime_FromString22(s string, f uintptr) *QDateTime { +func QDateTime_FromString22(s string, f DateFormat) *QDateTime { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) ret := C.QDateTime_FromString22(s_Cstring, C.size_t(len(s)), (C.uintptr_t)(f)) @@ -1402,7 +1416,7 @@ func QDateTime_FromString22(s string, f uintptr) *QDateTime { return ret1 } -func QDateTime_FromTimeT32(secsSince1Jan1970UTC uint, spec uintptr, offsetFromUtc int) *QDateTime { +func QDateTime_FromTimeT32(secsSince1Jan1970UTC uint, spec TimeSpec, offsetFromUtc int) *QDateTime { ret := C.QDateTime_FromTimeT32((C.uint)(secsSince1Jan1970UTC), (C.uintptr_t)(spec), (C.int)(offsetFromUtc)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQDateTime(ret) @@ -1413,7 +1427,7 @@ func QDateTime_FromTimeT32(secsSince1Jan1970UTC uint, spec uintptr, offsetFromUt return ret1 } -func QDateTime_FromMSecsSinceEpoch32(msecs int64, spec uintptr, offsetFromUtc int) *QDateTime { +func QDateTime_FromMSecsSinceEpoch32(msecs int64, spec TimeSpec, offsetFromUtc int) *QDateTime { ret := C.QDateTime_FromMSecsSinceEpoch32((C.longlong)(msecs), (C.uintptr_t)(spec), (C.int)(offsetFromUtc)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQDateTime(ret) @@ -1424,7 +1438,7 @@ func QDateTime_FromMSecsSinceEpoch32(msecs int64, spec uintptr, offsetFromUtc in return ret1 } -func QDateTime_FromSecsSinceEpoch22(secs int64, spe uintptr) *QDateTime { +func QDateTime_FromSecsSinceEpoch22(secs int64, spe TimeSpec) *QDateTime { ret := C.QDateTime_FromSecsSinceEpoch22((C.longlong)(secs), (C.uintptr_t)(spe)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQDateTime(ret) @@ -1435,7 +1449,7 @@ func QDateTime_FromSecsSinceEpoch22(secs int64, spe uintptr) *QDateTime { return ret1 } -func QDateTime_FromSecsSinceEpoch3(secs int64, spe uintptr, offsetFromUtc int) *QDateTime { +func QDateTime_FromSecsSinceEpoch3(secs int64, spe TimeSpec, offsetFromUtc int) *QDateTime { ret := C.QDateTime_FromSecsSinceEpoch3((C.longlong)(secs), (C.uintptr_t)(spe), (C.int)(offsetFromUtc)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQDateTime(ret) diff --git a/qt/gen_qdatetimeedit.go b/qt/gen_qdatetimeedit.go index ca5f28d9..95d5c8e9 100644 --- a/qt/gen_qdatetimeedit.go +++ b/qt/gen_qdatetimeedit.go @@ -14,6 +14,22 @@ import ( "unsafe" ) +type QDateTimeEdit__Section int + +const ( + QDateTimeEdit__Section__NoSection QDateTimeEdit__Section = 0 + QDateTimeEdit__Section__AmPmSection QDateTimeEdit__Section = 1 + QDateTimeEdit__Section__MSecSection QDateTimeEdit__Section = 2 + QDateTimeEdit__Section__SecondSection QDateTimeEdit__Section = 4 + QDateTimeEdit__Section__MinuteSection QDateTimeEdit__Section = 8 + QDateTimeEdit__Section__HourSection QDateTimeEdit__Section = 16 + QDateTimeEdit__Section__DaySection QDateTimeEdit__Section = 256 + QDateTimeEdit__Section__MonthSection QDateTimeEdit__Section = 512 + QDateTimeEdit__Section__YearSection QDateTimeEdit__Section = 1024 + QDateTimeEdit__Section__TimeSections_Mask QDateTimeEdit__Section = 31 + QDateTimeEdit__Section__DateSections_Mask QDateTimeEdit__Section = 1792 +) + type QDateTimeEdit struct { h *C.QDateTimeEdit *QAbstractSpinBox @@ -291,17 +307,17 @@ func (this *QDateTimeEdit) DisplayedSections() int { return (int)(ret) } -func (this *QDateTimeEdit) CurrentSection() uintptr { +func (this *QDateTimeEdit) CurrentSection() QDateTimeEdit__Section { ret := C.QDateTimeEdit_CurrentSection(this.h) - return (uintptr)(ret) + return (QDateTimeEdit__Section)(ret) } -func (this *QDateTimeEdit) SectionAt(index int) uintptr { +func (this *QDateTimeEdit) SectionAt(index int) QDateTimeEdit__Section { ret := C.QDateTimeEdit_SectionAt(this.h, (C.int)(index)) - return (uintptr)(ret) + return (QDateTimeEdit__Section)(ret) } -func (this *QDateTimeEdit) SetCurrentSection(section uintptr) { +func (this *QDateTimeEdit) SetCurrentSection(section QDateTimeEdit__Section) { C.QDateTimeEdit_SetCurrentSection(this.h, (C.uintptr_t)(section)) } @@ -328,11 +344,11 @@ func (this *QDateTimeEdit) SectionCount() int { return (int)(ret) } -func (this *QDateTimeEdit) SetSelectedSection(section uintptr) { +func (this *QDateTimeEdit) SetSelectedSection(section QDateTimeEdit__Section) { C.QDateTimeEdit_SetSelectedSection(this.h, (C.uintptr_t)(section)) } -func (this *QDateTimeEdit) SectionText(section uintptr) string { +func (this *QDateTimeEdit) SectionText(section QDateTimeEdit__Section) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QDateTimeEdit_SectionText(this.h, (C.uintptr_t)(section), &_out, &_out_Strlen) @@ -365,12 +381,12 @@ func (this *QDateTimeEdit) SetCalendarPopup(enable bool) { C.QDateTimeEdit_SetCalendarPopup(this.h, (C.bool)(enable)) } -func (this *QDateTimeEdit) TimeSpec() uintptr { +func (this *QDateTimeEdit) TimeSpec() TimeSpec { ret := C.QDateTimeEdit_TimeSpec(this.h) - return (uintptr)(ret) + return (TimeSpec)(ret) } -func (this *QDateTimeEdit) SetTimeSpec(spec uintptr) { +func (this *QDateTimeEdit) SetTimeSpec(spec TimeSpec) { C.QDateTimeEdit_SetTimeSpec(this.h, (C.uintptr_t)(spec)) } diff --git a/qt/gen_qdeadlinetimer.go b/qt/gen_qdeadlinetimer.go index e4cb14f0..cb7764ed 100644 --- a/qt/gen_qdeadlinetimer.go +++ b/qt/gen_qdeadlinetimer.go @@ -13,6 +13,12 @@ import ( "unsafe" ) +type QDeadlineTimer__ForeverConstant int + +const ( + QDeadlineTimer__ForeverConstant__Forever QDeadlineTimer__ForeverConstant = 0 +) + type QDeadlineTimer struct { h *C.QDeadlineTimer } @@ -42,7 +48,7 @@ func NewQDeadlineTimer() *QDeadlineTimer { } // NewQDeadlineTimer2 constructs a new QDeadlineTimer object. -func NewQDeadlineTimer2(param1 uintptr) *QDeadlineTimer { +func NewQDeadlineTimer2(param1 QDeadlineTimer__ForeverConstant) *QDeadlineTimer { ret := C.QDeadlineTimer_new2((C.uintptr_t)(param1)) return newQDeadlineTimer(ret) } @@ -60,19 +66,19 @@ func NewQDeadlineTimer4(param1 *QDeadlineTimer) *QDeadlineTimer { } // NewQDeadlineTimer5 constructs a new QDeadlineTimer object. -func NewQDeadlineTimer5(type_ uintptr) *QDeadlineTimer { +func NewQDeadlineTimer5(type_ TimerType) *QDeadlineTimer { ret := C.QDeadlineTimer_new5((C.uintptr_t)(type_)) return newQDeadlineTimer(ret) } // NewQDeadlineTimer6 constructs a new QDeadlineTimer object. -func NewQDeadlineTimer6(param1 uintptr, type_ uintptr) *QDeadlineTimer { +func NewQDeadlineTimer6(param1 QDeadlineTimer__ForeverConstant, type_ TimerType) *QDeadlineTimer { ret := C.QDeadlineTimer_new6((C.uintptr_t)(param1), (C.uintptr_t)(type_)) return newQDeadlineTimer(ret) } // NewQDeadlineTimer7 constructs a new QDeadlineTimer object. -func NewQDeadlineTimer7(msecs int64, typeVal uintptr) *QDeadlineTimer { +func NewQDeadlineTimer7(msecs int64, typeVal TimerType) *QDeadlineTimer { ret := C.QDeadlineTimer_new7((C.longlong)(msecs), (C.uintptr_t)(typeVal)) return newQDeadlineTimer(ret) } @@ -91,12 +97,12 @@ func (this *QDeadlineTimer) HasExpired() bool { return (bool)(ret) } -func (this *QDeadlineTimer) TimerType() uintptr { +func (this *QDeadlineTimer) TimerType() TimerType { ret := C.QDeadlineTimer_TimerType(this.h) - return (uintptr)(ret) + return (TimerType)(ret) } -func (this *QDeadlineTimer) SetTimerType(typeVal uintptr) { +func (this *QDeadlineTimer) SetTimerType(typeVal TimerType) { C.QDeadlineTimer_SetTimerType(this.h, (C.uintptr_t)(typeVal)) } @@ -172,7 +178,7 @@ func (this *QDeadlineTimer) OperatorAssign(param1 *QDeadlineTimer) { C.QDeadlineTimer_OperatorAssign(this.h, param1.cPointer()) } -func (this *QDeadlineTimer) SetRemainingTime2(msecs int64, typeVal uintptr) { +func (this *QDeadlineTimer) SetRemainingTime2(msecs int64, typeVal TimerType) { C.QDeadlineTimer_SetRemainingTime2(this.h, (C.longlong)(msecs), (C.uintptr_t)(typeVal)) } @@ -180,11 +186,11 @@ func (this *QDeadlineTimer) SetPreciseRemainingTime2(secs int64, nsecs int64) { C.QDeadlineTimer_SetPreciseRemainingTime2(this.h, (C.longlong)(secs), (C.longlong)(nsecs)) } -func (this *QDeadlineTimer) SetPreciseRemainingTime3(secs int64, nsecs int64, typeVal uintptr) { +func (this *QDeadlineTimer) SetPreciseRemainingTime3(secs int64, nsecs int64, typeVal TimerType) { C.QDeadlineTimer_SetPreciseRemainingTime3(this.h, (C.longlong)(secs), (C.longlong)(nsecs), (C.uintptr_t)(typeVal)) } -func (this *QDeadlineTimer) SetDeadline2(msecs int64, timerType uintptr) { +func (this *QDeadlineTimer) SetDeadline2(msecs int64, timerType TimerType) { C.QDeadlineTimer_SetDeadline2(this.h, (C.longlong)(msecs), (C.uintptr_t)(timerType)) } @@ -192,11 +198,11 @@ func (this *QDeadlineTimer) SetPreciseDeadline2(secs int64, nsecs int64) { C.QDeadlineTimer_SetPreciseDeadline2(this.h, (C.longlong)(secs), (C.longlong)(nsecs)) } -func (this *QDeadlineTimer) SetPreciseDeadline3(secs int64, nsecs int64, typeVal uintptr) { +func (this *QDeadlineTimer) SetPreciseDeadline3(secs int64, nsecs int64, typeVal TimerType) { C.QDeadlineTimer_SetPreciseDeadline3(this.h, (C.longlong)(secs), (C.longlong)(nsecs), (C.uintptr_t)(typeVal)) } -func QDeadlineTimer_Current1(timerType uintptr) *QDeadlineTimer { +func QDeadlineTimer_Current1(timerType TimerType) *QDeadlineTimer { ret := C.QDeadlineTimer_Current1((C.uintptr_t)(timerType)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQDeadlineTimer(ret) diff --git a/qt/gen_qdebug.go b/qt/gen_qdebug.go index 4c95edf6..d424159a 100644 --- a/qt/gen_qdebug.go +++ b/qt/gen_qdebug.go @@ -12,6 +12,14 @@ import ( "unsafe" ) +type QDebug__VerbosityLevel int + +const ( + QDebug__VerbosityLevel__MinimumVerbosity QDebug__VerbosityLevel = 0 + QDebug__VerbosityLevel__DefaultVerbosity QDebug__VerbosityLevel = 2 + QDebug__VerbosityLevel__MaximumVerbosity QDebug__VerbosityLevel = 7 +) + type QDebug struct { h *C.QDebug } diff --git a/qt/gen_qdialog.go b/qt/gen_qdialog.go index 5d6ed60d..d5aa94cd 100644 --- a/qt/gen_qdialog.go +++ b/qt/gen_qdialog.go @@ -14,6 +14,13 @@ import ( "unsafe" ) +type QDialog__DialogCode int + +const ( + QDialog__DialogCode__Rejected QDialog__DialogCode = 0 + QDialog__DialogCode__Accepted QDialog__DialogCode = 1 +) + type QDialog struct { h *C.QDialog *QWidget @@ -91,13 +98,13 @@ func (this *QDialog) SetVisible(visible bool) { C.QDialog_SetVisible(this.h, (C.bool)(visible)) } -func (this *QDialog) SetOrientation(orientation uintptr) { +func (this *QDialog) SetOrientation(orientation Orientation) { C.QDialog_SetOrientation(this.h, (C.uintptr_t)(orientation)) } -func (this *QDialog) Orientation() uintptr { +func (this *QDialog) Orientation() Orientation { ret := C.QDialog_Orientation(this.h) - return (uintptr)(ret) + return (Orientation)(ret) } func (this *QDialog) SetExtension(extension *QWidget) { diff --git a/qt/gen_qdialogbuttonbox.go b/qt/gen_qdialogbuttonbox.go index 413fcecd..8b9f4513 100644 --- a/qt/gen_qdialogbuttonbox.go +++ b/qt/gen_qdialogbuttonbox.go @@ -13,6 +13,58 @@ import ( "unsafe" ) +type QDialogButtonBox__ButtonRole int + +const ( + QDialogButtonBox__ButtonRole__InvalidRole QDialogButtonBox__ButtonRole = -1 + QDialogButtonBox__ButtonRole__AcceptRole QDialogButtonBox__ButtonRole = 0 + QDialogButtonBox__ButtonRole__RejectRole QDialogButtonBox__ButtonRole = 1 + QDialogButtonBox__ButtonRole__DestructiveRole QDialogButtonBox__ButtonRole = 2 + QDialogButtonBox__ButtonRole__ActionRole QDialogButtonBox__ButtonRole = 3 + QDialogButtonBox__ButtonRole__HelpRole QDialogButtonBox__ButtonRole = 4 + QDialogButtonBox__ButtonRole__YesRole QDialogButtonBox__ButtonRole = 5 + QDialogButtonBox__ButtonRole__NoRole QDialogButtonBox__ButtonRole = 6 + QDialogButtonBox__ButtonRole__ResetRole QDialogButtonBox__ButtonRole = 7 + QDialogButtonBox__ButtonRole__ApplyRole QDialogButtonBox__ButtonRole = 8 + QDialogButtonBox__ButtonRole__NRoles QDialogButtonBox__ButtonRole = 9 +) + +type QDialogButtonBox__StandardButton int + +const ( + QDialogButtonBox__StandardButton__NoButton QDialogButtonBox__StandardButton = 0 + QDialogButtonBox__StandardButton__Ok QDialogButtonBox__StandardButton = 1024 + QDialogButtonBox__StandardButton__Save QDialogButtonBox__StandardButton = 2048 + QDialogButtonBox__StandardButton__SaveAll QDialogButtonBox__StandardButton = 4096 + QDialogButtonBox__StandardButton__Open QDialogButtonBox__StandardButton = 8192 + QDialogButtonBox__StandardButton__Yes QDialogButtonBox__StandardButton = 16384 + QDialogButtonBox__StandardButton__YesToAll QDialogButtonBox__StandardButton = 32768 + QDialogButtonBox__StandardButton__No QDialogButtonBox__StandardButton = 65536 + QDialogButtonBox__StandardButton__NoToAll QDialogButtonBox__StandardButton = 131072 + QDialogButtonBox__StandardButton__Abort QDialogButtonBox__StandardButton = 262144 + QDialogButtonBox__StandardButton__Retry QDialogButtonBox__StandardButton = 524288 + QDialogButtonBox__StandardButton__Ignore QDialogButtonBox__StandardButton = 1048576 + QDialogButtonBox__StandardButton__Close QDialogButtonBox__StandardButton = 2097152 + QDialogButtonBox__StandardButton__Cancel QDialogButtonBox__StandardButton = 4194304 + QDialogButtonBox__StandardButton__Discard QDialogButtonBox__StandardButton = 8388608 + QDialogButtonBox__StandardButton__Help QDialogButtonBox__StandardButton = 16777216 + QDialogButtonBox__StandardButton__Apply QDialogButtonBox__StandardButton = 33554432 + QDialogButtonBox__StandardButton__Reset QDialogButtonBox__StandardButton = 67108864 + QDialogButtonBox__StandardButton__RestoreDefaults QDialogButtonBox__StandardButton = 134217728 + QDialogButtonBox__StandardButton__FirstButton QDialogButtonBox__StandardButton = 1024 + QDialogButtonBox__StandardButton__LastButton QDialogButtonBox__StandardButton = 134217728 +) + +type QDialogButtonBox__ButtonLayout int + +const ( + QDialogButtonBox__ButtonLayout__WinLayout QDialogButtonBox__ButtonLayout = 0 + QDialogButtonBox__ButtonLayout__MacLayout QDialogButtonBox__ButtonLayout = 1 + QDialogButtonBox__ButtonLayout__KdeLayout QDialogButtonBox__ButtonLayout = 2 + QDialogButtonBox__ButtonLayout__GnomeLayout QDialogButtonBox__ButtonLayout = 3 + QDialogButtonBox__ButtonLayout__AndroidLayout QDialogButtonBox__ButtonLayout = 5 +) + type QDialogButtonBox struct { h *C.QDialogButtonBox *QWidget @@ -43,7 +95,7 @@ func NewQDialogButtonBox() *QDialogButtonBox { } // NewQDialogButtonBox2 constructs a new QDialogButtonBox object. -func NewQDialogButtonBox2(orientation uintptr) *QDialogButtonBox { +func NewQDialogButtonBox2(orientation Orientation) *QDialogButtonBox { ret := C.QDialogButtonBox_new2((C.uintptr_t)(orientation)) return newQDialogButtonBox(ret) } @@ -55,7 +107,7 @@ func NewQDialogButtonBox3(buttons int) *QDialogButtonBox { } // NewQDialogButtonBox4 constructs a new QDialogButtonBox object. -func NewQDialogButtonBox4(buttons int, orientation uintptr) *QDialogButtonBox { +func NewQDialogButtonBox4(buttons int, orientation Orientation) *QDialogButtonBox { ret := C.QDialogButtonBox_new4((C.int)(buttons), (C.uintptr_t)(orientation)) return newQDialogButtonBox(ret) } @@ -67,7 +119,7 @@ func NewQDialogButtonBox5(parent *QWidget) *QDialogButtonBox { } // NewQDialogButtonBox6 constructs a new QDialogButtonBox object. -func NewQDialogButtonBox6(orientation uintptr, parent *QWidget) *QDialogButtonBox { +func NewQDialogButtonBox6(orientation Orientation, parent *QWidget) *QDialogButtonBox { ret := C.QDialogButtonBox_new6((C.uintptr_t)(orientation), parent.cPointer()) return newQDialogButtonBox(ret) } @@ -79,7 +131,7 @@ func NewQDialogButtonBox7(buttons int, parent *QWidget) *QDialogButtonBox { } // NewQDialogButtonBox8 constructs a new QDialogButtonBox object. -func NewQDialogButtonBox8(buttons int, orientation uintptr, parent *QWidget) *QDialogButtonBox { +func NewQDialogButtonBox8(buttons int, orientation Orientation, parent *QWidget) *QDialogButtonBox { ret := C.QDialogButtonBox_new8((C.int)(buttons), (C.uintptr_t)(orientation), parent.cPointer()) return newQDialogButtonBox(ret) } @@ -111,27 +163,27 @@ func QDialogButtonBox_TrUtf8(s string) string { return ret } -func (this *QDialogButtonBox) SetOrientation(orientation uintptr) { +func (this *QDialogButtonBox) SetOrientation(orientation Orientation) { C.QDialogButtonBox_SetOrientation(this.h, (C.uintptr_t)(orientation)) } -func (this *QDialogButtonBox) Orientation() uintptr { +func (this *QDialogButtonBox) Orientation() Orientation { ret := C.QDialogButtonBox_Orientation(this.h) - return (uintptr)(ret) + return (Orientation)(ret) } -func (this *QDialogButtonBox) AddButton(button *QAbstractButton, role uintptr) { +func (this *QDialogButtonBox) AddButton(button *QAbstractButton, role QDialogButtonBox__ButtonRole) { C.QDialogButtonBox_AddButton(this.h, button.cPointer(), (C.uintptr_t)(role)) } -func (this *QDialogButtonBox) AddButton2(text string, role uintptr) *QPushButton { +func (this *QDialogButtonBox) AddButton2(text string, role QDialogButtonBox__ButtonRole) *QPushButton { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QDialogButtonBox_AddButton2(this.h, text_Cstring, C.size_t(len(text)), (C.uintptr_t)(role)) return newQPushButton_U(unsafe.Pointer(ret)) } -func (this *QDialogButtonBox) AddButtonWithButton(button uintptr) *QPushButton { +func (this *QDialogButtonBox) AddButtonWithButton(button QDialogButtonBox__StandardButton) *QPushButton { ret := C.QDialogButtonBox_AddButtonWithButton(this.h, (C.uintptr_t)(button)) return newQPushButton_U(unsafe.Pointer(ret)) } @@ -157,9 +209,9 @@ func (this *QDialogButtonBox) Buttons() []*QAbstractButton { return ret } -func (this *QDialogButtonBox) ButtonRole(button *QAbstractButton) uintptr { +func (this *QDialogButtonBox) ButtonRole(button *QAbstractButton) QDialogButtonBox__ButtonRole { ret := C.QDialogButtonBox_ButtonRole(this.h, button.cPointer()) - return (uintptr)(ret) + return (QDialogButtonBox__ButtonRole)(ret) } func (this *QDialogButtonBox) SetStandardButtons(buttons int) { @@ -171,12 +223,12 @@ func (this *QDialogButtonBox) StandardButtons() int { return (int)(ret) } -func (this *QDialogButtonBox) StandardButton(button *QAbstractButton) uintptr { +func (this *QDialogButtonBox) StandardButton(button *QAbstractButton) QDialogButtonBox__StandardButton { ret := C.QDialogButtonBox_StandardButton(this.h, button.cPointer()) - return (uintptr)(ret) + return (QDialogButtonBox__StandardButton)(ret) } -func (this *QDialogButtonBox) Button(which uintptr) *QPushButton { +func (this *QDialogButtonBox) Button(which QDialogButtonBox__StandardButton) *QPushButton { ret := C.QDialogButtonBox_Button(this.h, (C.uintptr_t)(which)) return newQPushButton_U(unsafe.Pointer(ret)) } diff --git a/qt/gen_qdir.go b/qt/gen_qdir.go index 1d9a3e94..95420015 100644 --- a/qt/gen_qdir.go +++ b/qt/gen_qdir.go @@ -13,6 +13,48 @@ import ( "unsafe" ) +type QDir__Filter int + +const ( + QDir__Filter__Dirs QDir__Filter = 1 + QDir__Filter__Files QDir__Filter = 2 + QDir__Filter__Drives QDir__Filter = 4 + QDir__Filter__NoSymLinks QDir__Filter = 8 + QDir__Filter__AllEntries QDir__Filter = 7 + QDir__Filter__TypeMask QDir__Filter = 15 + QDir__Filter__Readable QDir__Filter = 16 + QDir__Filter__Writable QDir__Filter = 32 + QDir__Filter__Executable QDir__Filter = 64 + QDir__Filter__PermissionMask QDir__Filter = 112 + QDir__Filter__Modified QDir__Filter = 128 + QDir__Filter__Hidden QDir__Filter = 256 + QDir__Filter__System QDir__Filter = 512 + QDir__Filter__AccessMask QDir__Filter = 1008 + QDir__Filter__AllDirs QDir__Filter = 1024 + QDir__Filter__CaseSensitive QDir__Filter = 2048 + QDir__Filter__NoDot QDir__Filter = 8192 + QDir__Filter__NoDotDot QDir__Filter = 16384 + QDir__Filter__NoDotAndDotDot QDir__Filter = 24576 + QDir__Filter__NoFilter QDir__Filter = -1 +) + +type QDir__SortFlag int + +const ( + QDir__SortFlag__Name QDir__SortFlag = 0 + QDir__SortFlag__Time QDir__SortFlag = 1 + QDir__SortFlag__Size QDir__SortFlag = 2 + QDir__SortFlag__Unsorted QDir__SortFlag = 3 + QDir__SortFlag__SortByMask QDir__SortFlag = 3 + QDir__SortFlag__DirsFirst QDir__SortFlag = 4 + QDir__SortFlag__Reversed QDir__SortFlag = 8 + QDir__SortFlag__IgnoreCase QDir__SortFlag = 16 + QDir__SortFlag__DirsLast QDir__SortFlag = 32 + QDir__SortFlag__LocaleAware QDir__SortFlag = 64 + QDir__SortFlag__Type QDir__SortFlag = 128 + QDir__SortFlag__NoSort QDir__SortFlag = -1 +) + type QDir struct { h *C.QDir } diff --git a/qt/gen_qdiriterator.go b/qt/gen_qdiriterator.go index c8cc2078..b93e57c6 100644 --- a/qt/gen_qdiriterator.go +++ b/qt/gen_qdiriterator.go @@ -13,6 +13,14 @@ import ( "unsafe" ) +type QDirIterator__IteratorFlag int + +const ( + QDirIterator__IteratorFlag__NoIteratorFlags QDirIterator__IteratorFlag = 0 + QDirIterator__IteratorFlag__FollowSymlinks QDirIterator__IteratorFlag = 1 + QDirIterator__IteratorFlag__Subdirectories QDirIterator__IteratorFlag = 2 +) + type QDirIterator struct { h *C.QDirIterator } diff --git a/qt/gen_qdirmodel.go b/qt/gen_qdirmodel.go index 4f614405..1e5f9178 100644 --- a/qt/gen_qdirmodel.go +++ b/qt/gen_qdirmodel.go @@ -13,6 +13,14 @@ import ( "unsafe" ) +type QDirModel__Roles int + +const ( + QDirModel__Roles__FileIconRole QDirModel__Roles = 1 + QDirModel__Roles__FilePathRole QDirModel__Roles = 257 + QDirModel__Roles__FileNameRole QDirModel__Roles = 258 +) + type QDirModel struct { h *C.QDirModel *QAbstractItemModel @@ -157,7 +165,7 @@ func (this *QDirModel) SetData(index *QModelIndex, value *QVariant) bool { return (bool)(ret) } -func (this *QDirModel) HeaderData(section int, orientation uintptr) *QVariant { +func (this *QDirModel) HeaderData(section int, orientation Orientation) *QVariant { ret := C.QDirModel_HeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -208,7 +216,7 @@ func (this *QDirModel) MimeData(indexes []QModelIndex) *QMimeData { return newQMimeData_U(unsafe.Pointer(ret)) } -func (this *QDirModel) DropMimeData(data *QMimeData, action uintptr, row int, column int, parent *QModelIndex) bool { +func (this *QDirModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool { ret := C.QDirModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()) return (bool)(ret) } @@ -476,7 +484,7 @@ func (this *QDirModel) SetData3(index *QModelIndex, value *QVariant, role int) b return (bool)(ret) } -func (this *QDirModel) HeaderData3(section int, orientation uintptr, role int) *QVariant { +func (this *QDirModel) HeaderData3(section int, orientation Orientation, role int) *QVariant { ret := C.QDirModel_HeaderData3(this.h, (C.int)(section), (C.uintptr_t)(orientation), (C.int)(role)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -492,7 +500,7 @@ func (this *QDirModel) HasChildren1(index *QModelIndex) bool { return (bool)(ret) } -func (this *QDirModel) Sort2(column int, order uintptr) { +func (this *QDirModel) Sort2(column int, order SortOrder) { C.QDirModel_Sort2(this.h, (C.int)(column), (C.uintptr_t)(order)) } diff --git a/qt/gen_qdockwidget.go b/qt/gen_qdockwidget.go index ff8ec848..6fb18685 100644 --- a/qt/gen_qdockwidget.go +++ b/qt/gen_qdockwidget.go @@ -13,6 +13,19 @@ import ( "unsafe" ) +type QDockWidget__DockWidgetFeature int + +const ( + QDockWidget__DockWidgetFeature__DockWidgetClosable QDockWidget__DockWidgetFeature = 1 + QDockWidget__DockWidgetFeature__DockWidgetMovable QDockWidget__DockWidgetFeature = 2 + QDockWidget__DockWidgetFeature__DockWidgetFloatable QDockWidget__DockWidgetFeature = 4 + QDockWidget__DockWidgetFeature__DockWidgetVerticalTitleBar QDockWidget__DockWidgetFeature = 8 + QDockWidget__DockWidgetFeature__DockWidgetFeatureMask QDockWidget__DockWidgetFeature = 15 + QDockWidget__DockWidgetFeature__AllDockWidgetFeatures QDockWidget__DockWidgetFeature = 7 + QDockWidget__DockWidgetFeature__NoDockWidgetFeatures QDockWidget__DockWidgetFeature = 0 + QDockWidget__DockWidgetFeature__Reserved QDockWidget__DockWidgetFeature = 255 +) + type QDockWidget struct { h *C.QDockWidget *QWidget @@ -150,7 +163,7 @@ func (this *QDockWidget) TitleBarWidget() *QWidget { return newQWidget_U(unsafe.Pointer(ret)) } -func (this *QDockWidget) IsAreaAllowed(area uintptr) bool { +func (this *QDockWidget) IsAreaAllowed(area DockWidgetArea) bool { ret := C.QDockWidget_IsAreaAllowed(this.h, (C.uintptr_t)(area)) return (bool)(ret) } @@ -208,7 +221,7 @@ func (this *QDockWidget) OnVisibilityChanged(slot func()) { C.QDockWidget_connect_VisibilityChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QDockWidget) DockLocationChanged(area uintptr) { +func (this *QDockWidget) DockLocationChanged(area DockWidgetArea) { C.QDockWidget_DockLocationChanged(this.h, (C.uintptr_t)(area)) } diff --git a/qt/gen_qdrag.go b/qt/gen_qdrag.go index b25a5399..2e6e57c4 100644 --- a/qt/gen_qdrag.go +++ b/qt/gen_qdrag.go @@ -119,26 +119,26 @@ func (this *QDrag) Target() *QObject { return newQObject_U(unsafe.Pointer(ret)) } -func (this *QDrag) Start() uintptr { +func (this *QDrag) Start() DropAction { ret := C.QDrag_Start(this.h) - return (uintptr)(ret) + return (DropAction)(ret) } -func (this *QDrag) Exec() uintptr { +func (this *QDrag) Exec() DropAction { ret := C.QDrag_Exec(this.h) - return (uintptr)(ret) + return (DropAction)(ret) } -func (this *QDrag) Exec2(supportedActions int, defaultAction uintptr) uintptr { +func (this *QDrag) Exec2(supportedActions int, defaultAction DropAction) DropAction { ret := C.QDrag_Exec2(this.h, (C.int)(supportedActions), (C.uintptr_t)(defaultAction)) - return (uintptr)(ret) + return (DropAction)(ret) } -func (this *QDrag) SetDragCursor(cursor *QPixmap, action uintptr) { +func (this *QDrag) SetDragCursor(cursor *QPixmap, action DropAction) { C.QDrag_SetDragCursor(this.h, cursor.cPointer(), (C.uintptr_t)(action)) } -func (this *QDrag) DragCursor(action uintptr) *QPixmap { +func (this *QDrag) DragCursor(action DropAction) *QPixmap { ret := C.QDrag_DragCursor(this.h, (C.uintptr_t)(action)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -154,16 +154,16 @@ func (this *QDrag) SupportedActions() int { return (int)(ret) } -func (this *QDrag) DefaultAction() uintptr { +func (this *QDrag) DefaultAction() DropAction { ret := C.QDrag_DefaultAction(this.h) - return (uintptr)(ret) + return (DropAction)(ret) } func QDrag_Cancel() { C.QDrag_Cancel() } -func (this *QDrag) ActionChanged(action uintptr) { +func (this *QDrag) ActionChanged(action DropAction) { C.QDrag_ActionChanged(this.h, (C.uintptr_t)(action)) } @@ -239,14 +239,14 @@ func QDrag_TrUtf83(s string, c string, n int) string { return ret } -func (this *QDrag) Start1(supportedActions int) uintptr { +func (this *QDrag) Start1(supportedActions int) DropAction { ret := C.QDrag_Start1(this.h, (C.int)(supportedActions)) - return (uintptr)(ret) + return (DropAction)(ret) } -func (this *QDrag) Exec1(supportedActions int) uintptr { +func (this *QDrag) Exec1(supportedActions int) DropAction { ret := C.QDrag_Exec1(this.h, (C.int)(supportedActions)) - return (uintptr)(ret) + return (DropAction)(ret) } func (this *QDrag) Delete() { diff --git a/qt/gen_qdrawutil.go b/qt/gen_qdrawutil.go index 0b3787b9..72e97de7 100644 --- a/qt/gen_qdrawutil.go +++ b/qt/gen_qdrawutil.go @@ -12,6 +12,24 @@ import ( "unsafe" ) +type QDrawBorderPixmap__DrawingHint int + +const ( + QDrawBorderPixmap__DrawingHint__OpaqueTopLeft QDrawBorderPixmap__DrawingHint = 1 + QDrawBorderPixmap__DrawingHint__OpaqueTop QDrawBorderPixmap__DrawingHint = 2 + QDrawBorderPixmap__DrawingHint__OpaqueTopRight QDrawBorderPixmap__DrawingHint = 4 + QDrawBorderPixmap__DrawingHint__OpaqueLeft QDrawBorderPixmap__DrawingHint = 8 + QDrawBorderPixmap__DrawingHint__OpaqueCenter QDrawBorderPixmap__DrawingHint = 16 + QDrawBorderPixmap__DrawingHint__OpaqueRight QDrawBorderPixmap__DrawingHint = 32 + QDrawBorderPixmap__DrawingHint__OpaqueBottomLeft QDrawBorderPixmap__DrawingHint = 64 + QDrawBorderPixmap__DrawingHint__OpaqueBottom QDrawBorderPixmap__DrawingHint = 128 + QDrawBorderPixmap__DrawingHint__OpaqueBottomRight QDrawBorderPixmap__DrawingHint = 256 + QDrawBorderPixmap__DrawingHint__OpaqueCorners QDrawBorderPixmap__DrawingHint = 325 + QDrawBorderPixmap__DrawingHint__OpaqueEdges QDrawBorderPixmap__DrawingHint = 170 + QDrawBorderPixmap__DrawingHint__OpaqueFrame QDrawBorderPixmap__DrawingHint = 495 + QDrawBorderPixmap__DrawingHint__OpaqueAll QDrawBorderPixmap__DrawingHint = 511 +) + type QTileRules struct { h *C.QTileRules } @@ -35,7 +53,7 @@ func newQTileRules_U(h unsafe.Pointer) *QTileRules { } // NewQTileRules constructs a new QTileRules object. -func NewQTileRules(horizontalRule uintptr, verticalRule uintptr) *QTileRules { +func NewQTileRules(horizontalRule TileRule, verticalRule TileRule) *QTileRules { ret := C.QTileRules_new((C.uintptr_t)(horizontalRule), (C.uintptr_t)(verticalRule)) return newQTileRules(ret) } @@ -53,7 +71,7 @@ func NewQTileRules3(param1 *QTileRules) *QTileRules { } // NewQTileRules4 constructs a new QTileRules object. -func NewQTileRules4(rule uintptr) *QTileRules { +func NewQTileRules4(rule TileRule) *QTileRules { ret := C.QTileRules_new4((C.uintptr_t)(rule)) return newQTileRules(ret) } diff --git a/qt/gen_qeasingcurve.go b/qt/gen_qeasingcurve.go index 9abd016d..e51e306f 100644 --- a/qt/gen_qeasingcurve.go +++ b/qt/gen_qeasingcurve.go @@ -12,6 +12,60 @@ import ( "unsafe" ) +type QEasingCurve__Type int + +const ( + QEasingCurve__Type__Linear QEasingCurve__Type = 0 + QEasingCurve__Type__InQuad QEasingCurve__Type = 1 + QEasingCurve__Type__OutQuad QEasingCurve__Type = 2 + QEasingCurve__Type__InOutQuad QEasingCurve__Type = 3 + QEasingCurve__Type__OutInQuad QEasingCurve__Type = 4 + QEasingCurve__Type__InCubic QEasingCurve__Type = 5 + QEasingCurve__Type__OutCubic QEasingCurve__Type = 6 + QEasingCurve__Type__InOutCubic QEasingCurve__Type = 7 + QEasingCurve__Type__OutInCubic QEasingCurve__Type = 8 + QEasingCurve__Type__InQuart QEasingCurve__Type = 9 + QEasingCurve__Type__OutQuart QEasingCurve__Type = 10 + QEasingCurve__Type__InOutQuart QEasingCurve__Type = 11 + QEasingCurve__Type__OutInQuart QEasingCurve__Type = 12 + QEasingCurve__Type__InQuint QEasingCurve__Type = 13 + QEasingCurve__Type__OutQuint QEasingCurve__Type = 14 + QEasingCurve__Type__InOutQuint QEasingCurve__Type = 15 + QEasingCurve__Type__OutInQuint QEasingCurve__Type = 16 + QEasingCurve__Type__InSine QEasingCurve__Type = 17 + QEasingCurve__Type__OutSine QEasingCurve__Type = 18 + QEasingCurve__Type__InOutSine QEasingCurve__Type = 19 + QEasingCurve__Type__OutInSine QEasingCurve__Type = 20 + QEasingCurve__Type__InExpo QEasingCurve__Type = 21 + QEasingCurve__Type__OutExpo QEasingCurve__Type = 22 + QEasingCurve__Type__InOutExpo QEasingCurve__Type = 23 + QEasingCurve__Type__OutInExpo QEasingCurve__Type = 24 + QEasingCurve__Type__InCirc QEasingCurve__Type = 25 + QEasingCurve__Type__OutCirc QEasingCurve__Type = 26 + QEasingCurve__Type__InOutCirc QEasingCurve__Type = 27 + QEasingCurve__Type__OutInCirc QEasingCurve__Type = 28 + QEasingCurve__Type__InElastic QEasingCurve__Type = 29 + QEasingCurve__Type__OutElastic QEasingCurve__Type = 30 + QEasingCurve__Type__InOutElastic QEasingCurve__Type = 31 + QEasingCurve__Type__OutInElastic QEasingCurve__Type = 32 + QEasingCurve__Type__InBack QEasingCurve__Type = 33 + QEasingCurve__Type__OutBack QEasingCurve__Type = 34 + QEasingCurve__Type__InOutBack QEasingCurve__Type = 35 + QEasingCurve__Type__OutInBack QEasingCurve__Type = 36 + QEasingCurve__Type__InBounce QEasingCurve__Type = 37 + QEasingCurve__Type__OutBounce QEasingCurve__Type = 38 + QEasingCurve__Type__InOutBounce QEasingCurve__Type = 39 + QEasingCurve__Type__OutInBounce QEasingCurve__Type = 40 + QEasingCurve__Type__InCurve QEasingCurve__Type = 41 + QEasingCurve__Type__OutCurve QEasingCurve__Type = 42 + QEasingCurve__Type__SineCurve QEasingCurve__Type = 43 + QEasingCurve__Type__CosineCurve QEasingCurve__Type = 44 + QEasingCurve__Type__BezierSpline QEasingCurve__Type = 45 + QEasingCurve__Type__TCBSpline QEasingCurve__Type = 46 + QEasingCurve__Type__Custom QEasingCurve__Type = 47 + QEasingCurve__Type__NCurveTypes QEasingCurve__Type = 48 +) + type QEasingCurve struct { h *C.QEasingCurve } @@ -47,7 +101,7 @@ func NewQEasingCurve2(other *QEasingCurve) *QEasingCurve { } // NewQEasingCurve3 constructs a new QEasingCurve object. -func NewQEasingCurve3(typeVal uintptr) *QEasingCurve { +func NewQEasingCurve3(typeVal QEasingCurve__Type) *QEasingCurve { ret := C.QEasingCurve_new3((C.uintptr_t)(typeVal)) return newQEasingCurve(ret) } @@ -118,12 +172,12 @@ func (this *QEasingCurve) ToCubicSpline() []QPointF { return ret } -func (this *QEasingCurve) Type() uintptr { +func (this *QEasingCurve) Type() QEasingCurve__Type { ret := C.QEasingCurve_Type(this.h) - return (uintptr)(ret) + return (QEasingCurve__Type)(ret) } -func (this *QEasingCurve) SetType(typeVal uintptr) { +func (this *QEasingCurve) SetType(typeVal QEasingCurve__Type) { C.QEasingCurve_SetType(this.h, (C.uintptr_t)(typeVal)) } diff --git a/qt/gen_qelapsedtimer.go b/qt/gen_qelapsedtimer.go index 928c5dbf..9efb7884 100644 --- a/qt/gen_qelapsedtimer.go +++ b/qt/gen_qelapsedtimer.go @@ -12,6 +12,16 @@ import ( "unsafe" ) +type QElapsedTimer__ClockType int + +const ( + QElapsedTimer__ClockType__SystemTime QElapsedTimer__ClockType = 0 + QElapsedTimer__ClockType__MonotonicClock QElapsedTimer__ClockType = 1 + QElapsedTimer__ClockType__TickCounter QElapsedTimer__ClockType = 2 + QElapsedTimer__ClockType__MachAbsoluteTime QElapsedTimer__ClockType = 3 + QElapsedTimer__ClockType__PerformanceCounter QElapsedTimer__ClockType = 4 +) + type QElapsedTimer struct { h *C.QElapsedTimer } @@ -40,9 +50,9 @@ func NewQElapsedTimer() *QElapsedTimer { return newQElapsedTimer(ret) } -func QElapsedTimer_ClockType() uintptr { +func QElapsedTimer_ClockType() QElapsedTimer__ClockType { ret := C.QElapsedTimer_ClockType() - return (uintptr)(ret) + return (QElapsedTimer__ClockType)(ret) } func QElapsedTimer_IsMonotonic() bool { diff --git a/qt/gen_qevent.go b/qt/gen_qevent.go index f2bee15b..a77f3e48 100644 --- a/qt/gen_qevent.go +++ b/qt/gen_qevent.go @@ -13,6 +13,66 @@ import ( "unsafe" ) +type QWheelEvent__ int + +const ( + QWheelEvent____DefaultDeltasPerStep QWheelEvent__ = 120 +) + +type QTabletEvent__TabletDevice int + +const ( + QTabletEvent__TabletDevice__NoDevice QTabletEvent__TabletDevice = 0 + QTabletEvent__TabletDevice__Puck QTabletEvent__TabletDevice = 1 + QTabletEvent__TabletDevice__Stylus QTabletEvent__TabletDevice = 2 + QTabletEvent__TabletDevice__Airbrush QTabletEvent__TabletDevice = 3 + QTabletEvent__TabletDevice__FourDMouse QTabletEvent__TabletDevice = 4 + QTabletEvent__TabletDevice__XFreeEraser QTabletEvent__TabletDevice = 5 + QTabletEvent__TabletDevice__RotationStylus QTabletEvent__TabletDevice = 6 +) + +type QTabletEvent__PointerType int + +const ( + QTabletEvent__PointerType__UnknownPointer QTabletEvent__PointerType = 0 + QTabletEvent__PointerType__Pen QTabletEvent__PointerType = 1 + QTabletEvent__PointerType__Cursor QTabletEvent__PointerType = 2 + QTabletEvent__PointerType__Eraser QTabletEvent__PointerType = 3 +) + +type QPlatformSurfaceEvent__SurfaceEventType int + +const ( + QPlatformSurfaceEvent__SurfaceEventType__SurfaceCreated QPlatformSurfaceEvent__SurfaceEventType = 0 + QPlatformSurfaceEvent__SurfaceEventType__SurfaceAboutToBeDestroyed QPlatformSurfaceEvent__SurfaceEventType = 1 +) + +type QContextMenuEvent__Reason int + +const ( + QContextMenuEvent__Reason__Mouse QContextMenuEvent__Reason = 0 + QContextMenuEvent__Reason__Keyboard QContextMenuEvent__Reason = 1 + QContextMenuEvent__Reason__Other QContextMenuEvent__Reason = 2 +) + +type QInputMethodEvent__AttributeType int + +const ( + QInputMethodEvent__AttributeType__TextFormat QInputMethodEvent__AttributeType = 0 + QInputMethodEvent__AttributeType__Cursor QInputMethodEvent__AttributeType = 1 + QInputMethodEvent__AttributeType__Language QInputMethodEvent__AttributeType = 2 + QInputMethodEvent__AttributeType__Ruby QInputMethodEvent__AttributeType = 3 + QInputMethodEvent__AttributeType__Selection QInputMethodEvent__AttributeType = 4 +) + +type QScrollEvent__ScrollState int + +const ( + QScrollEvent__ScrollState__ScrollStarted QScrollEvent__ScrollState = 0 + QScrollEvent__ScrollState__ScrollUpdated QScrollEvent__ScrollState = 1 + QScrollEvent__ScrollState__ScrollFinished QScrollEvent__ScrollState = 2 +) + type QInputEvent struct { h *C.QInputEvent *QEvent @@ -37,7 +97,7 @@ func newQInputEvent_U(h unsafe.Pointer) *QInputEvent { } // NewQInputEvent constructs a new QInputEvent object. -func NewQInputEvent(typeVal uintptr) *QInputEvent { +func NewQInputEvent(typeVal QEvent__Type) *QInputEvent { ret := C.QInputEvent_new((C.uintptr_t)(typeVal)) return newQInputEvent(ret) } @@ -49,7 +109,7 @@ func NewQInputEvent2(param1 *QInputEvent) *QInputEvent { } // NewQInputEvent3 constructs a new QInputEvent object. -func NewQInputEvent3(typeVal uintptr, modifiers int) *QInputEvent { +func NewQInputEvent3(typeVal QEvent__Type, modifiers int) *QInputEvent { ret := C.QInputEvent_new3((C.uintptr_t)(typeVal), (C.int)(modifiers)) return newQInputEvent(ret) } @@ -196,25 +256,25 @@ func newQMouseEvent_U(h unsafe.Pointer) *QMouseEvent { } // NewQMouseEvent constructs a new QMouseEvent object. -func NewQMouseEvent(typeVal uintptr, localPos *QPointF, button uintptr, buttons int, modifiers int) *QMouseEvent { +func NewQMouseEvent(typeVal QEvent__Type, localPos *QPointF, button MouseButton, buttons int, modifiers int) *QMouseEvent { ret := C.QMouseEvent_new((C.uintptr_t)(typeVal), localPos.cPointer(), (C.uintptr_t)(button), (C.int)(buttons), (C.int)(modifiers)) return newQMouseEvent(ret) } // NewQMouseEvent2 constructs a new QMouseEvent object. -func NewQMouseEvent2(typeVal uintptr, localPos *QPointF, screenPos *QPointF, button uintptr, buttons int, modifiers int) *QMouseEvent { +func NewQMouseEvent2(typeVal QEvent__Type, localPos *QPointF, screenPos *QPointF, button MouseButton, buttons int, modifiers int) *QMouseEvent { ret := C.QMouseEvent_new2((C.uintptr_t)(typeVal), localPos.cPointer(), screenPos.cPointer(), (C.uintptr_t)(button), (C.int)(buttons), (C.int)(modifiers)) return newQMouseEvent(ret) } // NewQMouseEvent3 constructs a new QMouseEvent object. -func NewQMouseEvent3(typeVal uintptr, localPos *QPointF, windowPos *QPointF, screenPos *QPointF, button uintptr, buttons int, modifiers int) *QMouseEvent { +func NewQMouseEvent3(typeVal QEvent__Type, localPos *QPointF, windowPos *QPointF, screenPos *QPointF, button MouseButton, buttons int, modifiers int) *QMouseEvent { ret := C.QMouseEvent_new3((C.uintptr_t)(typeVal), localPos.cPointer(), windowPos.cPointer(), screenPos.cPointer(), (C.uintptr_t)(button), (C.int)(buttons), (C.int)(modifiers)) return newQMouseEvent(ret) } // NewQMouseEvent4 constructs a new QMouseEvent object. -func NewQMouseEvent4(typeVal uintptr, localPos *QPointF, windowPos *QPointF, screenPos *QPointF, button uintptr, buttons int, modifiers int, source uintptr) *QMouseEvent { +func NewQMouseEvent4(typeVal QEvent__Type, localPos *QPointF, windowPos *QPointF, screenPos *QPointF, button MouseButton, buttons int, modifiers int, source MouseEventSource) *QMouseEvent { ret := C.QMouseEvent_new4((C.uintptr_t)(typeVal), localPos.cPointer(), windowPos.cPointer(), screenPos.cPointer(), (C.uintptr_t)(button), (C.int)(buttons), (C.int)(modifiers), (C.uintptr_t)(source)) return newQMouseEvent(ret) } @@ -282,9 +342,9 @@ func (this *QMouseEvent) ScreenPos() *QPointF { return newQPointF_U(unsafe.Pointer(ret)) } -func (this *QMouseEvent) Button() uintptr { +func (this *QMouseEvent) Button() MouseButton { ret := C.QMouseEvent_Button(this.h) - return (uintptr)(ret) + return (MouseButton)(ret) } func (this *QMouseEvent) Buttons() int { @@ -296,9 +356,9 @@ func (this *QMouseEvent) SetLocalPos(localPosition *QPointF) { C.QMouseEvent_SetLocalPos(this.h, localPosition.cPointer()) } -func (this *QMouseEvent) Source() uintptr { +func (this *QMouseEvent) Source() MouseEventSource { ret := C.QMouseEvent_Source(this.h) - return (uintptr)(ret) + return (MouseEventSource)(ret) } func (this *QMouseEvent) Flags() int { @@ -334,7 +394,7 @@ func newQHoverEvent_U(h unsafe.Pointer) *QHoverEvent { } // NewQHoverEvent constructs a new QHoverEvent object. -func NewQHoverEvent(typeVal uintptr, pos *QPointF, oldPos *QPointF) *QHoverEvent { +func NewQHoverEvent(typeVal QEvent__Type, pos *QPointF, oldPos *QPointF) *QHoverEvent { ret := C.QHoverEvent_new((C.uintptr_t)(typeVal), pos.cPointer(), oldPos.cPointer()) return newQHoverEvent(ret) } @@ -346,7 +406,7 @@ func NewQHoverEvent2(param1 *QHoverEvent) *QHoverEvent { } // NewQHoverEvent3 constructs a new QHoverEvent object. -func NewQHoverEvent3(typeVal uintptr, pos *QPointF, oldPos *QPointF, modifiers int) *QHoverEvent { +func NewQHoverEvent3(typeVal QEvent__Type, pos *QPointF, oldPos *QPointF, modifiers int) *QHoverEvent { ret := C.QHoverEvent_new3((C.uintptr_t)(typeVal), pos.cPointer(), oldPos.cPointer(), (C.int)(modifiers)) return newQHoverEvent(ret) } @@ -423,31 +483,31 @@ func NewQWheelEvent2(pos *QPointF, globalPos *QPointF, delta int, buttons int, m } // NewQWheelEvent3 constructs a new QWheelEvent object. -func NewQWheelEvent3(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation uintptr, buttons int, modifiers int) *QWheelEvent { +func NewQWheelEvent3(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation Orientation, buttons int, modifiers int) *QWheelEvent { ret := C.QWheelEvent_new3(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.uintptr_t)(qt4Orientation), (C.int)(buttons), (C.int)(modifiers)) return newQWheelEvent(ret) } // NewQWheelEvent4 constructs a new QWheelEvent object. -func NewQWheelEvent4(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation uintptr, buttons int, modifiers int, phase uintptr) *QWheelEvent { +func NewQWheelEvent4(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation Orientation, buttons int, modifiers int, phase ScrollPhase) *QWheelEvent { ret := C.QWheelEvent_new4(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.uintptr_t)(qt4Orientation), (C.int)(buttons), (C.int)(modifiers), (C.uintptr_t)(phase)) return newQWheelEvent(ret) } // NewQWheelEvent5 constructs a new QWheelEvent object. -func NewQWheelEvent5(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation uintptr, buttons int, modifiers int, phase uintptr, source uintptr) *QWheelEvent { +func NewQWheelEvent5(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation Orientation, buttons int, modifiers int, phase ScrollPhase, source MouseEventSource) *QWheelEvent { ret := C.QWheelEvent_new5(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.uintptr_t)(qt4Orientation), (C.int)(buttons), (C.int)(modifiers), (C.uintptr_t)(phase), (C.uintptr_t)(source)) return newQWheelEvent(ret) } // NewQWheelEvent6 constructs a new QWheelEvent object. -func NewQWheelEvent6(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation uintptr, buttons int, modifiers int, phase uintptr, source uintptr, inverted bool) *QWheelEvent { +func NewQWheelEvent6(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation Orientation, buttons int, modifiers int, phase ScrollPhase, source MouseEventSource, inverted bool) *QWheelEvent { ret := C.QWheelEvent_new6(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.uintptr_t)(qt4Orientation), (C.int)(buttons), (C.int)(modifiers), (C.uintptr_t)(phase), (C.uintptr_t)(source), (C.bool)(inverted)) return newQWheelEvent(ret) } // NewQWheelEvent7 constructs a new QWheelEvent object. -func NewQWheelEvent7(pos QPointF, globalPos QPointF, pixelDelta QPoint, angleDelta QPoint, buttons int, modifiers int, phase uintptr, inverted bool) *QWheelEvent { +func NewQWheelEvent7(pos QPointF, globalPos QPointF, pixelDelta QPoint, angleDelta QPoint, buttons int, modifiers int, phase ScrollPhase, inverted bool) *QWheelEvent { ret := C.QWheelEvent_new7(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(buttons), (C.int)(modifiers), (C.uintptr_t)(phase), (C.bool)(inverted)) return newQWheelEvent(ret) } @@ -459,19 +519,19 @@ func NewQWheelEvent8(param1 *QWheelEvent) *QWheelEvent { } // NewQWheelEvent9 constructs a new QWheelEvent object. -func NewQWheelEvent9(pos *QPointF, delta int, buttons int, modifiers int, orient uintptr) *QWheelEvent { +func NewQWheelEvent9(pos *QPointF, delta int, buttons int, modifiers int, orient Orientation) *QWheelEvent { ret := C.QWheelEvent_new9(pos.cPointer(), (C.int)(delta), (C.int)(buttons), (C.int)(modifiers), (C.uintptr_t)(orient)) return newQWheelEvent(ret) } // NewQWheelEvent10 constructs a new QWheelEvent object. -func NewQWheelEvent10(pos *QPointF, globalPos *QPointF, delta int, buttons int, modifiers int, orient uintptr) *QWheelEvent { +func NewQWheelEvent10(pos *QPointF, globalPos *QPointF, delta int, buttons int, modifiers int, orient Orientation) *QWheelEvent { ret := C.QWheelEvent_new10(pos.cPointer(), globalPos.cPointer(), (C.int)(delta), (C.int)(buttons), (C.int)(modifiers), (C.uintptr_t)(orient)) return newQWheelEvent(ret) } // NewQWheelEvent11 constructs a new QWheelEvent object. -func NewQWheelEvent11(pos QPointF, globalPos QPointF, pixelDelta QPoint, angleDelta QPoint, buttons int, modifiers int, phase uintptr, inverted bool, source uintptr) *QWheelEvent { +func NewQWheelEvent11(pos QPointF, globalPos QPointF, pixelDelta QPoint, angleDelta QPoint, buttons int, modifiers int, phase ScrollPhase, inverted bool, source MouseEventSource) *QWheelEvent { ret := C.QWheelEvent_new11(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(buttons), (C.int)(modifiers), (C.uintptr_t)(phase), (C.bool)(inverted), (C.uintptr_t)(source)) return newQWheelEvent(ret) } @@ -503,9 +563,9 @@ func (this *QWheelEvent) Delta() int { return (int)(ret) } -func (this *QWheelEvent) Orientation() uintptr { +func (this *QWheelEvent) Orientation() Orientation { ret := C.QWheelEvent_Orientation(this.h) - return (uintptr)(ret) + return (Orientation)(ret) } func (this *QWheelEvent) Pos() *QPoint { @@ -587,9 +647,9 @@ func (this *QWheelEvent) Buttons() int { return (int)(ret) } -func (this *QWheelEvent) Phase() uintptr { +func (this *QWheelEvent) Phase() ScrollPhase { ret := C.QWheelEvent_Phase(this.h) - return (uintptr)(ret) + return (ScrollPhase)(ret) } func (this *QWheelEvent) Inverted() bool { @@ -597,9 +657,9 @@ func (this *QWheelEvent) Inverted() bool { return (bool)(ret) } -func (this *QWheelEvent) Source() uintptr { +func (this *QWheelEvent) Source() MouseEventSource { ret := C.QWheelEvent_Source(this.h) - return (uintptr)(ret) + return (MouseEventSource)(ret) } func (this *QWheelEvent) Delete() { @@ -630,13 +690,13 @@ func newQTabletEvent_U(h unsafe.Pointer) *QTabletEvent { } // NewQTabletEvent constructs a new QTabletEvent object. -func NewQTabletEvent(t uintptr, pos *QPointF, globalPos *QPointF, device int, pointerType int, pressure float64, xTilt int, yTilt int, tangentialPressure float64, rotation float64, z int, keyState int, uniqueID int64) *QTabletEvent { +func NewQTabletEvent(t QEvent__Type, pos *QPointF, globalPos *QPointF, device int, pointerType int, pressure float64, xTilt int, yTilt int, tangentialPressure float64, rotation float64, z int, keyState int, uniqueID int64) *QTabletEvent { ret := C.QTabletEvent_new((C.uintptr_t)(t), pos.cPointer(), globalPos.cPointer(), (C.int)(device), (C.int)(pointerType), (C.double)(pressure), (C.int)(xTilt), (C.int)(yTilt), (C.double)(tangentialPressure), (C.double)(rotation), (C.int)(z), (C.int)(keyState), (C.longlong)(uniqueID)) return newQTabletEvent(ret) } // NewQTabletEvent2 constructs a new QTabletEvent object. -func NewQTabletEvent2(t uintptr, pos *QPointF, globalPos *QPointF, device int, pointerType int, pressure float64, xTilt int, yTilt int, tangentialPressure float64, rotation float64, z int, keyState int, uniqueID int64, button uintptr, buttons int) *QTabletEvent { +func NewQTabletEvent2(t QEvent__Type, pos *QPointF, globalPos *QPointF, device int, pointerType int, pressure float64, xTilt int, yTilt int, tangentialPressure float64, rotation float64, z int, keyState int, uniqueID int64, button MouseButton, buttons int) *QTabletEvent { ret := C.QTabletEvent_new2((C.uintptr_t)(t), pos.cPointer(), globalPos.cPointer(), (C.int)(device), (C.int)(pointerType), (C.double)(pressure), (C.int)(xTilt), (C.int)(yTilt), (C.double)(tangentialPressure), (C.double)(rotation), (C.int)(z), (C.int)(keyState), (C.longlong)(uniqueID), (C.uintptr_t)(button), (C.int)(buttons)) return newQTabletEvent(ret) } @@ -709,19 +769,19 @@ func (this *QTabletEvent) HiResGlobalY() float64 { return (float64)(ret) } -func (this *QTabletEvent) Device() uintptr { +func (this *QTabletEvent) Device() QTabletEvent__TabletDevice { ret := C.QTabletEvent_Device(this.h) - return (uintptr)(ret) + return (QTabletEvent__TabletDevice)(ret) } -func (this *QTabletEvent) DeviceType() uintptr { +func (this *QTabletEvent) DeviceType() QTabletEvent__TabletDevice { ret := C.QTabletEvent_DeviceType(this.h) - return (uintptr)(ret) + return (QTabletEvent__TabletDevice)(ret) } -func (this *QTabletEvent) PointerType() uintptr { +func (this *QTabletEvent) PointerType() QTabletEvent__PointerType { ret := C.QTabletEvent_PointerType(this.h) - return (uintptr)(ret) + return (QTabletEvent__PointerType)(ret) } func (this *QTabletEvent) UniqueId() int64 { @@ -759,9 +819,9 @@ func (this *QTabletEvent) YTilt() int { return (int)(ret) } -func (this *QTabletEvent) Button() uintptr { +func (this *QTabletEvent) Button() MouseButton { ret := C.QTabletEvent_Button(this.h) - return (uintptr)(ret) + return (MouseButton)(ret) } func (this *QTabletEvent) Buttons() int { @@ -797,13 +857,13 @@ func newQNativeGestureEvent_U(h unsafe.Pointer) *QNativeGestureEvent { } // NewQNativeGestureEvent constructs a new QNativeGestureEvent object. -func NewQNativeGestureEvent(typeVal uintptr, localPos *QPointF, windowPos *QPointF, screenPos *QPointF, value float64, sequenceId uint64, intArgument uint64) *QNativeGestureEvent { +func NewQNativeGestureEvent(typeVal NativeGestureType, localPos *QPointF, windowPos *QPointF, screenPos *QPointF, value float64, sequenceId uint64, intArgument uint64) *QNativeGestureEvent { ret := C.QNativeGestureEvent_new((C.uintptr_t)(typeVal), localPos.cPointer(), windowPos.cPointer(), screenPos.cPointer(), (C.double)(value), (C.ulong)(sequenceId), (C.ulonglong)(intArgument)) return newQNativeGestureEvent(ret) } // NewQNativeGestureEvent2 constructs a new QNativeGestureEvent object. -func NewQNativeGestureEvent2(typeVal uintptr, dev *QTouchDevice, localPos *QPointF, windowPos *QPointF, screenPos *QPointF, value float64, sequenceId uint64, intArgument uint64) *QNativeGestureEvent { +func NewQNativeGestureEvent2(typeVal NativeGestureType, dev *QTouchDevice, localPos *QPointF, windowPos *QPointF, screenPos *QPointF, value float64, sequenceId uint64, intArgument uint64) *QNativeGestureEvent { ret := C.QNativeGestureEvent_new2((C.uintptr_t)(typeVal), dev.cPointer(), localPos.cPointer(), windowPos.cPointer(), screenPos.cPointer(), (C.double)(value), (C.ulong)(sequenceId), (C.ulonglong)(intArgument)) return newQNativeGestureEvent(ret) } @@ -814,9 +874,9 @@ func NewQNativeGestureEvent3(param1 *QNativeGestureEvent) *QNativeGestureEvent { return newQNativeGestureEvent(ret) } -func (this *QNativeGestureEvent) GestureType() uintptr { +func (this *QNativeGestureEvent) GestureType() NativeGestureType { ret := C.QNativeGestureEvent_GestureType(this.h) - return (uintptr)(ret) + return (NativeGestureType)(ret) } func (this *QNativeGestureEvent) Value() float64 { @@ -894,13 +954,13 @@ func newQKeyEvent_U(h unsafe.Pointer) *QKeyEvent { } // NewQKeyEvent constructs a new QKeyEvent object. -func NewQKeyEvent(typeVal uintptr, key int, modifiers int) *QKeyEvent { +func NewQKeyEvent(typeVal QEvent__Type, key int, modifiers int) *QKeyEvent { ret := C.QKeyEvent_new((C.uintptr_t)(typeVal), (C.int)(key), (C.int)(modifiers)) return newQKeyEvent(ret) } // NewQKeyEvent2 constructs a new QKeyEvent object. -func NewQKeyEvent2(typeVal uintptr, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint) *QKeyEvent { +func NewQKeyEvent2(typeVal QEvent__Type, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint) *QKeyEvent { ret := C.QKeyEvent_new2((C.uintptr_t)(typeVal), (C.int)(key), (C.int)(modifiers), (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers)) return newQKeyEvent(ret) } @@ -912,7 +972,7 @@ func NewQKeyEvent3(param1 *QKeyEvent) *QKeyEvent { } // NewQKeyEvent4 constructs a new QKeyEvent object. -func NewQKeyEvent4(typeVal uintptr, key int, modifiers int, text string) *QKeyEvent { +func NewQKeyEvent4(typeVal QEvent__Type, key int, modifiers int, text string) *QKeyEvent { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QKeyEvent_new4((C.uintptr_t)(typeVal), (C.int)(key), (C.int)(modifiers), text_Cstring, C.size_t(len(text))) @@ -920,7 +980,7 @@ func NewQKeyEvent4(typeVal uintptr, key int, modifiers int, text string) *QKeyEv } // NewQKeyEvent5 constructs a new QKeyEvent object. -func NewQKeyEvent5(typeVal uintptr, key int, modifiers int, text string, autorep bool) *QKeyEvent { +func NewQKeyEvent5(typeVal QEvent__Type, key int, modifiers int, text string, autorep bool) *QKeyEvent { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QKeyEvent_new5((C.uintptr_t)(typeVal), (C.int)(key), (C.int)(modifiers), text_Cstring, C.size_t(len(text)), (C.bool)(autorep)) @@ -928,7 +988,7 @@ func NewQKeyEvent5(typeVal uintptr, key int, modifiers int, text string, autorep } // NewQKeyEvent6 constructs a new QKeyEvent object. -func NewQKeyEvent6(typeVal uintptr, key int, modifiers int, text string, autorep bool, count uint16) *QKeyEvent { +func NewQKeyEvent6(typeVal QEvent__Type, key int, modifiers int, text string, autorep bool, count uint16) *QKeyEvent { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QKeyEvent_new6((C.uintptr_t)(typeVal), (C.int)(key), (C.int)(modifiers), text_Cstring, C.size_t(len(text)), (C.bool)(autorep), (C.uint16_t)(count)) @@ -936,7 +996,7 @@ func NewQKeyEvent6(typeVal uintptr, key int, modifiers int, text string, autorep } // NewQKeyEvent7 constructs a new QKeyEvent object. -func NewQKeyEvent7(typeVal uintptr, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string) *QKeyEvent { +func NewQKeyEvent7(typeVal QEvent__Type, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string) *QKeyEvent { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QKeyEvent_new7((C.uintptr_t)(typeVal), (C.int)(key), (C.int)(modifiers), (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers), text_Cstring, C.size_t(len(text))) @@ -944,7 +1004,7 @@ func NewQKeyEvent7(typeVal uintptr, key int, modifiers int, nativeScanCode uint, } // NewQKeyEvent8 constructs a new QKeyEvent object. -func NewQKeyEvent8(typeVal uintptr, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string, autorep bool) *QKeyEvent { +func NewQKeyEvent8(typeVal QEvent__Type, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string, autorep bool) *QKeyEvent { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QKeyEvent_new8((C.uintptr_t)(typeVal), (C.int)(key), (C.int)(modifiers), (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers), text_Cstring, C.size_t(len(text)), (C.bool)(autorep)) @@ -952,7 +1012,7 @@ func NewQKeyEvent8(typeVal uintptr, key int, modifiers int, nativeScanCode uint, } // NewQKeyEvent9 constructs a new QKeyEvent object. -func NewQKeyEvent9(typeVal uintptr, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string, autorep bool, count uint16) *QKeyEvent { +func NewQKeyEvent9(typeVal QEvent__Type, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string, autorep bool, count uint16) *QKeyEvent { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QKeyEvent_new9((C.uintptr_t)(typeVal), (C.int)(key), (C.int)(modifiers), (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers), text_Cstring, C.size_t(len(text)), (C.bool)(autorep), (C.uint16_t)(count)) @@ -964,7 +1024,7 @@ func (this *QKeyEvent) Key() int { return (int)(ret) } -func (this *QKeyEvent) Matches(key uintptr) bool { +func (this *QKeyEvent) Matches(key QKeySequence__StandardKey) bool { ret := C.QKeyEvent_Matches(this.h, (C.uintptr_t)(key)) return (bool)(ret) } @@ -1036,7 +1096,7 @@ func newQFocusEvent_U(h unsafe.Pointer) *QFocusEvent { } // NewQFocusEvent constructs a new QFocusEvent object. -func NewQFocusEvent(typeVal uintptr) *QFocusEvent { +func NewQFocusEvent(typeVal QEvent__Type) *QFocusEvent { ret := C.QFocusEvent_new((C.uintptr_t)(typeVal)) return newQFocusEvent(ret) } @@ -1048,7 +1108,7 @@ func NewQFocusEvent2(param1 *QFocusEvent) *QFocusEvent { } // NewQFocusEvent3 constructs a new QFocusEvent object. -func NewQFocusEvent3(typeVal uintptr, reason uintptr) *QFocusEvent { +func NewQFocusEvent3(typeVal QEvent__Type, reason FocusReason) *QFocusEvent { ret := C.QFocusEvent_new3((C.uintptr_t)(typeVal), (C.uintptr_t)(reason)) return newQFocusEvent(ret) } @@ -1063,9 +1123,9 @@ func (this *QFocusEvent) LostFocus() bool { return (bool)(ret) } -func (this *QFocusEvent) Reason() uintptr { +func (this *QFocusEvent) Reason() FocusReason { ret := C.QFocusEvent_Reason(this.h) - return (uintptr)(ret) + return (FocusReason)(ret) } func (this *QFocusEvent) Delete() { @@ -1244,7 +1304,7 @@ func newQPlatformSurfaceEvent_U(h unsafe.Pointer) *QPlatformSurfaceEvent { } // NewQPlatformSurfaceEvent constructs a new QPlatformSurfaceEvent object. -func NewQPlatformSurfaceEvent(surfaceEventType uintptr) *QPlatformSurfaceEvent { +func NewQPlatformSurfaceEvent(surfaceEventType QPlatformSurfaceEvent__SurfaceEventType) *QPlatformSurfaceEvent { ret := C.QPlatformSurfaceEvent_new((C.uintptr_t)(surfaceEventType)) return newQPlatformSurfaceEvent(ret) } @@ -1255,9 +1315,9 @@ func NewQPlatformSurfaceEvent2(param1 *QPlatformSurfaceEvent) *QPlatformSurfaceE return newQPlatformSurfaceEvent(ret) } -func (this *QPlatformSurfaceEvent) SurfaceEventType() uintptr { +func (this *QPlatformSurfaceEvent) SurfaceEventType() QPlatformSurfaceEvent__SurfaceEventType { ret := C.QPlatformSurfaceEvent_SurfaceEventType(this.h) - return (uintptr)(ret) + return (QPlatformSurfaceEvent__SurfaceEventType)(ret) } func (this *QPlatformSurfaceEvent) Delete() { @@ -1509,19 +1569,19 @@ func newQContextMenuEvent_U(h unsafe.Pointer) *QContextMenuEvent { } // NewQContextMenuEvent constructs a new QContextMenuEvent object. -func NewQContextMenuEvent(reason uintptr, pos *QPoint, globalPos *QPoint, modifiers int) *QContextMenuEvent { +func NewQContextMenuEvent(reason QContextMenuEvent__Reason, pos *QPoint, globalPos *QPoint, modifiers int) *QContextMenuEvent { ret := C.QContextMenuEvent_new((C.uintptr_t)(reason), pos.cPointer(), globalPos.cPointer(), (C.int)(modifiers)) return newQContextMenuEvent(ret) } // NewQContextMenuEvent2 constructs a new QContextMenuEvent object. -func NewQContextMenuEvent2(reason uintptr, pos *QPoint, globalPos *QPoint) *QContextMenuEvent { +func NewQContextMenuEvent2(reason QContextMenuEvent__Reason, pos *QPoint, globalPos *QPoint) *QContextMenuEvent { ret := C.QContextMenuEvent_new2((C.uintptr_t)(reason), pos.cPointer(), globalPos.cPointer()) return newQContextMenuEvent(ret) } // NewQContextMenuEvent3 constructs a new QContextMenuEvent object. -func NewQContextMenuEvent3(reason uintptr, pos *QPoint) *QContextMenuEvent { +func NewQContextMenuEvent3(reason QContextMenuEvent__Reason, pos *QPoint) *QContextMenuEvent { ret := C.QContextMenuEvent_new3((C.uintptr_t)(reason), pos.cPointer()) return newQContextMenuEvent(ret) } @@ -1562,9 +1622,9 @@ func (this *QContextMenuEvent) GlobalPos() *QPoint { return newQPoint_U(unsafe.Pointer(ret)) } -func (this *QContextMenuEvent) Reason() uintptr { +func (this *QContextMenuEvent) Reason() QContextMenuEvent__Reason { ret := C.QContextMenuEvent_Reason(this.h) - return (uintptr)(ret) + return (QContextMenuEvent__Reason)(ret) } func (this *QContextMenuEvent) Delete() { @@ -1710,11 +1770,11 @@ func (this *QInputMethodQueryEvent) Queries() int { return (int)(ret) } -func (this *QInputMethodQueryEvent) SetValue(query uintptr, value *QVariant) { +func (this *QInputMethodQueryEvent) SetValue(query InputMethodQuery, value *QVariant) { C.QInputMethodQueryEvent_SetValue(this.h, (C.uintptr_t)(query), value.cPointer()) } -func (this *QInputMethodQueryEvent) Value(query uintptr) *QVariant { +func (this *QInputMethodQueryEvent) Value(query InputMethodQuery) *QVariant { ret := C.QInputMethodQueryEvent_Value(this.h, (C.uintptr_t)(query)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -1765,7 +1825,7 @@ func NewQDropEvent2(param1 *QDropEvent) *QDropEvent { } // NewQDropEvent3 constructs a new QDropEvent object. -func NewQDropEvent3(pos *QPointF, actions int, data *QMimeData, buttons int, modifiers int, typeVal uintptr) *QDropEvent { +func NewQDropEvent3(pos *QPointF, actions int, data *QMimeData, buttons int, modifiers int, typeVal QEvent__Type) *QDropEvent { ret := C.QDropEvent_new3(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers), (C.uintptr_t)(typeVal)) return newQDropEvent(ret) } @@ -1801,21 +1861,21 @@ func (this *QDropEvent) PossibleActions() int { return (int)(ret) } -func (this *QDropEvent) ProposedAction() uintptr { +func (this *QDropEvent) ProposedAction() DropAction { ret := C.QDropEvent_ProposedAction(this.h) - return (uintptr)(ret) + return (DropAction)(ret) } func (this *QDropEvent) AcceptProposedAction() { C.QDropEvent_AcceptProposedAction(this.h) } -func (this *QDropEvent) DropAction() uintptr { +func (this *QDropEvent) DropAction() DropAction { ret := C.QDropEvent_DropAction(this.h) - return (uintptr)(ret) + return (DropAction)(ret) } -func (this *QDropEvent) SetDropAction(action uintptr) { +func (this *QDropEvent) SetDropAction(action DropAction) { C.QDropEvent_SetDropAction(this.h, (C.uintptr_t)(action)) } @@ -1869,7 +1929,7 @@ func NewQDragMoveEvent2(param1 *QDragMoveEvent) *QDragMoveEvent { } // NewQDragMoveEvent3 constructs a new QDragMoveEvent object. -func NewQDragMoveEvent3(pos *QPoint, actions int, data *QMimeData, buttons int, modifiers int, typeVal uintptr) *QDragMoveEvent { +func NewQDragMoveEvent3(pos *QPoint, actions int, data *QMimeData, buttons int, modifiers int, typeVal QEvent__Type) *QDragMoveEvent { ret := C.QDragMoveEvent_new3(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers), (C.uintptr_t)(typeVal)) return newQDragMoveEvent(ret) } @@ -2015,7 +2075,7 @@ func newQHelpEvent_U(h unsafe.Pointer) *QHelpEvent { } // NewQHelpEvent constructs a new QHelpEvent object. -func NewQHelpEvent(typeVal uintptr, pos *QPoint, globalPos *QPoint) *QHelpEvent { +func NewQHelpEvent(typeVal QEvent__Type, pos *QPoint, globalPos *QPoint) *QHelpEvent { ret := C.QHelpEvent_new((C.uintptr_t)(typeVal), pos.cPointer(), globalPos.cPointer()) return newQHelpEvent(ret) } @@ -2533,7 +2593,7 @@ func newQTouchEvent_U(h unsafe.Pointer) *QTouchEvent { } // NewQTouchEvent constructs a new QTouchEvent object. -func NewQTouchEvent(eventType uintptr) *QTouchEvent { +func NewQTouchEvent(eventType QEvent__Type) *QTouchEvent { ret := C.QTouchEvent_new((C.uintptr_t)(eventType)) return newQTouchEvent(ret) } @@ -2545,25 +2605,25 @@ func NewQTouchEvent2(param1 *QTouchEvent) *QTouchEvent { } // NewQTouchEvent3 constructs a new QTouchEvent object. -func NewQTouchEvent3(eventType uintptr, device *QTouchDevice) *QTouchEvent { +func NewQTouchEvent3(eventType QEvent__Type, device *QTouchDevice) *QTouchEvent { ret := C.QTouchEvent_new3((C.uintptr_t)(eventType), device.cPointer()) return newQTouchEvent(ret) } // NewQTouchEvent4 constructs a new QTouchEvent object. -func NewQTouchEvent4(eventType uintptr, device *QTouchDevice, modifiers int) *QTouchEvent { +func NewQTouchEvent4(eventType QEvent__Type, device *QTouchDevice, modifiers int) *QTouchEvent { ret := C.QTouchEvent_new4((C.uintptr_t)(eventType), device.cPointer(), (C.int)(modifiers)) return newQTouchEvent(ret) } // NewQTouchEvent5 constructs a new QTouchEvent object. -func NewQTouchEvent5(eventType uintptr, device *QTouchDevice, modifiers int, touchPointStates int) *QTouchEvent { +func NewQTouchEvent5(eventType QEvent__Type, device *QTouchDevice, modifiers int, touchPointStates int) *QTouchEvent { ret := C.QTouchEvent_new5((C.uintptr_t)(eventType), device.cPointer(), (C.int)(modifiers), (C.int)(touchPointStates)) return newQTouchEvent(ret) } // NewQTouchEvent6 constructs a new QTouchEvent object. -func NewQTouchEvent6(eventType uintptr, device *QTouchDevice, modifiers int, touchPointStates int, touchPoints []QTouchEvent__TouchPoint) *QTouchEvent { +func NewQTouchEvent6(eventType QEvent__Type, device *QTouchDevice, modifiers int, touchPointStates int, touchPoints []QTouchEvent__TouchPoint) *QTouchEvent { // For the C ABI, malloc a C array of raw pointers touchPoints_CArray := (*[0xffff]*C.QTouchEvent__TouchPoint)(C.malloc(C.size_t(8 * len(touchPoints)))) defer C.free(unsafe.Pointer(touchPoints_CArray)) @@ -2743,7 +2803,7 @@ func newQScrollEvent_U(h unsafe.Pointer) *QScrollEvent { } // NewQScrollEvent constructs a new QScrollEvent object. -func NewQScrollEvent(contentPos *QPointF, overshoot *QPointF, scrollState uintptr) *QScrollEvent { +func NewQScrollEvent(contentPos *QPointF, overshoot *QPointF, scrollState QScrollEvent__ScrollState) *QScrollEvent { ret := C.QScrollEvent_new(contentPos.cPointer(), overshoot.cPointer(), (C.uintptr_t)(scrollState)) return newQScrollEvent(ret) } @@ -2776,9 +2836,9 @@ func (this *QScrollEvent) OvershootDistance() *QPointF { return ret1 } -func (this *QScrollEvent) ScrollState() uintptr { +func (this *QScrollEvent) ScrollState() QScrollEvent__ScrollState { ret := C.QScrollEvent_ScrollState(this.h) - return (uintptr)(ret) + return (QScrollEvent__ScrollState)(ret) } func (this *QScrollEvent) Delete() { @@ -2809,7 +2869,7 @@ func newQScreenOrientationChangeEvent_U(h unsafe.Pointer) *QScreenOrientationCha } // NewQScreenOrientationChangeEvent constructs a new QScreenOrientationChangeEvent object. -func NewQScreenOrientationChangeEvent(screen *QScreen, orientation uintptr) *QScreenOrientationChangeEvent { +func NewQScreenOrientationChangeEvent(screen *QScreen, orientation ScreenOrientation) *QScreenOrientationChangeEvent { ret := C.QScreenOrientationChangeEvent_new(screen.cPointer(), (C.uintptr_t)(orientation)) return newQScreenOrientationChangeEvent(ret) } @@ -2825,9 +2885,9 @@ func (this *QScreenOrientationChangeEvent) Screen() *QScreen { return newQScreen_U(unsafe.Pointer(ret)) } -func (this *QScreenOrientationChangeEvent) Orientation() uintptr { +func (this *QScreenOrientationChangeEvent) Orientation() ScreenOrientation { ret := C.QScreenOrientationChangeEvent_Orientation(this.h) - return (uintptr)(ret) + return (ScreenOrientation)(ret) } func (this *QScreenOrientationChangeEvent) Delete() { @@ -2858,7 +2918,7 @@ func newQApplicationStateChangeEvent_U(h unsafe.Pointer) *QApplicationStateChang } // NewQApplicationStateChangeEvent constructs a new QApplicationStateChangeEvent object. -func NewQApplicationStateChangeEvent(state uintptr) *QApplicationStateChangeEvent { +func NewQApplicationStateChangeEvent(state ApplicationState) *QApplicationStateChangeEvent { ret := C.QApplicationStateChangeEvent_new((C.uintptr_t)(state)) return newQApplicationStateChangeEvent(ret) } @@ -2869,9 +2929,9 @@ func NewQApplicationStateChangeEvent2(param1 *QApplicationStateChangeEvent) *QAp return newQApplicationStateChangeEvent(ret) } -func (this *QApplicationStateChangeEvent) ApplicationState() uintptr { +func (this *QApplicationStateChangeEvent) ApplicationState() ApplicationState { ret := C.QApplicationStateChangeEvent_ApplicationState(this.h) - return (uintptr)(ret) + return (ApplicationState)(ret) } func (this *QApplicationStateChangeEvent) Delete() { @@ -2901,13 +2961,13 @@ func newQInputMethodEvent__Attribute_U(h unsafe.Pointer) *QInputMethodEvent__Att } // NewQInputMethodEvent__Attribute constructs a new QInputMethodEvent::Attribute object. -func NewQInputMethodEvent__Attribute(typ uintptr, s int, l int, val QVariant) *QInputMethodEvent__Attribute { +func NewQInputMethodEvent__Attribute(typ QInputMethodEvent__AttributeType, s int, l int, val QVariant) *QInputMethodEvent__Attribute { ret := C.QInputMethodEvent__Attribute_new((C.uintptr_t)(typ), (C.int)(s), (C.int)(l), val.cPointer()) return newQInputMethodEvent__Attribute(ret) } // NewQInputMethodEvent__Attribute2 constructs a new QInputMethodEvent::Attribute object. -func NewQInputMethodEvent__Attribute2(typ uintptr, s int, l int) *QInputMethodEvent__Attribute { +func NewQInputMethodEvent__Attribute2(typ QInputMethodEvent__AttributeType, s int, l int) *QInputMethodEvent__Attribute { ret := C.QInputMethodEvent__Attribute_new2((C.uintptr_t)(typ), (C.int)(s), (C.int)(l)) return newQInputMethodEvent__Attribute(ret) } @@ -2982,9 +3042,9 @@ func (this *QTouchEvent__TouchPoint) UniqueId() *QPointingDeviceUniqueId { return ret1 } -func (this *QTouchEvent__TouchPoint) State() uintptr { +func (this *QTouchEvent__TouchPoint) State() TouchPointState { ret := C.QTouchEvent__TouchPoint_State(this.h) - return (uintptr)(ret) + return (TouchPointState)(ret) } func (this *QTouchEvent__TouchPoint) Pos() *QPointF { diff --git a/qt/gen_qeventloop.go b/qt/gen_qeventloop.go index 4416100a..5b2e9eea 100644 --- a/qt/gen_qeventloop.go +++ b/qt/gen_qeventloop.go @@ -12,6 +12,18 @@ import ( "unsafe" ) +type QEventLoop__ProcessEventsFlag int + +const ( + QEventLoop__ProcessEventsFlag__AllEvents QEventLoop__ProcessEventsFlag = 0 + QEventLoop__ProcessEventsFlag__ExcludeUserInputEvents QEventLoop__ProcessEventsFlag = 1 + QEventLoop__ProcessEventsFlag__ExcludeSocketNotifiers QEventLoop__ProcessEventsFlag = 2 + QEventLoop__ProcessEventsFlag__WaitForMoreEvents QEventLoop__ProcessEventsFlag = 4 + QEventLoop__ProcessEventsFlag__X11ExcludeTimers QEventLoop__ProcessEventsFlag = 8 + QEventLoop__ProcessEventsFlag__EventLoopExec QEventLoop__ProcessEventsFlag = 32 + QEventLoop__ProcessEventsFlag__DialogExec QEventLoop__ProcessEventsFlag = 64 +) + type QEventLoop struct { h *C.QEventLoop *QObject diff --git a/qt/gen_qeventtransition.go b/qt/gen_qeventtransition.go index 84d2754d..68461c24 100644 --- a/qt/gen_qeventtransition.go +++ b/qt/gen_qeventtransition.go @@ -42,7 +42,7 @@ func NewQEventTransition() *QEventTransition { } // NewQEventTransition2 constructs a new QEventTransition object. -func NewQEventTransition2(object *QObject, typeVal uintptr) *QEventTransition { +func NewQEventTransition2(object *QObject, typeVal QEvent__Type) *QEventTransition { ret := C.QEventTransition_new2(object.cPointer(), (C.uintptr_t)(typeVal)) return newQEventTransition(ret) } @@ -54,7 +54,7 @@ func NewQEventTransition3(sourceState *QState) *QEventTransition { } // NewQEventTransition4 constructs a new QEventTransition object. -func NewQEventTransition4(object *QObject, typeVal uintptr, sourceState *QState) *QEventTransition { +func NewQEventTransition4(object *QObject, typeVal QEvent__Type, sourceState *QState) *QEventTransition { ret := C.QEventTransition_new4(object.cPointer(), (C.uintptr_t)(typeVal), sourceState.cPointer()) return newQEventTransition(ret) } @@ -95,12 +95,12 @@ func (this *QEventTransition) SetEventSource(object *QObject) { C.QEventTransition_SetEventSource(this.h, object.cPointer()) } -func (this *QEventTransition) EventType() uintptr { +func (this *QEventTransition) EventType() QEvent__Type { ret := C.QEventTransition_EventType(this.h) - return (uintptr)(ret) + return (QEvent__Type)(ret) } -func (this *QEventTransition) SetEventType(typeVal uintptr) { +func (this *QEventTransition) SetEventType(typeVal QEvent__Type) { C.QEventTransition_SetEventType(this.h, (C.uintptr_t)(typeVal)) } diff --git a/qt/gen_qfiledevice.go b/qt/gen_qfiledevice.go index bfd789a8..7c789976 100644 --- a/qt/gen_qfiledevice.go +++ b/qt/gen_qfiledevice.go @@ -13,6 +13,66 @@ import ( "unsafe" ) +type QFileDevice__FileError int + +const ( + QFileDevice__FileError__NoError QFileDevice__FileError = 0 + QFileDevice__FileError__ReadError QFileDevice__FileError = 1 + QFileDevice__FileError__WriteError QFileDevice__FileError = 2 + QFileDevice__FileError__FatalError QFileDevice__FileError = 3 + QFileDevice__FileError__ResourceError QFileDevice__FileError = 4 + QFileDevice__FileError__OpenError QFileDevice__FileError = 5 + QFileDevice__FileError__AbortError QFileDevice__FileError = 6 + QFileDevice__FileError__TimeOutError QFileDevice__FileError = 7 + QFileDevice__FileError__UnspecifiedError QFileDevice__FileError = 8 + QFileDevice__FileError__RemoveError QFileDevice__FileError = 9 + QFileDevice__FileError__RenameError QFileDevice__FileError = 10 + QFileDevice__FileError__PositionError QFileDevice__FileError = 11 + QFileDevice__FileError__ResizeError QFileDevice__FileError = 12 + QFileDevice__FileError__PermissionsError QFileDevice__FileError = 13 + QFileDevice__FileError__CopyError QFileDevice__FileError = 14 +) + +type QFileDevice__FileTime int + +const ( + QFileDevice__FileTime__FileAccessTime QFileDevice__FileTime = 0 + QFileDevice__FileTime__FileBirthTime QFileDevice__FileTime = 1 + QFileDevice__FileTime__FileMetadataChangeTime QFileDevice__FileTime = 2 + QFileDevice__FileTime__FileModificationTime QFileDevice__FileTime = 3 +) + +type QFileDevice__Permission int + +const ( + QFileDevice__Permission__ReadOwner QFileDevice__Permission = 16384 + QFileDevice__Permission__WriteOwner QFileDevice__Permission = 8192 + QFileDevice__Permission__ExeOwner QFileDevice__Permission = 4096 + QFileDevice__Permission__ReadUser QFileDevice__Permission = 1024 + QFileDevice__Permission__WriteUser QFileDevice__Permission = 512 + QFileDevice__Permission__ExeUser QFileDevice__Permission = 256 + QFileDevice__Permission__ReadGroup QFileDevice__Permission = 64 + QFileDevice__Permission__WriteGroup QFileDevice__Permission = 32 + QFileDevice__Permission__ExeGroup QFileDevice__Permission = 16 + QFileDevice__Permission__ReadOther QFileDevice__Permission = 4 + QFileDevice__Permission__WriteOther QFileDevice__Permission = 2 + QFileDevice__Permission__ExeOther QFileDevice__Permission = 1 +) + +type QFileDevice__FileHandleFlag int + +const ( + QFileDevice__FileHandleFlag__AutoCloseHandle QFileDevice__FileHandleFlag = 1 + QFileDevice__FileHandleFlag__DontCloseHandle QFileDevice__FileHandleFlag = 0 +) + +type QFileDevice__MemoryMapFlags int + +const ( + QFileDevice__MemoryMapFlags__NoOptions QFileDevice__MemoryMapFlags = 0 + QFileDevice__MemoryMapFlags__MapPrivateOption QFileDevice__MemoryMapFlags = 1 +) + type QFileDevice struct { h *C.QFileDevice *QIODevice @@ -63,9 +123,9 @@ func QFileDevice_TrUtf8(s string) string { return ret } -func (this *QFileDevice) Error() uintptr { +func (this *QFileDevice) Error() QFileDevice__FileError { ret := C.QFileDevice_Error(this.h) - return (uintptr)(ret) + return (QFileDevice__FileError)(ret) } func (this *QFileDevice) UnsetError() { @@ -145,7 +205,7 @@ func (this *QFileDevice) Unmap(address *byte) bool { return (bool)(ret) } -func (this *QFileDevice) FileTime(time uintptr) *QDateTime { +func (this *QFileDevice) FileTime(time QFileDevice__FileTime) *QDateTime { ret := C.QFileDevice_FileTime(this.h, (C.uintptr_t)(time)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQDateTime(ret) @@ -156,7 +216,7 @@ func (this *QFileDevice) FileTime(time uintptr) *QDateTime { return ret1 } -func (this *QFileDevice) SetFileTime(newDate *QDateTime, fileTime uintptr) bool { +func (this *QFileDevice) SetFileTime(newDate *QDateTime, fileTime QFileDevice__FileTime) bool { ret := C.QFileDevice_SetFileTime(this.h, newDate.cPointer(), (C.uintptr_t)(fileTime)) return (bool)(ret) } @@ -213,7 +273,7 @@ func QFileDevice_TrUtf83(s string, c string, n int) string { return ret } -func (this *QFileDevice) Map3(offset int64, size int64, flags uintptr) *byte { +func (this *QFileDevice) Map3(offset int64, size int64, flags QFileDevice__MemoryMapFlags) *byte { ret := C.QFileDevice_Map3(this.h, (C.longlong)(offset), (C.longlong)(size), (C.uintptr_t)(flags)) return (*byte)(ret) } diff --git a/qt/gen_qfiledialog.go b/qt/gen_qfiledialog.go index d0a8406d..923d9b02 100644 --- a/qt/gen_qfiledialog.go +++ b/qt/gen_qfiledialog.go @@ -14,6 +14,53 @@ import ( "unsafe" ) +type QFileDialog__ViewMode int + +const ( + QFileDialog__ViewMode__Detail QFileDialog__ViewMode = 0 + QFileDialog__ViewMode__List QFileDialog__ViewMode = 1 +) + +type QFileDialog__FileMode int + +const ( + QFileDialog__FileMode__AnyFile QFileDialog__FileMode = 0 + QFileDialog__FileMode__ExistingFile QFileDialog__FileMode = 1 + QFileDialog__FileMode__Directory QFileDialog__FileMode = 2 + QFileDialog__FileMode__ExistingFiles QFileDialog__FileMode = 3 + QFileDialog__FileMode__DirectoryOnly QFileDialog__FileMode = 4 +) + +type QFileDialog__AcceptMode int + +const ( + QFileDialog__AcceptMode__AcceptOpen QFileDialog__AcceptMode = 0 + QFileDialog__AcceptMode__AcceptSave QFileDialog__AcceptMode = 1 +) + +type QFileDialog__DialogLabel int + +const ( + QFileDialog__DialogLabel__LookIn QFileDialog__DialogLabel = 0 + QFileDialog__DialogLabel__FileName QFileDialog__DialogLabel = 1 + QFileDialog__DialogLabel__FileType QFileDialog__DialogLabel = 2 + QFileDialog__DialogLabel__Accept QFileDialog__DialogLabel = 3 + QFileDialog__DialogLabel__Reject QFileDialog__DialogLabel = 4 +) + +type QFileDialog__Option int + +const ( + QFileDialog__Option__ShowDirsOnly QFileDialog__Option = 1 + QFileDialog__Option__DontResolveSymlinks QFileDialog__Option = 2 + QFileDialog__Option__DontConfirmOverwrite QFileDialog__Option = 4 + QFileDialog__Option__DontUseSheet QFileDialog__Option = 8 + QFileDialog__Option__DontUseNativeDialog QFileDialog__Option = 16 + QFileDialog__Option__ReadOnly QFileDialog__Option = 32 + QFileDialog__Option__HideNameFilterDetails QFileDialog__Option = 64 + QFileDialog__Option__DontUseCustomDirectoryIcons QFileDialog__Option = 128 +) + type QFileDialog struct { h *C.QFileDialog *QDialog @@ -300,31 +347,31 @@ func (this *QFileDialog) SetFilter(filters int) { C.QFileDialog_SetFilter(this.h, (C.int)(filters)) } -func (this *QFileDialog) SetViewMode(mode uintptr) { +func (this *QFileDialog) SetViewMode(mode QFileDialog__ViewMode) { C.QFileDialog_SetViewMode(this.h, (C.uintptr_t)(mode)) } -func (this *QFileDialog) ViewMode() uintptr { +func (this *QFileDialog) ViewMode() QFileDialog__ViewMode { ret := C.QFileDialog_ViewMode(this.h) - return (uintptr)(ret) + return (QFileDialog__ViewMode)(ret) } -func (this *QFileDialog) SetFileMode(mode uintptr) { +func (this *QFileDialog) SetFileMode(mode QFileDialog__FileMode) { C.QFileDialog_SetFileMode(this.h, (C.uintptr_t)(mode)) } -func (this *QFileDialog) FileMode() uintptr { +func (this *QFileDialog) FileMode() QFileDialog__FileMode { ret := C.QFileDialog_FileMode(this.h) - return (uintptr)(ret) + return (QFileDialog__FileMode)(ret) } -func (this *QFileDialog) SetAcceptMode(mode uintptr) { +func (this *QFileDialog) SetAcceptMode(mode QFileDialog__AcceptMode) { C.QFileDialog_SetAcceptMode(this.h, (C.uintptr_t)(mode)) } -func (this *QFileDialog) AcceptMode() uintptr { +func (this *QFileDialog) AcceptMode() QFileDialog__AcceptMode { ret := C.QFileDialog_AcceptMode(this.h) - return (uintptr)(ret) + return (QFileDialog__AcceptMode)(ret) } func (this *QFileDialog) SetReadOnly(enabled bool) { @@ -456,13 +503,13 @@ func (this *QFileDialog) IconProvider() *QFileIconProvider { return newQFileIconProvider_U(unsafe.Pointer(ret)) } -func (this *QFileDialog) SetLabelText(label uintptr, text string) { +func (this *QFileDialog) SetLabelText(label QFileDialog__DialogLabel, text string) { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) C.QFileDialog_SetLabelText(this.h, (C.uintptr_t)(label), text_Cstring, C.size_t(len(text))) } -func (this *QFileDialog) LabelText(label uintptr) string { +func (this *QFileDialog) LabelText(label QFileDialog__DialogLabel) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QFileDialog_LabelText(this.h, (C.uintptr_t)(label), &_out, &_out_Strlen) @@ -510,11 +557,11 @@ func (this *QFileDialog) ProxyModel() *QAbstractProxyModel { return newQAbstractProxyModel_U(unsafe.Pointer(ret)) } -func (this *QFileDialog) SetOption(option uintptr) { +func (this *QFileDialog) SetOption(option QFileDialog__Option) { C.QFileDialog_SetOption(this.h, (C.uintptr_t)(option)) } -func (this *QFileDialog) TestOption(option uintptr) bool { +func (this *QFileDialog) TestOption(option QFileDialog__Option) bool { ret := C.QFileDialog_TestOption(this.h, (C.uintptr_t)(option)) return (bool)(ret) } @@ -809,7 +856,7 @@ func QFileDialog_TrUtf83(s string, c string, n int) string { return ret } -func (this *QFileDialog) SetOption2(option uintptr, on bool) { +func (this *QFileDialog) SetOption2(option QFileDialog__Option, on bool) { C.QFileDialog_SetOption2(this.h, (C.uintptr_t)(option), (C.bool)(on)) } diff --git a/qt/gen_qfileiconprovider.go b/qt/gen_qfileiconprovider.go index 0f3e9e2e..648afeb8 100644 --- a/qt/gen_qfileiconprovider.go +++ b/qt/gen_qfileiconprovider.go @@ -13,6 +13,24 @@ import ( "unsafe" ) +type QFileIconProvider__IconType int + +const ( + QFileIconProvider__IconType__Computer QFileIconProvider__IconType = 0 + QFileIconProvider__IconType__Desktop QFileIconProvider__IconType = 1 + QFileIconProvider__IconType__Trashcan QFileIconProvider__IconType = 2 + QFileIconProvider__IconType__Network QFileIconProvider__IconType = 3 + QFileIconProvider__IconType__Drive QFileIconProvider__IconType = 4 + QFileIconProvider__IconType__Folder QFileIconProvider__IconType = 5 + QFileIconProvider__IconType__File QFileIconProvider__IconType = 6 +) + +type QFileIconProvider__Option int + +const ( + QFileIconProvider__Option__DontUseCustomDirectoryIcons QFileIconProvider__Option = 1 +) + type QFileIconProvider struct { h *C.QFileIconProvider } @@ -41,7 +59,7 @@ func NewQFileIconProvider() *QFileIconProvider { return newQFileIconProvider(ret) } -func (this *QFileIconProvider) Icon(typeVal uintptr) *QIcon { +func (this *QFileIconProvider) Icon(typeVal QFileIconProvider__IconType) *QIcon { ret := C.QFileIconProvider_Icon(this.h, (C.uintptr_t)(typeVal)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQIcon(ret) diff --git a/qt/gen_qfilesystemmodel.go b/qt/gen_qfilesystemmodel.go index 1a6179e8..68670497 100644 --- a/qt/gen_qfilesystemmodel.go +++ b/qt/gen_qfilesystemmodel.go @@ -14,6 +14,23 @@ import ( "unsafe" ) +type QFileSystemModel__Roles int + +const ( + QFileSystemModel__Roles__FileIconRole QFileSystemModel__Roles = 1 + QFileSystemModel__Roles__FilePathRole QFileSystemModel__Roles = 257 + QFileSystemModel__Roles__FileNameRole QFileSystemModel__Roles = 258 + QFileSystemModel__Roles__FilePermissions QFileSystemModel__Roles = 259 +) + +type QFileSystemModel__Option int + +const ( + QFileSystemModel__Option__DontWatchForChanges QFileSystemModel__Option = 1 + QFileSystemModel__Option__DontResolveSymlinks QFileSystemModel__Option = 2 + QFileSystemModel__Option__DontUseCustomDirectoryIcons QFileSystemModel__Option = 4 +) + type QFileSystemModel struct { h *C.QFileSystemModel *QAbstractItemModel @@ -219,7 +236,7 @@ func (this *QFileSystemModel) SetData(index *QModelIndex, value *QVariant) bool return (bool)(ret) } -func (this *QFileSystemModel) HeaderData(section int, orientation uintptr) *QVariant { +func (this *QFileSystemModel) HeaderData(section int, orientation Orientation) *QVariant { ret := C.QFileSystemModel_HeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -265,7 +282,7 @@ func (this *QFileSystemModel) MimeData(indexes []QModelIndex) *QMimeData { return newQMimeData_U(unsafe.Pointer(ret)) } -func (this *QFileSystemModel) DropMimeData(data *QMimeData, action uintptr, row int, column int, parent *QModelIndex) bool { +func (this *QFileSystemModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool { ret := C.QFileSystemModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()) return (bool)(ret) } @@ -383,11 +400,11 @@ func (this *QFileSystemModel) NameFilters() []string { return ret } -func (this *QFileSystemModel) SetOption(option uintptr) { +func (this *QFileSystemModel) SetOption(option QFileSystemModel__Option) { C.QFileSystemModel_SetOption(this.h, (C.uintptr_t)(option)) } -func (this *QFileSystemModel) TestOption(option uintptr) bool { +func (this *QFileSystemModel) TestOption(option QFileSystemModel__Option) bool { ret := C.QFileSystemModel_TestOption(this.h, (C.uintptr_t)(option)) return (bool)(ret) } @@ -617,7 +634,7 @@ func (this *QFileSystemModel) SetData3(index *QModelIndex, value *QVariant, role return (bool)(ret) } -func (this *QFileSystemModel) HeaderData3(section int, orientation uintptr, role int) *QVariant { +func (this *QFileSystemModel) HeaderData3(section int, orientation Orientation, role int) *QVariant { ret := C.QFileSystemModel_HeaderData3(this.h, (C.int)(section), (C.uintptr_t)(orientation), (C.int)(role)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -628,11 +645,11 @@ func (this *QFileSystemModel) HeaderData3(section int, orientation uintptr, role return ret1 } -func (this *QFileSystemModel) Sort2(column int, order uintptr) { +func (this *QFileSystemModel) Sort2(column int, order SortOrder) { C.QFileSystemModel_Sort2(this.h, (C.int)(column), (C.uintptr_t)(order)) } -func (this *QFileSystemModel) SetOption2(option uintptr, on bool) { +func (this *QFileSystemModel) SetOption2(option QFileSystemModel__Option, on bool) { C.QFileSystemModel_SetOption2(this.h, (C.uintptr_t)(option), (C.bool)(on)) } diff --git a/qt/gen_qfont.go b/qt/gen_qfont.go index 99048f25..5001450d 100644 --- a/qt/gen_qfont.go +++ b/qt/gen_qfont.go @@ -13,6 +13,131 @@ import ( "unsafe" ) +type QFont__StyleHint int + +const ( + QFont__StyleHint__Helvetica QFont__StyleHint = 0 + QFont__StyleHint__SansSerif QFont__StyleHint = 0 + QFont__StyleHint__Times QFont__StyleHint = 1 + QFont__StyleHint__Serif QFont__StyleHint = 1 + QFont__StyleHint__Courier QFont__StyleHint = 2 + QFont__StyleHint__TypeWriter QFont__StyleHint = 2 + QFont__StyleHint__OldEnglish QFont__StyleHint = 3 + QFont__StyleHint__Decorative QFont__StyleHint = 3 + QFont__StyleHint__System QFont__StyleHint = 4 + QFont__StyleHint__AnyStyle QFont__StyleHint = 5 + QFont__StyleHint__Cursive QFont__StyleHint = 6 + QFont__StyleHint__Monospace QFont__StyleHint = 7 + QFont__StyleHint__Fantasy QFont__StyleHint = 8 +) + +type QFont__StyleStrategy int + +const ( + QFont__StyleStrategy__PreferDefault QFont__StyleStrategy = 1 + QFont__StyleStrategy__PreferBitmap QFont__StyleStrategy = 2 + QFont__StyleStrategy__PreferDevice QFont__StyleStrategy = 4 + QFont__StyleStrategy__PreferOutline QFont__StyleStrategy = 8 + QFont__StyleStrategy__ForceOutline QFont__StyleStrategy = 16 + QFont__StyleStrategy__PreferMatch QFont__StyleStrategy = 32 + QFont__StyleStrategy__PreferQuality QFont__StyleStrategy = 64 + QFont__StyleStrategy__PreferAntialias QFont__StyleStrategy = 128 + QFont__StyleStrategy__NoAntialias QFont__StyleStrategy = 256 + QFont__StyleStrategy__OpenGLCompatible QFont__StyleStrategy = 512 + QFont__StyleStrategy__ForceIntegerMetrics QFont__StyleStrategy = 1024 + QFont__StyleStrategy__NoSubpixelAntialias QFont__StyleStrategy = 2048 + QFont__StyleStrategy__PreferNoShaping QFont__StyleStrategy = 4096 + QFont__StyleStrategy__NoFontMerging QFont__StyleStrategy = 32768 +) + +type QFont__HintingPreference int + +const ( + QFont__HintingPreference__PreferDefaultHinting QFont__HintingPreference = 0 + QFont__HintingPreference__PreferNoHinting QFont__HintingPreference = 1 + QFont__HintingPreference__PreferVerticalHinting QFont__HintingPreference = 2 + QFont__HintingPreference__PreferFullHinting QFont__HintingPreference = 3 +) + +type QFont__Weight int + +const ( + QFont__Weight__Thin QFont__Weight = 0 + QFont__Weight__ExtraLight QFont__Weight = 12 + QFont__Weight__Light QFont__Weight = 25 + QFont__Weight__Normal QFont__Weight = 50 + QFont__Weight__Medium QFont__Weight = 57 + QFont__Weight__DemiBold QFont__Weight = 63 + QFont__Weight__Bold QFont__Weight = 75 + QFont__Weight__ExtraBold QFont__Weight = 81 + QFont__Weight__Black QFont__Weight = 87 +) + +type QFont__Style int + +const ( + QFont__Style__StyleNormal QFont__Style = 0 + QFont__Style__StyleItalic QFont__Style = 1 + QFont__Style__StyleOblique QFont__Style = 2 +) + +type QFont__Stretch int + +const ( + QFont__Stretch__AnyStretch QFont__Stretch = 0 + QFont__Stretch__UltraCondensed QFont__Stretch = 50 + QFont__Stretch__ExtraCondensed QFont__Stretch = 62 + QFont__Stretch__Condensed QFont__Stretch = 75 + QFont__Stretch__SemiCondensed QFont__Stretch = 87 + QFont__Stretch__Unstretched QFont__Stretch = 100 + QFont__Stretch__SemiExpanded QFont__Stretch = 112 + QFont__Stretch__Expanded QFont__Stretch = 125 + QFont__Stretch__ExtraExpanded QFont__Stretch = 150 + QFont__Stretch__UltraExpanded QFont__Stretch = 200 +) + +type QFont__Capitalization int + +const ( + QFont__Capitalization__MixedCase QFont__Capitalization = 0 + QFont__Capitalization__AllUppercase QFont__Capitalization = 1 + QFont__Capitalization__AllLowercase QFont__Capitalization = 2 + QFont__Capitalization__SmallCaps QFont__Capitalization = 3 + QFont__Capitalization__Capitalize QFont__Capitalization = 4 +) + +type QFont__SpacingType int + +const ( + QFont__SpacingType__PercentageSpacing QFont__SpacingType = 0 + QFont__SpacingType__AbsoluteSpacing QFont__SpacingType = 1 +) + +type QFont__ResolveProperties int + +const ( + QFont__ResolveProperties__NoPropertiesResolved QFont__ResolveProperties = 0 + QFont__ResolveProperties__FamilyResolved QFont__ResolveProperties = 1 + QFont__ResolveProperties__SizeResolved QFont__ResolveProperties = 2 + QFont__ResolveProperties__StyleHintResolved QFont__ResolveProperties = 4 + QFont__ResolveProperties__StyleStrategyResolved QFont__ResolveProperties = 8 + QFont__ResolveProperties__WeightResolved QFont__ResolveProperties = 16 + QFont__ResolveProperties__StyleResolved QFont__ResolveProperties = 32 + QFont__ResolveProperties__UnderlineResolved QFont__ResolveProperties = 64 + QFont__ResolveProperties__OverlineResolved QFont__ResolveProperties = 128 + QFont__ResolveProperties__StrikeOutResolved QFont__ResolveProperties = 256 + QFont__ResolveProperties__FixedPitchResolved QFont__ResolveProperties = 512 + QFont__ResolveProperties__StretchResolved QFont__ResolveProperties = 1024 + QFont__ResolveProperties__KerningResolved QFont__ResolveProperties = 2048 + QFont__ResolveProperties__CapitalizationResolved QFont__ResolveProperties = 4096 + QFont__ResolveProperties__LetterSpacingResolved QFont__ResolveProperties = 8192 + QFont__ResolveProperties__WordSpacingResolved QFont__ResolveProperties = 16384 + QFont__ResolveProperties__HintingPreferenceResolved QFont__ResolveProperties = 32768 + QFont__ResolveProperties__StyleNameResolved QFont__ResolveProperties = 65536 + QFont__ResolveProperties__FamiliesResolved QFont__ResolveProperties = 131072 + QFont__ResolveProperties__AllPropertiesResolved QFont__ResolveProperties = 262143 +) + type QFont struct { h *C.QFont } @@ -200,13 +325,13 @@ func (this *QFont) SetBold(bold bool) { C.QFont_SetBold(this.h, (C.bool)(bold)) } -func (this *QFont) SetStyle(style uintptr) { +func (this *QFont) SetStyle(style QFont__Style) { C.QFont_SetStyle(this.h, (C.uintptr_t)(style)) } -func (this *QFont) Style() uintptr { +func (this *QFont) Style() QFont__Style { ret := C.QFont_Style(this.h) - return (uintptr)(ret) + return (QFont__Style)(ret) } func (this *QFont) Italic() bool { @@ -263,21 +388,21 @@ func (this *QFont) SetKerning(kerning bool) { C.QFont_SetKerning(this.h, (C.bool)(kerning)) } -func (this *QFont) StyleHint() uintptr { +func (this *QFont) StyleHint() QFont__StyleHint { ret := C.QFont_StyleHint(this.h) - return (uintptr)(ret) + return (QFont__StyleHint)(ret) } -func (this *QFont) StyleStrategy() uintptr { +func (this *QFont) StyleStrategy() QFont__StyleStrategy { ret := C.QFont_StyleStrategy(this.h) - return (uintptr)(ret) + return (QFont__StyleStrategy)(ret) } -func (this *QFont) SetStyleHint(param1 uintptr) { +func (this *QFont) SetStyleHint(param1 QFont__StyleHint) { C.QFont_SetStyleHint(this.h, (C.uintptr_t)(param1)) } -func (this *QFont) SetStyleStrategy(s uintptr) { +func (this *QFont) SetStyleStrategy(s QFont__StyleStrategy) { C.QFont_SetStyleStrategy(this.h, (C.uintptr_t)(s)) } @@ -295,12 +420,12 @@ func (this *QFont) LetterSpacing() float64 { return (float64)(ret) } -func (this *QFont) LetterSpacingType() uintptr { +func (this *QFont) LetterSpacingType() QFont__SpacingType { ret := C.QFont_LetterSpacingType(this.h) - return (uintptr)(ret) + return (QFont__SpacingType)(ret) } -func (this *QFont) SetLetterSpacing(typeVal uintptr, spacing float64) { +func (this *QFont) SetLetterSpacing(typeVal QFont__SpacingType, spacing float64) { C.QFont_SetLetterSpacing(this.h, (C.uintptr_t)(typeVal), (C.double)(spacing)) } @@ -313,22 +438,22 @@ func (this *QFont) SetWordSpacing(spacing float64) { C.QFont_SetWordSpacing(this.h, (C.double)(spacing)) } -func (this *QFont) SetCapitalization(capitalization uintptr) { +func (this *QFont) SetCapitalization(capitalization QFont__Capitalization) { C.QFont_SetCapitalization(this.h, (C.uintptr_t)(capitalization)) } -func (this *QFont) Capitalization() uintptr { +func (this *QFont) Capitalization() QFont__Capitalization { ret := C.QFont_Capitalization(this.h) - return (uintptr)(ret) + return (QFont__Capitalization)(ret) } -func (this *QFont) SetHintingPreference(hintingPreference uintptr) { +func (this *QFont) SetHintingPreference(hintingPreference QFont__HintingPreference) { C.QFont_SetHintingPreference(this.h, (C.uintptr_t)(hintingPreference)) } -func (this *QFont) HintingPreference() uintptr { +func (this *QFont) HintingPreference() QFont__HintingPreference { ret := C.QFont_HintingPreference(this.h) - return (uintptr)(ret) + return (QFont__HintingPreference)(ret) } func (this *QFont) RawMode() bool { @@ -542,7 +667,7 @@ func (this *QFont) ResolveWithMask(mask uint) { C.QFont_ResolveWithMask(this.h, (C.uint)(mask)) } -func (this *QFont) SetStyleHint2(param1 uintptr, param2 uintptr) { +func (this *QFont) SetStyleHint2(param1 QFont__StyleHint, param2 QFont__StyleStrategy) { C.QFont_SetStyleHint2(this.h, (C.uintptr_t)(param1), (C.uintptr_t)(param2)) } diff --git a/qt/gen_qfontcombobox.go b/qt/gen_qfontcombobox.go index d814a7ab..a8626682 100644 --- a/qt/gen_qfontcombobox.go +++ b/qt/gen_qfontcombobox.go @@ -14,6 +14,16 @@ import ( "unsafe" ) +type QFontComboBox__FontFilter int + +const ( + QFontComboBox__FontFilter__AllFonts QFontComboBox__FontFilter = 0 + QFontComboBox__FontFilter__ScalableFonts QFontComboBox__FontFilter = 1 + QFontComboBox__FontFilter__NonScalableFonts QFontComboBox__FontFilter = 2 + QFontComboBox__FontFilter__MonospacedFonts QFontComboBox__FontFilter = 4 + QFontComboBox__FontFilter__ProportionalFonts QFontComboBox__FontFilter = 8 +) + type QFontComboBox struct { h *C.QFontComboBox *QComboBox @@ -76,13 +86,13 @@ func QFontComboBox_TrUtf8(s string) string { return ret } -func (this *QFontComboBox) SetWritingSystem(writingSystem uintptr) { +func (this *QFontComboBox) SetWritingSystem(writingSystem QFontDatabase__WritingSystem) { C.QFontComboBox_SetWritingSystem(this.h, (C.uintptr_t)(writingSystem)) } -func (this *QFontComboBox) WritingSystem() uintptr { +func (this *QFontComboBox) WritingSystem() QFontDatabase__WritingSystem { ret := C.QFontComboBox_WritingSystem(this.h) - return (uintptr)(ret) + return (QFontDatabase__WritingSystem)(ret) } func (this *QFontComboBox) SetFontFilters(filters int) { diff --git a/qt/gen_qfontdatabase.go b/qt/gen_qfontdatabase.go index 3cd19294..5a98e856 100644 --- a/qt/gen_qfontdatabase.go +++ b/qt/gen_qfontdatabase.go @@ -13,6 +13,56 @@ import ( "unsafe" ) +type QFontDatabase__WritingSystem int + +const ( + QFontDatabase__WritingSystem__Any QFontDatabase__WritingSystem = 0 + QFontDatabase__WritingSystem__Latin QFontDatabase__WritingSystem = 1 + QFontDatabase__WritingSystem__Greek QFontDatabase__WritingSystem = 2 + QFontDatabase__WritingSystem__Cyrillic QFontDatabase__WritingSystem = 3 + QFontDatabase__WritingSystem__Armenian QFontDatabase__WritingSystem = 4 + QFontDatabase__WritingSystem__Hebrew QFontDatabase__WritingSystem = 5 + QFontDatabase__WritingSystem__Arabic QFontDatabase__WritingSystem = 6 + QFontDatabase__WritingSystem__Syriac QFontDatabase__WritingSystem = 7 + QFontDatabase__WritingSystem__Thaana QFontDatabase__WritingSystem = 8 + QFontDatabase__WritingSystem__Devanagari QFontDatabase__WritingSystem = 9 + QFontDatabase__WritingSystem__Bengali QFontDatabase__WritingSystem = 10 + QFontDatabase__WritingSystem__Gurmukhi QFontDatabase__WritingSystem = 11 + QFontDatabase__WritingSystem__Gujarati QFontDatabase__WritingSystem = 12 + QFontDatabase__WritingSystem__Oriya QFontDatabase__WritingSystem = 13 + QFontDatabase__WritingSystem__Tamil QFontDatabase__WritingSystem = 14 + QFontDatabase__WritingSystem__Telugu QFontDatabase__WritingSystem = 15 + QFontDatabase__WritingSystem__Kannada QFontDatabase__WritingSystem = 16 + QFontDatabase__WritingSystem__Malayalam QFontDatabase__WritingSystem = 17 + QFontDatabase__WritingSystem__Sinhala QFontDatabase__WritingSystem = 18 + QFontDatabase__WritingSystem__Thai QFontDatabase__WritingSystem = 19 + QFontDatabase__WritingSystem__Lao QFontDatabase__WritingSystem = 20 + QFontDatabase__WritingSystem__Tibetan QFontDatabase__WritingSystem = 21 + QFontDatabase__WritingSystem__Myanmar QFontDatabase__WritingSystem = 22 + QFontDatabase__WritingSystem__Georgian QFontDatabase__WritingSystem = 23 + QFontDatabase__WritingSystem__Khmer QFontDatabase__WritingSystem = 24 + QFontDatabase__WritingSystem__SimplifiedChinese QFontDatabase__WritingSystem = 25 + QFontDatabase__WritingSystem__TraditionalChinese QFontDatabase__WritingSystem = 26 + QFontDatabase__WritingSystem__Japanese QFontDatabase__WritingSystem = 27 + QFontDatabase__WritingSystem__Korean QFontDatabase__WritingSystem = 28 + QFontDatabase__WritingSystem__Vietnamese QFontDatabase__WritingSystem = 29 + QFontDatabase__WritingSystem__Symbol QFontDatabase__WritingSystem = 30 + QFontDatabase__WritingSystem__Other QFontDatabase__WritingSystem = 30 + QFontDatabase__WritingSystem__Ogham QFontDatabase__WritingSystem = 31 + QFontDatabase__WritingSystem__Runic QFontDatabase__WritingSystem = 32 + QFontDatabase__WritingSystem__Nko QFontDatabase__WritingSystem = 33 + QFontDatabase__WritingSystem__WritingSystemsCount QFontDatabase__WritingSystem = 34 +) + +type QFontDatabase__SystemFont int + +const ( + QFontDatabase__SystemFont__GeneralFont QFontDatabase__SystemFont = 0 + QFontDatabase__SystemFont__FixedFont QFontDatabase__SystemFont = 1 + QFontDatabase__SystemFont__TitleFont QFontDatabase__SystemFont = 2 + QFontDatabase__SystemFont__SmallestReadableFont QFontDatabase__SystemFont = 3 +) + type QFontDatabase struct { h *C.QFontDatabase } @@ -54,29 +104,29 @@ func QFontDatabase_StandardSizes() []int { return ret } -func (this *QFontDatabase) WritingSystems() []uintptr { +func (this *QFontDatabase) WritingSystems() []QFontDatabase__WritingSystem { var _out *C.uintptr_t = nil var _out_len C.size_t = 0 C.QFontDatabase_WritingSystems(this.h, &_out, &_out_len) - ret := make([]uintptr, int(_out_len)) + ret := make([]QFontDatabase__WritingSystem, int(_out_len)) _outCast := (*[0xffff]C.uintptr_t)(unsafe.Pointer(_out)) // mrs jackson for i := 0; i < int(_out_len); i++ { - ret[i] = (uintptr)(_outCast[i]) + ret[i] = (QFontDatabase__WritingSystem)(_outCast[i]) } C.free(unsafe.Pointer(_out)) return ret } -func (this *QFontDatabase) WritingSystemsWithFamily(family string) []uintptr { +func (this *QFontDatabase) WritingSystemsWithFamily(family string) []QFontDatabase__WritingSystem { family_Cstring := C.CString(family) defer C.free(unsafe.Pointer(family_Cstring)) var _out *C.uintptr_t = nil var _out_len C.size_t = 0 C.QFontDatabase_WritingSystemsWithFamily(this.h, family_Cstring, C.size_t(len(family)), &_out, &_out_len) - ret := make([]uintptr, int(_out_len)) + ret := make([]QFontDatabase__WritingSystem, int(_out_len)) _outCast := (*[0xffff]C.uintptr_t)(unsafe.Pointer(_out)) // mrs jackson for i := 0; i < int(_out_len); i++ { - ret[i] = (uintptr)(_outCast[i]) + ret[i] = (QFontDatabase__WritingSystem)(_outCast[i]) } C.free(unsafe.Pointer(_out)) return ret @@ -248,7 +298,7 @@ func (this *QFontDatabase) IsPrivateFamily(family string) bool { return (bool)(ret) } -func QFontDatabase_WritingSystemName(writingSystem uintptr) string { +func QFontDatabase_WritingSystemName(writingSystem QFontDatabase__WritingSystem) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QFontDatabase_WritingSystemName((C.uintptr_t)(writingSystem), &_out, &_out_Strlen) @@ -257,7 +307,7 @@ func QFontDatabase_WritingSystemName(writingSystem uintptr) string { return ret } -func QFontDatabase_WritingSystemSample(writingSystem uintptr) string { +func QFontDatabase_WritingSystemSample(writingSystem QFontDatabase__WritingSystem) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QFontDatabase_WritingSystemSample((C.uintptr_t)(writingSystem), &_out, &_out_Strlen) @@ -308,7 +358,7 @@ func QFontDatabase_SupportsThreadedFontRendering() bool { return (bool)(ret) } -func QFontDatabase_SystemFont(typeVal uintptr) *QFont { +func QFontDatabase_SystemFont(typeVal QFontDatabase__SystemFont) *QFont { ret := C.QFontDatabase_SystemFont((C.uintptr_t)(typeVal)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQFont(ret) @@ -319,7 +369,7 @@ func QFontDatabase_SystemFont(typeVal uintptr) *QFont { return ret1 } -func (this *QFontDatabase) Families1(writingSystem uintptr) []string { +func (this *QFontDatabase) Families1(writingSystem QFontDatabase__WritingSystem) []string { var _out **C.char = nil var _out_Lengths *C.int = nil var _out_len C.size_t = 0 diff --git a/qt/gen_qfontdialog.go b/qt/gen_qfontdialog.go index 7a52df7f..813dd5aa 100644 --- a/qt/gen_qfontdialog.go +++ b/qt/gen_qfontdialog.go @@ -14,6 +14,17 @@ import ( "unsafe" ) +type QFontDialog__FontDialogOption int + +const ( + QFontDialog__FontDialogOption__NoButtons QFontDialog__FontDialogOption = 1 + QFontDialog__FontDialogOption__DontUseNativeDialog QFontDialog__FontDialogOption = 2 + QFontDialog__FontDialogOption__ScalableFonts QFontDialog__FontDialogOption = 4 + QFontDialog__FontDialogOption__NonScalableFonts QFontDialog__FontDialogOption = 8 + QFontDialog__FontDialogOption__MonospacedFonts QFontDialog__FontDialogOption = 16 + QFontDialog__FontDialogOption__ProportionalFonts QFontDialog__FontDialogOption = 32 +) + type QFontDialog struct { h *C.QFontDialog *QDialog @@ -114,11 +125,11 @@ func (this *QFontDialog) SelectedFont() *QFont { return ret1 } -func (this *QFontDialog) SetOption(option uintptr) { +func (this *QFontDialog) SetOption(option QFontDialog__FontDialogOption) { C.QFontDialog_SetOption(this.h, (C.uintptr_t)(option)) } -func (this *QFontDialog) TestOption(option uintptr) bool { +func (this *QFontDialog) TestOption(option QFontDialog__FontDialogOption) bool { ret := C.QFontDialog_TestOption(this.h, (C.uintptr_t)(option)) return (bool)(ret) } @@ -234,7 +245,7 @@ func QFontDialog_TrUtf83(s string, c string, n int) string { return ret } -func (this *QFontDialog) SetOption2(option uintptr, on bool) { +func (this *QFontDialog) SetOption2(option QFontDialog__FontDialogOption, on bool) { C.QFontDialog_SetOption2(this.h, (C.uintptr_t)(option), (C.bool)(on)) } diff --git a/qt/gen_qfontinfo.go b/qt/gen_qfontinfo.go index b48784aa..78758597 100644 --- a/qt/gen_qfontinfo.go +++ b/qt/gen_qfontinfo.go @@ -92,9 +92,9 @@ func (this *QFontInfo) Italic() bool { return (bool)(ret) } -func (this *QFontInfo) Style() uintptr { +func (this *QFontInfo) Style() QFont__Style { ret := C.QFontInfo_Style(this.h) - return (uintptr)(ret) + return (QFont__Style)(ret) } func (this *QFontInfo) Weight() int { @@ -127,9 +127,9 @@ func (this *QFontInfo) FixedPitch() bool { return (bool)(ret) } -func (this *QFontInfo) StyleHint() uintptr { +func (this *QFontInfo) StyleHint() QFont__StyleHint { ret := C.QFontInfo_StyleHint(this.h) - return (uintptr)(ret) + return (QFont__StyleHint)(ret) } func (this *QFontInfo) RawMode() bool { diff --git a/qt/gen_qfontmetrics.go b/qt/gen_qfontmetrics.go index 1be61d04..4c6315c8 100644 --- a/qt/gen_qfontmetrics.go +++ b/qt/gen_qfontmetrics.go @@ -250,7 +250,7 @@ func (this *QFontMetrics) TightBoundingRect(text string) *QRect { return ret1 } -func (this *QFontMetrics) ElidedText(text string, mode uintptr, width int) string { +func (this *QFontMetrics) ElidedText(text string, mode TextElideMode, width int) string { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) var _out *C.char = nil @@ -388,7 +388,7 @@ func (this *QFontMetrics) Size4(flags int, str string, tabstops int, tabarray *i return ret1 } -func (this *QFontMetrics) ElidedText4(text string, mode uintptr, width int, flags int) string { +func (this *QFontMetrics) ElidedText4(text string, mode TextElideMode, width int, flags int) string { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) var _out *C.char = nil @@ -623,7 +623,7 @@ func (this *QFontMetricsF) TightBoundingRect(text string) *QRectF { return ret1 } -func (this *QFontMetricsF) ElidedText(text string, mode uintptr, width float64) string { +func (this *QFontMetricsF) ElidedText(text string, mode TextElideMode, width float64) string { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) var _out *C.char = nil @@ -728,7 +728,7 @@ func (this *QFontMetricsF) Size4(flags int, str string, tabstops int, tabarray * return ret1 } -func (this *QFontMetricsF) ElidedText4(text string, mode uintptr, width float64, flags int) string { +func (this *QFontMetricsF) ElidedText4(text string, mode TextElideMode, width float64, flags int) string { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) var _out *C.char = nil diff --git a/qt/gen_qformlayout.go b/qt/gen_qformlayout.go index 41d6e0e6..31128c41 100644 --- a/qt/gen_qformlayout.go +++ b/qt/gen_qformlayout.go @@ -13,6 +13,30 @@ import ( "unsafe" ) +type QFormLayout__FieldGrowthPolicy int + +const ( + QFormLayout__FieldGrowthPolicy__FieldsStayAtSizeHint QFormLayout__FieldGrowthPolicy = 0 + QFormLayout__FieldGrowthPolicy__ExpandingFieldsGrow QFormLayout__FieldGrowthPolicy = 1 + QFormLayout__FieldGrowthPolicy__AllNonFixedFieldsGrow QFormLayout__FieldGrowthPolicy = 2 +) + +type QFormLayout__RowWrapPolicy int + +const ( + QFormLayout__RowWrapPolicy__DontWrapRows QFormLayout__RowWrapPolicy = 0 + QFormLayout__RowWrapPolicy__WrapLongRows QFormLayout__RowWrapPolicy = 1 + QFormLayout__RowWrapPolicy__WrapAllRows QFormLayout__RowWrapPolicy = 2 +) + +type QFormLayout__ItemRole int + +const ( + QFormLayout__ItemRole__LabelRole QFormLayout__ItemRole = 0 + QFormLayout__ItemRole__FieldRole QFormLayout__ItemRole = 1 + QFormLayout__ItemRole__SpanningRole QFormLayout__ItemRole = 2 +) + type QFormLayout struct { h *C.QFormLayout *QLayout @@ -75,13 +99,13 @@ func QFormLayout_TrUtf8(s string) string { return ret } -func (this *QFormLayout) SetFieldGrowthPolicy(policy uintptr) { +func (this *QFormLayout) SetFieldGrowthPolicy(policy QFormLayout__FieldGrowthPolicy) { C.QFormLayout_SetFieldGrowthPolicy(this.h, (C.uintptr_t)(policy)) } -func (this *QFormLayout) FieldGrowthPolicy() uintptr { +func (this *QFormLayout) FieldGrowthPolicy() QFormLayout__FieldGrowthPolicy { ret := C.QFormLayout_FieldGrowthPolicy(this.h) - return (uintptr)(ret) + return (QFormLayout__FieldGrowthPolicy)(ret) } func (this *QFormLayout) SetRowWrapPolicy(policy int) { diff --git a/qt/gen_qframe.go b/qt/gen_qframe.go index 948a80c5..7b79995e 100644 --- a/qt/gen_qframe.go +++ b/qt/gen_qframe.go @@ -13,6 +13,33 @@ import ( "unsafe" ) +type QFrame__Shape int + +const ( + QFrame__Shape__NoFrame QFrame__Shape = 0 + QFrame__Shape__Box QFrame__Shape = 1 + QFrame__Shape__Panel QFrame__Shape = 2 + QFrame__Shape__WinPanel QFrame__Shape = 3 + QFrame__Shape__HLine QFrame__Shape = 4 + QFrame__Shape__VLine QFrame__Shape = 5 + QFrame__Shape__StyledPanel QFrame__Shape = 6 +) + +type QFrame__Shadow int + +const ( + QFrame__Shadow__Plain QFrame__Shadow = 16 + QFrame__Shadow__Raised QFrame__Shadow = 32 + QFrame__Shadow__Sunken QFrame__Shadow = 48 +) + +type QFrame__StyleMask int + +const ( + QFrame__StyleMask__Shadow_Mask QFrame__StyleMask = 240 + QFrame__StyleMask__Shape_Mask QFrame__StyleMask = 15 +) + type QFrame struct { h *C.QFrame *QWidget @@ -106,21 +133,21 @@ func (this *QFrame) SizeHint() *QSize { return ret1 } -func (this *QFrame) FrameShape() uintptr { +func (this *QFrame) FrameShape() QFrame__Shape { ret := C.QFrame_FrameShape(this.h) - return (uintptr)(ret) + return (QFrame__Shape)(ret) } -func (this *QFrame) SetFrameShape(frameShape uintptr) { +func (this *QFrame) SetFrameShape(frameShape QFrame__Shape) { C.QFrame_SetFrameShape(this.h, (C.uintptr_t)(frameShape)) } -func (this *QFrame) FrameShadow() uintptr { +func (this *QFrame) FrameShadow() QFrame__Shadow { ret := C.QFrame_FrameShadow(this.h) - return (uintptr)(ret) + return (QFrame__Shadow)(ret) } -func (this *QFrame) SetFrameShadow(frameShadow uintptr) { +func (this *QFrame) SetFrameShadow(frameShadow QFrame__Shadow) { C.QFrame_SetFrameShadow(this.h, (C.uintptr_t)(frameShadow)) } diff --git a/qt/gen_qfutureinterface.go b/qt/gen_qfutureinterface.go index 9ee2e7f5..5beee6c3 100644 --- a/qt/gen_qfutureinterface.go +++ b/qt/gen_qfutureinterface.go @@ -12,6 +12,18 @@ import ( "unsafe" ) +type QFutureInterfaceBase__State int + +const ( + QFutureInterfaceBase__State__NoState QFutureInterfaceBase__State = 0 + QFutureInterfaceBase__State__Running QFutureInterfaceBase__State = 1 + QFutureInterfaceBase__State__Started QFutureInterfaceBase__State = 2 + QFutureInterfaceBase__State__Finished QFutureInterfaceBase__State = 4 + QFutureInterfaceBase__State__Canceled QFutureInterfaceBase__State = 8 + QFutureInterfaceBase__State__Paused QFutureInterfaceBase__State = 16 + QFutureInterfaceBase__State__Throttled QFutureInterfaceBase__State = 32 +) + type QFutureInterfaceBase struct { h *C.QFutureInterfaceBase } @@ -47,7 +59,7 @@ func NewQFutureInterfaceBase2(other *QFutureInterfaceBase) *QFutureInterfaceBase } // NewQFutureInterfaceBase3 constructs a new QFutureInterfaceBase object. -func NewQFutureInterfaceBase3(initialState uintptr) *QFutureInterfaceBase { +func NewQFutureInterfaceBase3(initialState QFutureInterfaceBase__State) *QFutureInterfaceBase { ret := C.QFutureInterfaceBase_new3((C.uintptr_t)(initialState)) return newQFutureInterfaceBase(ret) } @@ -137,7 +149,7 @@ func (this *QFutureInterfaceBase) ResultCount() int { return (int)(ret) } -func (this *QFutureInterfaceBase) QueryState(state uintptr) bool { +func (this *QFutureInterfaceBase) QueryState(state QFutureInterfaceBase__State) bool { ret := C.QFutureInterfaceBase_QueryState(this.h, (C.uintptr_t)(state)) return (bool)(ret) } diff --git a/qt/gen_qgesture.go b/qt/gen_qgesture.go index 6b21981e..96a4087c 100644 --- a/qt/gen_qgesture.go +++ b/qt/gen_qgesture.go @@ -13,6 +13,31 @@ import ( "unsafe" ) +type QGesture__GestureCancelPolicy int + +const ( + QGesture__GestureCancelPolicy__CancelNone QGesture__GestureCancelPolicy = 0 + QGesture__GestureCancelPolicy__CancelAllInContext QGesture__GestureCancelPolicy = 1 +) + +type QPinchGesture__ChangeFlag int + +const ( + QPinchGesture__ChangeFlag__ScaleFactorChanged QPinchGesture__ChangeFlag = 1 + QPinchGesture__ChangeFlag__RotationAngleChanged QPinchGesture__ChangeFlag = 2 + QPinchGesture__ChangeFlag__CenterPointChanged QPinchGesture__ChangeFlag = 4 +) + +type QSwipeGesture__SwipeDirection int + +const ( + QSwipeGesture__SwipeDirection__NoDirection QSwipeGesture__SwipeDirection = 0 + QSwipeGesture__SwipeDirection__Left QSwipeGesture__SwipeDirection = 1 + QSwipeGesture__SwipeDirection__Right QSwipeGesture__SwipeDirection = 2 + QSwipeGesture__SwipeDirection__Up QSwipeGesture__SwipeDirection = 3 + QSwipeGesture__SwipeDirection__Down QSwipeGesture__SwipeDirection = 4 +) + type QGesture struct { h *C.QGesture *QObject @@ -75,14 +100,14 @@ func QGesture_TrUtf8(s string) string { return ret } -func (this *QGesture) GestureType() uintptr { +func (this *QGesture) GestureType() GestureType { ret := C.QGesture_GestureType(this.h) - return (uintptr)(ret) + return (GestureType)(ret) } -func (this *QGesture) State() uintptr { +func (this *QGesture) State() GestureState { ret := C.QGesture_State(this.h) - return (uintptr)(ret) + return (GestureState)(ret) } func (this *QGesture) HotSpot() *QPointF { @@ -109,13 +134,13 @@ func (this *QGesture) UnsetHotSpot() { C.QGesture_UnsetHotSpot(this.h) } -func (this *QGesture) SetGestureCancelPolicy(policy uintptr) { +func (this *QGesture) SetGestureCancelPolicy(policy QGesture__GestureCancelPolicy) { C.QGesture_SetGestureCancelPolicy(this.h, (C.uintptr_t)(policy)) } -func (this *QGesture) GestureCancelPolicy() uintptr { +func (this *QGesture) GestureCancelPolicy() QGesture__GestureCancelPolicy { ret := C.QGesture_GestureCancelPolicy(this.h) - return (uintptr)(ret) + return (QGesture__GestureCancelPolicy)(ret) } func QGesture_Tr2(s string, c string) string { @@ -639,14 +664,14 @@ func QSwipeGesture_TrUtf8(s string) string { return ret } -func (this *QSwipeGesture) HorizontalDirection() uintptr { +func (this *QSwipeGesture) HorizontalDirection() QSwipeGesture__SwipeDirection { ret := C.QSwipeGesture_HorizontalDirection(this.h) - return (uintptr)(ret) + return (QSwipeGesture__SwipeDirection)(ret) } -func (this *QSwipeGesture) VerticalDirection() uintptr { +func (this *QSwipeGesture) VerticalDirection() QSwipeGesture__SwipeDirection { ret := C.QSwipeGesture_VerticalDirection(this.h) - return (uintptr)(ret) + return (QSwipeGesture__SwipeDirection)(ret) } func (this *QSwipeGesture) SwipeAngle() float64 { @@ -1043,7 +1068,7 @@ func (this *QGestureEvent) Gestures() []*QGesture { return ret } -func (this *QGestureEvent) Gesture(typeVal uintptr) *QGesture { +func (this *QGestureEvent) Gesture(typeVal GestureType) *QGesture { ret := C.QGestureEvent_Gesture(this.h, (C.uintptr_t)(typeVal)) return newQGesture_U(unsafe.Pointer(ret)) } @@ -1091,19 +1116,19 @@ func (this *QGestureEvent) IsAccepted(param1 *QGesture) bool { return (bool)(ret) } -func (this *QGestureEvent) SetAccepted2(param1 uintptr, param2 bool) { +func (this *QGestureEvent) SetAccepted2(param1 GestureType, param2 bool) { C.QGestureEvent_SetAccepted2(this.h, (C.uintptr_t)(param1), (C.bool)(param2)) } -func (this *QGestureEvent) AcceptWithQtGestureType(param1 uintptr) { +func (this *QGestureEvent) AcceptWithQtGestureType(param1 GestureType) { C.QGestureEvent_AcceptWithQtGestureType(this.h, (C.uintptr_t)(param1)) } -func (this *QGestureEvent) IgnoreWithQtGestureType(param1 uintptr) { +func (this *QGestureEvent) IgnoreWithQtGestureType(param1 GestureType) { C.QGestureEvent_IgnoreWithQtGestureType(this.h, (C.uintptr_t)(param1)) } -func (this *QGestureEvent) IsAcceptedWithQtGestureType(param1 uintptr) bool { +func (this *QGestureEvent) IsAcceptedWithQtGestureType(param1 GestureType) bool { ret := C.QGestureEvent_IsAcceptedWithQtGestureType(this.h, (C.uintptr_t)(param1)) return (bool)(ret) } diff --git a/qt/gen_qgesturerecognizer.go b/qt/gen_qgesturerecognizer.go index ef3b8961..49b855aa 100644 --- a/qt/gen_qgesturerecognizer.go +++ b/qt/gen_qgesturerecognizer.go @@ -12,6 +12,19 @@ import ( "unsafe" ) +type QGestureRecognizer__ResultFlag int + +const ( + QGestureRecognizer__ResultFlag__Ignore QGestureRecognizer__ResultFlag = 1 + QGestureRecognizer__ResultFlag__MayBeGesture QGestureRecognizer__ResultFlag = 2 + QGestureRecognizer__ResultFlag__TriggerGesture QGestureRecognizer__ResultFlag = 4 + QGestureRecognizer__ResultFlag__FinishGesture QGestureRecognizer__ResultFlag = 8 + QGestureRecognizer__ResultFlag__CancelGesture QGestureRecognizer__ResultFlag = 16 + QGestureRecognizer__ResultFlag__ResultState_Mask QGestureRecognizer__ResultFlag = 255 + QGestureRecognizer__ResultFlag__ConsumeEventHint QGestureRecognizer__ResultFlag = 256 + QGestureRecognizer__ResultFlag__ResultHint_Mask QGestureRecognizer__ResultFlag = 65280 +) + type QGestureRecognizer struct { h *C.QGestureRecognizer } @@ -48,12 +61,12 @@ func (this *QGestureRecognizer) Reset(state *QGesture) { C.QGestureRecognizer_Reset(this.h, state.cPointer()) } -func QGestureRecognizer_RegisterRecognizer(recognizer *QGestureRecognizer) uintptr { +func QGestureRecognizer_RegisterRecognizer(recognizer *QGestureRecognizer) GestureType { ret := C.QGestureRecognizer_RegisterRecognizer(recognizer.cPointer()) - return (uintptr)(ret) + return (GestureType)(ret) } -func QGestureRecognizer_UnregisterRecognizer(typeVal uintptr) { +func QGestureRecognizer_UnregisterRecognizer(typeVal GestureType) { C.QGestureRecognizer_UnregisterRecognizer((C.uintptr_t)(typeVal)) } diff --git a/qt/gen_qglyphrun.go b/qt/gen_qglyphrun.go index 1bfba4c4..3f7ac9ec 100644 --- a/qt/gen_qglyphrun.go +++ b/qt/gen_qglyphrun.go @@ -13,6 +13,16 @@ import ( "unsafe" ) +type QGlyphRun__GlyphRunFlag int + +const ( + QGlyphRun__GlyphRunFlag__Overline QGlyphRun__GlyphRunFlag = 1 + QGlyphRun__GlyphRunFlag__Underline QGlyphRun__GlyphRunFlag = 2 + QGlyphRun__GlyphRunFlag__StrikeOut QGlyphRun__GlyphRunFlag = 4 + QGlyphRun__GlyphRunFlag__RightToLeft QGlyphRun__GlyphRunFlag = 8 + QGlyphRun__GlyphRunFlag__SplitLigature QGlyphRun__GlyphRunFlag = 16 +) + type QGlyphRun struct { h *C.QGlyphRun } @@ -170,7 +180,7 @@ func (this *QGlyphRun) IsRightToLeft() bool { return (bool)(ret) } -func (this *QGlyphRun) SetFlag(flag uintptr) { +func (this *QGlyphRun) SetFlag(flag QGlyphRun__GlyphRunFlag) { C.QGlyphRun_SetFlag(this.h, (C.uintptr_t)(flag)) } @@ -203,7 +213,7 @@ func (this *QGlyphRun) IsEmpty() bool { return (bool)(ret) } -func (this *QGlyphRun) SetFlag2(flag uintptr, enabled bool) { +func (this *QGlyphRun) SetFlag2(flag QGlyphRun__GlyphRunFlag, enabled bool) { C.QGlyphRun_SetFlag2(this.h, (C.uintptr_t)(flag), (C.bool)(enabled)) } diff --git a/qt/gen_qgraphicsanchorlayout.go b/qt/gen_qgraphicsanchorlayout.go index 6833cb72..a8604fc7 100644 --- a/qt/gen_qgraphicsanchorlayout.go +++ b/qt/gen_qgraphicsanchorlayout.go @@ -75,13 +75,13 @@ func (this *QGraphicsAnchor) Spacing() float64 { return (float64)(ret) } -func (this *QGraphicsAnchor) SetSizePolicy(policy uintptr) { +func (this *QGraphicsAnchor) SetSizePolicy(policy QSizePolicy__Policy) { C.QGraphicsAnchor_SetSizePolicy(this.h, (C.uintptr_t)(policy)) } -func (this *QGraphicsAnchor) SizePolicy() uintptr { +func (this *QGraphicsAnchor) SizePolicy() QSizePolicy__Policy { ret := C.QGraphicsAnchor_SizePolicy(this.h) - return (uintptr)(ret) + return (QSizePolicy__Policy)(ret) } func QGraphicsAnchor_Tr2(s string, c string) string { @@ -175,17 +175,17 @@ func NewQGraphicsAnchorLayout2(parent *QGraphicsLayoutItem) *QGraphicsAnchorLayo return newQGraphicsAnchorLayout(ret) } -func (this *QGraphicsAnchorLayout) AddAnchor(firstItem *QGraphicsLayoutItem, firstEdge uintptr, secondItem *QGraphicsLayoutItem, secondEdge uintptr) *QGraphicsAnchor { +func (this *QGraphicsAnchorLayout) AddAnchor(firstItem *QGraphicsLayoutItem, firstEdge AnchorPoint, secondItem *QGraphicsLayoutItem, secondEdge AnchorPoint) *QGraphicsAnchor { ret := C.QGraphicsAnchorLayout_AddAnchor(this.h, firstItem.cPointer(), (C.uintptr_t)(firstEdge), secondItem.cPointer(), (C.uintptr_t)(secondEdge)) return newQGraphicsAnchor_U(unsafe.Pointer(ret)) } -func (this *QGraphicsAnchorLayout) Anchor(firstItem *QGraphicsLayoutItem, firstEdge uintptr, secondItem *QGraphicsLayoutItem, secondEdge uintptr) *QGraphicsAnchor { +func (this *QGraphicsAnchorLayout) Anchor(firstItem *QGraphicsLayoutItem, firstEdge AnchorPoint, secondItem *QGraphicsLayoutItem, secondEdge AnchorPoint) *QGraphicsAnchor { ret := C.QGraphicsAnchorLayout_Anchor(this.h, firstItem.cPointer(), (C.uintptr_t)(firstEdge), secondItem.cPointer(), (C.uintptr_t)(secondEdge)) return newQGraphicsAnchor_U(unsafe.Pointer(ret)) } -func (this *QGraphicsAnchorLayout) AddCornerAnchors(firstItem *QGraphicsLayoutItem, firstCorner uintptr, secondItem *QGraphicsLayoutItem, secondCorner uintptr) { +func (this *QGraphicsAnchorLayout) AddCornerAnchors(firstItem *QGraphicsLayoutItem, firstCorner Corner, secondItem *QGraphicsLayoutItem, secondCorner Corner) { C.QGraphicsAnchorLayout_AddCornerAnchors(this.h, firstItem.cPointer(), (C.uintptr_t)(firstCorner), secondItem.cPointer(), (C.uintptr_t)(secondCorner)) } diff --git a/qt/gen_qgraphicseffect.go b/qt/gen_qgraphicseffect.go index 7f272301..03eb39a6 100644 --- a/qt/gen_qgraphicseffect.go +++ b/qt/gen_qgraphicseffect.go @@ -14,6 +14,31 @@ import ( "unsafe" ) +type QGraphicsEffect__ChangeFlag int + +const ( + QGraphicsEffect__ChangeFlag__SourceAttached QGraphicsEffect__ChangeFlag = 1 + QGraphicsEffect__ChangeFlag__SourceDetached QGraphicsEffect__ChangeFlag = 2 + QGraphicsEffect__ChangeFlag__SourceBoundingRectChanged QGraphicsEffect__ChangeFlag = 4 + QGraphicsEffect__ChangeFlag__SourceInvalidated QGraphicsEffect__ChangeFlag = 8 +) + +type QGraphicsEffect__PixmapPadMode int + +const ( + QGraphicsEffect__PixmapPadMode__NoPad QGraphicsEffect__PixmapPadMode = 0 + QGraphicsEffect__PixmapPadMode__PadToTransparentBorder QGraphicsEffect__PixmapPadMode = 1 + QGraphicsEffect__PixmapPadMode__PadToEffectiveBoundingRect QGraphicsEffect__PixmapPadMode = 2 +) + +type QGraphicsBlurEffect__BlurHint int + +const ( + QGraphicsBlurEffect__BlurHint__PerformanceHint QGraphicsBlurEffect__BlurHint = 0 + QGraphicsBlurEffect__BlurHint__QualityHint QGraphicsBlurEffect__BlurHint = 1 + QGraphicsBlurEffect__BlurHint__AnimationHint QGraphicsBlurEffect__BlurHint = 2 +) + type QGraphicsEffect struct { h *C.QGraphicsEffect *QObject diff --git a/qt/gen_qgraphicsgridlayout.go b/qt/gen_qgraphicsgridlayout.go index fd1186e9..77d85396 100644 --- a/qt/gen_qgraphicsgridlayout.go +++ b/qt/gen_qgraphicsgridlayout.go @@ -244,7 +244,7 @@ func (this *QGraphicsGridLayout) SetGeometry(rect *QRectF) { C.QGraphicsGridLayout_SetGeometry(this.h, rect.cPointer()) } -func (this *QGraphicsGridLayout) SizeHint(which uintptr) *QSizeF { +func (this *QGraphicsGridLayout) SizeHint(which SizeHint) *QSizeF { ret := C.QGraphicsGridLayout_SizeHint(this.h, (C.uintptr_t)(which)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSizeF(ret) @@ -263,7 +263,7 @@ func (this *QGraphicsGridLayout) AddItem4(item *QGraphicsLayoutItem, row int, co C.QGraphicsGridLayout_AddItem4(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(alignment)) } -func (this *QGraphicsGridLayout) SizeHint2(which uintptr, constraint *QSizeF) *QSizeF { +func (this *QGraphicsGridLayout) SizeHint2(which SizeHint, constraint *QSizeF) *QSizeF { ret := C.QGraphicsGridLayout_SizeHint2(this.h, (C.uintptr_t)(which), constraint.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSizeF(ret) diff --git a/qt/gen_qgraphicsitem.go b/qt/gen_qgraphicsitem.go index b8cb2fb5..1ae39d80 100644 --- a/qt/gen_qgraphicsitem.go +++ b/qt/gen_qgraphicsitem.go @@ -14,6 +14,155 @@ import ( "unsafe" ) +type QGraphicsItem__GraphicsItemFlag int + +const ( + QGraphicsItem__GraphicsItemFlag__ItemIsMovable QGraphicsItem__GraphicsItemFlag = 1 + QGraphicsItem__GraphicsItemFlag__ItemIsSelectable QGraphicsItem__GraphicsItemFlag = 2 + QGraphicsItem__GraphicsItemFlag__ItemIsFocusable QGraphicsItem__GraphicsItemFlag = 4 + QGraphicsItem__GraphicsItemFlag__ItemClipsToShape QGraphicsItem__GraphicsItemFlag = 8 + QGraphicsItem__GraphicsItemFlag__ItemClipsChildrenToShape QGraphicsItem__GraphicsItemFlag = 16 + QGraphicsItem__GraphicsItemFlag__ItemIgnoresTransformations QGraphicsItem__GraphicsItemFlag = 32 + QGraphicsItem__GraphicsItemFlag__ItemIgnoresParentOpacity QGraphicsItem__GraphicsItemFlag = 64 + QGraphicsItem__GraphicsItemFlag__ItemDoesntPropagateOpacityToChildren QGraphicsItem__GraphicsItemFlag = 128 + QGraphicsItem__GraphicsItemFlag__ItemStacksBehindParent QGraphicsItem__GraphicsItemFlag = 256 + QGraphicsItem__GraphicsItemFlag__ItemUsesExtendedStyleOption QGraphicsItem__GraphicsItemFlag = 512 + QGraphicsItem__GraphicsItemFlag__ItemHasNoContents QGraphicsItem__GraphicsItemFlag = 1024 + QGraphicsItem__GraphicsItemFlag__ItemSendsGeometryChanges QGraphicsItem__GraphicsItemFlag = 2048 + QGraphicsItem__GraphicsItemFlag__ItemAcceptsInputMethod QGraphicsItem__GraphicsItemFlag = 4096 + QGraphicsItem__GraphicsItemFlag__ItemNegativeZStacksBehindParent QGraphicsItem__GraphicsItemFlag = 8192 + QGraphicsItem__GraphicsItemFlag__ItemIsPanel QGraphicsItem__GraphicsItemFlag = 16384 + QGraphicsItem__GraphicsItemFlag__ItemIsFocusScope QGraphicsItem__GraphicsItemFlag = 32768 + QGraphicsItem__GraphicsItemFlag__ItemSendsScenePositionChanges QGraphicsItem__GraphicsItemFlag = 65536 + QGraphicsItem__GraphicsItemFlag__ItemStopsClickFocusPropagation QGraphicsItem__GraphicsItemFlag = 131072 + QGraphicsItem__GraphicsItemFlag__ItemStopsFocusHandling QGraphicsItem__GraphicsItemFlag = 262144 + QGraphicsItem__GraphicsItemFlag__ItemContainsChildrenInShape QGraphicsItem__GraphicsItemFlag = 524288 +) + +type QGraphicsItem__GraphicsItemChange int + +const ( + QGraphicsItem__GraphicsItemChange__ItemPositionChange QGraphicsItem__GraphicsItemChange = 0 + QGraphicsItem__GraphicsItemChange__ItemMatrixChange QGraphicsItem__GraphicsItemChange = 1 + QGraphicsItem__GraphicsItemChange__ItemVisibleChange QGraphicsItem__GraphicsItemChange = 2 + QGraphicsItem__GraphicsItemChange__ItemEnabledChange QGraphicsItem__GraphicsItemChange = 3 + QGraphicsItem__GraphicsItemChange__ItemSelectedChange QGraphicsItem__GraphicsItemChange = 4 + QGraphicsItem__GraphicsItemChange__ItemParentChange QGraphicsItem__GraphicsItemChange = 5 + QGraphicsItem__GraphicsItemChange__ItemChildAddedChange QGraphicsItem__GraphicsItemChange = 6 + QGraphicsItem__GraphicsItemChange__ItemChildRemovedChange QGraphicsItem__GraphicsItemChange = 7 + QGraphicsItem__GraphicsItemChange__ItemTransformChange QGraphicsItem__GraphicsItemChange = 8 + QGraphicsItem__GraphicsItemChange__ItemPositionHasChanged QGraphicsItem__GraphicsItemChange = 9 + QGraphicsItem__GraphicsItemChange__ItemTransformHasChanged QGraphicsItem__GraphicsItemChange = 10 + QGraphicsItem__GraphicsItemChange__ItemSceneChange QGraphicsItem__GraphicsItemChange = 11 + QGraphicsItem__GraphicsItemChange__ItemVisibleHasChanged QGraphicsItem__GraphicsItemChange = 12 + QGraphicsItem__GraphicsItemChange__ItemEnabledHasChanged QGraphicsItem__GraphicsItemChange = 13 + QGraphicsItem__GraphicsItemChange__ItemSelectedHasChanged QGraphicsItem__GraphicsItemChange = 14 + QGraphicsItem__GraphicsItemChange__ItemParentHasChanged QGraphicsItem__GraphicsItemChange = 15 + QGraphicsItem__GraphicsItemChange__ItemSceneHasChanged QGraphicsItem__GraphicsItemChange = 16 + QGraphicsItem__GraphicsItemChange__ItemCursorChange QGraphicsItem__GraphicsItemChange = 17 + QGraphicsItem__GraphicsItemChange__ItemCursorHasChanged QGraphicsItem__GraphicsItemChange = 18 + QGraphicsItem__GraphicsItemChange__ItemToolTipChange QGraphicsItem__GraphicsItemChange = 19 + QGraphicsItem__GraphicsItemChange__ItemToolTipHasChanged QGraphicsItem__GraphicsItemChange = 20 + QGraphicsItem__GraphicsItemChange__ItemFlagsChange QGraphicsItem__GraphicsItemChange = 21 + QGraphicsItem__GraphicsItemChange__ItemFlagsHaveChanged QGraphicsItem__GraphicsItemChange = 22 + QGraphicsItem__GraphicsItemChange__ItemZValueChange QGraphicsItem__GraphicsItemChange = 23 + QGraphicsItem__GraphicsItemChange__ItemZValueHasChanged QGraphicsItem__GraphicsItemChange = 24 + QGraphicsItem__GraphicsItemChange__ItemOpacityChange QGraphicsItem__GraphicsItemChange = 25 + QGraphicsItem__GraphicsItemChange__ItemOpacityHasChanged QGraphicsItem__GraphicsItemChange = 26 + QGraphicsItem__GraphicsItemChange__ItemScenePositionHasChanged QGraphicsItem__GraphicsItemChange = 27 + QGraphicsItem__GraphicsItemChange__ItemRotationChange QGraphicsItem__GraphicsItemChange = 28 + QGraphicsItem__GraphicsItemChange__ItemRotationHasChanged QGraphicsItem__GraphicsItemChange = 29 + QGraphicsItem__GraphicsItemChange__ItemScaleChange QGraphicsItem__GraphicsItemChange = 30 + QGraphicsItem__GraphicsItemChange__ItemScaleHasChanged QGraphicsItem__GraphicsItemChange = 31 + QGraphicsItem__GraphicsItemChange__ItemTransformOriginPointChange QGraphicsItem__GraphicsItemChange = 32 + QGraphicsItem__GraphicsItemChange__ItemTransformOriginPointHasChanged QGraphicsItem__GraphicsItemChange = 33 +) + +type QGraphicsItem__CacheMode int + +const ( + QGraphicsItem__CacheMode__NoCache QGraphicsItem__CacheMode = 0 + QGraphicsItem__CacheMode__ItemCoordinateCache QGraphicsItem__CacheMode = 1 + QGraphicsItem__CacheMode__DeviceCoordinateCache QGraphicsItem__CacheMode = 2 +) + +type QGraphicsItem__PanelModality int + +const ( + QGraphicsItem__PanelModality__NonModal QGraphicsItem__PanelModality = 0 + QGraphicsItem__PanelModality__PanelModal QGraphicsItem__PanelModality = 1 + QGraphicsItem__PanelModality__SceneModal QGraphicsItem__PanelModality = 2 +) + +type QGraphicsItem__ int + +const ( + QGraphicsItem____Type QGraphicsItem__ = 1 + QGraphicsItem____UserType QGraphicsItem__ = 65536 +) + +type QGraphicsPathItem__ int + +const ( + QGraphicsPathItem____Type QGraphicsPathItem__ = 2 +) + +type QGraphicsRectItem__ int + +const ( + QGraphicsRectItem____Type QGraphicsRectItem__ = 3 +) + +type QGraphicsEllipseItem__ int + +const ( + QGraphicsEllipseItem____Type QGraphicsEllipseItem__ = 4 +) + +type QGraphicsPolygonItem__ int + +const ( + QGraphicsPolygonItem____Type QGraphicsPolygonItem__ = 5 +) + +type QGraphicsLineItem__ int + +const ( + QGraphicsLineItem____Type QGraphicsLineItem__ = 6 +) + +type QGraphicsPixmapItem__ShapeMode int + +const ( + QGraphicsPixmapItem__ShapeMode__MaskShape QGraphicsPixmapItem__ShapeMode = 0 + QGraphicsPixmapItem__ShapeMode__BoundingRectShape QGraphicsPixmapItem__ShapeMode = 1 + QGraphicsPixmapItem__ShapeMode__HeuristicMaskShape QGraphicsPixmapItem__ShapeMode = 2 +) + +type QGraphicsPixmapItem__ int + +const ( + QGraphicsPixmapItem____Type QGraphicsPixmapItem__ = 7 +) + +type QGraphicsTextItem__ int + +const ( + QGraphicsTextItem____Type QGraphicsTextItem__ = 8 +) + +type QGraphicsSimpleTextItem__ int + +const ( + QGraphicsSimpleTextItem____Type QGraphicsSimpleTextItem__ = 9 +) + +type QGraphicsItemGroup__ int + +const ( + QGraphicsItemGroup____Type QGraphicsItemGroup__ = 10 +) + type QGraphicsItem struct { h *C.QGraphicsItem } @@ -132,7 +281,7 @@ func (this *QGraphicsItem) Flags() int { return (int)(ret) } -func (this *QGraphicsItem) SetFlag(flag uintptr) { +func (this *QGraphicsItem) SetFlag(flag QGraphicsItem__GraphicsItemFlag) { C.QGraphicsItem_SetFlag(this.h, (C.uintptr_t)(flag)) } @@ -140,21 +289,21 @@ func (this *QGraphicsItem) SetFlags(flags int) { C.QGraphicsItem_SetFlags(this.h, (C.int)(flags)) } -func (this *QGraphicsItem) CacheMode() uintptr { +func (this *QGraphicsItem) CacheMode() QGraphicsItem__CacheMode { ret := C.QGraphicsItem_CacheMode(this.h) - return (uintptr)(ret) + return (QGraphicsItem__CacheMode)(ret) } -func (this *QGraphicsItem) SetCacheMode(mode uintptr) { +func (this *QGraphicsItem) SetCacheMode(mode QGraphicsItem__CacheMode) { C.QGraphicsItem_SetCacheMode(this.h, (C.uintptr_t)(mode)) } -func (this *QGraphicsItem) PanelModality() uintptr { +func (this *QGraphicsItem) PanelModality() QGraphicsItem__PanelModality { ret := C.QGraphicsItem_PanelModality(this.h) - return (uintptr)(ret) + return (QGraphicsItem__PanelModality)(ret) } -func (this *QGraphicsItem) SetPanelModality(panelModality uintptr) { +func (this *QGraphicsItem) SetPanelModality(panelModality QGraphicsItem__PanelModality) { C.QGraphicsItem_SetPanelModality(this.h, (C.uintptr_t)(panelModality)) } @@ -1127,15 +1276,15 @@ func (this *QGraphicsItem) RemoveSceneEventFilter(filterItem *QGraphicsItem) { C.QGraphicsItem_RemoveSceneEventFilter(this.h, filterItem.cPointer()) } -func (this *QGraphicsItem) SetFlag2(flag uintptr, enabled bool) { +func (this *QGraphicsItem) SetFlag2(flag QGraphicsItem__GraphicsItemFlag, enabled bool) { C.QGraphicsItem_SetFlag2(this.h, (C.uintptr_t)(flag), (C.bool)(enabled)) } -func (this *QGraphicsItem) SetCacheMode2(mode uintptr, cacheSize *QSize) { +func (this *QGraphicsItem) SetCacheMode2(mode QGraphicsItem__CacheMode, cacheSize *QSize) { C.QGraphicsItem_SetCacheMode2(this.h, (C.uintptr_t)(mode), cacheSize.cPointer()) } -func (this *QGraphicsItem) SetFocus1(focusReason uintptr) { +func (this *QGraphicsItem) SetFocus1(focusReason FocusReason) { C.QGraphicsItem_SetFocus1(this.h, (C.uintptr_t)(focusReason)) } @@ -1178,17 +1327,17 @@ func (this *QGraphicsItem) SetTransform2(matrix *QTransform, combine bool) { C.QGraphicsItem_SetTransform2(this.h, matrix.cPointer(), (C.bool)(combine)) } -func (this *QGraphicsItem) CollidesWithItem2(other *QGraphicsItem, mode uintptr) bool { +func (this *QGraphicsItem) CollidesWithItem2(other *QGraphicsItem, mode ItemSelectionMode) bool { ret := C.QGraphicsItem_CollidesWithItem2(this.h, other.cPointer(), (C.uintptr_t)(mode)) return (bool)(ret) } -func (this *QGraphicsItem) CollidesWithPath2(path *QPainterPath, mode uintptr) bool { +func (this *QGraphicsItem) CollidesWithPath2(path *QPainterPath, mode ItemSelectionMode) bool { ret := C.QGraphicsItem_CollidesWithPath2(this.h, path.cPointer(), (C.uintptr_t)(mode)) return (bool)(ret) } -func (this *QGraphicsItem) CollidingItems1(mode uintptr) []*QGraphicsItem { +func (this *QGraphicsItem) CollidingItems1(mode ItemSelectionMode) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsItem_CollidingItems1(this.h, (C.uintptr_t)(mode), &_out, &_out_len) @@ -1273,11 +1422,11 @@ func QGraphicsObject_TrUtf8(s string) string { return ret } -func (this *QGraphicsObject) GrabGesture(typeVal uintptr) { +func (this *QGraphicsObject) GrabGesture(typeVal GestureType) { C.QGraphicsObject_GrabGesture(this.h, (C.uintptr_t)(typeVal)) } -func (this *QGraphicsObject) UngrabGesture(typeVal uintptr) { +func (this *QGraphicsObject) UngrabGesture(typeVal GestureType) { C.QGraphicsObject_UngrabGesture(this.h, (C.uintptr_t)(typeVal)) } @@ -1477,7 +1626,7 @@ func QGraphicsObject_TrUtf83(s string, c string, n int) string { return ret } -func (this *QGraphicsObject) GrabGesture2(typeVal uintptr, flags int) { +func (this *QGraphicsObject) GrabGesture2(typeVal GestureType, flags int) { C.QGraphicsObject_GrabGesture2(this.h, (C.uintptr_t)(typeVal), (C.int)(flags)) } @@ -2009,12 +2158,12 @@ func NewQGraphicsPolygonItem2(parent *QGraphicsItem) *QGraphicsPolygonItem { return newQGraphicsPolygonItem(ret) } -func (this *QGraphicsPolygonItem) FillRule() uintptr { +func (this *QGraphicsPolygonItem) FillRule() FillRule { ret := C.QGraphicsPolygonItem_FillRule(this.h) - return (uintptr)(ret) + return (FillRule)(ret) } -func (this *QGraphicsPolygonItem) SetFillRule(rule uintptr) { +func (this *QGraphicsPolygonItem) SetFillRule(rule FillRule) { C.QGraphicsPolygonItem_SetFillRule(this.h, (C.uintptr_t)(rule)) } @@ -2293,12 +2442,12 @@ func (this *QGraphicsPixmapItem) SetPixmap(pixmap *QPixmap) { C.QGraphicsPixmapItem_SetPixmap(this.h, pixmap.cPointer()) } -func (this *QGraphicsPixmapItem) TransformationMode() uintptr { +func (this *QGraphicsPixmapItem) TransformationMode() TransformationMode { ret := C.QGraphicsPixmapItem_TransformationMode(this.h) - return (uintptr)(ret) + return (TransformationMode)(ret) } -func (this *QGraphicsPixmapItem) SetTransformationMode(mode uintptr) { +func (this *QGraphicsPixmapItem) SetTransformationMode(mode TransformationMode) { C.QGraphicsPixmapItem_SetTransformationMode(this.h, (C.uintptr_t)(mode)) } @@ -2373,12 +2522,12 @@ func (this *QGraphicsPixmapItem) Type() int { return (int)(ret) } -func (this *QGraphicsPixmapItem) ShapeMode() uintptr { +func (this *QGraphicsPixmapItem) ShapeMode() QGraphicsPixmapItem__ShapeMode { ret := C.QGraphicsPixmapItem_ShapeMode(this.h) - return (uintptr)(ret) + return (QGraphicsPixmapItem__ShapeMode)(ret) } -func (this *QGraphicsPixmapItem) SetShapeMode(mode uintptr) { +func (this *QGraphicsPixmapItem) SetShapeMode(mode QGraphicsPixmapItem__ShapeMode) { C.QGraphicsPixmapItem_SetShapeMode(this.h, (C.uintptr_t)(mode)) } diff --git a/qt/gen_qgraphicslayoutitem.go b/qt/gen_qgraphicslayoutitem.go index 346da492..4712acf1 100644 --- a/qt/gen_qgraphicslayoutitem.go +++ b/qt/gen_qgraphicslayoutitem.go @@ -39,7 +39,7 @@ func (this *QGraphicsLayoutItem) SetSizePolicy(policy *QSizePolicy) { C.QGraphicsLayoutItem_SetSizePolicy(this.h, policy.cPointer()) } -func (this *QGraphicsLayoutItem) SetSizePolicy2(hPolicy uintptr, vPolicy uintptr) { +func (this *QGraphicsLayoutItem) SetSizePolicy2(hPolicy QSizePolicy__Policy, vPolicy QSizePolicy__Policy) { C.QGraphicsLayoutItem_SetSizePolicy2(this.h, (C.uintptr_t)(hPolicy), (C.uintptr_t)(vPolicy)) } @@ -195,7 +195,7 @@ func (this *QGraphicsLayoutItem) ContentsRect() *QRectF { return ret1 } -func (this *QGraphicsLayoutItem) EffectiveSizeHint(which uintptr) *QSizeF { +func (this *QGraphicsLayoutItem) EffectiveSizeHint(which SizeHint) *QSizeF { ret := C.QGraphicsLayoutItem_EffectiveSizeHint(this.h, (C.uintptr_t)(which)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSizeF(ret) @@ -234,11 +234,11 @@ func (this *QGraphicsLayoutItem) OwnedByLayout() bool { return (bool)(ret) } -func (this *QGraphicsLayoutItem) SetSizePolicy3(hPolicy uintptr, vPolicy uintptr, controlType uintptr) { +func (this *QGraphicsLayoutItem) SetSizePolicy3(hPolicy QSizePolicy__Policy, vPolicy QSizePolicy__Policy, controlType QSizePolicy__ControlType) { C.QGraphicsLayoutItem_SetSizePolicy3(this.h, (C.uintptr_t)(hPolicy), (C.uintptr_t)(vPolicy), (C.uintptr_t)(controlType)) } -func (this *QGraphicsLayoutItem) EffectiveSizeHint2(which uintptr, constraint *QSizeF) *QSizeF { +func (this *QGraphicsLayoutItem) EffectiveSizeHint2(which SizeHint, constraint *QSizeF) *QSizeF { ret := C.QGraphicsLayoutItem_EffectiveSizeHint2(this.h, (C.uintptr_t)(which), constraint.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSizeF(ret) diff --git a/qt/gen_qgraphicslinearlayout.go b/qt/gen_qgraphicslinearlayout.go index 8fd1843a..61062fe5 100644 --- a/qt/gen_qgraphicslinearlayout.go +++ b/qt/gen_qgraphicslinearlayout.go @@ -43,7 +43,7 @@ func NewQGraphicsLinearLayout() *QGraphicsLinearLayout { } // NewQGraphicsLinearLayout2 constructs a new QGraphicsLinearLayout object. -func NewQGraphicsLinearLayout2(orientation uintptr) *QGraphicsLinearLayout { +func NewQGraphicsLinearLayout2(orientation Orientation) *QGraphicsLinearLayout { ret := C.QGraphicsLinearLayout_new2((C.uintptr_t)(orientation)) return newQGraphicsLinearLayout(ret) } @@ -55,18 +55,18 @@ func NewQGraphicsLinearLayout3(parent *QGraphicsLayoutItem) *QGraphicsLinearLayo } // NewQGraphicsLinearLayout4 constructs a new QGraphicsLinearLayout object. -func NewQGraphicsLinearLayout4(orientation uintptr, parent *QGraphicsLayoutItem) *QGraphicsLinearLayout { +func NewQGraphicsLinearLayout4(orientation Orientation, parent *QGraphicsLayoutItem) *QGraphicsLinearLayout { ret := C.QGraphicsLinearLayout_new4((C.uintptr_t)(orientation), parent.cPointer()) return newQGraphicsLinearLayout(ret) } -func (this *QGraphicsLinearLayout) SetOrientation(orientation uintptr) { +func (this *QGraphicsLinearLayout) SetOrientation(orientation Orientation) { C.QGraphicsLinearLayout_SetOrientation(this.h, (C.uintptr_t)(orientation)) } -func (this *QGraphicsLinearLayout) Orientation() uintptr { +func (this *QGraphicsLinearLayout) Orientation() Orientation { ret := C.QGraphicsLinearLayout_Orientation(this.h) - return (uintptr)(ret) + return (Orientation)(ret) } func (this *QGraphicsLinearLayout) AddItem(item *QGraphicsLayoutItem) { @@ -147,7 +147,7 @@ func (this *QGraphicsLinearLayout) Invalidate() { C.QGraphicsLinearLayout_Invalidate(this.h) } -func (this *QGraphicsLinearLayout) SizeHint(which uintptr) *QSizeF { +func (this *QGraphicsLinearLayout) SizeHint(which SizeHint) *QSizeF { ret := C.QGraphicsLinearLayout_SizeHint(this.h, (C.uintptr_t)(which)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSizeF(ret) @@ -170,7 +170,7 @@ func (this *QGraphicsLinearLayout) InsertStretch2(index int, stretch int) { C.QGraphicsLinearLayout_InsertStretch2(this.h, (C.int)(index), (C.int)(stretch)) } -func (this *QGraphicsLinearLayout) SizeHint2(which uintptr, constraint *QSizeF) *QSizeF { +func (this *QGraphicsLinearLayout) SizeHint2(which SizeHint, constraint *QSizeF) *QSizeF { ret := C.QGraphicsLinearLayout_SizeHint2(this.h, (C.uintptr_t)(which), constraint.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSizeF(ret) diff --git a/qt/gen_qgraphicsproxywidget.go b/qt/gen_qgraphicsproxywidget.go index eaec4127..dccb9c4e 100644 --- a/qt/gen_qgraphicsproxywidget.go +++ b/qt/gen_qgraphicsproxywidget.go @@ -13,6 +13,12 @@ import ( "unsafe" ) +type QGraphicsProxyWidget__ int + +const ( + QGraphicsProxyWidget____Type QGraphicsProxyWidget__ = 12 +) + type QGraphicsProxyWidget struct { h *C.QGraphicsProxyWidget *QGraphicsWidget diff --git a/qt/gen_qgraphicsscene.go b/qt/gen_qgraphicsscene.go index c35da614..7be65d72 100644 --- a/qt/gen_qgraphicsscene.go +++ b/qt/gen_qgraphicsscene.go @@ -14,6 +14,22 @@ import ( "unsafe" ) +type QGraphicsScene__ItemIndexMethod int + +const ( + QGraphicsScene__ItemIndexMethod__BspTreeIndex QGraphicsScene__ItemIndexMethod = 0 + QGraphicsScene__ItemIndexMethod__NoIndex QGraphicsScene__ItemIndexMethod = -1 +) + +type QGraphicsScene__SceneLayer int + +const ( + QGraphicsScene__SceneLayer__ItemLayer QGraphicsScene__SceneLayer = 1 + QGraphicsScene__SceneLayer__BackgroundLayer QGraphicsScene__SceneLayer = 2 + QGraphicsScene__SceneLayer__ForegroundLayer QGraphicsScene__SceneLayer = 4 + QGraphicsScene__SceneLayer__AllLayers QGraphicsScene__SceneLayer = 65535 +) + type QGraphicsScene struct { h *C.QGraphicsScene *QObject @@ -133,12 +149,12 @@ func (this *QGraphicsScene) Render(painter *QPainter) { C.QGraphicsScene_Render(this.h, painter.cPointer()) } -func (this *QGraphicsScene) ItemIndexMethod() uintptr { +func (this *QGraphicsScene) ItemIndexMethod() QGraphicsScene__ItemIndexMethod { ret := C.QGraphicsScene_ItemIndexMethod(this.h) - return (uintptr)(ret) + return (QGraphicsScene__ItemIndexMethod)(ret) } -func (this *QGraphicsScene) SetItemIndexMethod(method uintptr) { +func (this *QGraphicsScene) SetItemIndexMethod(method QGraphicsScene__ItemIndexMethod) { C.QGraphicsScene_SetItemIndexMethod(this.h, (C.uintptr_t)(method)) } @@ -241,7 +257,7 @@ func (this *QGraphicsScene) ItemAt(pos *QPointF, deviceTransform *QTransform) *Q return newQGraphicsItem_U(unsafe.Pointer(ret)) } -func (this *QGraphicsScene) Items2(x float64, y float64, w float64, h float64, mode uintptr, order uintptr) []*QGraphicsItem { +func (this *QGraphicsScene) Items2(x float64, y float64, w float64, h float64, mode ItemSelectionMode, order SortOrder) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsScene_Items2(this.h, (C.double)(x), (C.double)(y), (C.double)(w), (C.double)(h), (C.uintptr_t)(mode), (C.uintptr_t)(order), &_out, &_out_len) @@ -291,7 +307,7 @@ func (this *QGraphicsScene) SetSelectionAreaWithPath(path *QPainterPath) { C.QGraphicsScene_SetSelectionAreaWithPath(this.h, path.cPointer()) } -func (this *QGraphicsScene) SetSelectionArea2(path *QPainterPath, selectionOperation uintptr) { +func (this *QGraphicsScene) SetSelectionArea2(path *QPainterPath, selectionOperation ItemSelectionOperation) { C.QGraphicsScene_SetSelectionArea2(this.h, path.cPointer(), (C.uintptr_t)(selectionOperation)) } @@ -443,7 +459,7 @@ func (this *QGraphicsScene) SetForegroundBrush(brush *QBrush) { C.QGraphicsScene_SetForegroundBrush(this.h, brush.cPointer()) } -func (this *QGraphicsScene) InputMethodQuery(query uintptr) *QVariant { +func (this *QGraphicsScene) InputMethodQuery(query InputMethodQuery) *QVariant { ret := C.QGraphicsScene_InputMethodQuery(this.h, (C.uintptr_t)(query)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -622,7 +638,7 @@ func (this *QGraphicsScene) OnSelectionChanged(slot func()) { C.QGraphicsScene_connect_SelectionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QGraphicsScene) FocusItemChanged(newFocus *QGraphicsItem, oldFocus *QGraphicsItem, reason uintptr) { +func (this *QGraphicsScene) FocusItemChanged(newFocus *QGraphicsItem, oldFocus *QGraphicsItem, reason FocusReason) { C.QGraphicsScene_FocusItemChanged(this.h, newFocus.cPointer(), oldFocus.cPointer(), (C.uintptr_t)(reason)) } @@ -694,11 +710,11 @@ func (this *QGraphicsScene) Render3(painter *QPainter, target *QRectF, source *Q C.QGraphicsScene_Render3(this.h, painter.cPointer(), target.cPointer(), source.cPointer()) } -func (this *QGraphicsScene) Render4(painter *QPainter, target *QRectF, source *QRectF, aspectRatioMode uintptr) { +func (this *QGraphicsScene) Render4(painter *QPainter, target *QRectF, source *QRectF, aspectRatioMode AspectRatioMode) { C.QGraphicsScene_Render4(this.h, painter.cPointer(), target.cPointer(), source.cPointer(), (C.uintptr_t)(aspectRatioMode)) } -func (this *QGraphicsScene) Items1(order uintptr) []*QGraphicsItem { +func (this *QGraphicsScene) Items1(order SortOrder) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsScene_Items1(this.h, (C.uintptr_t)(order), &_out, &_out_len) @@ -711,7 +727,7 @@ func (this *QGraphicsScene) Items1(order uintptr) []*QGraphicsItem { return ret } -func (this *QGraphicsScene) Items22(pos *QPointF, mode uintptr) []*QGraphicsItem { +func (this *QGraphicsScene) Items22(pos *QPointF, mode ItemSelectionMode) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsScene_Items22(this.h, pos.cPointer(), (C.uintptr_t)(mode), &_out, &_out_len) @@ -724,7 +740,7 @@ func (this *QGraphicsScene) Items22(pos *QPointF, mode uintptr) []*QGraphicsItem return ret } -func (this *QGraphicsScene) Items3(pos *QPointF, mode uintptr, order uintptr) []*QGraphicsItem { +func (this *QGraphicsScene) Items3(pos *QPointF, mode ItemSelectionMode, order SortOrder) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsScene_Items3(this.h, pos.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(order), &_out, &_out_len) @@ -737,7 +753,7 @@ func (this *QGraphicsScene) Items3(pos *QPointF, mode uintptr, order uintptr) [] return ret } -func (this *QGraphicsScene) Items4(pos *QPointF, mode uintptr, order uintptr, deviceTransform *QTransform) []*QGraphicsItem { +func (this *QGraphicsScene) Items4(pos *QPointF, mode ItemSelectionMode, order SortOrder, deviceTransform *QTransform) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsScene_Items4(this.h, pos.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(order), deviceTransform.cPointer(), &_out, &_out_len) @@ -750,7 +766,7 @@ func (this *QGraphicsScene) Items4(pos *QPointF, mode uintptr, order uintptr, de return ret } -func (this *QGraphicsScene) Items23(rect *QRectF, mode uintptr) []*QGraphicsItem { +func (this *QGraphicsScene) Items23(rect *QRectF, mode ItemSelectionMode) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsScene_Items23(this.h, rect.cPointer(), (C.uintptr_t)(mode), &_out, &_out_len) @@ -763,7 +779,7 @@ func (this *QGraphicsScene) Items23(rect *QRectF, mode uintptr) []*QGraphicsItem return ret } -func (this *QGraphicsScene) Items32(rect *QRectF, mode uintptr, order uintptr) []*QGraphicsItem { +func (this *QGraphicsScene) Items32(rect *QRectF, mode ItemSelectionMode, order SortOrder) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsScene_Items32(this.h, rect.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(order), &_out, &_out_len) @@ -776,7 +792,7 @@ func (this *QGraphicsScene) Items32(rect *QRectF, mode uintptr, order uintptr) [ return ret } -func (this *QGraphicsScene) Items42(rect *QRectF, mode uintptr, order uintptr, deviceTransform *QTransform) []*QGraphicsItem { +func (this *QGraphicsScene) Items42(rect *QRectF, mode ItemSelectionMode, order SortOrder, deviceTransform *QTransform) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsScene_Items42(this.h, rect.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(order), deviceTransform.cPointer(), &_out, &_out_len) @@ -789,7 +805,7 @@ func (this *QGraphicsScene) Items42(rect *QRectF, mode uintptr, order uintptr, d return ret } -func (this *QGraphicsScene) Items25(path *QPainterPath, mode uintptr) []*QGraphicsItem { +func (this *QGraphicsScene) Items25(path *QPainterPath, mode ItemSelectionMode) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsScene_Items25(this.h, path.cPointer(), (C.uintptr_t)(mode), &_out, &_out_len) @@ -802,7 +818,7 @@ func (this *QGraphicsScene) Items25(path *QPainterPath, mode uintptr) []*QGraphi return ret } -func (this *QGraphicsScene) Items34(path *QPainterPath, mode uintptr, order uintptr) []*QGraphicsItem { +func (this *QGraphicsScene) Items34(path *QPainterPath, mode ItemSelectionMode, order SortOrder) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsScene_Items34(this.h, path.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(order), &_out, &_out_len) @@ -815,7 +831,7 @@ func (this *QGraphicsScene) Items34(path *QPainterPath, mode uintptr, order uint return ret } -func (this *QGraphicsScene) Items44(path *QPainterPath, mode uintptr, order uintptr, deviceTransform *QTransform) []*QGraphicsItem { +func (this *QGraphicsScene) Items44(path *QPainterPath, mode ItemSelectionMode, order SortOrder, deviceTransform *QTransform) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsScene_Items44(this.h, path.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(order), deviceTransform.cPointer(), &_out, &_out_len) @@ -828,7 +844,7 @@ func (this *QGraphicsScene) Items44(path *QPainterPath, mode uintptr, order uint return ret } -func (this *QGraphicsScene) CollidingItems2(item *QGraphicsItem, mode uintptr) []*QGraphicsItem { +func (this *QGraphicsScene) CollidingItems2(item *QGraphicsItem, mode ItemSelectionMode) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsScene_CollidingItems2(this.h, item.cPointer(), (C.uintptr_t)(mode), &_out, &_out_len) @@ -841,7 +857,7 @@ func (this *QGraphicsScene) CollidingItems2(item *QGraphicsItem, mode uintptr) [ return ret } -func (this *QGraphicsScene) Items7(x float64, y float64, w float64, h float64, mode uintptr, order uintptr, deviceTransform *QTransform) []*QGraphicsItem { +func (this *QGraphicsScene) Items7(x float64, y float64, w float64, h float64, mode ItemSelectionMode, order SortOrder, deviceTransform *QTransform) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsScene_Items7(this.h, (C.double)(x), (C.double)(y), (C.double)(w), (C.double)(h), (C.uintptr_t)(mode), (C.uintptr_t)(order), deviceTransform.cPointer(), &_out, &_out_len) @@ -854,19 +870,19 @@ func (this *QGraphicsScene) Items7(x float64, y float64, w float64, h float64, m return ret } -func (this *QGraphicsScene) SetSelectionArea22(path *QPainterPath, mode uintptr) { +func (this *QGraphicsScene) SetSelectionArea22(path *QPainterPath, mode ItemSelectionMode) { C.QGraphicsScene_SetSelectionArea22(this.h, path.cPointer(), (C.uintptr_t)(mode)) } -func (this *QGraphicsScene) SetSelectionArea3(path *QPainterPath, mode uintptr, deviceTransform *QTransform) { +func (this *QGraphicsScene) SetSelectionArea3(path *QPainterPath, mode ItemSelectionMode, deviceTransform *QTransform) { C.QGraphicsScene_SetSelectionArea3(this.h, path.cPointer(), (C.uintptr_t)(mode), deviceTransform.cPointer()) } -func (this *QGraphicsScene) SetSelectionArea32(path *QPainterPath, selectionOperation uintptr, mode uintptr) { +func (this *QGraphicsScene) SetSelectionArea32(path *QPainterPath, selectionOperation ItemSelectionOperation, mode ItemSelectionMode) { C.QGraphicsScene_SetSelectionArea32(this.h, path.cPointer(), (C.uintptr_t)(selectionOperation), (C.uintptr_t)(mode)) } -func (this *QGraphicsScene) SetSelectionArea4(path *QPainterPath, selectionOperation uintptr, mode uintptr, deviceTransform *QTransform) { +func (this *QGraphicsScene) SetSelectionArea4(path *QPainterPath, selectionOperation ItemSelectionOperation, mode ItemSelectionMode, deviceTransform *QTransform) { C.QGraphicsScene_SetSelectionArea4(this.h, path.cPointer(), (C.uintptr_t)(selectionOperation), (C.uintptr_t)(mode), deviceTransform.cPointer()) } @@ -949,11 +965,11 @@ func (this *QGraphicsScene) AddRect6(x float64, y float64, w float64, h float64, return newQGraphicsRectItem_U(unsafe.Pointer(ret)) } -func (this *QGraphicsScene) SetFocusItem2(item *QGraphicsItem, focusReason uintptr) { +func (this *QGraphicsScene) SetFocusItem2(item *QGraphicsItem, focusReason FocusReason) { C.QGraphicsScene_SetFocusItem2(this.h, item.cPointer(), (C.uintptr_t)(focusReason)) } -func (this *QGraphicsScene) SetFocus1(focusReason uintptr) { +func (this *QGraphicsScene) SetFocus1(focusReason FocusReason) { C.QGraphicsScene_SetFocus1(this.h, (C.uintptr_t)(focusReason)) } diff --git a/qt/gen_qgraphicssceneevent.go b/qt/gen_qgraphicssceneevent.go index 60f0e5bc..d066416d 100644 --- a/qt/gen_qgraphicssceneevent.go +++ b/qt/gen_qgraphicssceneevent.go @@ -13,6 +13,14 @@ import ( "unsafe" ) +type QGraphicsSceneContextMenuEvent__Reason int + +const ( + QGraphicsSceneContextMenuEvent__Reason__Mouse QGraphicsSceneContextMenuEvent__Reason = 0 + QGraphicsSceneContextMenuEvent__Reason__Keyboard QGraphicsSceneContextMenuEvent__Reason = 1 + QGraphicsSceneContextMenuEvent__Reason__Other QGraphicsSceneContextMenuEvent__Reason = 2 +) + type QGraphicsSceneEvent struct { h *C.QGraphicsSceneEvent *QEvent @@ -37,7 +45,7 @@ func newQGraphicsSceneEvent_U(h unsafe.Pointer) *QGraphicsSceneEvent { } // NewQGraphicsSceneEvent constructs a new QGraphicsSceneEvent object. -func NewQGraphicsSceneEvent(typeVal uintptr) *QGraphicsSceneEvent { +func NewQGraphicsSceneEvent(typeVal QEvent__Type) *QGraphicsSceneEvent { ret := C.QGraphicsSceneEvent_new((C.uintptr_t)(typeVal)) return newQGraphicsSceneEvent(ret) } @@ -85,7 +93,7 @@ func NewQGraphicsSceneMouseEvent() *QGraphicsSceneMouseEvent { } // NewQGraphicsSceneMouseEvent2 constructs a new QGraphicsSceneMouseEvent object. -func NewQGraphicsSceneMouseEvent2(typeVal uintptr) *QGraphicsSceneMouseEvent { +func NewQGraphicsSceneMouseEvent2(typeVal QEvent__Type) *QGraphicsSceneMouseEvent { ret := C.QGraphicsSceneMouseEvent_new2((C.uintptr_t)(typeVal)) return newQGraphicsSceneMouseEvent(ret) } @@ -135,7 +143,7 @@ func (this *QGraphicsSceneMouseEvent) SetScreenPos(pos *QPoint) { C.QGraphicsSceneMouseEvent_SetScreenPos(this.h, pos.cPointer()) } -func (this *QGraphicsSceneMouseEvent) ButtonDownPos(button uintptr) *QPointF { +func (this *QGraphicsSceneMouseEvent) ButtonDownPos(button MouseButton) *QPointF { ret := C.QGraphicsSceneMouseEvent_ButtonDownPos(this.h, (C.uintptr_t)(button)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPointF(ret) @@ -146,11 +154,11 @@ func (this *QGraphicsSceneMouseEvent) ButtonDownPos(button uintptr) *QPointF { return ret1 } -func (this *QGraphicsSceneMouseEvent) SetButtonDownPos(button uintptr, pos *QPointF) { +func (this *QGraphicsSceneMouseEvent) SetButtonDownPos(button MouseButton, pos *QPointF) { C.QGraphicsSceneMouseEvent_SetButtonDownPos(this.h, (C.uintptr_t)(button), pos.cPointer()) } -func (this *QGraphicsSceneMouseEvent) ButtonDownScenePos(button uintptr) *QPointF { +func (this *QGraphicsSceneMouseEvent) ButtonDownScenePos(button MouseButton) *QPointF { ret := C.QGraphicsSceneMouseEvent_ButtonDownScenePos(this.h, (C.uintptr_t)(button)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPointF(ret) @@ -161,11 +169,11 @@ func (this *QGraphicsSceneMouseEvent) ButtonDownScenePos(button uintptr) *QPoint return ret1 } -func (this *QGraphicsSceneMouseEvent) SetButtonDownScenePos(button uintptr, pos *QPointF) { +func (this *QGraphicsSceneMouseEvent) SetButtonDownScenePos(button MouseButton, pos *QPointF) { C.QGraphicsSceneMouseEvent_SetButtonDownScenePos(this.h, (C.uintptr_t)(button), pos.cPointer()) } -func (this *QGraphicsSceneMouseEvent) ButtonDownScreenPos(button uintptr) *QPoint { +func (this *QGraphicsSceneMouseEvent) ButtonDownScreenPos(button MouseButton) *QPoint { ret := C.QGraphicsSceneMouseEvent_ButtonDownScreenPos(this.h, (C.uintptr_t)(button)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPoint(ret) @@ -176,7 +184,7 @@ func (this *QGraphicsSceneMouseEvent) ButtonDownScreenPos(button uintptr) *QPoin return ret1 } -func (this *QGraphicsSceneMouseEvent) SetButtonDownScreenPos(button uintptr, pos *QPoint) { +func (this *QGraphicsSceneMouseEvent) SetButtonDownScreenPos(button MouseButton, pos *QPoint) { C.QGraphicsSceneMouseEvent_SetButtonDownScreenPos(this.h, (C.uintptr_t)(button), pos.cPointer()) } @@ -234,12 +242,12 @@ func (this *QGraphicsSceneMouseEvent) SetButtons(buttons int) { C.QGraphicsSceneMouseEvent_SetButtons(this.h, (C.int)(buttons)) } -func (this *QGraphicsSceneMouseEvent) Button() uintptr { +func (this *QGraphicsSceneMouseEvent) Button() MouseButton { ret := C.QGraphicsSceneMouseEvent_Button(this.h) - return (uintptr)(ret) + return (MouseButton)(ret) } -func (this *QGraphicsSceneMouseEvent) SetButton(button uintptr) { +func (this *QGraphicsSceneMouseEvent) SetButton(button MouseButton) { C.QGraphicsSceneMouseEvent_SetButton(this.h, (C.uintptr_t)(button)) } @@ -252,12 +260,12 @@ func (this *QGraphicsSceneMouseEvent) SetModifiers(modifiers int) { C.QGraphicsSceneMouseEvent_SetModifiers(this.h, (C.int)(modifiers)) } -func (this *QGraphicsSceneMouseEvent) Source() uintptr { +func (this *QGraphicsSceneMouseEvent) Source() MouseEventSource { ret := C.QGraphicsSceneMouseEvent_Source(this.h) - return (uintptr)(ret) + return (MouseEventSource)(ret) } -func (this *QGraphicsSceneMouseEvent) SetSource(source uintptr) { +func (this *QGraphicsSceneMouseEvent) SetSource(source MouseEventSource) { C.QGraphicsSceneMouseEvent_SetSource(this.h, (C.uintptr_t)(source)) } @@ -304,7 +312,7 @@ func NewQGraphicsSceneWheelEvent() *QGraphicsSceneWheelEvent { } // NewQGraphicsSceneWheelEvent2 constructs a new QGraphicsSceneWheelEvent object. -func NewQGraphicsSceneWheelEvent2(typeVal uintptr) *QGraphicsSceneWheelEvent { +func NewQGraphicsSceneWheelEvent2(typeVal QEvent__Type) *QGraphicsSceneWheelEvent { ret := C.QGraphicsSceneWheelEvent_new2((C.uintptr_t)(typeVal)) return newQGraphicsSceneWheelEvent(ret) } @@ -381,12 +389,12 @@ func (this *QGraphicsSceneWheelEvent) SetDelta(delta int) { C.QGraphicsSceneWheelEvent_SetDelta(this.h, (C.int)(delta)) } -func (this *QGraphicsSceneWheelEvent) Orientation() uintptr { +func (this *QGraphicsSceneWheelEvent) Orientation() Orientation { ret := C.QGraphicsSceneWheelEvent_Orientation(this.h) - return (uintptr)(ret) + return (Orientation)(ret) } -func (this *QGraphicsSceneWheelEvent) SetOrientation(orientation uintptr) { +func (this *QGraphicsSceneWheelEvent) SetOrientation(orientation Orientation) { C.QGraphicsSceneWheelEvent_SetOrientation(this.h, (C.uintptr_t)(orientation)) } @@ -424,7 +432,7 @@ func NewQGraphicsSceneContextMenuEvent() *QGraphicsSceneContextMenuEvent { } // NewQGraphicsSceneContextMenuEvent2 constructs a new QGraphicsSceneContextMenuEvent object. -func NewQGraphicsSceneContextMenuEvent2(typeVal uintptr) *QGraphicsSceneContextMenuEvent { +func NewQGraphicsSceneContextMenuEvent2(typeVal QEvent__Type) *QGraphicsSceneContextMenuEvent { ret := C.QGraphicsSceneContextMenuEvent_new2((C.uintptr_t)(typeVal)) return newQGraphicsSceneContextMenuEvent(ret) } @@ -483,12 +491,12 @@ func (this *QGraphicsSceneContextMenuEvent) SetModifiers(modifiers int) { C.QGraphicsSceneContextMenuEvent_SetModifiers(this.h, (C.int)(modifiers)) } -func (this *QGraphicsSceneContextMenuEvent) Reason() uintptr { +func (this *QGraphicsSceneContextMenuEvent) Reason() QGraphicsSceneContextMenuEvent__Reason { ret := C.QGraphicsSceneContextMenuEvent_Reason(this.h) - return (uintptr)(ret) + return (QGraphicsSceneContextMenuEvent__Reason)(ret) } -func (this *QGraphicsSceneContextMenuEvent) SetReason(reason uintptr) { +func (this *QGraphicsSceneContextMenuEvent) SetReason(reason QGraphicsSceneContextMenuEvent__Reason) { C.QGraphicsSceneContextMenuEvent_SetReason(this.h, (C.uintptr_t)(reason)) } @@ -526,7 +534,7 @@ func NewQGraphicsSceneHoverEvent() *QGraphicsSceneHoverEvent { } // NewQGraphicsSceneHoverEvent2 constructs a new QGraphicsSceneHoverEvent object. -func NewQGraphicsSceneHoverEvent2(typeVal uintptr) *QGraphicsSceneHoverEvent { +func NewQGraphicsSceneHoverEvent2(typeVal QEvent__Type) *QGraphicsSceneHoverEvent { ret := C.QGraphicsSceneHoverEvent_new2((C.uintptr_t)(typeVal)) return newQGraphicsSceneHoverEvent(ret) } @@ -664,7 +672,7 @@ func NewQGraphicsSceneHelpEvent() *QGraphicsSceneHelpEvent { } // NewQGraphicsSceneHelpEvent2 constructs a new QGraphicsSceneHelpEvent object. -func NewQGraphicsSceneHelpEvent2(typeVal uintptr) *QGraphicsSceneHelpEvent { +func NewQGraphicsSceneHelpEvent2(typeVal QEvent__Type) *QGraphicsSceneHelpEvent { ret := C.QGraphicsSceneHelpEvent_new2((C.uintptr_t)(typeVal)) return newQGraphicsSceneHelpEvent(ret) } @@ -733,7 +741,7 @@ func NewQGraphicsSceneDragDropEvent() *QGraphicsSceneDragDropEvent { } // NewQGraphicsSceneDragDropEvent2 constructs a new QGraphicsSceneDragDropEvent object. -func NewQGraphicsSceneDragDropEvent2(typeVal uintptr) *QGraphicsSceneDragDropEvent { +func NewQGraphicsSceneDragDropEvent2(typeVal QEvent__Type) *QGraphicsSceneDragDropEvent { ret := C.QGraphicsSceneDragDropEvent_new2((C.uintptr_t)(typeVal)) return newQGraphicsSceneDragDropEvent(ret) } @@ -810,12 +818,12 @@ func (this *QGraphicsSceneDragDropEvent) SetPossibleActions(actions int) { C.QGraphicsSceneDragDropEvent_SetPossibleActions(this.h, (C.int)(actions)) } -func (this *QGraphicsSceneDragDropEvent) ProposedAction() uintptr { +func (this *QGraphicsSceneDragDropEvent) ProposedAction() DropAction { ret := C.QGraphicsSceneDragDropEvent_ProposedAction(this.h) - return (uintptr)(ret) + return (DropAction)(ret) } -func (this *QGraphicsSceneDragDropEvent) SetProposedAction(action uintptr) { +func (this *QGraphicsSceneDragDropEvent) SetProposedAction(action DropAction) { C.QGraphicsSceneDragDropEvent_SetProposedAction(this.h, (C.uintptr_t)(action)) } @@ -823,12 +831,12 @@ func (this *QGraphicsSceneDragDropEvent) AcceptProposedAction() { C.QGraphicsSceneDragDropEvent_AcceptProposedAction(this.h) } -func (this *QGraphicsSceneDragDropEvent) DropAction() uintptr { +func (this *QGraphicsSceneDragDropEvent) DropAction() DropAction { ret := C.QGraphicsSceneDragDropEvent_DropAction(this.h) - return (uintptr)(ret) + return (DropAction)(ret) } -func (this *QGraphicsSceneDragDropEvent) SetDropAction(action uintptr) { +func (this *QGraphicsSceneDragDropEvent) SetDropAction(action DropAction) { C.QGraphicsSceneDragDropEvent_SetDropAction(this.h, (C.uintptr_t)(action)) } diff --git a/qt/gen_qgraphicstransform.go b/qt/gen_qgraphicstransform.go index 51f13121..da750bac 100644 --- a/qt/gen_qgraphicstransform.go +++ b/qt/gen_qgraphicstransform.go @@ -449,7 +449,7 @@ func (this *QGraphicsRotation) SetAxis(axis *QVector3D) { C.QGraphicsRotation_SetAxis(this.h, axis.cPointer()) } -func (this *QGraphicsRotation) SetAxisWithAxis(axis uintptr) { +func (this *QGraphicsRotation) SetAxisWithAxis(axis Axis) { C.QGraphicsRotation_SetAxisWithAxis(this.h, (C.uintptr_t)(axis)) } diff --git a/qt/gen_qgraphicsview.go b/qt/gen_qgraphicsview.go index 2b7a3e0f..efb15a4c 100644 --- a/qt/gen_qgraphicsview.go +++ b/qt/gen_qgraphicsview.go @@ -14,6 +14,48 @@ import ( "unsafe" ) +type QGraphicsView__ViewportAnchor int + +const ( + QGraphicsView__ViewportAnchor__NoAnchor QGraphicsView__ViewportAnchor = 0 + QGraphicsView__ViewportAnchor__AnchorViewCenter QGraphicsView__ViewportAnchor = 1 + QGraphicsView__ViewportAnchor__AnchorUnderMouse QGraphicsView__ViewportAnchor = 2 +) + +type QGraphicsView__CacheModeFlag int + +const ( + QGraphicsView__CacheModeFlag__CacheNone QGraphicsView__CacheModeFlag = 0 + QGraphicsView__CacheModeFlag__CacheBackground QGraphicsView__CacheModeFlag = 1 +) + +type QGraphicsView__DragMode int + +const ( + QGraphicsView__DragMode__NoDrag QGraphicsView__DragMode = 0 + QGraphicsView__DragMode__ScrollHandDrag QGraphicsView__DragMode = 1 + QGraphicsView__DragMode__RubberBandDrag QGraphicsView__DragMode = 2 +) + +type QGraphicsView__ViewportUpdateMode int + +const ( + QGraphicsView__ViewportUpdateMode__FullViewportUpdate QGraphicsView__ViewportUpdateMode = 0 + QGraphicsView__ViewportUpdateMode__MinimalViewportUpdate QGraphicsView__ViewportUpdateMode = 1 + QGraphicsView__ViewportUpdateMode__SmartViewportUpdate QGraphicsView__ViewportUpdateMode = 2 + QGraphicsView__ViewportUpdateMode__NoViewportUpdate QGraphicsView__ViewportUpdateMode = 3 + QGraphicsView__ViewportUpdateMode__BoundingRectViewportUpdate QGraphicsView__ViewportUpdateMode = 4 +) + +type QGraphicsView__OptimizationFlag int + +const ( + QGraphicsView__OptimizationFlag__DontClipPainter QGraphicsView__OptimizationFlag = 1 + QGraphicsView__OptimizationFlag__DontSavePainterState QGraphicsView__OptimizationFlag = 2 + QGraphicsView__OptimizationFlag__DontAdjustForAntialiasing QGraphicsView__OptimizationFlag = 4 + QGraphicsView__OptimizationFlag__IndirectPainting QGraphicsView__OptimizationFlag = 8 +) + type QGraphicsView struct { h *C.QGraphicsView *QAbstractScrollArea @@ -104,7 +146,7 @@ func (this *QGraphicsView) RenderHints() int { return (int)(ret) } -func (this *QGraphicsView) SetRenderHint(hint uintptr) { +func (this *QGraphicsView) SetRenderHint(hint QPainter__RenderHint) { C.QGraphicsView_SetRenderHint(this.h, (C.uintptr_t)(hint)) } @@ -121,30 +163,30 @@ func (this *QGraphicsView) SetAlignment(alignment int) { C.QGraphicsView_SetAlignment(this.h, (C.int)(alignment)) } -func (this *QGraphicsView) TransformationAnchor() uintptr { +func (this *QGraphicsView) TransformationAnchor() QGraphicsView__ViewportAnchor { ret := C.QGraphicsView_TransformationAnchor(this.h) - return (uintptr)(ret) + return (QGraphicsView__ViewportAnchor)(ret) } -func (this *QGraphicsView) SetTransformationAnchor(anchor uintptr) { +func (this *QGraphicsView) SetTransformationAnchor(anchor QGraphicsView__ViewportAnchor) { C.QGraphicsView_SetTransformationAnchor(this.h, (C.uintptr_t)(anchor)) } -func (this *QGraphicsView) ResizeAnchor() uintptr { +func (this *QGraphicsView) ResizeAnchor() QGraphicsView__ViewportAnchor { ret := C.QGraphicsView_ResizeAnchor(this.h) - return (uintptr)(ret) + return (QGraphicsView__ViewportAnchor)(ret) } -func (this *QGraphicsView) SetResizeAnchor(anchor uintptr) { +func (this *QGraphicsView) SetResizeAnchor(anchor QGraphicsView__ViewportAnchor) { C.QGraphicsView_SetResizeAnchor(this.h, (C.uintptr_t)(anchor)) } -func (this *QGraphicsView) ViewportUpdateMode() uintptr { +func (this *QGraphicsView) ViewportUpdateMode() QGraphicsView__ViewportUpdateMode { ret := C.QGraphicsView_ViewportUpdateMode(this.h) - return (uintptr)(ret) + return (QGraphicsView__ViewportUpdateMode)(ret) } -func (this *QGraphicsView) SetViewportUpdateMode(mode uintptr) { +func (this *QGraphicsView) SetViewportUpdateMode(mode QGraphicsView__ViewportUpdateMode) { C.QGraphicsView_SetViewportUpdateMode(this.h, (C.uintptr_t)(mode)) } @@ -153,7 +195,7 @@ func (this *QGraphicsView) OptimizationFlags() int { return (int)(ret) } -func (this *QGraphicsView) SetOptimizationFlag(flag uintptr) { +func (this *QGraphicsView) SetOptimizationFlag(flag QGraphicsView__OptimizationFlag) { C.QGraphicsView_SetOptimizationFlag(this.h, (C.uintptr_t)(flag)) } @@ -161,21 +203,21 @@ func (this *QGraphicsView) SetOptimizationFlags(flags int) { C.QGraphicsView_SetOptimizationFlags(this.h, (C.int)(flags)) } -func (this *QGraphicsView) DragMode() uintptr { +func (this *QGraphicsView) DragMode() QGraphicsView__DragMode { ret := C.QGraphicsView_DragMode(this.h) - return (uintptr)(ret) + return (QGraphicsView__DragMode)(ret) } -func (this *QGraphicsView) SetDragMode(mode uintptr) { +func (this *QGraphicsView) SetDragMode(mode QGraphicsView__DragMode) { C.QGraphicsView_SetDragMode(this.h, (C.uintptr_t)(mode)) } -func (this *QGraphicsView) RubberBandSelectionMode() uintptr { +func (this *QGraphicsView) RubberBandSelectionMode() ItemSelectionMode { ret := C.QGraphicsView_RubberBandSelectionMode(this.h) - return (uintptr)(ret) + return (ItemSelectionMode)(ret) } -func (this *QGraphicsView) SetRubberBandSelectionMode(mode uintptr) { +func (this *QGraphicsView) SetRubberBandSelectionMode(mode ItemSelectionMode) { C.QGraphicsView_SetRubberBandSelectionMode(this.h, (C.uintptr_t)(mode)) } @@ -504,7 +546,7 @@ func (this *QGraphicsView) MapFromScene2(x float64, y float64) *QPoint { return ret1 } -func (this *QGraphicsView) InputMethodQuery(query uintptr) *QVariant { +func (this *QGraphicsView) InputMethodQuery(query InputMethodQuery) *QVariant { ret := C.QGraphicsView_InputMethodQuery(this.h, (C.uintptr_t)(query)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -627,11 +669,11 @@ func QGraphicsView_TrUtf83(s string, c string, n int) string { return ret } -func (this *QGraphicsView) SetRenderHint2(hint uintptr, enabled bool) { +func (this *QGraphicsView) SetRenderHint2(hint QPainter__RenderHint, enabled bool) { C.QGraphicsView_SetRenderHint2(this.h, (C.uintptr_t)(hint), (C.bool)(enabled)) } -func (this *QGraphicsView) SetOptimizationFlag2(flag uintptr, enabled bool) { +func (this *QGraphicsView) SetOptimizationFlag2(flag QGraphicsView__OptimizationFlag, enabled bool) { C.QGraphicsView_SetOptimizationFlag2(this.h, (C.uintptr_t)(flag), (C.bool)(enabled)) } @@ -667,15 +709,15 @@ func (this *QGraphicsView) EnsureVisible32(item *QGraphicsItem, xmargin int, yma C.QGraphicsView_EnsureVisible32(this.h, item.cPointer(), (C.int)(xmargin), (C.int)(ymargin)) } -func (this *QGraphicsView) FitInView22(rect *QRectF, aspectRadioMode uintptr) { +func (this *QGraphicsView) FitInView22(rect *QRectF, aspectRadioMode AspectRatioMode) { C.QGraphicsView_FitInView22(this.h, rect.cPointer(), (C.uintptr_t)(aspectRadioMode)) } -func (this *QGraphicsView) FitInView5(x float64, y float64, w float64, h float64, aspectRadioMode uintptr) { +func (this *QGraphicsView) FitInView5(x float64, y float64, w float64, h float64, aspectRadioMode AspectRatioMode) { C.QGraphicsView_FitInView5(this.h, (C.double)(x), (C.double)(y), (C.double)(w), (C.double)(h), (C.uintptr_t)(aspectRadioMode)) } -func (this *QGraphicsView) FitInView23(item *QGraphicsItem, aspectRadioMode uintptr) { +func (this *QGraphicsView) FitInView23(item *QGraphicsItem, aspectRadioMode AspectRatioMode) { C.QGraphicsView_FitInView23(this.h, item.cPointer(), (C.uintptr_t)(aspectRadioMode)) } @@ -687,11 +729,11 @@ func (this *QGraphicsView) Render3(painter *QPainter, target *QRectF, source *QR C.QGraphicsView_Render3(this.h, painter.cPointer(), target.cPointer(), source.cPointer()) } -func (this *QGraphicsView) Render4(painter *QPainter, target *QRectF, source *QRect, aspectRatioMode uintptr) { +func (this *QGraphicsView) Render4(painter *QPainter, target *QRectF, source *QRect, aspectRatioMode AspectRatioMode) { C.QGraphicsView_Render4(this.h, painter.cPointer(), target.cPointer(), source.cPointer(), (C.uintptr_t)(aspectRatioMode)) } -func (this *QGraphicsView) Items22(rect *QRect, mode uintptr) []*QGraphicsItem { +func (this *QGraphicsView) Items22(rect *QRect, mode ItemSelectionMode) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsView_Items22(this.h, rect.cPointer(), (C.uintptr_t)(mode), &_out, &_out_len) @@ -704,7 +746,7 @@ func (this *QGraphicsView) Items22(rect *QRect, mode uintptr) []*QGraphicsItem { return ret } -func (this *QGraphicsView) Items5(x int, y int, w int, h int, mode uintptr) []*QGraphicsItem { +func (this *QGraphicsView) Items5(x int, y int, w int, h int, mode ItemSelectionMode) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsView_Items5(this.h, (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), (C.uintptr_t)(mode), &_out, &_out_len) @@ -717,7 +759,7 @@ func (this *QGraphicsView) Items5(x int, y int, w int, h int, mode uintptr) []*Q return ret } -func (this *QGraphicsView) Items24(path *QPainterPath, mode uintptr) []*QGraphicsItem { +func (this *QGraphicsView) Items24(path *QPainterPath, mode ItemSelectionMode) []*QGraphicsItem { var _out **C.QGraphicsItem = nil var _out_len C.size_t = 0 C.QGraphicsView_Items24(this.h, path.cPointer(), (C.uintptr_t)(mode), &_out, &_out_len) diff --git a/qt/gen_qgraphicswidget.go b/qt/gen_qgraphicswidget.go index a7c08c51..888edfe6 100644 --- a/qt/gen_qgraphicswidget.go +++ b/qt/gen_qgraphicswidget.go @@ -14,6 +14,12 @@ import ( "unsafe" ) +type QGraphicsWidget__ int + +const ( + QGraphicsWidget____Type QGraphicsWidget__ = 11 +) + type QGraphicsWidget struct { h *C.QGraphicsWidget *QGraphicsObject @@ -96,12 +102,12 @@ func (this *QGraphicsWidget) AdjustSize() { C.QGraphicsWidget_AdjustSize(this.h) } -func (this *QGraphicsWidget) LayoutDirection() uintptr { +func (this *QGraphicsWidget) LayoutDirection() LayoutDirection { ret := C.QGraphicsWidget_LayoutDirection(this.h) - return (uintptr)(ret) + return (LayoutDirection)(ret) } -func (this *QGraphicsWidget) SetLayoutDirection(direction uintptr) { +func (this *QGraphicsWidget) SetLayoutDirection(direction LayoutDirection) { C.QGraphicsWidget_SetLayoutDirection(this.h, (C.uintptr_t)(direction)) } @@ -250,9 +256,9 @@ func (this *QGraphicsWidget) WindowFlags() int { return (int)(ret) } -func (this *QGraphicsWidget) WindowType() uintptr { +func (this *QGraphicsWidget) WindowType() WindowType { ret := C.QGraphicsWidget_WindowType(this.h) - return (uintptr)(ret) + return (WindowType)(ret) } func (this *QGraphicsWidget) SetWindowFlags(wFlags int) { @@ -279,12 +285,12 @@ func (this *QGraphicsWidget) WindowTitle() string { return ret } -func (this *QGraphicsWidget) FocusPolicy() uintptr { +func (this *QGraphicsWidget) FocusPolicy() FocusPolicy { ret := C.QGraphicsWidget_FocusPolicy(this.h) - return (uintptr)(ret) + return (FocusPolicy)(ret) } -func (this *QGraphicsWidget) SetFocusPolicy(policy uintptr) { +func (this *QGraphicsWidget) SetFocusPolicy(policy FocusPolicy) { C.QGraphicsWidget_SetFocusPolicy(this.h, (C.uintptr_t)(policy)) } @@ -359,11 +365,11 @@ func (this *QGraphicsWidget) Actions() []*QAction { return ret } -func (this *QGraphicsWidget) SetAttribute(attribute uintptr) { +func (this *QGraphicsWidget) SetAttribute(attribute WidgetAttribute) { C.QGraphicsWidget_SetAttribute(this.h, (C.uintptr_t)(attribute)) } -func (this *QGraphicsWidget) TestAttribute(attribute uintptr) bool { +func (this *QGraphicsWidget) TestAttribute(attribute WidgetAttribute) bool { ret := C.QGraphicsWidget_TestAttribute(this.h, (C.uintptr_t)(attribute)) return (bool)(ret) } @@ -484,7 +490,7 @@ func QGraphicsWidget_TrUtf83(s string, c string, n int) string { return ret } -func (this *QGraphicsWidget) GrabShortcut2(sequence *QKeySequence, context uintptr) int { +func (this *QGraphicsWidget) GrabShortcut2(sequence *QKeySequence, context ShortcutContext) int { ret := C.QGraphicsWidget_GrabShortcut2(this.h, sequence.cPointer(), (C.uintptr_t)(context)) return (int)(ret) } @@ -497,7 +503,7 @@ func (this *QGraphicsWidget) SetShortcutAutoRepeat2(id int, enabled bool) { C.QGraphicsWidget_SetShortcutAutoRepeat2(this.h, (C.int)(id), (C.bool)(enabled)) } -func (this *QGraphicsWidget) SetAttribute2(attribute uintptr, on bool) { +func (this *QGraphicsWidget) SetAttribute2(attribute WidgetAttribute, on bool) { C.QGraphicsWidget_SetAttribute2(this.h, (C.uintptr_t)(attribute), (C.bool)(on)) } diff --git a/qt/gen_qgridlayout.go b/qt/gen_qgridlayout.go index 39cee563..f393fc4a 100644 --- a/qt/gen_qgridlayout.go +++ b/qt/gen_qgridlayout.go @@ -236,13 +236,13 @@ func (this *QGridLayout) AddLayout2(param1 *QLayout, row int, column int, rowSpa C.QGridLayout_AddLayout2(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan)) } -func (this *QGridLayout) SetOriginCorner(originCorner uintptr) { +func (this *QGridLayout) SetOriginCorner(originCorner Corner) { C.QGridLayout_SetOriginCorner(this.h, (C.uintptr_t)(originCorner)) } -func (this *QGridLayout) OriginCorner() uintptr { +func (this *QGridLayout) OriginCorner() Corner { ret := C.QGridLayout_OriginCorner(this.h) - return (uintptr)(ret) + return (Corner)(ret) } func (this *QGridLayout) ItemAt(index int) *QLayoutItem { @@ -273,7 +273,7 @@ func (this *QGridLayout) AddItem(item *QLayoutItem, row int, column int) { C.QGridLayout_AddItem(this.h, item.cPointer(), (C.int)(row), (C.int)(column)) } -func (this *QGridLayout) SetDefaultPositioning(n int, orient uintptr) { +func (this *QGridLayout) SetDefaultPositioning(n int, orient Orientation) { C.QGridLayout_SetDefaultPositioning(this.h, (C.int)(n), (C.uintptr_t)(orient)) } diff --git a/qt/gen_qguiapplication.go b/qt/gen_qguiapplication.go index 1d5621de..2a654328 100644 --- a/qt/gen_qguiapplication.go +++ b/qt/gen_qguiapplication.go @@ -285,13 +285,13 @@ func QGuiApplication_MouseButtons() int { return (int)(ret) } -func QGuiApplication_SetLayoutDirection(direction uintptr) { +func QGuiApplication_SetLayoutDirection(direction LayoutDirection) { C.QGuiApplication_SetLayoutDirection((C.uintptr_t)(direction)) } -func QGuiApplication_LayoutDirection() uintptr { +func QGuiApplication_LayoutDirection() LayoutDirection { ret := C.QGuiApplication_LayoutDirection() - return (uintptr)(ret) + return (LayoutDirection)(ret) } func QGuiApplication_IsRightToLeft() bool { @@ -332,18 +332,18 @@ func QGuiApplication_QuitOnLastWindowClosed() bool { return (bool)(ret) } -func QGuiApplication_ApplicationState() uintptr { +func QGuiApplication_ApplicationState() ApplicationState { ret := C.QGuiApplication_ApplicationState() - return (uintptr)(ret) + return (ApplicationState)(ret) } -func QGuiApplication_SetHighDpiScaleFactorRoundingPolicy(policy uintptr) { +func QGuiApplication_SetHighDpiScaleFactorRoundingPolicy(policy HighDpiScaleFactorRoundingPolicy) { C.QGuiApplication_SetHighDpiScaleFactorRoundingPolicy((C.uintptr_t)(policy)) } -func QGuiApplication_HighDpiScaleFactorRoundingPolicy() uintptr { +func QGuiApplication_HighDpiScaleFactorRoundingPolicy() HighDpiScaleFactorRoundingPolicy { ret := C.QGuiApplication_HighDpiScaleFactorRoundingPolicy() - return (uintptr)(ret) + return (HighDpiScaleFactorRoundingPolicy)(ret) } func QGuiApplication_Exec() int { @@ -481,7 +481,7 @@ func (this *QGuiApplication) OnFocusWindowChanged(slot func()) { C.QGuiApplication_connect_FocusWindowChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QGuiApplication) ApplicationStateChanged(state uintptr) { +func (this *QGuiApplication) ApplicationStateChanged(state ApplicationState) { C.QGuiApplication_ApplicationStateChanged(this.h, (C.uintptr_t)(state)) } @@ -493,7 +493,7 @@ func (this *QGuiApplication) OnApplicationStateChanged(slot func()) { C.QGuiApplication_connect_ApplicationStateChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QGuiApplication) LayoutDirectionChanged(direction uintptr) { +func (this *QGuiApplication) LayoutDirectionChanged(direction LayoutDirection) { C.QGuiApplication_LayoutDirectionChanged(this.h, (C.uintptr_t)(direction)) } diff --git a/qt/gen_qheaderview.go b/qt/gen_qheaderview.go index 6da0c963..1dc2c1a6 100644 --- a/qt/gen_qheaderview.go +++ b/qt/gen_qheaderview.go @@ -14,6 +14,16 @@ import ( "unsafe" ) +type QHeaderView__ResizeMode int + +const ( + QHeaderView__ResizeMode__Interactive QHeaderView__ResizeMode = 0 + QHeaderView__ResizeMode__Stretch QHeaderView__ResizeMode = 1 + QHeaderView__ResizeMode__Fixed QHeaderView__ResizeMode = 2 + QHeaderView__ResizeMode__ResizeToContents QHeaderView__ResizeMode = 3 + QHeaderView__ResizeMode__Custom QHeaderView__ResizeMode = 2 +) + type QHeaderView struct { h *C.QHeaderView *QAbstractItemView @@ -38,13 +48,13 @@ func newQHeaderView_U(h unsafe.Pointer) *QHeaderView { } // NewQHeaderView constructs a new QHeaderView object. -func NewQHeaderView(orientation uintptr) *QHeaderView { +func NewQHeaderView(orientation Orientation) *QHeaderView { ret := C.QHeaderView_new((C.uintptr_t)(orientation)) return newQHeaderView(ret) } // NewQHeaderView2 constructs a new QHeaderView object. -func NewQHeaderView2(orientation uintptr, parent *QWidget) *QHeaderView { +func NewQHeaderView2(orientation Orientation, parent *QWidget) *QHeaderView { ret := C.QHeaderView_new2((C.uintptr_t)(orientation), parent.cPointer()) return newQHeaderView(ret) } @@ -80,9 +90,9 @@ func (this *QHeaderView) SetModel(model *QAbstractItemModel) { C.QHeaderView_SetModel(this.h, model.cPointer()) } -func (this *QHeaderView) Orientation() uintptr { +func (this *QHeaderView) Orientation() Orientation { ret := C.QHeaderView_Orientation(this.h) - return (uintptr)(ret) + return (Orientation)(ret) } func (this *QHeaderView) Offset() int { @@ -162,7 +172,7 @@ func (this *QHeaderView) ResizeSection(logicalIndex int, size int) { C.QHeaderView_ResizeSection(this.h, (C.int)(logicalIndex), (C.int)(size)) } -func (this *QHeaderView) ResizeSections(mode uintptr) { +func (this *QHeaderView) ResizeSections(mode QHeaderView__ResizeMode) { C.QHeaderView_ResizeSections(this.h, (C.uintptr_t)(mode)) } @@ -239,16 +249,16 @@ func (this *QHeaderView) HighlightSections() bool { return (bool)(ret) } -func (this *QHeaderView) SectionResizeMode(logicalIndex int) uintptr { +func (this *QHeaderView) SectionResizeMode(logicalIndex int) QHeaderView__ResizeMode { ret := C.QHeaderView_SectionResizeMode(this.h, (C.int)(logicalIndex)) - return (uintptr)(ret) + return (QHeaderView__ResizeMode)(ret) } -func (this *QHeaderView) SetSectionResizeMode(mode uintptr) { +func (this *QHeaderView) SetSectionResizeMode(mode QHeaderView__ResizeMode) { C.QHeaderView_SetSectionResizeMode(this.h, (C.uintptr_t)(mode)) } -func (this *QHeaderView) SetSectionResizeMode2(logicalIndex int, mode uintptr) { +func (this *QHeaderView) SetSectionResizeMode2(logicalIndex int, mode QHeaderView__ResizeMode) { C.QHeaderView_SetSectionResizeMode2(this.h, (C.int)(logicalIndex), (C.uintptr_t)(mode)) } @@ -275,7 +285,7 @@ func (this *QHeaderView) IsSortIndicatorShown() bool { return (bool)(ret) } -func (this *QHeaderView) SetSortIndicator(logicalIndex int, order uintptr) { +func (this *QHeaderView) SetSortIndicator(logicalIndex int, order SortOrder) { C.QHeaderView_SetSortIndicator(this.h, (C.int)(logicalIndex), (C.uintptr_t)(order)) } @@ -284,9 +294,9 @@ func (this *QHeaderView) SortIndicatorSection() int { return (int)(ret) } -func (this *QHeaderView) SortIndicatorOrder() uintptr { +func (this *QHeaderView) SortIndicatorOrder() SortOrder { ret := C.QHeaderView_SortIndicatorOrder(this.h) - return (uintptr)(ret) + return (SortOrder)(ret) } func (this *QHeaderView) StretchLastSection() bool { @@ -393,7 +403,7 @@ func (this *QHeaderView) SetOffsetToLastSection() { C.QHeaderView_SetOffsetToLastSection(this.h) } -func (this *QHeaderView) HeaderDataChanged(orientation uintptr, logicalFirst int, logicalLast int) { +func (this *QHeaderView) HeaderDataChanged(orientation Orientation, logicalFirst int, logicalLast int) { C.QHeaderView_HeaderDataChanged(this.h, (C.uintptr_t)(orientation), (C.int)(logicalFirst), (C.int)(logicalLast)) } @@ -505,7 +515,7 @@ func (this *QHeaderView) OnGeometriesChanged(slot func()) { C.QHeaderView_connect_GeometriesChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QHeaderView) SortIndicatorChanged(logicalIndex int, order uintptr) { +func (this *QHeaderView) SortIndicatorChanged(logicalIndex int, order SortOrder) { C.QHeaderView_SortIndicatorChanged(this.h, (C.int)(logicalIndex), (C.uintptr_t)(order)) } diff --git a/qt/gen_qhistorystate.go b/qt/gen_qhistorystate.go index ec273e1f..a3d80fa1 100644 --- a/qt/gen_qhistorystate.go +++ b/qt/gen_qhistorystate.go @@ -12,6 +12,13 @@ import ( "unsafe" ) +type QHistoryState__HistoryType int + +const ( + QHistoryState__HistoryType__ShallowHistory QHistoryState__HistoryType = 0 + QHistoryState__HistoryType__DeepHistory QHistoryState__HistoryType = 1 +) + type QHistoryState struct { h *C.QHistoryState *QAbstractState @@ -42,7 +49,7 @@ func NewQHistoryState() *QHistoryState { } // NewQHistoryState2 constructs a new QHistoryState object. -func NewQHistoryState2(typeVal uintptr) *QHistoryState { +func NewQHistoryState2(typeVal QHistoryState__HistoryType) *QHistoryState { ret := C.QHistoryState_new2((C.uintptr_t)(typeVal)) return newQHistoryState(ret) } @@ -54,7 +61,7 @@ func NewQHistoryState3(parent *QState) *QHistoryState { } // NewQHistoryState4 constructs a new QHistoryState object. -func NewQHistoryState4(typeVal uintptr, parent *QState) *QHistoryState { +func NewQHistoryState4(typeVal QHistoryState__HistoryType, parent *QState) *QHistoryState { ret := C.QHistoryState_new4((C.uintptr_t)(typeVal), parent.cPointer()) return newQHistoryState(ret) } @@ -104,12 +111,12 @@ func (this *QHistoryState) SetDefaultState(state *QAbstractState) { C.QHistoryState_SetDefaultState(this.h, state.cPointer()) } -func (this *QHistoryState) HistoryType() uintptr { +func (this *QHistoryState) HistoryType() QHistoryState__HistoryType { ret := C.QHistoryState_HistoryType(this.h) - return (uintptr)(ret) + return (QHistoryState__HistoryType)(ret) } -func (this *QHistoryState) SetHistoryType(typeVal uintptr) { +func (this *QHistoryState) SetHistoryType(typeVal QHistoryState__HistoryType) { C.QHistoryState_SetHistoryType(this.h, (C.uintptr_t)(typeVal)) } diff --git a/qt/gen_qicon.go b/qt/gen_qicon.go index 5ed098b2..5de602ce 100644 --- a/qt/gen_qicon.go +++ b/qt/gen_qicon.go @@ -13,6 +13,22 @@ import ( "unsafe" ) +type QIcon__Mode int + +const ( + QIcon__Mode__Normal QIcon__Mode = 0 + QIcon__Mode__Disabled QIcon__Mode = 1 + QIcon__Mode__Active QIcon__Mode = 2 + QIcon__Mode__Selected QIcon__Mode = 3 +) + +type QIcon__State int + +const ( + QIcon__State__On QIcon__State = 0 + QIcon__State__Off QIcon__State = 1 +) + type QIcon struct { h *C.QIcon } @@ -332,7 +348,7 @@ func QIcon_SetFallbackThemeName(name string) { C.QIcon_SetFallbackThemeName(name_Cstring, C.size_t(len(name))) } -func (this *QIcon) Pixmap22(size *QSize, mode uintptr) *QPixmap { +func (this *QIcon) Pixmap22(size *QSize, mode QIcon__Mode) *QPixmap { ret := C.QIcon_Pixmap22(this.h, size.cPointer(), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -343,7 +359,7 @@ func (this *QIcon) Pixmap22(size *QSize, mode uintptr) *QPixmap { return ret1 } -func (this *QIcon) Pixmap32(size *QSize, mode uintptr, state uintptr) *QPixmap { +func (this *QIcon) Pixmap32(size *QSize, mode QIcon__Mode, state QIcon__State) *QPixmap { ret := C.QIcon_Pixmap32(this.h, size.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(state)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -354,7 +370,7 @@ func (this *QIcon) Pixmap32(size *QSize, mode uintptr, state uintptr) *QPixmap { return ret1 } -func (this *QIcon) Pixmap33(w int, h int, mode uintptr) *QPixmap { +func (this *QIcon) Pixmap33(w int, h int, mode QIcon__Mode) *QPixmap { ret := C.QIcon_Pixmap33(this.h, (C.int)(w), (C.int)(h), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -365,7 +381,7 @@ func (this *QIcon) Pixmap33(w int, h int, mode uintptr) *QPixmap { return ret1 } -func (this *QIcon) Pixmap4(w int, h int, mode uintptr, state uintptr) *QPixmap { +func (this *QIcon) Pixmap4(w int, h int, mode QIcon__Mode, state QIcon__State) *QPixmap { ret := C.QIcon_Pixmap4(this.h, (C.int)(w), (C.int)(h), (C.uintptr_t)(mode), (C.uintptr_t)(state)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -376,7 +392,7 @@ func (this *QIcon) Pixmap4(w int, h int, mode uintptr, state uintptr) *QPixmap { return ret1 } -func (this *QIcon) Pixmap23(extent int, mode uintptr) *QPixmap { +func (this *QIcon) Pixmap23(extent int, mode QIcon__Mode) *QPixmap { ret := C.QIcon_Pixmap23(this.h, (C.int)(extent), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -387,7 +403,7 @@ func (this *QIcon) Pixmap23(extent int, mode uintptr) *QPixmap { return ret1 } -func (this *QIcon) Pixmap34(extent int, mode uintptr, state uintptr) *QPixmap { +func (this *QIcon) Pixmap34(extent int, mode QIcon__Mode, state QIcon__State) *QPixmap { ret := C.QIcon_Pixmap34(this.h, (C.int)(extent), (C.uintptr_t)(mode), (C.uintptr_t)(state)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -398,7 +414,7 @@ func (this *QIcon) Pixmap34(extent int, mode uintptr, state uintptr) *QPixmap { return ret1 } -func (this *QIcon) Pixmap35(window *QWindow, size *QSize, mode uintptr) *QPixmap { +func (this *QIcon) Pixmap35(window *QWindow, size *QSize, mode QIcon__Mode) *QPixmap { ret := C.QIcon_Pixmap35(this.h, window.cPointer(), size.cPointer(), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -409,7 +425,7 @@ func (this *QIcon) Pixmap35(window *QWindow, size *QSize, mode uintptr) *QPixmap return ret1 } -func (this *QIcon) Pixmap42(window *QWindow, size *QSize, mode uintptr, state uintptr) *QPixmap { +func (this *QIcon) Pixmap42(window *QWindow, size *QSize, mode QIcon__Mode, state QIcon__State) *QPixmap { ret := C.QIcon_Pixmap42(this.h, window.cPointer(), size.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(state)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -420,7 +436,7 @@ func (this *QIcon) Pixmap42(window *QWindow, size *QSize, mode uintptr, state ui return ret1 } -func (this *QIcon) ActualSize22(size *QSize, mode uintptr) *QSize { +func (this *QIcon) ActualSize22(size *QSize, mode QIcon__Mode) *QSize { ret := C.QIcon_ActualSize22(this.h, size.cPointer(), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSize(ret) @@ -431,7 +447,7 @@ func (this *QIcon) ActualSize22(size *QSize, mode uintptr) *QSize { return ret1 } -func (this *QIcon) ActualSize3(size *QSize, mode uintptr, state uintptr) *QSize { +func (this *QIcon) ActualSize3(size *QSize, mode QIcon__Mode, state QIcon__State) *QSize { ret := C.QIcon_ActualSize3(this.h, size.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(state)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSize(ret) @@ -442,7 +458,7 @@ func (this *QIcon) ActualSize3(size *QSize, mode uintptr, state uintptr) *QSize return ret1 } -func (this *QIcon) ActualSize32(window *QWindow, size *QSize, mode uintptr) *QSize { +func (this *QIcon) ActualSize32(window *QWindow, size *QSize, mode QIcon__Mode) *QSize { ret := C.QIcon_ActualSize32(this.h, window.cPointer(), size.cPointer(), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSize(ret) @@ -453,7 +469,7 @@ func (this *QIcon) ActualSize32(window *QWindow, size *QSize, mode uintptr) *QSi return ret1 } -func (this *QIcon) ActualSize4(window *QWindow, size *QSize, mode uintptr, state uintptr) *QSize { +func (this *QIcon) ActualSize4(window *QWindow, size *QSize, mode QIcon__Mode, state QIcon__State) *QSize { ret := C.QIcon_ActualSize4(this.h, window.cPointer(), size.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(state)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSize(ret) @@ -468,11 +484,11 @@ func (this *QIcon) Paint3(painter *QPainter, rect *QRect, alignment int) { C.QIcon_Paint3(this.h, painter.cPointer(), rect.cPointer(), (C.int)(alignment)) } -func (this *QIcon) Paint4(painter *QPainter, rect *QRect, alignment int, mode uintptr) { +func (this *QIcon) Paint4(painter *QPainter, rect *QRect, alignment int, mode QIcon__Mode) { C.QIcon_Paint4(this.h, painter.cPointer(), rect.cPointer(), (C.int)(alignment), (C.uintptr_t)(mode)) } -func (this *QIcon) Paint5(painter *QPainter, rect *QRect, alignment int, mode uintptr, state uintptr) { +func (this *QIcon) Paint5(painter *QPainter, rect *QRect, alignment int, mode QIcon__Mode, state QIcon__State) { C.QIcon_Paint5(this.h, painter.cPointer(), rect.cPointer(), (C.int)(alignment), (C.uintptr_t)(mode), (C.uintptr_t)(state)) } @@ -480,19 +496,19 @@ func (this *QIcon) Paint6(painter *QPainter, x int, y int, w int, h int, alignme C.QIcon_Paint6(this.h, painter.cPointer(), (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), (C.int)(alignment)) } -func (this *QIcon) Paint7(painter *QPainter, x int, y int, w int, h int, alignment int, mode uintptr) { +func (this *QIcon) Paint7(painter *QPainter, x int, y int, w int, h int, alignment int, mode QIcon__Mode) { C.QIcon_Paint7(this.h, painter.cPointer(), (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), (C.int)(alignment), (C.uintptr_t)(mode)) } -func (this *QIcon) Paint8(painter *QPainter, x int, y int, w int, h int, alignment int, mode uintptr, state uintptr) { +func (this *QIcon) Paint8(painter *QPainter, x int, y int, w int, h int, alignment int, mode QIcon__Mode, state QIcon__State) { C.QIcon_Paint8(this.h, painter.cPointer(), (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), (C.int)(alignment), (C.uintptr_t)(mode), (C.uintptr_t)(state)) } -func (this *QIcon) AddPixmap2(pixmap *QPixmap, mode uintptr) { +func (this *QIcon) AddPixmap2(pixmap *QPixmap, mode QIcon__Mode) { C.QIcon_AddPixmap2(this.h, pixmap.cPointer(), (C.uintptr_t)(mode)) } -func (this *QIcon) AddPixmap3(pixmap *QPixmap, mode uintptr, state uintptr) { +func (this *QIcon) AddPixmap3(pixmap *QPixmap, mode QIcon__Mode, state QIcon__State) { C.QIcon_AddPixmap3(this.h, pixmap.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(state)) } @@ -502,19 +518,19 @@ func (this *QIcon) AddFile2(fileName string, size *QSize) { C.QIcon_AddFile2(this.h, fileName_Cstring, C.size_t(len(fileName)), size.cPointer()) } -func (this *QIcon) AddFile3(fileName string, size *QSize, mode uintptr) { +func (this *QIcon) AddFile3(fileName string, size *QSize, mode QIcon__Mode) { fileName_Cstring := C.CString(fileName) defer C.free(unsafe.Pointer(fileName_Cstring)) C.QIcon_AddFile3(this.h, fileName_Cstring, C.size_t(len(fileName)), size.cPointer(), (C.uintptr_t)(mode)) } -func (this *QIcon) AddFile4(fileName string, size *QSize, mode uintptr, state uintptr) { +func (this *QIcon) AddFile4(fileName string, size *QSize, mode QIcon__Mode, state QIcon__State) { fileName_Cstring := C.CString(fileName) defer C.free(unsafe.Pointer(fileName_Cstring)) C.QIcon_AddFile4(this.h, fileName_Cstring, C.size_t(len(fileName)), size.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(state)) } -func (this *QIcon) AvailableSizes1(mode uintptr) []QSize { +func (this *QIcon) AvailableSizes1(mode QIcon__Mode) []QSize { var _out **C.QSize = nil var _out_len C.size_t = 0 C.QIcon_AvailableSizes1(this.h, (C.uintptr_t)(mode), &_out, &_out_len) @@ -527,7 +543,7 @@ func (this *QIcon) AvailableSizes1(mode uintptr) []QSize { return ret } -func (this *QIcon) AvailableSizes2(mode uintptr, state uintptr) []QSize { +func (this *QIcon) AvailableSizes2(mode QIcon__Mode, state QIcon__State) []QSize { var _out **C.QSize = nil var _out_len C.size_t = 0 C.QIcon_AvailableSizes2(this.h, (C.uintptr_t)(mode), (C.uintptr_t)(state), &_out, &_out_len) diff --git a/qt/gen_qiconengine.go b/qt/gen_qiconengine.go index 69b0842f..2fde3cd2 100644 --- a/qt/gen_qiconengine.go +++ b/qt/gen_qiconengine.go @@ -13,6 +13,15 @@ import ( "unsafe" ) +type QIconEngine__IconEngineHook int + +const ( + QIconEngine__IconEngineHook__AvailableSizesHook QIconEngine__IconEngineHook = 1 + QIconEngine__IconEngineHook__IconNameHook QIconEngine__IconEngineHook = 2 + QIconEngine__IconEngineHook__IsNullHook QIconEngine__IconEngineHook = 3 + QIconEngine__IconEngineHook__ScaledPixmapHook QIconEngine__IconEngineHook = 4 +) + type QIconEngine struct { h *C.QIconEngine } @@ -35,11 +44,11 @@ func newQIconEngine_U(h unsafe.Pointer) *QIconEngine { return newQIconEngine((*C.QIconEngine)(h)) } -func (this *QIconEngine) Paint(painter *QPainter, rect *QRect, mode uintptr, state uintptr) { +func (this *QIconEngine) Paint(painter *QPainter, rect *QRect, mode QIcon__Mode, state QIcon__State) { C.QIconEngine_Paint(this.h, painter.cPointer(), rect.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(state)) } -func (this *QIconEngine) ActualSize(size *QSize, mode uintptr, state uintptr) *QSize { +func (this *QIconEngine) ActualSize(size *QSize, mode QIcon__Mode, state QIcon__State) *QSize { ret := C.QIconEngine_ActualSize(this.h, size.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(state)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSize(ret) @@ -50,7 +59,7 @@ func (this *QIconEngine) ActualSize(size *QSize, mode uintptr, state uintptr) *Q return ret1 } -func (this *QIconEngine) Pixmap(size *QSize, mode uintptr, state uintptr) *QPixmap { +func (this *QIconEngine) Pixmap(size *QSize, mode QIcon__Mode, state QIcon__State) *QPixmap { ret := C.QIconEngine_Pixmap(this.h, size.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(state)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -61,11 +70,11 @@ func (this *QIconEngine) Pixmap(size *QSize, mode uintptr, state uintptr) *QPixm return ret1 } -func (this *QIconEngine) AddPixmap(pixmap *QPixmap, mode uintptr, state uintptr) { +func (this *QIconEngine) AddPixmap(pixmap *QPixmap, mode QIcon__Mode, state QIcon__State) { C.QIconEngine_AddPixmap(this.h, pixmap.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(state)) } -func (this *QIconEngine) AddFile(fileName string, size *QSize, mode uintptr, state uintptr) { +func (this *QIconEngine) AddFile(fileName string, size *QSize, mode QIcon__Mode, state QIcon__State) { fileName_Cstring := C.CString(fileName) defer C.free(unsafe.Pointer(fileName_Cstring)) C.QIconEngine_AddFile(this.h, fileName_Cstring, C.size_t(len(fileName)), size.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(state)) @@ -122,7 +131,7 @@ func (this *QIconEngine) IsNull() bool { return (bool)(ret) } -func (this *QIconEngine) ScaledPixmap(size *QSize, mode uintptr, state uintptr, scale float64) *QPixmap { +func (this *QIconEngine) ScaledPixmap(size *QSize, mode QIcon__Mode, state QIcon__State, scale float64) *QPixmap { ret := C.QIconEngine_ScaledPixmap(this.h, size.cPointer(), (C.uintptr_t)(mode), (C.uintptr_t)(state), (C.double)(scale)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -133,7 +142,7 @@ func (this *QIconEngine) ScaledPixmap(size *QSize, mode uintptr, state uintptr, return ret1 } -func (this *QIconEngine) AvailableSizes1(mode uintptr) []QSize { +func (this *QIconEngine) AvailableSizes1(mode QIcon__Mode) []QSize { var _out **C.QSize = nil var _out_len C.size_t = 0 C.QIconEngine_AvailableSizes1(this.h, (C.uintptr_t)(mode), &_out, &_out_len) @@ -146,7 +155,7 @@ func (this *QIconEngine) AvailableSizes1(mode uintptr) []QSize { return ret } -func (this *QIconEngine) AvailableSizes2(mode uintptr, state uintptr) []QSize { +func (this *QIconEngine) AvailableSizes2(mode QIcon__Mode, state QIcon__State) []QSize { var _out **C.QSize = nil var _out_len C.size_t = 0 C.QIconEngine_AvailableSizes2(this.h, (C.uintptr_t)(mode), (C.uintptr_t)(state), &_out, &_out_len) diff --git a/qt/gen_qidentityproxymodel.go b/qt/gen_qidentityproxymodel.go index f94a85fb..92b01ed9 100644 --- a/qt/gen_qidentityproxymodel.go +++ b/qt/gen_qidentityproxymodel.go @@ -129,7 +129,7 @@ func (this *QIdentityProxyModel) RowCount() int { return (int)(ret) } -func (this *QIdentityProxyModel) HeaderData(section int, orientation uintptr) *QVariant { +func (this *QIdentityProxyModel) HeaderData(section int, orientation Orientation) *QVariant { ret := C.QIdentityProxyModel_HeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -140,7 +140,7 @@ func (this *QIdentityProxyModel) HeaderData(section int, orientation uintptr) *Q return ret1 } -func (this *QIdentityProxyModel) DropMimeData(data *QMimeData, action uintptr, row int, column int, parent *QModelIndex) bool { +func (this *QIdentityProxyModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool { ret := C.QIdentityProxyModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()) return (bool)(ret) } @@ -276,7 +276,7 @@ func (this *QIdentityProxyModel) RowCount1(parent *QModelIndex) int { return (int)(ret) } -func (this *QIdentityProxyModel) HeaderData3(section int, orientation uintptr, role int) *QVariant { +func (this *QIdentityProxyModel) HeaderData3(section int, orientation Orientation, role int) *QVariant { ret := C.QIdentityProxyModel_HeaderData3(this.h, (C.int)(section), (C.uintptr_t)(orientation), (C.int)(role)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) diff --git a/qt/gen_qimage.go b/qt/gen_qimage.go index 3682ef63..1eb5ef65 100644 --- a/qt/gen_qimage.go +++ b/qt/gen_qimage.go @@ -13,6 +13,49 @@ import ( "unsafe" ) +type QImage__InvertMode int + +const ( + QImage__InvertMode__InvertRgb QImage__InvertMode = 0 + QImage__InvertMode__InvertRgba QImage__InvertMode = 1 +) + +type QImage__Format int + +const ( + QImage__Format__Format_Invalid QImage__Format = 0 + QImage__Format__Format_Mono QImage__Format = 1 + QImage__Format__Format_MonoLSB QImage__Format = 2 + QImage__Format__Format_Indexed8 QImage__Format = 3 + QImage__Format__Format_RGB32 QImage__Format = 4 + QImage__Format__Format_ARGB32 QImage__Format = 5 + QImage__Format__Format_ARGB32_Premultiplied QImage__Format = 6 + QImage__Format__Format_RGB16 QImage__Format = 7 + QImage__Format__Format_ARGB8565_Premultiplied QImage__Format = 8 + QImage__Format__Format_RGB666 QImage__Format = 9 + QImage__Format__Format_ARGB6666_Premultiplied QImage__Format = 10 + QImage__Format__Format_RGB555 QImage__Format = 11 + QImage__Format__Format_ARGB8555_Premultiplied QImage__Format = 12 + QImage__Format__Format_RGB888 QImage__Format = 13 + QImage__Format__Format_RGB444 QImage__Format = 14 + QImage__Format__Format_ARGB4444_Premultiplied QImage__Format = 15 + QImage__Format__Format_RGBX8888 QImage__Format = 16 + QImage__Format__Format_RGBA8888 QImage__Format = 17 + QImage__Format__Format_RGBA8888_Premultiplied QImage__Format = 18 + QImage__Format__Format_BGR30 QImage__Format = 19 + QImage__Format__Format_A2BGR30_Premultiplied QImage__Format = 20 + QImage__Format__Format_RGB30 QImage__Format = 21 + QImage__Format__Format_A2RGB30_Premultiplied QImage__Format = 22 + QImage__Format__Format_Alpha8 QImage__Format = 23 + QImage__Format__Format_Grayscale8 QImage__Format = 24 + QImage__Format__Format_RGBX64 QImage__Format = 25 + QImage__Format__Format_RGBA64 QImage__Format = 26 + QImage__Format__Format_RGBA64_Premultiplied QImage__Format = 27 + QImage__Format__Format_Grayscale16 QImage__Format = 28 + QImage__Format__Format_BGR888 QImage__Format = 29 + QImage__Format__NImageFormats QImage__Format = 30 +) + type QImage struct { h *C.QImage *QPaintDevice @@ -43,37 +86,37 @@ func NewQImage() *QImage { } // NewQImage2 constructs a new QImage object. -func NewQImage2(size *QSize, format uintptr) *QImage { +func NewQImage2(size *QSize, format QImage__Format) *QImage { ret := C.QImage_new2(size.cPointer(), (C.uintptr_t)(format)) return newQImage(ret) } // NewQImage3 constructs a new QImage object. -func NewQImage3(width int, height int, format uintptr) *QImage { +func NewQImage3(width int, height int, format QImage__Format) *QImage { ret := C.QImage_new3((C.int)(width), (C.int)(height), (C.uintptr_t)(format)) return newQImage(ret) } // NewQImage4 constructs a new QImage object. -func NewQImage4(data *byte, width int, height int, format uintptr) *QImage { +func NewQImage4(data *byte, width int, height int, format QImage__Format) *QImage { ret := C.QImage_new4((*C.uchar)(unsafe.Pointer(data)), (C.int)(width), (C.int)(height), (C.uintptr_t)(format)) return newQImage(ret) } // NewQImage5 constructs a new QImage object. -func NewQImage5(data *byte, width int, height int, format uintptr) *QImage { +func NewQImage5(data *byte, width int, height int, format QImage__Format) *QImage { ret := C.QImage_new5((*C.uchar)(unsafe.Pointer(data)), (C.int)(width), (C.int)(height), (C.uintptr_t)(format)) return newQImage(ret) } // NewQImage6 constructs a new QImage object. -func NewQImage6(data *byte, width int, height int, bytesPerLine int, format uintptr) *QImage { +func NewQImage6(data *byte, width int, height int, bytesPerLine int, format QImage__Format) *QImage { ret := C.QImage_new6((*C.uchar)(unsafe.Pointer(data)), (C.int)(width), (C.int)(height), (C.int)(bytesPerLine), (C.uintptr_t)(format)) return newQImage(ret) } // NewQImage7 constructs a new QImage object. -func NewQImage7(data *byte, width int, height int, bytesPerLine int, format uintptr) *QImage { +func NewQImage7(data *byte, width int, height int, bytesPerLine int, format QImage__Format) *QImage { ret := C.QImage_new7((*C.uchar)(unsafe.Pointer(data)), (C.int)(width), (C.int)(height), (C.int)(bytesPerLine), (C.uintptr_t)(format)) return newQImage(ret) } @@ -161,12 +204,12 @@ func (this *QImage) Copy2(x int, y int, w int, h int) *QImage { return ret1 } -func (this *QImage) Format() uintptr { +func (this *QImage) Format() QImage__Format { ret := C.QImage_Format(this.h) - return (uintptr)(ret) + return (QImage__Format)(ret) } -func (this *QImage) ConvertToFormat(f uintptr) *QImage { +func (this *QImage) ConvertToFormat(f QImage__Format) *QImage { ret := C.QImage_ConvertToFormat(this.h, (C.uintptr_t)(f)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQImage(ret) @@ -177,7 +220,7 @@ func (this *QImage) ConvertToFormat(f uintptr) *QImage { return ret1 } -func (this *QImage) ConvertToFormat2(f uintptr, colorTable []uint) *QImage { +func (this *QImage) ConvertToFormat2(f QImage__Format, colorTable []uint) *QImage { // For the C ABI, malloc a C array of raw pointers colorTable_CArray := (*[0xffff]C.uint)(C.malloc(C.size_t(8 * len(colorTable)))) defer C.free(unsafe.Pointer(colorTable_CArray)) @@ -194,12 +237,12 @@ func (this *QImage) ConvertToFormat2(f uintptr, colorTable []uint) *QImage { return ret1 } -func (this *QImage) ReinterpretAsFormat(f uintptr) bool { +func (this *QImage) ReinterpretAsFormat(f QImage__Format) bool { ret := C.QImage_ReinterpretAsFormat(this.h, (C.uintptr_t)(f)) return (bool)(ret) } -func (this *QImage) ConvertTo(f uintptr) { +func (this *QImage) ConvertTo(f QImage__Format) { C.QImage_ConvertTo(this.h, (C.uintptr_t)(f)) } @@ -426,7 +469,7 @@ func (this *QImage) FillWithColor(color *QColor) { C.QImage_FillWithColor(this.h, color.cPointer()) } -func (this *QImage) Fill2(color uintptr) { +func (this *QImage) Fill2(color GlobalColor) { C.QImage_Fill2(this.h, (C.uintptr_t)(color)) } @@ -775,7 +818,7 @@ func (this *QImage) PixelFormat() *QPixelFormat { return ret1 } -func QImage_ToPixelFormat(format uintptr) *QPixelFormat { +func QImage_ToPixelFormat(format QImage__Format) *QPixelFormat { ret := C.QImage_ToPixelFormat((C.uintptr_t)(format)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixelFormat(ret) @@ -786,9 +829,9 @@ func QImage_ToPixelFormat(format uintptr) *QPixelFormat { return ret1 } -func QImage_ToImageFormat(format QPixelFormat) uintptr { +func QImage_ToImageFormat(format QPixelFormat) QImage__Format { ret := C.QImage_ToImageFormat(format.cPointer()) - return (uintptr)(ret) + return (QImage__Format)(ret) } func (this *QImage) Copy1(rect *QRect) *QImage { @@ -802,7 +845,7 @@ func (this *QImage) Copy1(rect *QRect) *QImage { return ret1 } -func (this *QImage) ConvertToFormat22(f uintptr, flags int) *QImage { +func (this *QImage) ConvertToFormat22(f QImage__Format, flags int) *QImage { ret := C.QImage_ConvertToFormat22(this.h, (C.uintptr_t)(f), (C.int)(flags)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQImage(ret) @@ -813,7 +856,7 @@ func (this *QImage) ConvertToFormat22(f uintptr, flags int) *QImage { return ret1 } -func (this *QImage) ConvertToFormat3(f uintptr, colorTable []uint, flags int) *QImage { +func (this *QImage) ConvertToFormat3(f QImage__Format, colorTable []uint, flags int) *QImage { // For the C ABI, malloc a C array of raw pointers colorTable_CArray := (*[0xffff]C.uint)(C.malloc(C.size_t(8 * len(colorTable)))) defer C.free(unsafe.Pointer(colorTable_CArray)) @@ -830,7 +873,7 @@ func (this *QImage) ConvertToFormat3(f uintptr, colorTable []uint, flags int) *Q return ret1 } -func (this *QImage) ConvertTo2(f uintptr, flags int) { +func (this *QImage) ConvertTo2(f QImage__Format, flags int) { C.QImage_ConvertTo2(this.h, (C.uintptr_t)(f), (C.int)(flags)) } @@ -856,7 +899,7 @@ func (this *QImage) CreateHeuristicMask1(clipTight bool) *QImage { return ret1 } -func (this *QImage) CreateMaskFromColor2(color uint, mode uintptr) *QImage { +func (this *QImage) CreateMaskFromColor2(color uint, mode MaskMode) *QImage { ret := C.QImage_CreateMaskFromColor2(this.h, (C.uint)(color), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQImage(ret) @@ -867,7 +910,7 @@ func (this *QImage) CreateMaskFromColor2(color uint, mode uintptr) *QImage { return ret1 } -func (this *QImage) Scaled3(w int, h int, aspectMode uintptr) *QImage { +func (this *QImage) Scaled3(w int, h int, aspectMode AspectRatioMode) *QImage { ret := C.QImage_Scaled3(this.h, (C.int)(w), (C.int)(h), (C.uintptr_t)(aspectMode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQImage(ret) @@ -878,7 +921,7 @@ func (this *QImage) Scaled3(w int, h int, aspectMode uintptr) *QImage { return ret1 } -func (this *QImage) Scaled4(w int, h int, aspectMode uintptr, mode uintptr) *QImage { +func (this *QImage) Scaled4(w int, h int, aspectMode AspectRatioMode, mode TransformationMode) *QImage { ret := C.QImage_Scaled4(this.h, (C.int)(w), (C.int)(h), (C.uintptr_t)(aspectMode), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQImage(ret) @@ -889,7 +932,7 @@ func (this *QImage) Scaled4(w int, h int, aspectMode uintptr, mode uintptr) *QIm return ret1 } -func (this *QImage) Scaled2(s *QSize, aspectMode uintptr) *QImage { +func (this *QImage) Scaled2(s *QSize, aspectMode AspectRatioMode) *QImage { ret := C.QImage_Scaled2(this.h, s.cPointer(), (C.uintptr_t)(aspectMode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQImage(ret) @@ -900,7 +943,7 @@ func (this *QImage) Scaled2(s *QSize, aspectMode uintptr) *QImage { return ret1 } -func (this *QImage) Scaled32(s *QSize, aspectMode uintptr, mode uintptr) *QImage { +func (this *QImage) Scaled32(s *QSize, aspectMode AspectRatioMode, mode TransformationMode) *QImage { ret := C.QImage_Scaled32(this.h, s.cPointer(), (C.uintptr_t)(aspectMode), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQImage(ret) @@ -911,7 +954,7 @@ func (this *QImage) Scaled32(s *QSize, aspectMode uintptr, mode uintptr) *QImage return ret1 } -func (this *QImage) ScaledToWidth2(w int, mode uintptr) *QImage { +func (this *QImage) ScaledToWidth2(w int, mode TransformationMode) *QImage { ret := C.QImage_ScaledToWidth2(this.h, (C.int)(w), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQImage(ret) @@ -922,7 +965,7 @@ func (this *QImage) ScaledToWidth2(w int, mode uintptr) *QImage { return ret1 } -func (this *QImage) ScaledToHeight2(h int, mode uintptr) *QImage { +func (this *QImage) ScaledToHeight2(h int, mode TransformationMode) *QImage { ret := C.QImage_ScaledToHeight2(this.h, (C.int)(h), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQImage(ret) @@ -933,7 +976,7 @@ func (this *QImage) ScaledToHeight2(h int, mode uintptr) *QImage { return ret1 } -func (this *QImage) Transformed2(matrix *QMatrix, mode uintptr) *QImage { +func (this *QImage) Transformed2(matrix *QMatrix, mode TransformationMode) *QImage { ret := C.QImage_Transformed2(this.h, matrix.cPointer(), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQImage(ret) @@ -944,7 +987,7 @@ func (this *QImage) Transformed2(matrix *QMatrix, mode uintptr) *QImage { return ret1 } -func (this *QImage) Transformed22(matrix *QTransform, mode uintptr) *QImage { +func (this *QImage) Transformed22(matrix *QTransform, mode TransformationMode) *QImage { ret := C.QImage_Transformed22(this.h, matrix.cPointer(), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQImage(ret) @@ -977,7 +1020,7 @@ func (this *QImage) Mirrored2(horizontally bool, vertically bool) *QImage { return ret1 } -func (this *QImage) InvertPixels1(param1 uintptr) { +func (this *QImage) InvertPixels1(param1 QImage__InvertMode) { C.QImage_InvertPixels1(this.h, (C.uintptr_t)(param1)) } diff --git a/qt/gen_qimageiohandler.go b/qt/gen_qimageiohandler.go index a31f06fb..13ef4dde 100644 --- a/qt/gen_qimageiohandler.go +++ b/qt/gen_qimageiohandler.go @@ -13,6 +13,52 @@ import ( "unsafe" ) +type QImageIOHandler__ImageOption int + +const ( + QImageIOHandler__ImageOption__Size QImageIOHandler__ImageOption = 0 + QImageIOHandler__ImageOption__ClipRect QImageIOHandler__ImageOption = 1 + QImageIOHandler__ImageOption__Description QImageIOHandler__ImageOption = 2 + QImageIOHandler__ImageOption__ScaledClipRect QImageIOHandler__ImageOption = 3 + QImageIOHandler__ImageOption__ScaledSize QImageIOHandler__ImageOption = 4 + QImageIOHandler__ImageOption__CompressionRatio QImageIOHandler__ImageOption = 5 + QImageIOHandler__ImageOption__Gamma QImageIOHandler__ImageOption = 6 + QImageIOHandler__ImageOption__Quality QImageIOHandler__ImageOption = 7 + QImageIOHandler__ImageOption__Name QImageIOHandler__ImageOption = 8 + QImageIOHandler__ImageOption__SubType QImageIOHandler__ImageOption = 9 + QImageIOHandler__ImageOption__IncrementalReading QImageIOHandler__ImageOption = 10 + QImageIOHandler__ImageOption__Endianness QImageIOHandler__ImageOption = 11 + QImageIOHandler__ImageOption__Animation QImageIOHandler__ImageOption = 12 + QImageIOHandler__ImageOption__BackgroundColor QImageIOHandler__ImageOption = 13 + QImageIOHandler__ImageOption__ImageFormat QImageIOHandler__ImageOption = 14 + QImageIOHandler__ImageOption__SupportedSubTypes QImageIOHandler__ImageOption = 15 + QImageIOHandler__ImageOption__OptimizedWrite QImageIOHandler__ImageOption = 16 + QImageIOHandler__ImageOption__ProgressiveScanWrite QImageIOHandler__ImageOption = 17 + QImageIOHandler__ImageOption__ImageTransformation QImageIOHandler__ImageOption = 18 + QImageIOHandler__ImageOption__TransformedByDefault QImageIOHandler__ImageOption = 19 +) + +type QImageIOHandler__Transformation int + +const ( + QImageIOHandler__Transformation__TransformationNone QImageIOHandler__Transformation = 0 + QImageIOHandler__Transformation__TransformationMirror QImageIOHandler__Transformation = 1 + QImageIOHandler__Transformation__TransformationFlip QImageIOHandler__Transformation = 2 + QImageIOHandler__Transformation__TransformationRotate180 QImageIOHandler__Transformation = 3 + QImageIOHandler__Transformation__TransformationRotate90 QImageIOHandler__Transformation = 4 + QImageIOHandler__Transformation__TransformationMirrorAndRotate90 QImageIOHandler__Transformation = 5 + QImageIOHandler__Transformation__TransformationFlipAndRotate90 QImageIOHandler__Transformation = 6 + QImageIOHandler__Transformation__TransformationRotate270 QImageIOHandler__Transformation = 7 +) + +type QImageIOPlugin__Capability int + +const ( + QImageIOPlugin__Capability__CanRead QImageIOPlugin__Capability = 1 + QImageIOPlugin__Capability__CanWrite QImageIOPlugin__Capability = 2 + QImageIOPlugin__Capability__CanReadIncremental QImageIOPlugin__Capability = 4 +) + type QImageIOHandler struct { h *C.QImageIOHandler } @@ -89,7 +135,7 @@ func (this *QImageIOHandler) Write(image *QImage) bool { return (bool)(ret) } -func (this *QImageIOHandler) Option(option uintptr) *QVariant { +func (this *QImageIOHandler) Option(option QImageIOHandler__ImageOption) *QVariant { ret := C.QImageIOHandler_Option(this.h, (C.uintptr_t)(option)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -100,11 +146,11 @@ func (this *QImageIOHandler) Option(option uintptr) *QVariant { return ret1 } -func (this *QImageIOHandler) SetOption(option uintptr, value *QVariant) { +func (this *QImageIOHandler) SetOption(option QImageIOHandler__ImageOption, value *QVariant) { C.QImageIOHandler_SetOption(this.h, (C.uintptr_t)(option), value.cPointer()) } -func (this *QImageIOHandler) SupportsOption(option uintptr) bool { +func (this *QImageIOHandler) SupportsOption(option QImageIOHandler__ImageOption) bool { ret := C.QImageIOHandler_SupportsOption(this.h, (C.uintptr_t)(option)) return (bool)(ret) } diff --git a/qt/gen_qimagereader.go b/qt/gen_qimagereader.go index 12c21d5b..153a2ba0 100644 --- a/qt/gen_qimagereader.go +++ b/qt/gen_qimagereader.go @@ -13,6 +13,16 @@ import ( "unsafe" ) +type QImageReader__ImageReaderError int + +const ( + QImageReader__ImageReaderError__UnknownError QImageReader__ImageReaderError = 0 + QImageReader__ImageReaderError__FileNotFoundError QImageReader__ImageReaderError = 1 + QImageReader__ImageReaderError__DeviceError QImageReader__ImageReaderError = 2 + QImageReader__ImageReaderError__UnsupportedFormatError QImageReader__ImageReaderError = 3 + QImageReader__ImageReaderError__InvalidDataError QImageReader__ImageReaderError = 4 +) + type QImageReader struct { h *C.QImageReader } @@ -159,9 +169,9 @@ func (this *QImageReader) Size() *QSize { return ret1 } -func (this *QImageReader) ImageFormat() uintptr { +func (this *QImageReader) ImageFormat() QImage__Format { ret := C.QImageReader_ImageFormat(this.h) - return (uintptr)(ret) + return (QImage__Format)(ret) } func (this *QImageReader) TextKeys() []string { @@ -373,9 +383,9 @@ func (this *QImageReader) CurrentImageRect() *QRect { return ret1 } -func (this *QImageReader) Error() uintptr { +func (this *QImageReader) Error() QImageReader__ImageReaderError { ret := C.QImageReader_Error(this.h) - return (uintptr)(ret) + return (QImageReader__ImageReaderError)(ret) } func (this *QImageReader) ErrorString() string { @@ -387,7 +397,7 @@ func (this *QImageReader) ErrorString() string { return ret } -func (this *QImageReader) SupportsOption(option uintptr) bool { +func (this *QImageReader) SupportsOption(option QImageIOHandler__ImageOption) bool { ret := C.QImageReader_SupportsOption(this.h, (C.uintptr_t)(option)) return (bool)(ret) } diff --git a/qt/gen_qimagewriter.go b/qt/gen_qimagewriter.go index 96868627..9917aa1f 100644 --- a/qt/gen_qimagewriter.go +++ b/qt/gen_qimagewriter.go @@ -13,6 +13,15 @@ import ( "unsafe" ) +type QImageWriter__ImageWriterError int + +const ( + QImageWriter__ImageWriterError__UnknownError QImageWriter__ImageWriterError = 0 + QImageWriter__ImageWriterError__DeviceError QImageWriter__ImageWriterError = 1 + QImageWriter__ImageWriterError__UnsupportedFormatError QImageWriter__ImageWriterError = 2 + QImageWriter__ImageWriterError__InvalidImageError QImageWriter__ImageWriterError = 3 +) + type QImageWriter struct { h *C.QImageWriter } @@ -239,9 +248,9 @@ func (this *QImageWriter) Write(image *QImage) bool { return (bool)(ret) } -func (this *QImageWriter) Error() uintptr { +func (this *QImageWriter) Error() QImageWriter__ImageWriterError { ret := C.QImageWriter_Error(this.h) - return (uintptr)(ret) + return (QImageWriter__ImageWriterError)(ret) } func (this *QImageWriter) ErrorString() string { @@ -253,7 +262,7 @@ func (this *QImageWriter) ErrorString() string { return ret } -func (this *QImageWriter) SupportsOption(option uintptr) bool { +func (this *QImageWriter) SupportsOption(option QImageIOHandler__ImageOption) bool { ret := C.QImageWriter_SupportsOption(this.h, (C.uintptr_t)(option)) return (bool)(ret) } diff --git a/qt/gen_qinputdialog.go b/qt/gen_qinputdialog.go index 4cfa48cf..b0a9f1d1 100644 --- a/qt/gen_qinputdialog.go +++ b/qt/gen_qinputdialog.go @@ -14,6 +14,22 @@ import ( "unsafe" ) +type QInputDialog__InputDialogOption int + +const ( + QInputDialog__InputDialogOption__NoButtons QInputDialog__InputDialogOption = 1 + QInputDialog__InputDialogOption__UseListViewForComboBoxItems QInputDialog__InputDialogOption = 2 + QInputDialog__InputDialogOption__UsePlainTextEditForTextInput QInputDialog__InputDialogOption = 4 +) + +type QInputDialog__InputMode int + +const ( + QInputDialog__InputMode__TextInput QInputDialog__InputMode = 0 + QInputDialog__InputMode__IntInput QInputDialog__InputMode = 1 + QInputDialog__InputMode__DoubleInput QInputDialog__InputMode = 2 +) + type QInputDialog struct { h *C.QInputDialog *QDialog @@ -82,13 +98,13 @@ func QInputDialog_TrUtf8(s string) string { return ret } -func (this *QInputDialog) SetInputMode(mode uintptr) { +func (this *QInputDialog) SetInputMode(mode QInputDialog__InputMode) { C.QInputDialog_SetInputMode(this.h, (C.uintptr_t)(mode)) } -func (this *QInputDialog) InputMode() uintptr { +func (this *QInputDialog) InputMode() QInputDialog__InputMode { ret := C.QInputDialog_InputMode(this.h) - return (uintptr)(ret) + return (QInputDialog__InputMode)(ret) } func (this *QInputDialog) SetLabelText(text string) { @@ -106,11 +122,11 @@ func (this *QInputDialog) LabelText() string { return ret } -func (this *QInputDialog) SetOption(option uintptr) { +func (this *QInputDialog) SetOption(option QInputDialog__InputDialogOption) { C.QInputDialog_SetOption(this.h, (C.uintptr_t)(option)) } -func (this *QInputDialog) TestOption(option uintptr) bool { +func (this *QInputDialog) TestOption(option QInputDialog__InputDialogOption) bool { ret := C.QInputDialog_TestOption(this.h, (C.uintptr_t)(option)) return (bool)(ret) } @@ -139,13 +155,13 @@ func (this *QInputDialog) TextValue() string { return ret } -func (this *QInputDialog) SetTextEchoMode(mode uintptr) { +func (this *QInputDialog) SetTextEchoMode(mode QLineEdit__EchoMode) { C.QInputDialog_SetTextEchoMode(this.h, (C.uintptr_t)(mode)) } -func (this *QInputDialog) TextEchoMode() uintptr { +func (this *QInputDialog) TextEchoMode() QLineEdit__EchoMode { ret := C.QInputDialog_TextEchoMode(this.h) - return (uintptr)(ret) + return (QLineEdit__EchoMode)(ret) } func (this *QInputDialog) SetComboBoxEditable(editable bool) { @@ -541,11 +557,11 @@ func QInputDialog_TrUtf83(s string, c string, n int) string { return ret } -func (this *QInputDialog) SetOption2(option uintptr, on bool) { +func (this *QInputDialog) SetOption2(option QInputDialog__InputDialogOption, on bool) { C.QInputDialog_SetOption2(this.h, (C.uintptr_t)(option), (C.bool)(on)) } -func QInputDialog_GetText4(parent *QWidget, title string, label string, echo uintptr) string { +func QInputDialog_GetText4(parent *QWidget, title string, label string, echo QLineEdit__EchoMode) string { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) label_Cstring := C.CString(label) @@ -558,7 +574,7 @@ func QInputDialog_GetText4(parent *QWidget, title string, label string, echo uin return ret } -func QInputDialog_GetText5(parent *QWidget, title string, label string, echo uintptr, text string) string { +func QInputDialog_GetText5(parent *QWidget, title string, label string, echo QLineEdit__EchoMode, text string) string { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) label_Cstring := C.CString(label) @@ -573,7 +589,7 @@ func QInputDialog_GetText5(parent *QWidget, title string, label string, echo uin return ret } -func QInputDialog_GetText6(parent *QWidget, title string, label string, echo uintptr, text string, ok *bool) string { +func QInputDialog_GetText6(parent *QWidget, title string, label string, echo QLineEdit__EchoMode, text string, ok *bool) string { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) label_Cstring := C.CString(label) @@ -588,7 +604,7 @@ func QInputDialog_GetText6(parent *QWidget, title string, label string, echo uin return ret } -func QInputDialog_GetText7(parent *QWidget, title string, label string, echo uintptr, text string, ok *bool, flags int) string { +func QInputDialog_GetText7(parent *QWidget, title string, label string, echo QLineEdit__EchoMode, text string, ok *bool, flags int) string { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) label_Cstring := C.CString(label) @@ -603,7 +619,7 @@ func QInputDialog_GetText7(parent *QWidget, title string, label string, echo uin return ret } -func QInputDialog_GetText8(parent *QWidget, title string, label string, echo uintptr, text string, ok *bool, flags int, inputMethodHints int) string { +func QInputDialog_GetText8(parent *QWidget, title string, label string, echo QLineEdit__EchoMode, text string, ok *bool, flags int, inputMethodHints int) string { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) label_Cstring := C.CString(label) diff --git a/qt/gen_qinputmethod.go b/qt/gen_qinputmethod.go index 331e6f5d..5a5d3ddf 100644 --- a/qt/gen_qinputmethod.go +++ b/qt/gen_qinputmethod.go @@ -14,6 +14,13 @@ import ( "unsafe" ) +type QInputMethod__Action int + +const ( + QInputMethod__Action__Click QInputMethod__Action = 0 + QInputMethod__Action__ContextMenu QInputMethod__Action = 1 +) + type QInputMethod struct { h *C.QInputMethod *QObject @@ -163,12 +170,12 @@ func (this *QInputMethod) Locale() *QLocale { return ret1 } -func (this *QInputMethod) InputDirection() uintptr { +func (this *QInputMethod) InputDirection() LayoutDirection { ret := C.QInputMethod_InputDirection(this.h) - return (uintptr)(ret) + return (LayoutDirection)(ret) } -func QInputMethod_QueryFocusObject(query uintptr, argument QVariant) *QVariant { +func QInputMethod_QueryFocusObject(query InputMethodQuery, argument QVariant) *QVariant { ret := C.QInputMethod_QueryFocusObject((C.uintptr_t)(query), argument.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -199,7 +206,7 @@ func (this *QInputMethod) Commit() { C.QInputMethod_Commit(this.h) } -func (this *QInputMethod) InvokeAction(a uintptr, cursorPosition int) { +func (this *QInputMethod) InvokeAction(a QInputMethod__Action, cursorPosition int) { C.QInputMethod_InvokeAction(this.h, (C.uintptr_t)(a), (C.int)(cursorPosition)) } @@ -287,7 +294,7 @@ func (this *QInputMethod) OnLocaleChanged(slot func()) { C.QInputMethod_connect_LocaleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QInputMethod) InputDirectionChanged(newDirection uintptr) { +func (this *QInputMethod) InputDirectionChanged(newDirection LayoutDirection) { C.QInputMethod_InputDirectionChanged(this.h, (C.uintptr_t)(newDirection)) } diff --git a/qt/gen_qiodevice.go b/qt/gen_qiodevice.go index dd26c339..83acb921 100644 --- a/qt/gen_qiodevice.go +++ b/qt/gen_qiodevice.go @@ -14,6 +14,21 @@ import ( "unsafe" ) +type QIODevice__OpenModeFlag int + +const ( + QIODevice__OpenModeFlag__NotOpen QIODevice__OpenModeFlag = 0 + QIODevice__OpenModeFlag__ReadOnly QIODevice__OpenModeFlag = 1 + QIODevice__OpenModeFlag__WriteOnly QIODevice__OpenModeFlag = 2 + QIODevice__OpenModeFlag__ReadWrite QIODevice__OpenModeFlag = 3 + QIODevice__OpenModeFlag__Append QIODevice__OpenModeFlag = 4 + QIODevice__OpenModeFlag__Truncate QIODevice__OpenModeFlag = 8 + QIODevice__OpenModeFlag__Text QIODevice__OpenModeFlag = 16 + QIODevice__OpenModeFlag__Unbuffered QIODevice__OpenModeFlag = 32 + QIODevice__OpenModeFlag__NewOnly QIODevice__OpenModeFlag = 64 + QIODevice__OpenModeFlag__ExistingOnly QIODevice__OpenModeFlag = 128 +) + type QIODevice struct { h *C.QIODevice *QObject diff --git a/qt/gen_qitemselectionmodel.go b/qt/gen_qitemselectionmodel.go index cae72089..d002ac1b 100644 --- a/qt/gen_qitemselectionmodel.go +++ b/qt/gen_qitemselectionmodel.go @@ -14,6 +14,22 @@ import ( "unsafe" ) +type QItemSelectionModel__SelectionFlag int + +const ( + QItemSelectionModel__SelectionFlag__NoUpdate QItemSelectionModel__SelectionFlag = 0 + QItemSelectionModel__SelectionFlag__Clear QItemSelectionModel__SelectionFlag = 1 + QItemSelectionModel__SelectionFlag__Select QItemSelectionModel__SelectionFlag = 2 + QItemSelectionModel__SelectionFlag__Deselect QItemSelectionModel__SelectionFlag = 4 + QItemSelectionModel__SelectionFlag__Toggle QItemSelectionModel__SelectionFlag = 8 + QItemSelectionModel__SelectionFlag__Current QItemSelectionModel__SelectionFlag = 16 + QItemSelectionModel__SelectionFlag__Rows QItemSelectionModel__SelectionFlag = 32 + QItemSelectionModel__SelectionFlag__Columns QItemSelectionModel__SelectionFlag = 64 + QItemSelectionModel__SelectionFlag__SelectCurrent QItemSelectionModel__SelectionFlag = 18 + QItemSelectionModel__SelectionFlag__ToggleCurrent QItemSelectionModel__SelectionFlag = 24 + QItemSelectionModel__SelectionFlag__ClearAndSelect QItemSelectionModel__SelectionFlag = 3 +) + type QItemSelectionRange struct { h *C.QItemSelectionRange } diff --git a/qt/gen_qjsondocument.go b/qt/gen_qjsondocument.go index a431ab05..3b3555ea 100644 --- a/qt/gen_qjsondocument.go +++ b/qt/gen_qjsondocument.go @@ -13,6 +13,40 @@ import ( "unsafe" ) +type QJsonParseError__ParseError int + +const ( + QJsonParseError__ParseError__NoError QJsonParseError__ParseError = 0 + QJsonParseError__ParseError__UnterminatedObject QJsonParseError__ParseError = 1 + QJsonParseError__ParseError__MissingNameSeparator QJsonParseError__ParseError = 2 + QJsonParseError__ParseError__UnterminatedArray QJsonParseError__ParseError = 3 + QJsonParseError__ParseError__MissingValueSeparator QJsonParseError__ParseError = 4 + QJsonParseError__ParseError__IllegalValue QJsonParseError__ParseError = 5 + QJsonParseError__ParseError__TerminationByNumber QJsonParseError__ParseError = 6 + QJsonParseError__ParseError__IllegalNumber QJsonParseError__ParseError = 7 + QJsonParseError__ParseError__IllegalEscapeSequence QJsonParseError__ParseError = 8 + QJsonParseError__ParseError__IllegalUTF8String QJsonParseError__ParseError = 9 + QJsonParseError__ParseError__UnterminatedString QJsonParseError__ParseError = 10 + QJsonParseError__ParseError__MissingObject QJsonParseError__ParseError = 11 + QJsonParseError__ParseError__DeepNesting QJsonParseError__ParseError = 12 + QJsonParseError__ParseError__DocumentTooLarge QJsonParseError__ParseError = 13 + QJsonParseError__ParseError__GarbageAtEnd QJsonParseError__ParseError = 14 +) + +type QJsonDocument__DataValidation int + +const ( + QJsonDocument__DataValidation__Validate QJsonDocument__DataValidation = 0 + QJsonDocument__DataValidation__BypassValidation QJsonDocument__DataValidation = 1 +) + +type QJsonDocument__JsonFormat int + +const ( + QJsonDocument__JsonFormat__Indented QJsonDocument__JsonFormat = 0 + QJsonDocument__JsonFormat__Compact QJsonDocument__JsonFormat = 1 +) + type QJsonParseError struct { h *C.QJsonParseError } @@ -186,7 +220,7 @@ func (this *QJsonDocument) ToJson() *QByteArray { return ret1 } -func (this *QJsonDocument) ToJsonWithFormat(format uintptr) *QByteArray { +func (this *QJsonDocument) ToJsonWithFormat(format QJsonDocument__JsonFormat) *QByteArray { ret := C.QJsonDocument_ToJsonWithFormat(this.h, (C.uintptr_t)(format)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQByteArray(ret) @@ -281,7 +315,7 @@ func (this *QJsonDocument) IsNull() bool { return (bool)(ret) } -func QJsonDocument_FromRawData3(data string, size int, validation uintptr) *QJsonDocument { +func QJsonDocument_FromRawData3(data string, size int, validation QJsonDocument__DataValidation) *QJsonDocument { data_Cstring := C.CString(data) defer C.free(unsafe.Pointer(data_Cstring)) ret := C.QJsonDocument_FromRawData3(data_Cstring, (C.int)(size), (C.uintptr_t)(validation)) @@ -294,7 +328,7 @@ func QJsonDocument_FromRawData3(data string, size int, validation uintptr) *QJso return ret1 } -func QJsonDocument_FromBinaryData2(data *QByteArray, validation uintptr) *QJsonDocument { +func QJsonDocument_FromBinaryData2(data *QByteArray, validation QJsonDocument__DataValidation) *QJsonDocument { ret := C.QJsonDocument_FromBinaryData2(data.cPointer(), (C.uintptr_t)(validation)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQJsonDocument(ret) diff --git a/qt/gen_qjsonvalue.go b/qt/gen_qjsonvalue.go index 10f23d2f..dd248b1f 100644 --- a/qt/gen_qjsonvalue.go +++ b/qt/gen_qjsonvalue.go @@ -13,6 +13,18 @@ import ( "unsafe" ) +type QJsonValue__Type int + +const ( + QJsonValue__Type__Null QJsonValue__Type = 0 + QJsonValue__Type__Bool QJsonValue__Type = 1 + QJsonValue__Type__Double QJsonValue__Type = 2 + QJsonValue__Type__String QJsonValue__Type = 3 + QJsonValue__Type__Array QJsonValue__Type = 4 + QJsonValue__Type__Object QJsonValue__Type = 5 + QJsonValue__Type__Undefined QJsonValue__Type = 128 +) + type QJsonValue struct { h *C.QJsonValue } @@ -100,7 +112,7 @@ func NewQJsonValue10(other *QJsonValue) *QJsonValue { } // NewQJsonValue11 constructs a new QJsonValue object. -func NewQJsonValue11(param1 uintptr) *QJsonValue { +func NewQJsonValue11(param1 QJsonValue__Type) *QJsonValue { ret := C.QJsonValue_new11((C.uintptr_t)(param1)) return newQJsonValue(ret) } @@ -135,9 +147,9 @@ func (this *QJsonValue) ToVariant() *QVariant { return ret1 } -func (this *QJsonValue) Type() uintptr { +func (this *QJsonValue) Type() QJsonValue__Type { ret := C.QJsonValue_Type(this.h) - return (uintptr)(ret) + return (QJsonValue__Type)(ret) } func (this *QJsonValue) IsNull() bool { @@ -366,9 +378,9 @@ func (this *QJsonValueRef) ToVariant() *QVariant { return ret1 } -func (this *QJsonValueRef) Type() uintptr { +func (this *QJsonValueRef) Type() QJsonValue__Type { ret := C.QJsonValueRef_Type(this.h) - return (uintptr)(ret) + return (QJsonValue__Type)(ret) } func (this *QJsonValueRef) IsNull() bool { diff --git a/qt/gen_qkeyeventtransition.go b/qt/gen_qkeyeventtransition.go index 33b7c8b9..acf059b5 100644 --- a/qt/gen_qkeyeventtransition.go +++ b/qt/gen_qkeyeventtransition.go @@ -42,7 +42,7 @@ func NewQKeyEventTransition() *QKeyEventTransition { } // NewQKeyEventTransition2 constructs a new QKeyEventTransition object. -func NewQKeyEventTransition2(object *QObject, typeVal uintptr, key int) *QKeyEventTransition { +func NewQKeyEventTransition2(object *QObject, typeVal QEvent__Type, key int) *QKeyEventTransition { ret := C.QKeyEventTransition_new2(object.cPointer(), (C.uintptr_t)(typeVal), (C.int)(key)) return newQKeyEventTransition(ret) } @@ -54,7 +54,7 @@ func NewQKeyEventTransition3(sourceState *QState) *QKeyEventTransition { } // NewQKeyEventTransition4 constructs a new QKeyEventTransition object. -func NewQKeyEventTransition4(object *QObject, typeVal uintptr, key int, sourceState *QState) *QKeyEventTransition { +func NewQKeyEventTransition4(object *QObject, typeVal QEvent__Type, key int, sourceState *QState) *QKeyEventTransition { ret := C.QKeyEventTransition_new4(object.cPointer(), (C.uintptr_t)(typeVal), (C.int)(key), sourceState.cPointer()) return newQKeyEventTransition(ret) } diff --git a/qt/gen_qkeysequence.go b/qt/gen_qkeysequence.go index ae63e8f1..74b76216 100644 --- a/qt/gen_qkeysequence.go +++ b/qt/gen_qkeysequence.go @@ -13,6 +13,97 @@ import ( "unsafe" ) +type QKeySequence__StandardKey int + +const ( + QKeySequence__StandardKey__UnknownKey QKeySequence__StandardKey = 0 + QKeySequence__StandardKey__HelpContents QKeySequence__StandardKey = 1 + QKeySequence__StandardKey__WhatsThis QKeySequence__StandardKey = 2 + QKeySequence__StandardKey__Open QKeySequence__StandardKey = 3 + QKeySequence__StandardKey__Close QKeySequence__StandardKey = 4 + QKeySequence__StandardKey__Save QKeySequence__StandardKey = 5 + QKeySequence__StandardKey__New QKeySequence__StandardKey = 6 + QKeySequence__StandardKey__Delete QKeySequence__StandardKey = 7 + QKeySequence__StandardKey__Cut QKeySequence__StandardKey = 8 + QKeySequence__StandardKey__Copy QKeySequence__StandardKey = 9 + QKeySequence__StandardKey__Paste QKeySequence__StandardKey = 10 + QKeySequence__StandardKey__Undo QKeySequence__StandardKey = 11 + QKeySequence__StandardKey__Redo QKeySequence__StandardKey = 12 + QKeySequence__StandardKey__Back QKeySequence__StandardKey = 13 + QKeySequence__StandardKey__Forward QKeySequence__StandardKey = 14 + QKeySequence__StandardKey__Refresh QKeySequence__StandardKey = 15 + QKeySequence__StandardKey__ZoomIn QKeySequence__StandardKey = 16 + QKeySequence__StandardKey__ZoomOut QKeySequence__StandardKey = 17 + QKeySequence__StandardKey__Print QKeySequence__StandardKey = 18 + QKeySequence__StandardKey__AddTab QKeySequence__StandardKey = 19 + QKeySequence__StandardKey__NextChild QKeySequence__StandardKey = 20 + QKeySequence__StandardKey__PreviousChild QKeySequence__StandardKey = 21 + QKeySequence__StandardKey__Find QKeySequence__StandardKey = 22 + QKeySequence__StandardKey__FindNext QKeySequence__StandardKey = 23 + QKeySequence__StandardKey__FindPrevious QKeySequence__StandardKey = 24 + QKeySequence__StandardKey__Replace QKeySequence__StandardKey = 25 + QKeySequence__StandardKey__SelectAll QKeySequence__StandardKey = 26 + QKeySequence__StandardKey__Bold QKeySequence__StandardKey = 27 + QKeySequence__StandardKey__Italic QKeySequence__StandardKey = 28 + QKeySequence__StandardKey__Underline QKeySequence__StandardKey = 29 + QKeySequence__StandardKey__MoveToNextChar QKeySequence__StandardKey = 30 + QKeySequence__StandardKey__MoveToPreviousChar QKeySequence__StandardKey = 31 + QKeySequence__StandardKey__MoveToNextWord QKeySequence__StandardKey = 32 + QKeySequence__StandardKey__MoveToPreviousWord QKeySequence__StandardKey = 33 + QKeySequence__StandardKey__MoveToNextLine QKeySequence__StandardKey = 34 + QKeySequence__StandardKey__MoveToPreviousLine QKeySequence__StandardKey = 35 + QKeySequence__StandardKey__MoveToNextPage QKeySequence__StandardKey = 36 + QKeySequence__StandardKey__MoveToPreviousPage QKeySequence__StandardKey = 37 + QKeySequence__StandardKey__MoveToStartOfLine QKeySequence__StandardKey = 38 + QKeySequence__StandardKey__MoveToEndOfLine QKeySequence__StandardKey = 39 + QKeySequence__StandardKey__MoveToStartOfBlock QKeySequence__StandardKey = 40 + QKeySequence__StandardKey__MoveToEndOfBlock QKeySequence__StandardKey = 41 + QKeySequence__StandardKey__MoveToStartOfDocument QKeySequence__StandardKey = 42 + QKeySequence__StandardKey__MoveToEndOfDocument QKeySequence__StandardKey = 43 + QKeySequence__StandardKey__SelectNextChar QKeySequence__StandardKey = 44 + QKeySequence__StandardKey__SelectPreviousChar QKeySequence__StandardKey = 45 + QKeySequence__StandardKey__SelectNextWord QKeySequence__StandardKey = 46 + QKeySequence__StandardKey__SelectPreviousWord QKeySequence__StandardKey = 47 + QKeySequence__StandardKey__SelectNextLine QKeySequence__StandardKey = 48 + QKeySequence__StandardKey__SelectPreviousLine QKeySequence__StandardKey = 49 + QKeySequence__StandardKey__SelectNextPage QKeySequence__StandardKey = 50 + QKeySequence__StandardKey__SelectPreviousPage QKeySequence__StandardKey = 51 + QKeySequence__StandardKey__SelectStartOfLine QKeySequence__StandardKey = 52 + QKeySequence__StandardKey__SelectEndOfLine QKeySequence__StandardKey = 53 + QKeySequence__StandardKey__SelectStartOfBlock QKeySequence__StandardKey = 54 + QKeySequence__StandardKey__SelectEndOfBlock QKeySequence__StandardKey = 55 + QKeySequence__StandardKey__SelectStartOfDocument QKeySequence__StandardKey = 56 + QKeySequence__StandardKey__SelectEndOfDocument QKeySequence__StandardKey = 57 + QKeySequence__StandardKey__DeleteStartOfWord QKeySequence__StandardKey = 58 + QKeySequence__StandardKey__DeleteEndOfWord QKeySequence__StandardKey = 59 + QKeySequence__StandardKey__DeleteEndOfLine QKeySequence__StandardKey = 60 + QKeySequence__StandardKey__InsertParagraphSeparator QKeySequence__StandardKey = 61 + QKeySequence__StandardKey__InsertLineSeparator QKeySequence__StandardKey = 62 + QKeySequence__StandardKey__SaveAs QKeySequence__StandardKey = 63 + QKeySequence__StandardKey__Preferences QKeySequence__StandardKey = 64 + QKeySequence__StandardKey__Quit QKeySequence__StandardKey = 65 + QKeySequence__StandardKey__FullScreen QKeySequence__StandardKey = 66 + QKeySequence__StandardKey__Deselect QKeySequence__StandardKey = 67 + QKeySequence__StandardKey__DeleteCompleteLine QKeySequence__StandardKey = 68 + QKeySequence__StandardKey__Backspace QKeySequence__StandardKey = 69 + QKeySequence__StandardKey__Cancel QKeySequence__StandardKey = 70 +) + +type QKeySequence__SequenceFormat int + +const ( + QKeySequence__SequenceFormat__NativeText QKeySequence__SequenceFormat = 0 + QKeySequence__SequenceFormat__PortableText QKeySequence__SequenceFormat = 1 +) + +type QKeySequence__SequenceMatch int + +const ( + QKeySequence__SequenceMatch__NoMatch QKeySequence__SequenceMatch = 0 + QKeySequence__SequenceMatch__PartialMatch QKeySequence__SequenceMatch = 1 + QKeySequence__SequenceMatch__ExactMatch QKeySequence__SequenceMatch = 2 +) + type QKeySequence struct { h *C.QKeySequence } @@ -62,13 +153,13 @@ func NewQKeySequence4(ks *QKeySequence) *QKeySequence { } // NewQKeySequence5 constructs a new QKeySequence object. -func NewQKeySequence5(key uintptr) *QKeySequence { +func NewQKeySequence5(key QKeySequence__StandardKey) *QKeySequence { ret := C.QKeySequence_new5((C.uintptr_t)(key)) return newQKeySequence(ret) } // NewQKeySequence6 constructs a new QKeySequence object. -func NewQKeySequence6(key string, format uintptr) *QKeySequence { +func NewQKeySequence6(key string, format QKeySequence__SequenceFormat) *QKeySequence { key_Cstring := C.CString(key) defer C.free(unsafe.Pointer(key_Cstring)) ret := C.QKeySequence_new6(key_Cstring, C.size_t(len(key)), (C.uintptr_t)(format)) @@ -155,9 +246,9 @@ func QKeySequence_ListToString(list []QKeySequence) string { return ret } -func (this *QKeySequence) Matches(seq *QKeySequence) uintptr { +func (this *QKeySequence) Matches(seq *QKeySequence) QKeySequence__SequenceMatch { ret := C.QKeySequence_Matches(this.h, seq.cPointer()) - return (uintptr)(ret) + return (QKeySequence__SequenceMatch)(ret) } func QKeySequence_Mnemonic(text string) *QKeySequence { @@ -173,7 +264,7 @@ func QKeySequence_Mnemonic(text string) *QKeySequence { return ret1 } -func QKeySequence_KeyBindings(key uintptr) []QKeySequence { +func QKeySequence_KeyBindings(key QKeySequence__StandardKey) []QKeySequence { var _out **C.QKeySequence = nil var _out_len C.size_t = 0 C.QKeySequence_KeyBindings((C.uintptr_t)(key), &_out, &_out_len) @@ -234,7 +325,7 @@ func (this *QKeySequence) IsDetached() bool { return (bool)(ret) } -func (this *QKeySequence) ToString1(format uintptr) string { +func (this *QKeySequence) ToString1(format QKeySequence__SequenceFormat) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QKeySequence_ToString1(this.h, (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -243,7 +334,7 @@ func (this *QKeySequence) ToString1(format uintptr) string { return ret } -func QKeySequence_FromString2(str string, format uintptr) *QKeySequence { +func QKeySequence_FromString2(str string, format QKeySequence__SequenceFormat) *QKeySequence { str_Cstring := C.CString(str) defer C.free(unsafe.Pointer(str_Cstring)) ret := C.QKeySequence_FromString2(str_Cstring, C.size_t(len(str)), (C.uintptr_t)(format)) @@ -256,7 +347,7 @@ func QKeySequence_FromString2(str string, format uintptr) *QKeySequence { return ret1 } -func QKeySequence_ListFromString2(str string, format uintptr) []QKeySequence { +func QKeySequence_ListFromString2(str string, format QKeySequence__SequenceFormat) []QKeySequence { str_Cstring := C.CString(str) defer C.free(unsafe.Pointer(str_Cstring)) var _out **C.QKeySequence = nil @@ -271,7 +362,7 @@ func QKeySequence_ListFromString2(str string, format uintptr) []QKeySequence { return ret } -func QKeySequence_ListToString2(list []QKeySequence, format uintptr) string { +func QKeySequence_ListToString2(list []QKeySequence, format QKeySequence__SequenceFormat) string { // For the C ABI, malloc a C array of raw pointers list_CArray := (*[0xffff]*C.QKeySequence)(C.malloc(C.size_t(8 * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) diff --git a/qt/gen_qlabel.go b/qt/gen_qlabel.go index 7c0f98af..99b17e23 100644 --- a/qt/gen_qlabel.go +++ b/qt/gen_qlabel.go @@ -120,7 +120,7 @@ func (this *QLabel) Pixmap() *QPixmap { return newQPixmap_U(unsafe.Pointer(ret)) } -func (this *QLabel) PixmapWithQtReturnByValueConstant(param1 uintptr) *QPixmap { +func (this *QLabel) PixmapWithQtReturnByValueConstant(param1 ReturnByValueConstant) *QPixmap { ret := C.QLabel_PixmapWithQtReturnByValueConstant(this.h, (C.uintptr_t)(param1)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -136,7 +136,7 @@ func (this *QLabel) Picture() *QPicture { return newQPicture_U(unsafe.Pointer(ret)) } -func (this *QLabel) PictureWithQtReturnByValueConstant(param1 uintptr) *QPicture { +func (this *QLabel) PictureWithQtReturnByValueConstant(param1 ReturnByValueConstant) *QPicture { ret := C.QLabel_PictureWithQtReturnByValueConstant(this.h, (C.uintptr_t)(param1)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPicture(ret) @@ -152,12 +152,12 @@ func (this *QLabel) Movie() *QMovie { return newQMovie_U(unsafe.Pointer(ret)) } -func (this *QLabel) TextFormat() uintptr { +func (this *QLabel) TextFormat() TextFormat { ret := C.QLabel_TextFormat(this.h) - return (uintptr)(ret) + return (TextFormat)(ret) } -func (this *QLabel) SetTextFormat(textFormat uintptr) { +func (this *QLabel) SetTextFormat(textFormat TextFormat) { C.QLabel_SetTextFormat(this.h, (C.uintptr_t)(textFormat)) } diff --git a/qt/gen_qlayout.go b/qt/gen_qlayout.go index 38374e14..cce8dd34 100644 --- a/qt/gen_qlayout.go +++ b/qt/gen_qlayout.go @@ -13,6 +13,17 @@ import ( "unsafe" ) +type QLayout__SizeConstraint int + +const ( + QLayout__SizeConstraint__SetDefaultConstraint QLayout__SizeConstraint = 0 + QLayout__SizeConstraint__SetNoConstraint QLayout__SizeConstraint = 1 + QLayout__SizeConstraint__SetMinimumSize QLayout__SizeConstraint = 2 + QLayout__SizeConstraint__SetFixedSize QLayout__SizeConstraint = 3 + QLayout__SizeConstraint__SetMaximumSize QLayout__SizeConstraint = 4 + QLayout__SizeConstraint__SetMinAndMaxSize QLayout__SizeConstraint = 5 +) + type QLayout struct { h *C.QLayout *QObject @@ -126,13 +137,13 @@ func (this *QLayout) SetAlignment2(l *QLayout, alignment int) bool { return (bool)(ret) } -func (this *QLayout) SetSizeConstraint(sizeConstraint uintptr) { +func (this *QLayout) SetSizeConstraint(sizeConstraint QLayout__SizeConstraint) { C.QLayout_SetSizeConstraint(this.h, (C.uintptr_t)(sizeConstraint)) } -func (this *QLayout) SizeConstraint() uintptr { +func (this *QLayout) SizeConstraint() QLayout__SizeConstraint { ret := C.QLayout_SizeConstraint(this.h) - return (uintptr)(ret) + return (QLayout__SizeConstraint)(ret) } func (this *QLayout) SetMenuBar(w *QWidget) { diff --git a/qt/gen_qlayoutitem.go b/qt/gen_qlayoutitem.go index 77cf463a..e96c0c7f 100644 --- a/qt/gen_qlayoutitem.go +++ b/qt/gen_qlayoutitem.go @@ -181,13 +181,13 @@ func NewQSpacerItem2(param1 *QSpacerItem) *QSpacerItem { } // NewQSpacerItem3 constructs a new QSpacerItem object. -func NewQSpacerItem3(w int, h int, hData uintptr) *QSpacerItem { +func NewQSpacerItem3(w int, h int, hData QSizePolicy__Policy) *QSpacerItem { ret := C.QSpacerItem_new3((C.int)(w), (C.int)(h), (C.uintptr_t)(hData)) return newQSpacerItem(ret) } // NewQSpacerItem4 constructs a new QSpacerItem object. -func NewQSpacerItem4(w int, h int, hData uintptr, vData uintptr) *QSpacerItem { +func NewQSpacerItem4(w int, h int, hData QSizePolicy__Policy, vData QSizePolicy__Policy) *QSpacerItem { ret := C.QSpacerItem_new4((C.int)(w), (C.int)(h), (C.uintptr_t)(hData), (C.uintptr_t)(vData)) return newQSpacerItem(ret) } @@ -270,11 +270,11 @@ func (this *QSpacerItem) SizePolicy() *QSizePolicy { return ret1 } -func (this *QSpacerItem) ChangeSize3(w int, h int, hData uintptr) { +func (this *QSpacerItem) ChangeSize3(w int, h int, hData QSizePolicy__Policy) { C.QSpacerItem_ChangeSize3(this.h, (C.int)(w), (C.int)(h), (C.uintptr_t)(hData)) } -func (this *QSpacerItem) ChangeSize4(w int, h int, hData uintptr, vData uintptr) { +func (this *QSpacerItem) ChangeSize4(w int, h int, hData QSizePolicy__Policy, vData QSizePolicy__Policy) { C.QSpacerItem_ChangeSize4(this.h, (C.int)(w), (C.int)(h), (C.uintptr_t)(hData), (C.uintptr_t)(vData)) } diff --git a/qt/gen_qlcdnumber.go b/qt/gen_qlcdnumber.go index 298f1c2a..33e7851d 100644 --- a/qt/gen_qlcdnumber.go +++ b/qt/gen_qlcdnumber.go @@ -14,6 +14,23 @@ import ( "unsafe" ) +type QLCDNumber__Mode int + +const ( + QLCDNumber__Mode__Hex QLCDNumber__Mode = 0 + QLCDNumber__Mode__Dec QLCDNumber__Mode = 1 + QLCDNumber__Mode__Oct QLCDNumber__Mode = 2 + QLCDNumber__Mode__Bin QLCDNumber__Mode = 3 +) + +type QLCDNumber__SegmentStyle int + +const ( + QLCDNumber__SegmentStyle__Outline QLCDNumber__SegmentStyle = 0 + QLCDNumber__SegmentStyle__Filled QLCDNumber__SegmentStyle = 1 + QLCDNumber__SegmentStyle__Flat QLCDNumber__SegmentStyle = 2 +) + type QLCDNumber struct { h *C.QLCDNumber *QFrame @@ -112,21 +129,21 @@ func (this *QLCDNumber) CheckOverflowWithNum(num int) bool { return (bool)(ret) } -func (this *QLCDNumber) Mode() uintptr { +func (this *QLCDNumber) Mode() QLCDNumber__Mode { ret := C.QLCDNumber_Mode(this.h) - return (uintptr)(ret) + return (QLCDNumber__Mode)(ret) } -func (this *QLCDNumber) SetMode(mode uintptr) { +func (this *QLCDNumber) SetMode(mode QLCDNumber__Mode) { C.QLCDNumber_SetMode(this.h, (C.uintptr_t)(mode)) } -func (this *QLCDNumber) SegmentStyle() uintptr { +func (this *QLCDNumber) SegmentStyle() QLCDNumber__SegmentStyle { ret := C.QLCDNumber_SegmentStyle(this.h) - return (uintptr)(ret) + return (QLCDNumber__SegmentStyle)(ret) } -func (this *QLCDNumber) SetSegmentStyle(segmentStyle uintptr) { +func (this *QLCDNumber) SetSegmentStyle(segmentStyle QLCDNumber__SegmentStyle) { C.QLCDNumber_SetSegmentStyle(this.h, (C.uintptr_t)(segmentStyle)) } diff --git a/qt/gen_qlibrary.go b/qt/gen_qlibrary.go index 03e02d7d..3362ac41 100644 --- a/qt/gen_qlibrary.go +++ b/qt/gen_qlibrary.go @@ -12,6 +12,16 @@ import ( "unsafe" ) +type QLibrary__LoadHint int + +const ( + QLibrary__LoadHint__ResolveAllSymbolsHint QLibrary__LoadHint = 1 + QLibrary__LoadHint__ExportExternalSymbolsHint QLibrary__LoadHint = 2 + QLibrary__LoadHint__LoadArchiveMemberHint QLibrary__LoadHint = 4 + QLibrary__LoadHint__PreventUnloadHint QLibrary__LoadHint = 8 + QLibrary__LoadHint__DeepBindHint QLibrary__LoadHint = 16 +) + type QLibrary struct { h *C.QLibrary *QObject diff --git a/qt/gen_qlibraryinfo.go b/qt/gen_qlibraryinfo.go index ee19a8d8..15162e94 100644 --- a/qt/gen_qlibraryinfo.go +++ b/qt/gen_qlibraryinfo.go @@ -13,6 +13,26 @@ import ( "unsafe" ) +type QLibraryInfo__LibraryLocation int + +const ( + QLibraryInfo__LibraryLocation__PrefixPath QLibraryInfo__LibraryLocation = 0 + QLibraryInfo__LibraryLocation__DocumentationPath QLibraryInfo__LibraryLocation = 1 + QLibraryInfo__LibraryLocation__HeadersPath QLibraryInfo__LibraryLocation = 2 + QLibraryInfo__LibraryLocation__LibrariesPath QLibraryInfo__LibraryLocation = 3 + QLibraryInfo__LibraryLocation__LibraryExecutablesPath QLibraryInfo__LibraryLocation = 4 + QLibraryInfo__LibraryLocation__BinariesPath QLibraryInfo__LibraryLocation = 5 + QLibraryInfo__LibraryLocation__PluginsPath QLibraryInfo__LibraryLocation = 6 + QLibraryInfo__LibraryLocation__ImportsPath QLibraryInfo__LibraryLocation = 7 + QLibraryInfo__LibraryLocation__Qml2ImportsPath QLibraryInfo__LibraryLocation = 8 + QLibraryInfo__LibraryLocation__ArchDataPath QLibraryInfo__LibraryLocation = 9 + QLibraryInfo__LibraryLocation__DataPath QLibraryInfo__LibraryLocation = 10 + QLibraryInfo__LibraryLocation__TranslationsPath QLibraryInfo__LibraryLocation = 11 + QLibraryInfo__LibraryLocation__ExamplesPath QLibraryInfo__LibraryLocation = 12 + QLibraryInfo__LibraryLocation__TestsPath QLibraryInfo__LibraryLocation = 13 + QLibraryInfo__LibraryLocation__SettingsPath QLibraryInfo__LibraryLocation = 100 +) + type QLibraryInfo struct { h *C.QLibraryInfo } @@ -85,7 +105,7 @@ func QLibraryInfo_Version() *QVersionNumber { return ret1 } -func QLibraryInfo_Location(param1 uintptr) string { +func QLibraryInfo_Location(param1 QLibraryInfo__LibraryLocation) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLibraryInfo_Location((C.uintptr_t)(param1), &_out, &_out_Strlen) diff --git a/qt/gen_qline.go b/qt/gen_qline.go index 90c94617..9ec9b622 100644 --- a/qt/gen_qline.go +++ b/qt/gen_qline.go @@ -13,6 +13,14 @@ import ( "unsafe" ) +type QLineF__IntersectType int + +const ( + QLineF__IntersectType__NoIntersection QLineF__IntersectType = 0 + QLineF__IntersectType__BoundedIntersection QLineF__IntersectType = 1 + QLineF__IntersectType__UnboundedIntersection QLineF__IntersectType = 2 +) + type QLine struct { h *C.QLine } @@ -357,9 +365,9 @@ func (this *QLineF) Intersects(l *QLineF, intersectionPoint *QPointF) uintptr { return (uintptr)(ret) } -func (this *QLineF) Intersect(l *QLineF, intersectionPoint *QPointF) uintptr { +func (this *QLineF) Intersect(l *QLineF, intersectionPoint *QPointF) QLineF__IntersectType { ret := C.QLineF_Intersect(this.h, l.cPointer(), intersectionPoint.cPointer()) - return (uintptr)(ret) + return (QLineF__IntersectType)(ret) } func (this *QLineF) AngleWithQLineF(l *QLineF) float64 { diff --git a/qt/gen_qlineedit.go b/qt/gen_qlineedit.go index 7b6246e7..c5cc29c1 100644 --- a/qt/gen_qlineedit.go +++ b/qt/gen_qlineedit.go @@ -14,6 +14,22 @@ import ( "unsafe" ) +type QLineEdit__ActionPosition int + +const ( + QLineEdit__ActionPosition__LeadingPosition QLineEdit__ActionPosition = 0 + QLineEdit__ActionPosition__TrailingPosition QLineEdit__ActionPosition = 1 +) + +type QLineEdit__EchoMode int + +const ( + QLineEdit__EchoMode__Normal QLineEdit__EchoMode = 0 + QLineEdit__EchoMode__NoEcho QLineEdit__EchoMode = 1 + QLineEdit__EchoMode__Password QLineEdit__EchoMode = 2 + QLineEdit__EchoMode__PasswordEchoOnEdit QLineEdit__EchoMode = 3 +) + type QLineEdit struct { h *C.QLineEdit *QWidget @@ -152,12 +168,12 @@ func (this *QLineEdit) IsClearButtonEnabled() bool { return (bool)(ret) } -func (this *QLineEdit) EchoMode() uintptr { +func (this *QLineEdit) EchoMode() QLineEdit__EchoMode { ret := C.QLineEdit_EchoMode(this.h) - return (uintptr)(ret) + return (QLineEdit__EchoMode)(ret) } -func (this *QLineEdit) SetEchoMode(echoMode uintptr) { +func (this *QLineEdit) SetEchoMode(echoMode QLineEdit__EchoMode) { C.QLineEdit_SetEchoMode(this.h, (C.uintptr_t)(echoMode)) } @@ -326,13 +342,13 @@ func (this *QLineEdit) DragEnabled() bool { return (bool)(ret) } -func (this *QLineEdit) SetCursorMoveStyle(style uintptr) { +func (this *QLineEdit) SetCursorMoveStyle(style CursorMoveStyle) { C.QLineEdit_SetCursorMoveStyle(this.h, (C.uintptr_t)(style)) } -func (this *QLineEdit) CursorMoveStyle() uintptr { +func (this *QLineEdit) CursorMoveStyle() CursorMoveStyle { ret := C.QLineEdit_CursorMoveStyle(this.h) - return (uintptr)(ret) + return (CursorMoveStyle)(ret) } func (this *QLineEdit) InputMask() string { @@ -378,11 +394,11 @@ func (this *QLineEdit) TextMargins() *QMargins { return ret1 } -func (this *QLineEdit) AddAction(action *QAction, position uintptr) { +func (this *QLineEdit) AddAction(action *QAction, position QLineEdit__ActionPosition) { C.QLineEdit_AddAction(this.h, action.cPointer(), (C.uintptr_t)(position)) } -func (this *QLineEdit) AddAction2(icon *QIcon, position uintptr) *QAction { +func (this *QLineEdit) AddAction2(icon *QIcon, position QLineEdit__ActionPosition) *QAction { ret := C.QLineEdit_AddAction2(this.h, icon.cPointer(), (C.uintptr_t)(position)) return newQAction_U(unsafe.Pointer(ret)) } @@ -524,7 +540,7 @@ func (this *QLineEdit) OnInputRejected(slot func()) { C.QLineEdit_connect_InputRejected(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QLineEdit) InputMethodQuery(param1 uintptr) *QVariant { +func (this *QLineEdit) InputMethodQuery(param1 InputMethodQuery) *QVariant { ret := C.QLineEdit_InputMethodQuery(this.h, (C.uintptr_t)(param1)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -535,7 +551,7 @@ func (this *QLineEdit) InputMethodQuery(param1 uintptr) *QVariant { return ret1 } -func (this *QLineEdit) InputMethodQuery2(property uintptr, argument QVariant) *QVariant { +func (this *QLineEdit) InputMethodQuery2(property InputMethodQuery, argument QVariant) *QVariant { ret := C.QLineEdit_InputMethodQuery2(this.h, (C.uintptr_t)(property), argument.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) diff --git a/qt/gen_qlistview.go b/qt/gen_qlistview.go index 1319ef43..ff79f65e 100644 --- a/qt/gen_qlistview.go +++ b/qt/gen_qlistview.go @@ -14,6 +14,42 @@ import ( "unsafe" ) +type QListView__Movement int + +const ( + QListView__Movement__Static QListView__Movement = 0 + QListView__Movement__Free QListView__Movement = 1 + QListView__Movement__Snap QListView__Movement = 2 +) + +type QListView__Flow int + +const ( + QListView__Flow__LeftToRight QListView__Flow = 0 + QListView__Flow__TopToBottom QListView__Flow = 1 +) + +type QListView__ResizeMode int + +const ( + QListView__ResizeMode__Fixed QListView__ResizeMode = 0 + QListView__ResizeMode__Adjust QListView__ResizeMode = 1 +) + +type QListView__LayoutMode int + +const ( + QListView__LayoutMode__SinglePass QListView__LayoutMode = 0 + QListView__LayoutMode__Batched QListView__LayoutMode = 1 +) + +type QListView__ViewMode int + +const ( + QListView__ViewMode__ListMode QListView__ViewMode = 0 + QListView__ViewMode__IconMode QListView__ViewMode = 1 +) + type QListView struct { h *C.QListView *QAbstractItemView @@ -76,22 +112,22 @@ func QListView_TrUtf8(s string) string { return ret } -func (this *QListView) SetMovement(movement uintptr) { +func (this *QListView) SetMovement(movement QListView__Movement) { C.QListView_SetMovement(this.h, (C.uintptr_t)(movement)) } -func (this *QListView) Movement() uintptr { +func (this *QListView) Movement() QListView__Movement { ret := C.QListView_Movement(this.h) - return (uintptr)(ret) + return (QListView__Movement)(ret) } -func (this *QListView) SetFlow(flow uintptr) { +func (this *QListView) SetFlow(flow QListView__Flow) { C.QListView_SetFlow(this.h, (C.uintptr_t)(flow)) } -func (this *QListView) Flow() uintptr { +func (this *QListView) Flow() QListView__Flow { ret := C.QListView_Flow(this.h) - return (uintptr)(ret) + return (QListView__Flow)(ret) } func (this *QListView) SetWrapping(enable bool) { @@ -103,22 +139,22 @@ func (this *QListView) IsWrapping() bool { return (bool)(ret) } -func (this *QListView) SetResizeMode(mode uintptr) { +func (this *QListView) SetResizeMode(mode QListView__ResizeMode) { C.QListView_SetResizeMode(this.h, (C.uintptr_t)(mode)) } -func (this *QListView) ResizeMode() uintptr { +func (this *QListView) ResizeMode() QListView__ResizeMode { ret := C.QListView_ResizeMode(this.h) - return (uintptr)(ret) + return (QListView__ResizeMode)(ret) } -func (this *QListView) SetLayoutMode(mode uintptr) { +func (this *QListView) SetLayoutMode(mode QListView__LayoutMode) { C.QListView_SetLayoutMode(this.h, (C.uintptr_t)(mode)) } -func (this *QListView) LayoutMode() uintptr { +func (this *QListView) LayoutMode() QListView__LayoutMode { ret := C.QListView_LayoutMode(this.h) - return (uintptr)(ret) + return (QListView__LayoutMode)(ret) } func (this *QListView) SetSpacing(space int) { @@ -154,13 +190,13 @@ func (this *QListView) GridSize() *QSize { return ret1 } -func (this *QListView) SetViewMode(mode uintptr) { +func (this *QListView) SetViewMode(mode QListView__ViewMode) { C.QListView_SetViewMode(this.h, (C.uintptr_t)(mode)) } -func (this *QListView) ViewMode() uintptr { +func (this *QListView) ViewMode() QListView__ViewMode { ret := C.QListView_ViewMode(this.h) - return (uintptr)(ret) + return (QListView__ViewMode)(ret) } func (this *QListView) ClearPropertyFlags() { @@ -329,7 +365,7 @@ func QListView_TrUtf83(s string, c string, n int) string { return ret } -func (this *QListView) ScrollTo2(index *QModelIndex, hint uintptr) { +func (this *QListView) ScrollTo2(index *QModelIndex, hint QAbstractItemView__ScrollHint) { C.QListView_ScrollTo2(this.h, index.cPointer(), (C.uintptr_t)(hint)) } diff --git a/qt/gen_qlistwidget.go b/qt/gen_qlistwidget.go index e69c4db0..b197da2b 100644 --- a/qt/gen_qlistwidget.go +++ b/qt/gen_qlistwidget.go @@ -14,6 +14,13 @@ import ( "unsafe" ) +type QListWidgetItem__ItemType int + +const ( + QListWidgetItem__ItemType__Type QListWidgetItem__ItemType = 0 + QListWidgetItem__ItemType__UserType QListWidgetItem__ItemType = 1000 +) + type QListWidgetItem struct { h *C.QListWidgetItem } @@ -304,12 +311,12 @@ func (this *QListWidgetItem) SetForeground(brush *QBrush) { C.QListWidgetItem_SetForeground(this.h, brush.cPointer()) } -func (this *QListWidgetItem) CheckState() uintptr { +func (this *QListWidgetItem) CheckState() CheckState { ret := C.QListWidgetItem_CheckState(this.h) - return (uintptr)(ret) + return (CheckState)(ret) } -func (this *QListWidgetItem) SetCheckState(state uintptr) { +func (this *QListWidgetItem) SetCheckState(state CheckState) { C.QListWidgetItem_SetCheckState(this.h, (C.uintptr_t)(state)) } @@ -827,11 +834,11 @@ func QListWidget_TrUtf83(s string, c string, n int) string { return ret } -func (this *QListWidget) SortItems1(order uintptr) { +func (this *QListWidget) SortItems1(order SortOrder) { C.QListWidget_SortItems1(this.h, (C.uintptr_t)(order)) } -func (this *QListWidget) ScrollToItem2(item *QListWidgetItem, hint uintptr) { +func (this *QListWidget) ScrollToItem2(item *QListWidgetItem, hint QAbstractItemView__ScrollHint) { C.QListWidget_ScrollToItem2(this.h, item.cPointer(), (C.uintptr_t)(hint)) } diff --git a/qt/gen_qlocale.go b/qt/gen_qlocale.go index 1ca8f417..45ee4233 100644 --- a/qt/gen_qlocale.go +++ b/qt/gen_qlocale.go @@ -13,6 +13,884 @@ import ( "unsafe" ) +type QLocale__Language int + +const ( + QLocale__Language__AnyLanguage QLocale__Language = 0 + QLocale__Language__C QLocale__Language = 1 + QLocale__Language__Abkhazian QLocale__Language = 2 + QLocale__Language__Oromo QLocale__Language = 3 + QLocale__Language__Afar QLocale__Language = 4 + QLocale__Language__Afrikaans QLocale__Language = 5 + QLocale__Language__Albanian QLocale__Language = 6 + QLocale__Language__Amharic QLocale__Language = 7 + QLocale__Language__Arabic QLocale__Language = 8 + QLocale__Language__Armenian QLocale__Language = 9 + QLocale__Language__Assamese QLocale__Language = 10 + QLocale__Language__Aymara QLocale__Language = 11 + QLocale__Language__Azerbaijani QLocale__Language = 12 + QLocale__Language__Bashkir QLocale__Language = 13 + QLocale__Language__Basque QLocale__Language = 14 + QLocale__Language__Bengali QLocale__Language = 15 + QLocale__Language__Dzongkha QLocale__Language = 16 + QLocale__Language__Bihari QLocale__Language = 17 + QLocale__Language__Bislama QLocale__Language = 18 + QLocale__Language__Breton QLocale__Language = 19 + QLocale__Language__Bulgarian QLocale__Language = 20 + QLocale__Language__Burmese QLocale__Language = 21 + QLocale__Language__Belarusian QLocale__Language = 22 + QLocale__Language__Khmer QLocale__Language = 23 + QLocale__Language__Catalan QLocale__Language = 24 + QLocale__Language__Chinese QLocale__Language = 25 + QLocale__Language__Corsican QLocale__Language = 26 + QLocale__Language__Croatian QLocale__Language = 27 + QLocale__Language__Czech QLocale__Language = 28 + QLocale__Language__Danish QLocale__Language = 29 + QLocale__Language__Dutch QLocale__Language = 30 + QLocale__Language__English QLocale__Language = 31 + QLocale__Language__Esperanto QLocale__Language = 32 + QLocale__Language__Estonian QLocale__Language = 33 + QLocale__Language__Faroese QLocale__Language = 34 + QLocale__Language__Fijian QLocale__Language = 35 + QLocale__Language__Finnish QLocale__Language = 36 + QLocale__Language__French QLocale__Language = 37 + QLocale__Language__WesternFrisian QLocale__Language = 38 + QLocale__Language__Gaelic QLocale__Language = 39 + QLocale__Language__Galician QLocale__Language = 40 + QLocale__Language__Georgian QLocale__Language = 41 + QLocale__Language__German QLocale__Language = 42 + QLocale__Language__Greek QLocale__Language = 43 + QLocale__Language__Greenlandic QLocale__Language = 44 + QLocale__Language__Guarani QLocale__Language = 45 + QLocale__Language__Gujarati QLocale__Language = 46 + QLocale__Language__Hausa QLocale__Language = 47 + QLocale__Language__Hebrew QLocale__Language = 48 + QLocale__Language__Hindi QLocale__Language = 49 + QLocale__Language__Hungarian QLocale__Language = 50 + QLocale__Language__Icelandic QLocale__Language = 51 + QLocale__Language__Indonesian QLocale__Language = 52 + QLocale__Language__Interlingua QLocale__Language = 53 + QLocale__Language__Interlingue QLocale__Language = 54 + QLocale__Language__Inuktitut QLocale__Language = 55 + QLocale__Language__Inupiak QLocale__Language = 56 + QLocale__Language__Irish QLocale__Language = 57 + QLocale__Language__Italian QLocale__Language = 58 + QLocale__Language__Japanese QLocale__Language = 59 + QLocale__Language__Javanese QLocale__Language = 60 + QLocale__Language__Kannada QLocale__Language = 61 + QLocale__Language__Kashmiri QLocale__Language = 62 + QLocale__Language__Kazakh QLocale__Language = 63 + QLocale__Language__Kinyarwanda QLocale__Language = 64 + QLocale__Language__Kirghiz QLocale__Language = 65 + QLocale__Language__Korean QLocale__Language = 66 + QLocale__Language__Kurdish QLocale__Language = 67 + QLocale__Language__Rundi QLocale__Language = 68 + QLocale__Language__Lao QLocale__Language = 69 + QLocale__Language__Latin QLocale__Language = 70 + QLocale__Language__Latvian QLocale__Language = 71 + QLocale__Language__Lingala QLocale__Language = 72 + QLocale__Language__Lithuanian QLocale__Language = 73 + QLocale__Language__Macedonian QLocale__Language = 74 + QLocale__Language__Malagasy QLocale__Language = 75 + QLocale__Language__Malay QLocale__Language = 76 + QLocale__Language__Malayalam QLocale__Language = 77 + QLocale__Language__Maltese QLocale__Language = 78 + QLocale__Language__Maori QLocale__Language = 79 + QLocale__Language__Marathi QLocale__Language = 80 + QLocale__Language__Marshallese QLocale__Language = 81 + QLocale__Language__Mongolian QLocale__Language = 82 + QLocale__Language__NauruLanguage QLocale__Language = 83 + QLocale__Language__Nepali QLocale__Language = 84 + QLocale__Language__NorwegianBokmal QLocale__Language = 85 + QLocale__Language__Occitan QLocale__Language = 86 + QLocale__Language__Oriya QLocale__Language = 87 + QLocale__Language__Pashto QLocale__Language = 88 + QLocale__Language__Persian QLocale__Language = 89 + QLocale__Language__Polish QLocale__Language = 90 + QLocale__Language__Portuguese QLocale__Language = 91 + QLocale__Language__Punjabi QLocale__Language = 92 + QLocale__Language__Quechua QLocale__Language = 93 + QLocale__Language__Romansh QLocale__Language = 94 + QLocale__Language__Romanian QLocale__Language = 95 + QLocale__Language__Russian QLocale__Language = 96 + QLocale__Language__Samoan QLocale__Language = 97 + QLocale__Language__Sango QLocale__Language = 98 + QLocale__Language__Sanskrit QLocale__Language = 99 + QLocale__Language__Serbian QLocale__Language = 100 + QLocale__Language__Ossetic QLocale__Language = 101 + QLocale__Language__SouthernSotho QLocale__Language = 102 + QLocale__Language__Tswana QLocale__Language = 103 + QLocale__Language__Shona QLocale__Language = 104 + QLocale__Language__Sindhi QLocale__Language = 105 + QLocale__Language__Sinhala QLocale__Language = 106 + QLocale__Language__Swati QLocale__Language = 107 + QLocale__Language__Slovak QLocale__Language = 108 + QLocale__Language__Slovenian QLocale__Language = 109 + QLocale__Language__Somali QLocale__Language = 110 + QLocale__Language__Spanish QLocale__Language = 111 + QLocale__Language__Sundanese QLocale__Language = 112 + QLocale__Language__Swahili QLocale__Language = 113 + QLocale__Language__Swedish QLocale__Language = 114 + QLocale__Language__Sardinian QLocale__Language = 115 + QLocale__Language__Tajik QLocale__Language = 116 + QLocale__Language__Tamil QLocale__Language = 117 + QLocale__Language__Tatar QLocale__Language = 118 + QLocale__Language__Telugu QLocale__Language = 119 + QLocale__Language__Thai QLocale__Language = 120 + QLocale__Language__Tibetan QLocale__Language = 121 + QLocale__Language__Tigrinya QLocale__Language = 122 + QLocale__Language__Tongan QLocale__Language = 123 + QLocale__Language__Tsonga QLocale__Language = 124 + QLocale__Language__Turkish QLocale__Language = 125 + QLocale__Language__Turkmen QLocale__Language = 126 + QLocale__Language__Tahitian QLocale__Language = 127 + QLocale__Language__Uighur QLocale__Language = 128 + QLocale__Language__Ukrainian QLocale__Language = 129 + QLocale__Language__Urdu QLocale__Language = 130 + QLocale__Language__Uzbek QLocale__Language = 131 + QLocale__Language__Vietnamese QLocale__Language = 132 + QLocale__Language__Volapuk QLocale__Language = 133 + QLocale__Language__Welsh QLocale__Language = 134 + QLocale__Language__Wolof QLocale__Language = 135 + QLocale__Language__Xhosa QLocale__Language = 136 + QLocale__Language__Yiddish QLocale__Language = 137 + QLocale__Language__Yoruba QLocale__Language = 138 + QLocale__Language__Zhuang QLocale__Language = 139 + QLocale__Language__Zulu QLocale__Language = 140 + QLocale__Language__NorwegianNynorsk QLocale__Language = 141 + QLocale__Language__Bosnian QLocale__Language = 142 + QLocale__Language__Divehi QLocale__Language = 143 + QLocale__Language__Manx QLocale__Language = 144 + QLocale__Language__Cornish QLocale__Language = 145 + QLocale__Language__Akan QLocale__Language = 146 + QLocale__Language__Konkani QLocale__Language = 147 + QLocale__Language__Ga QLocale__Language = 148 + QLocale__Language__Igbo QLocale__Language = 149 + QLocale__Language__Kamba QLocale__Language = 150 + QLocale__Language__Syriac QLocale__Language = 151 + QLocale__Language__Blin QLocale__Language = 152 + QLocale__Language__Geez QLocale__Language = 153 + QLocale__Language__Koro QLocale__Language = 154 + QLocale__Language__Sidamo QLocale__Language = 155 + QLocale__Language__Atsam QLocale__Language = 156 + QLocale__Language__Tigre QLocale__Language = 157 + QLocale__Language__Jju QLocale__Language = 158 + QLocale__Language__Friulian QLocale__Language = 159 + QLocale__Language__Venda QLocale__Language = 160 + QLocale__Language__Ewe QLocale__Language = 161 + QLocale__Language__Walamo QLocale__Language = 162 + QLocale__Language__Hawaiian QLocale__Language = 163 + QLocale__Language__Tyap QLocale__Language = 164 + QLocale__Language__Nyanja QLocale__Language = 165 + QLocale__Language__Filipino QLocale__Language = 166 + QLocale__Language__SwissGerman QLocale__Language = 167 + QLocale__Language__SichuanYi QLocale__Language = 168 + QLocale__Language__Kpelle QLocale__Language = 169 + QLocale__Language__LowGerman QLocale__Language = 170 + QLocale__Language__SouthNdebele QLocale__Language = 171 + QLocale__Language__NorthernSotho QLocale__Language = 172 + QLocale__Language__NorthernSami QLocale__Language = 173 + QLocale__Language__Taroko QLocale__Language = 174 + QLocale__Language__Gusii QLocale__Language = 175 + QLocale__Language__Taita QLocale__Language = 176 + QLocale__Language__Fulah QLocale__Language = 177 + QLocale__Language__Kikuyu QLocale__Language = 178 + QLocale__Language__Samburu QLocale__Language = 179 + QLocale__Language__Sena QLocale__Language = 180 + QLocale__Language__NorthNdebele QLocale__Language = 181 + QLocale__Language__Rombo QLocale__Language = 182 + QLocale__Language__Tachelhit QLocale__Language = 183 + QLocale__Language__Kabyle QLocale__Language = 184 + QLocale__Language__Nyankole QLocale__Language = 185 + QLocale__Language__Bena QLocale__Language = 186 + QLocale__Language__Vunjo QLocale__Language = 187 + QLocale__Language__Bambara QLocale__Language = 188 + QLocale__Language__Embu QLocale__Language = 189 + QLocale__Language__Cherokee QLocale__Language = 190 + QLocale__Language__Morisyen QLocale__Language = 191 + QLocale__Language__Makonde QLocale__Language = 192 + QLocale__Language__Langi QLocale__Language = 193 + QLocale__Language__Ganda QLocale__Language = 194 + QLocale__Language__Bemba QLocale__Language = 195 + QLocale__Language__Kabuverdianu QLocale__Language = 196 + QLocale__Language__Meru QLocale__Language = 197 + QLocale__Language__Kalenjin QLocale__Language = 198 + QLocale__Language__Nama QLocale__Language = 199 + QLocale__Language__Machame QLocale__Language = 200 + QLocale__Language__Colognian QLocale__Language = 201 + QLocale__Language__Masai QLocale__Language = 202 + QLocale__Language__Soga QLocale__Language = 203 + QLocale__Language__Luyia QLocale__Language = 204 + QLocale__Language__Asu QLocale__Language = 205 + QLocale__Language__Teso QLocale__Language = 206 + QLocale__Language__Saho QLocale__Language = 207 + QLocale__Language__KoyraChiini QLocale__Language = 208 + QLocale__Language__Rwa QLocale__Language = 209 + QLocale__Language__Luo QLocale__Language = 210 + QLocale__Language__Chiga QLocale__Language = 211 + QLocale__Language__CentralMoroccoTamazight QLocale__Language = 212 + QLocale__Language__KoyraboroSenni QLocale__Language = 213 + QLocale__Language__Shambala QLocale__Language = 214 + QLocale__Language__Bodo QLocale__Language = 215 + QLocale__Language__Avaric QLocale__Language = 216 + QLocale__Language__Chamorro QLocale__Language = 217 + QLocale__Language__Chechen QLocale__Language = 218 + QLocale__Language__Church QLocale__Language = 219 + QLocale__Language__Chuvash QLocale__Language = 220 + QLocale__Language__Cree QLocale__Language = 221 + QLocale__Language__Haitian QLocale__Language = 222 + QLocale__Language__Herero QLocale__Language = 223 + QLocale__Language__HiriMotu QLocale__Language = 224 + QLocale__Language__Kanuri QLocale__Language = 225 + QLocale__Language__Komi QLocale__Language = 226 + QLocale__Language__Kongo QLocale__Language = 227 + QLocale__Language__Kwanyama QLocale__Language = 228 + QLocale__Language__Limburgish QLocale__Language = 229 + QLocale__Language__LubaKatanga QLocale__Language = 230 + QLocale__Language__Luxembourgish QLocale__Language = 231 + QLocale__Language__Navaho QLocale__Language = 232 + QLocale__Language__Ndonga QLocale__Language = 233 + QLocale__Language__Ojibwa QLocale__Language = 234 + QLocale__Language__Pali QLocale__Language = 235 + QLocale__Language__Walloon QLocale__Language = 236 + QLocale__Language__Aghem QLocale__Language = 237 + QLocale__Language__Basaa QLocale__Language = 238 + QLocale__Language__Zarma QLocale__Language = 239 + QLocale__Language__Duala QLocale__Language = 240 + QLocale__Language__JolaFonyi QLocale__Language = 241 + QLocale__Language__Ewondo QLocale__Language = 242 + QLocale__Language__Bafia QLocale__Language = 243 + QLocale__Language__MakhuwaMeetto QLocale__Language = 244 + QLocale__Language__Mundang QLocale__Language = 245 + QLocale__Language__Kwasio QLocale__Language = 246 + QLocale__Language__Nuer QLocale__Language = 247 + QLocale__Language__Sakha QLocale__Language = 248 + QLocale__Language__Sangu QLocale__Language = 249 + QLocale__Language__CongoSwahili QLocale__Language = 250 + QLocale__Language__Tasawaq QLocale__Language = 251 + QLocale__Language__Vai QLocale__Language = 252 + QLocale__Language__Walser QLocale__Language = 253 + QLocale__Language__Yangben QLocale__Language = 254 + QLocale__Language__Avestan QLocale__Language = 255 + QLocale__Language__Asturian QLocale__Language = 256 + QLocale__Language__Ngomba QLocale__Language = 257 + QLocale__Language__Kako QLocale__Language = 258 + QLocale__Language__Meta QLocale__Language = 259 + QLocale__Language__Ngiemboon QLocale__Language = 260 + QLocale__Language__Aragonese QLocale__Language = 261 + QLocale__Language__Akkadian QLocale__Language = 262 + QLocale__Language__AncientEgyptian QLocale__Language = 263 + QLocale__Language__AncientGreek QLocale__Language = 264 + QLocale__Language__Aramaic QLocale__Language = 265 + QLocale__Language__Balinese QLocale__Language = 266 + QLocale__Language__Bamun QLocale__Language = 267 + QLocale__Language__BatakToba QLocale__Language = 268 + QLocale__Language__Buginese QLocale__Language = 269 + QLocale__Language__Buhid QLocale__Language = 270 + QLocale__Language__Carian QLocale__Language = 271 + QLocale__Language__Chakma QLocale__Language = 272 + QLocale__Language__ClassicalMandaic QLocale__Language = 273 + QLocale__Language__Coptic QLocale__Language = 274 + QLocale__Language__Dogri QLocale__Language = 275 + QLocale__Language__EasternCham QLocale__Language = 276 + QLocale__Language__EasternKayah QLocale__Language = 277 + QLocale__Language__Etruscan QLocale__Language = 278 + QLocale__Language__Gothic QLocale__Language = 279 + QLocale__Language__Hanunoo QLocale__Language = 280 + QLocale__Language__Ingush QLocale__Language = 281 + QLocale__Language__LargeFloweryMiao QLocale__Language = 282 + QLocale__Language__Lepcha QLocale__Language = 283 + QLocale__Language__Limbu QLocale__Language = 284 + QLocale__Language__Lisu QLocale__Language = 285 + QLocale__Language__Lu QLocale__Language = 286 + QLocale__Language__Lycian QLocale__Language = 287 + QLocale__Language__Lydian QLocale__Language = 288 + QLocale__Language__Mandingo QLocale__Language = 289 + QLocale__Language__Manipuri QLocale__Language = 290 + QLocale__Language__Meroitic QLocale__Language = 291 + QLocale__Language__NorthernThai QLocale__Language = 292 + QLocale__Language__OldIrish QLocale__Language = 293 + QLocale__Language__OldNorse QLocale__Language = 294 + QLocale__Language__OldPersian QLocale__Language = 295 + QLocale__Language__OldTurkish QLocale__Language = 296 + QLocale__Language__Pahlavi QLocale__Language = 297 + QLocale__Language__Parthian QLocale__Language = 298 + QLocale__Language__Phoenician QLocale__Language = 299 + QLocale__Language__PrakritLanguage QLocale__Language = 300 + QLocale__Language__Rejang QLocale__Language = 301 + QLocale__Language__Sabaean QLocale__Language = 302 + QLocale__Language__Samaritan QLocale__Language = 303 + QLocale__Language__Santali QLocale__Language = 304 + QLocale__Language__Saurashtra QLocale__Language = 305 + QLocale__Language__Sora QLocale__Language = 306 + QLocale__Language__Sylheti QLocale__Language = 307 + QLocale__Language__Tagbanwa QLocale__Language = 308 + QLocale__Language__TaiDam QLocale__Language = 309 + QLocale__Language__TaiNua QLocale__Language = 310 + QLocale__Language__Ugaritic QLocale__Language = 311 + QLocale__Language__Akoose QLocale__Language = 312 + QLocale__Language__Lakota QLocale__Language = 313 + QLocale__Language__StandardMoroccanTamazight QLocale__Language = 314 + QLocale__Language__Mapuche QLocale__Language = 315 + QLocale__Language__CentralKurdish QLocale__Language = 316 + QLocale__Language__LowerSorbian QLocale__Language = 317 + QLocale__Language__UpperSorbian QLocale__Language = 318 + QLocale__Language__Kenyang QLocale__Language = 319 + QLocale__Language__Mohawk QLocale__Language = 320 + QLocale__Language__Nko QLocale__Language = 321 + QLocale__Language__Prussian QLocale__Language = 322 + QLocale__Language__Kiche QLocale__Language = 323 + QLocale__Language__SouthernSami QLocale__Language = 324 + QLocale__Language__LuleSami QLocale__Language = 325 + QLocale__Language__InariSami QLocale__Language = 326 + QLocale__Language__SkoltSami QLocale__Language = 327 + QLocale__Language__Warlpiri QLocale__Language = 328 + QLocale__Language__ManichaeanMiddlePersian QLocale__Language = 329 + QLocale__Language__Mende QLocale__Language = 330 + QLocale__Language__AncientNorthArabian QLocale__Language = 331 + QLocale__Language__LinearA QLocale__Language = 332 + QLocale__Language__HmongNjua QLocale__Language = 333 + QLocale__Language__Ho QLocale__Language = 334 + QLocale__Language__Lezghian QLocale__Language = 335 + QLocale__Language__Bassa QLocale__Language = 336 + QLocale__Language__Mono QLocale__Language = 337 + QLocale__Language__TedimChin QLocale__Language = 338 + QLocale__Language__Maithili QLocale__Language = 339 + QLocale__Language__Ahom QLocale__Language = 340 + QLocale__Language__AmericanSignLanguage QLocale__Language = 341 + QLocale__Language__ArdhamagadhiPrakrit QLocale__Language = 342 + QLocale__Language__Bhojpuri QLocale__Language = 343 + QLocale__Language__HieroglyphicLuwian QLocale__Language = 344 + QLocale__Language__LiteraryChinese QLocale__Language = 345 + QLocale__Language__Mazanderani QLocale__Language = 346 + QLocale__Language__Mru QLocale__Language = 347 + QLocale__Language__Newari QLocale__Language = 348 + QLocale__Language__NorthernLuri QLocale__Language = 349 + QLocale__Language__Palauan QLocale__Language = 350 + QLocale__Language__Papiamento QLocale__Language = 351 + QLocale__Language__Saraiki QLocale__Language = 352 + QLocale__Language__TokelauLanguage QLocale__Language = 353 + QLocale__Language__TokPisin QLocale__Language = 354 + QLocale__Language__TuvaluLanguage QLocale__Language = 355 + QLocale__Language__UncodedLanguages QLocale__Language = 356 + QLocale__Language__Cantonese QLocale__Language = 357 + QLocale__Language__Osage QLocale__Language = 358 + QLocale__Language__Tangut QLocale__Language = 359 + QLocale__Language__Ido QLocale__Language = 360 + QLocale__Language__Lojban QLocale__Language = 361 + QLocale__Language__Sicilian QLocale__Language = 362 + QLocale__Language__SouthernKurdish QLocale__Language = 363 + QLocale__Language__WesternBalochi QLocale__Language = 364 + QLocale__Language__Cebuano QLocale__Language = 365 + QLocale__Language__Erzya QLocale__Language = 366 + QLocale__Language__Chickasaw QLocale__Language = 367 + QLocale__Language__Muscogee QLocale__Language = 368 + QLocale__Language__Silesian QLocale__Language = 369 + QLocale__Language__NigerianPidgin QLocale__Language = 370 + QLocale__Language__Afan QLocale__Language = 3 + QLocale__Language__Bhutani QLocale__Language = 16 + QLocale__Language__Byelorussian QLocale__Language = 22 + QLocale__Language__Cambodian QLocale__Language = 23 + QLocale__Language__Chewa QLocale__Language = 165 + QLocale__Language__Frisian QLocale__Language = 38 + QLocale__Language__Kurundi QLocale__Language = 68 + QLocale__Language__Moldavian QLocale__Language = 95 + QLocale__Language__Norwegian QLocale__Language = 85 + QLocale__Language__RhaetoRomance QLocale__Language = 94 + QLocale__Language__SerboCroatian QLocale__Language = 100 + QLocale__Language__Tagalog QLocale__Language = 166 + QLocale__Language__Twi QLocale__Language = 146 + QLocale__Language__Uigur QLocale__Language = 128 + QLocale__Language__LastLanguage QLocale__Language = 370 +) + +type QLocale__Script int + +const ( + QLocale__Script__AnyScript QLocale__Script = 0 + QLocale__Script__ArabicScript QLocale__Script = 1 + QLocale__Script__CyrillicScript QLocale__Script = 2 + QLocale__Script__DeseretScript QLocale__Script = 3 + QLocale__Script__GurmukhiScript QLocale__Script = 4 + QLocale__Script__SimplifiedHanScript QLocale__Script = 5 + QLocale__Script__TraditionalHanScript QLocale__Script = 6 + QLocale__Script__LatinScript QLocale__Script = 7 + QLocale__Script__MongolianScript QLocale__Script = 8 + QLocale__Script__TifinaghScript QLocale__Script = 9 + QLocale__Script__ArmenianScript QLocale__Script = 10 + QLocale__Script__BengaliScript QLocale__Script = 11 + QLocale__Script__CherokeeScript QLocale__Script = 12 + QLocale__Script__DevanagariScript QLocale__Script = 13 + QLocale__Script__EthiopicScript QLocale__Script = 14 + QLocale__Script__GeorgianScript QLocale__Script = 15 + QLocale__Script__GreekScript QLocale__Script = 16 + QLocale__Script__GujaratiScript QLocale__Script = 17 + QLocale__Script__HebrewScript QLocale__Script = 18 + QLocale__Script__JapaneseScript QLocale__Script = 19 + QLocale__Script__KhmerScript QLocale__Script = 20 + QLocale__Script__KannadaScript QLocale__Script = 21 + QLocale__Script__KoreanScript QLocale__Script = 22 + QLocale__Script__LaoScript QLocale__Script = 23 + QLocale__Script__MalayalamScript QLocale__Script = 24 + QLocale__Script__MyanmarScript QLocale__Script = 25 + QLocale__Script__OriyaScript QLocale__Script = 26 + QLocale__Script__TamilScript QLocale__Script = 27 + QLocale__Script__TeluguScript QLocale__Script = 28 + QLocale__Script__ThaanaScript QLocale__Script = 29 + QLocale__Script__ThaiScript QLocale__Script = 30 + QLocale__Script__TibetanScript QLocale__Script = 31 + QLocale__Script__SinhalaScript QLocale__Script = 32 + QLocale__Script__SyriacScript QLocale__Script = 33 + QLocale__Script__YiScript QLocale__Script = 34 + QLocale__Script__VaiScript QLocale__Script = 35 + QLocale__Script__AvestanScript QLocale__Script = 36 + QLocale__Script__BalineseScript QLocale__Script = 37 + QLocale__Script__BamumScript QLocale__Script = 38 + QLocale__Script__BatakScript QLocale__Script = 39 + QLocale__Script__BopomofoScript QLocale__Script = 40 + QLocale__Script__BrahmiScript QLocale__Script = 41 + QLocale__Script__BugineseScript QLocale__Script = 42 + QLocale__Script__BuhidScript QLocale__Script = 43 + QLocale__Script__CanadianAboriginalScript QLocale__Script = 44 + QLocale__Script__CarianScript QLocale__Script = 45 + QLocale__Script__ChakmaScript QLocale__Script = 46 + QLocale__Script__ChamScript QLocale__Script = 47 + QLocale__Script__CopticScript QLocale__Script = 48 + QLocale__Script__CypriotScript QLocale__Script = 49 + QLocale__Script__EgyptianHieroglyphsScript QLocale__Script = 50 + QLocale__Script__FraserScript QLocale__Script = 51 + QLocale__Script__GlagoliticScript QLocale__Script = 52 + QLocale__Script__GothicScript QLocale__Script = 53 + QLocale__Script__HanScript QLocale__Script = 54 + QLocale__Script__HangulScript QLocale__Script = 55 + QLocale__Script__HanunooScript QLocale__Script = 56 + QLocale__Script__ImperialAramaicScript QLocale__Script = 57 + QLocale__Script__InscriptionalPahlaviScript QLocale__Script = 58 + QLocale__Script__InscriptionalParthianScript QLocale__Script = 59 + QLocale__Script__JavaneseScript QLocale__Script = 60 + QLocale__Script__KaithiScript QLocale__Script = 61 + QLocale__Script__KatakanaScript QLocale__Script = 62 + QLocale__Script__KayahLiScript QLocale__Script = 63 + QLocale__Script__KharoshthiScript QLocale__Script = 64 + QLocale__Script__LannaScript QLocale__Script = 65 + QLocale__Script__LepchaScript QLocale__Script = 66 + QLocale__Script__LimbuScript QLocale__Script = 67 + QLocale__Script__LinearBScript QLocale__Script = 68 + QLocale__Script__LycianScript QLocale__Script = 69 + QLocale__Script__LydianScript QLocale__Script = 70 + QLocale__Script__MandaeanScript QLocale__Script = 71 + QLocale__Script__MeiteiMayekScript QLocale__Script = 72 + QLocale__Script__MeroiticScript QLocale__Script = 73 + QLocale__Script__MeroiticCursiveScript QLocale__Script = 74 + QLocale__Script__NkoScript QLocale__Script = 75 + QLocale__Script__NewTaiLueScript QLocale__Script = 76 + QLocale__Script__OghamScript QLocale__Script = 77 + QLocale__Script__OlChikiScript QLocale__Script = 78 + QLocale__Script__OldItalicScript QLocale__Script = 79 + QLocale__Script__OldPersianScript QLocale__Script = 80 + QLocale__Script__OldSouthArabianScript QLocale__Script = 81 + QLocale__Script__OrkhonScript QLocale__Script = 82 + QLocale__Script__OsmanyaScript QLocale__Script = 83 + QLocale__Script__PhagsPaScript QLocale__Script = 84 + QLocale__Script__PhoenicianScript QLocale__Script = 85 + QLocale__Script__PollardPhoneticScript QLocale__Script = 86 + QLocale__Script__RejangScript QLocale__Script = 87 + QLocale__Script__RunicScript QLocale__Script = 88 + QLocale__Script__SamaritanScript QLocale__Script = 89 + QLocale__Script__SaurashtraScript QLocale__Script = 90 + QLocale__Script__SharadaScript QLocale__Script = 91 + QLocale__Script__ShavianScript QLocale__Script = 92 + QLocale__Script__SoraSompengScript QLocale__Script = 93 + QLocale__Script__CuneiformScript QLocale__Script = 94 + QLocale__Script__SundaneseScript QLocale__Script = 95 + QLocale__Script__SylotiNagriScript QLocale__Script = 96 + QLocale__Script__TagalogScript QLocale__Script = 97 + QLocale__Script__TagbanwaScript QLocale__Script = 98 + QLocale__Script__TaiLeScript QLocale__Script = 99 + QLocale__Script__TaiVietScript QLocale__Script = 100 + QLocale__Script__TakriScript QLocale__Script = 101 + QLocale__Script__UgariticScript QLocale__Script = 102 + QLocale__Script__BrailleScript QLocale__Script = 103 + QLocale__Script__HiraganaScript QLocale__Script = 104 + QLocale__Script__CaucasianAlbanianScript QLocale__Script = 105 + QLocale__Script__BassaVahScript QLocale__Script = 106 + QLocale__Script__DuployanScript QLocale__Script = 107 + QLocale__Script__ElbasanScript QLocale__Script = 108 + QLocale__Script__GranthaScript QLocale__Script = 109 + QLocale__Script__PahawhHmongScript QLocale__Script = 110 + QLocale__Script__KhojkiScript QLocale__Script = 111 + QLocale__Script__LinearAScript QLocale__Script = 112 + QLocale__Script__MahajaniScript QLocale__Script = 113 + QLocale__Script__ManichaeanScript QLocale__Script = 114 + QLocale__Script__MendeKikakuiScript QLocale__Script = 115 + QLocale__Script__ModiScript QLocale__Script = 116 + QLocale__Script__MroScript QLocale__Script = 117 + QLocale__Script__OldNorthArabianScript QLocale__Script = 118 + QLocale__Script__NabataeanScript QLocale__Script = 119 + QLocale__Script__PalmyreneScript QLocale__Script = 120 + QLocale__Script__PauCinHauScript QLocale__Script = 121 + QLocale__Script__OldPermicScript QLocale__Script = 122 + QLocale__Script__PsalterPahlaviScript QLocale__Script = 123 + QLocale__Script__SiddhamScript QLocale__Script = 124 + QLocale__Script__KhudawadiScript QLocale__Script = 125 + QLocale__Script__TirhutaScript QLocale__Script = 126 + QLocale__Script__VarangKshitiScript QLocale__Script = 127 + QLocale__Script__AhomScript QLocale__Script = 128 + QLocale__Script__AnatolianHieroglyphsScript QLocale__Script = 129 + QLocale__Script__HatranScript QLocale__Script = 130 + QLocale__Script__MultaniScript QLocale__Script = 131 + QLocale__Script__OldHungarianScript QLocale__Script = 132 + QLocale__Script__SignWritingScript QLocale__Script = 133 + QLocale__Script__AdlamScript QLocale__Script = 134 + QLocale__Script__BhaiksukiScript QLocale__Script = 135 + QLocale__Script__MarchenScript QLocale__Script = 136 + QLocale__Script__NewaScript QLocale__Script = 137 + QLocale__Script__OsageScript QLocale__Script = 138 + QLocale__Script__TangutScript QLocale__Script = 139 + QLocale__Script__HanWithBopomofoScript QLocale__Script = 140 + QLocale__Script__JamoScript QLocale__Script = 141 + QLocale__Script__SimplifiedChineseScript QLocale__Script = 5 + QLocale__Script__TraditionalChineseScript QLocale__Script = 6 + QLocale__Script__LastScript QLocale__Script = 141 +) + +type QLocale__Country int + +const ( + QLocale__Country__AnyCountry QLocale__Country = 0 + QLocale__Country__Afghanistan QLocale__Country = 1 + QLocale__Country__Albania QLocale__Country = 2 + QLocale__Country__Algeria QLocale__Country = 3 + QLocale__Country__AmericanSamoa QLocale__Country = 4 + QLocale__Country__Andorra QLocale__Country = 5 + QLocale__Country__Angola QLocale__Country = 6 + QLocale__Country__Anguilla QLocale__Country = 7 + QLocale__Country__Antarctica QLocale__Country = 8 + QLocale__Country__AntiguaAndBarbuda QLocale__Country = 9 + QLocale__Country__Argentina QLocale__Country = 10 + QLocale__Country__Armenia QLocale__Country = 11 + QLocale__Country__Aruba QLocale__Country = 12 + QLocale__Country__Australia QLocale__Country = 13 + QLocale__Country__Austria QLocale__Country = 14 + QLocale__Country__Azerbaijan QLocale__Country = 15 + QLocale__Country__Bahamas QLocale__Country = 16 + QLocale__Country__Bahrain QLocale__Country = 17 + QLocale__Country__Bangladesh QLocale__Country = 18 + QLocale__Country__Barbados QLocale__Country = 19 + QLocale__Country__Belarus QLocale__Country = 20 + QLocale__Country__Belgium QLocale__Country = 21 + QLocale__Country__Belize QLocale__Country = 22 + QLocale__Country__Benin QLocale__Country = 23 + QLocale__Country__Bermuda QLocale__Country = 24 + QLocale__Country__Bhutan QLocale__Country = 25 + QLocale__Country__Bolivia QLocale__Country = 26 + QLocale__Country__BosniaAndHerzegowina QLocale__Country = 27 + QLocale__Country__Botswana QLocale__Country = 28 + QLocale__Country__BouvetIsland QLocale__Country = 29 + QLocale__Country__Brazil QLocale__Country = 30 + QLocale__Country__BritishIndianOceanTerritory QLocale__Country = 31 + QLocale__Country__Brunei QLocale__Country = 32 + QLocale__Country__Bulgaria QLocale__Country = 33 + QLocale__Country__BurkinaFaso QLocale__Country = 34 + QLocale__Country__Burundi QLocale__Country = 35 + QLocale__Country__Cambodia QLocale__Country = 36 + QLocale__Country__Cameroon QLocale__Country = 37 + QLocale__Country__Canada QLocale__Country = 38 + QLocale__Country__CapeVerde QLocale__Country = 39 + QLocale__Country__CaymanIslands QLocale__Country = 40 + QLocale__Country__CentralAfricanRepublic QLocale__Country = 41 + QLocale__Country__Chad QLocale__Country = 42 + QLocale__Country__Chile QLocale__Country = 43 + QLocale__Country__China QLocale__Country = 44 + QLocale__Country__ChristmasIsland QLocale__Country = 45 + QLocale__Country__CocosIslands QLocale__Country = 46 + QLocale__Country__Colombia QLocale__Country = 47 + QLocale__Country__Comoros QLocale__Country = 48 + QLocale__Country__CongoKinshasa QLocale__Country = 49 + QLocale__Country__CongoBrazzaville QLocale__Country = 50 + QLocale__Country__CookIslands QLocale__Country = 51 + QLocale__Country__CostaRica QLocale__Country = 52 + QLocale__Country__IvoryCoast QLocale__Country = 53 + QLocale__Country__Croatia QLocale__Country = 54 + QLocale__Country__Cuba QLocale__Country = 55 + QLocale__Country__Cyprus QLocale__Country = 56 + QLocale__Country__CzechRepublic QLocale__Country = 57 + QLocale__Country__Denmark QLocale__Country = 58 + QLocale__Country__Djibouti QLocale__Country = 59 + QLocale__Country__Dominica QLocale__Country = 60 + QLocale__Country__DominicanRepublic QLocale__Country = 61 + QLocale__Country__EastTimor QLocale__Country = 62 + QLocale__Country__Ecuador QLocale__Country = 63 + QLocale__Country__Egypt QLocale__Country = 64 + QLocale__Country__ElSalvador QLocale__Country = 65 + QLocale__Country__EquatorialGuinea QLocale__Country = 66 + QLocale__Country__Eritrea QLocale__Country = 67 + QLocale__Country__Estonia QLocale__Country = 68 + QLocale__Country__Ethiopia QLocale__Country = 69 + QLocale__Country__FalklandIslands QLocale__Country = 70 + QLocale__Country__FaroeIslands QLocale__Country = 71 + QLocale__Country__Fiji QLocale__Country = 72 + QLocale__Country__Finland QLocale__Country = 73 + QLocale__Country__France QLocale__Country = 74 + QLocale__Country__Guernsey QLocale__Country = 75 + QLocale__Country__FrenchGuiana QLocale__Country = 76 + QLocale__Country__FrenchPolynesia QLocale__Country = 77 + QLocale__Country__FrenchSouthernTerritories QLocale__Country = 78 + QLocale__Country__Gabon QLocale__Country = 79 + QLocale__Country__Gambia QLocale__Country = 80 + QLocale__Country__Georgia QLocale__Country = 81 + QLocale__Country__Germany QLocale__Country = 82 + QLocale__Country__Ghana QLocale__Country = 83 + QLocale__Country__Gibraltar QLocale__Country = 84 + QLocale__Country__Greece QLocale__Country = 85 + QLocale__Country__Greenland QLocale__Country = 86 + QLocale__Country__Grenada QLocale__Country = 87 + QLocale__Country__Guadeloupe QLocale__Country = 88 + QLocale__Country__Guam QLocale__Country = 89 + QLocale__Country__Guatemala QLocale__Country = 90 + QLocale__Country__Guinea QLocale__Country = 91 + QLocale__Country__GuineaBissau QLocale__Country = 92 + QLocale__Country__Guyana QLocale__Country = 93 + QLocale__Country__Haiti QLocale__Country = 94 + QLocale__Country__HeardAndMcDonaldIslands QLocale__Country = 95 + QLocale__Country__Honduras QLocale__Country = 96 + QLocale__Country__HongKong QLocale__Country = 97 + QLocale__Country__Hungary QLocale__Country = 98 + QLocale__Country__Iceland QLocale__Country = 99 + QLocale__Country__India QLocale__Country = 100 + QLocale__Country__Indonesia QLocale__Country = 101 + QLocale__Country__Iran QLocale__Country = 102 + QLocale__Country__Iraq QLocale__Country = 103 + QLocale__Country__Ireland QLocale__Country = 104 + QLocale__Country__Israel QLocale__Country = 105 + QLocale__Country__Italy QLocale__Country = 106 + QLocale__Country__Jamaica QLocale__Country = 107 + QLocale__Country__Japan QLocale__Country = 108 + QLocale__Country__Jordan QLocale__Country = 109 + QLocale__Country__Kazakhstan QLocale__Country = 110 + QLocale__Country__Kenya QLocale__Country = 111 + QLocale__Country__Kiribati QLocale__Country = 112 + QLocale__Country__NorthKorea QLocale__Country = 113 + QLocale__Country__SouthKorea QLocale__Country = 114 + QLocale__Country__Kuwait QLocale__Country = 115 + QLocale__Country__Kyrgyzstan QLocale__Country = 116 + QLocale__Country__Laos QLocale__Country = 117 + QLocale__Country__Latvia QLocale__Country = 118 + QLocale__Country__Lebanon QLocale__Country = 119 + QLocale__Country__Lesotho QLocale__Country = 120 + QLocale__Country__Liberia QLocale__Country = 121 + QLocale__Country__Libya QLocale__Country = 122 + QLocale__Country__Liechtenstein QLocale__Country = 123 + QLocale__Country__Lithuania QLocale__Country = 124 + QLocale__Country__Luxembourg QLocale__Country = 125 + QLocale__Country__Macau QLocale__Country = 126 + QLocale__Country__Macedonia QLocale__Country = 127 + QLocale__Country__Madagascar QLocale__Country = 128 + QLocale__Country__Malawi QLocale__Country = 129 + QLocale__Country__Malaysia QLocale__Country = 130 + QLocale__Country__Maldives QLocale__Country = 131 + QLocale__Country__Mali QLocale__Country = 132 + QLocale__Country__Malta QLocale__Country = 133 + QLocale__Country__MarshallIslands QLocale__Country = 134 + QLocale__Country__Martinique QLocale__Country = 135 + QLocale__Country__Mauritania QLocale__Country = 136 + QLocale__Country__Mauritius QLocale__Country = 137 + QLocale__Country__Mayotte QLocale__Country = 138 + QLocale__Country__Mexico QLocale__Country = 139 + QLocale__Country__Micronesia QLocale__Country = 140 + QLocale__Country__Moldova QLocale__Country = 141 + QLocale__Country__Monaco QLocale__Country = 142 + QLocale__Country__Mongolia QLocale__Country = 143 + QLocale__Country__Montserrat QLocale__Country = 144 + QLocale__Country__Morocco QLocale__Country = 145 + QLocale__Country__Mozambique QLocale__Country = 146 + QLocale__Country__Myanmar QLocale__Country = 147 + QLocale__Country__Namibia QLocale__Country = 148 + QLocale__Country__NauruCountry QLocale__Country = 149 + QLocale__Country__Nepal QLocale__Country = 150 + QLocale__Country__Netherlands QLocale__Country = 151 + QLocale__Country__CuraSao QLocale__Country = 152 + QLocale__Country__NewCaledonia QLocale__Country = 153 + QLocale__Country__NewZealand QLocale__Country = 154 + QLocale__Country__Nicaragua QLocale__Country = 155 + QLocale__Country__Niger QLocale__Country = 156 + QLocale__Country__Nigeria QLocale__Country = 157 + QLocale__Country__Niue QLocale__Country = 158 + QLocale__Country__NorfolkIsland QLocale__Country = 159 + QLocale__Country__NorthernMarianaIslands QLocale__Country = 160 + QLocale__Country__Norway QLocale__Country = 161 + QLocale__Country__Oman QLocale__Country = 162 + QLocale__Country__Pakistan QLocale__Country = 163 + QLocale__Country__Palau QLocale__Country = 164 + QLocale__Country__PalestinianTerritories QLocale__Country = 165 + QLocale__Country__Panama QLocale__Country = 166 + QLocale__Country__PapuaNewGuinea QLocale__Country = 167 + QLocale__Country__Paraguay QLocale__Country = 168 + QLocale__Country__Peru QLocale__Country = 169 + QLocale__Country__Philippines QLocale__Country = 170 + QLocale__Country__Pitcairn QLocale__Country = 171 + QLocale__Country__Poland QLocale__Country = 172 + QLocale__Country__Portugal QLocale__Country = 173 + QLocale__Country__PuertoRico QLocale__Country = 174 + QLocale__Country__Qatar QLocale__Country = 175 + QLocale__Country__Reunion QLocale__Country = 176 + QLocale__Country__Romania QLocale__Country = 177 + QLocale__Country__Russia QLocale__Country = 178 + QLocale__Country__Rwanda QLocale__Country = 179 + QLocale__Country__SaintKittsAndNevis QLocale__Country = 180 + QLocale__Country__SaintLucia QLocale__Country = 181 + QLocale__Country__SaintVincentAndTheGrenadines QLocale__Country = 182 + QLocale__Country__Samoa QLocale__Country = 183 + QLocale__Country__SanMarino QLocale__Country = 184 + QLocale__Country__SaoTomeAndPrincipe QLocale__Country = 185 + QLocale__Country__SaudiArabia QLocale__Country = 186 + QLocale__Country__Senegal QLocale__Country = 187 + QLocale__Country__Seychelles QLocale__Country = 188 + QLocale__Country__SierraLeone QLocale__Country = 189 + QLocale__Country__Singapore QLocale__Country = 190 + QLocale__Country__Slovakia QLocale__Country = 191 + QLocale__Country__Slovenia QLocale__Country = 192 + QLocale__Country__SolomonIslands QLocale__Country = 193 + QLocale__Country__Somalia QLocale__Country = 194 + QLocale__Country__SouthAfrica QLocale__Country = 195 + QLocale__Country__SouthGeorgiaAndTheSouthSandwichIslands QLocale__Country = 196 + QLocale__Country__Spain QLocale__Country = 197 + QLocale__Country__SriLanka QLocale__Country = 198 + QLocale__Country__SaintHelena QLocale__Country = 199 + QLocale__Country__SaintPierreAndMiquelon QLocale__Country = 200 + QLocale__Country__Sudan QLocale__Country = 201 + QLocale__Country__Suriname QLocale__Country = 202 + QLocale__Country__SvalbardAndJanMayenIslands QLocale__Country = 203 + QLocale__Country__Swaziland QLocale__Country = 204 + QLocale__Country__Sweden QLocale__Country = 205 + QLocale__Country__Switzerland QLocale__Country = 206 + QLocale__Country__Syria QLocale__Country = 207 + QLocale__Country__Taiwan QLocale__Country = 208 + QLocale__Country__Tajikistan QLocale__Country = 209 + QLocale__Country__Tanzania QLocale__Country = 210 + QLocale__Country__Thailand QLocale__Country = 211 + QLocale__Country__Togo QLocale__Country = 212 + QLocale__Country__TokelauCountry QLocale__Country = 213 + QLocale__Country__Tonga QLocale__Country = 214 + QLocale__Country__TrinidadAndTobago QLocale__Country = 215 + QLocale__Country__Tunisia QLocale__Country = 216 + QLocale__Country__Turkey QLocale__Country = 217 + QLocale__Country__Turkmenistan QLocale__Country = 218 + QLocale__Country__TurksAndCaicosIslands QLocale__Country = 219 + QLocale__Country__TuvaluCountry QLocale__Country = 220 + QLocale__Country__Uganda QLocale__Country = 221 + QLocale__Country__Ukraine QLocale__Country = 222 + QLocale__Country__UnitedArabEmirates QLocale__Country = 223 + QLocale__Country__UnitedKingdom QLocale__Country = 224 + QLocale__Country__UnitedStates QLocale__Country = 225 + QLocale__Country__UnitedStatesMinorOutlyingIslands QLocale__Country = 226 + QLocale__Country__Uruguay QLocale__Country = 227 + QLocale__Country__Uzbekistan QLocale__Country = 228 + QLocale__Country__Vanuatu QLocale__Country = 229 + QLocale__Country__VaticanCityState QLocale__Country = 230 + QLocale__Country__Venezuela QLocale__Country = 231 + QLocale__Country__Vietnam QLocale__Country = 232 + QLocale__Country__BritishVirginIslands QLocale__Country = 233 + QLocale__Country__UnitedStatesVirginIslands QLocale__Country = 234 + QLocale__Country__WallisAndFutunaIslands QLocale__Country = 235 + QLocale__Country__WesternSahara QLocale__Country = 236 + QLocale__Country__Yemen QLocale__Country = 237 + QLocale__Country__CanaryIslands QLocale__Country = 238 + QLocale__Country__Zambia QLocale__Country = 239 + QLocale__Country__Zimbabwe QLocale__Country = 240 + QLocale__Country__ClippertonIsland QLocale__Country = 241 + QLocale__Country__Montenegro QLocale__Country = 242 + QLocale__Country__Serbia QLocale__Country = 243 + QLocale__Country__SaintBarthelemy QLocale__Country = 244 + QLocale__Country__SaintMartin QLocale__Country = 245 + QLocale__Country__LatinAmerica QLocale__Country = 246 + QLocale__Country__AscensionIsland QLocale__Country = 247 + QLocale__Country__AlandIslands QLocale__Country = 248 + QLocale__Country__DiegoGarcia QLocale__Country = 249 + QLocale__Country__CeutaAndMelilla QLocale__Country = 250 + QLocale__Country__IsleOfMan QLocale__Country = 251 + QLocale__Country__Jersey QLocale__Country = 252 + QLocale__Country__TristanDaCunha QLocale__Country = 253 + QLocale__Country__SouthSudan QLocale__Country = 254 + QLocale__Country__Bonaire QLocale__Country = 255 + QLocale__Country__SintMaarten QLocale__Country = 256 + QLocale__Country__Kosovo QLocale__Country = 257 + QLocale__Country__EuropeanUnion QLocale__Country = 258 + QLocale__Country__OutlyingOceania QLocale__Country = 259 + QLocale__Country__World QLocale__Country = 260 + QLocale__Country__Europe QLocale__Country = 261 + QLocale__Country__DemocraticRepublicOfCongo QLocale__Country = 49 + QLocale__Country__DemocraticRepublicOfKorea QLocale__Country = 113 + QLocale__Country__LatinAmericaAndTheCaribbean QLocale__Country = 246 + QLocale__Country__PeoplesRepublicOfCongo QLocale__Country = 50 + QLocale__Country__RepublicOfKorea QLocale__Country = 114 + QLocale__Country__RussianFederation QLocale__Country = 178 + QLocale__Country__SyrianArabRepublic QLocale__Country = 207 + QLocale__Country__Tokelau QLocale__Country = 213 + QLocale__Country__Tuvalu QLocale__Country = 220 + QLocale__Country__LastCountry QLocale__Country = 261 +) + +type QLocale__MeasurementSystem int + +const ( + QLocale__MeasurementSystem__MetricSystem QLocale__MeasurementSystem = 0 + QLocale__MeasurementSystem__ImperialUSSystem QLocale__MeasurementSystem = 1 + QLocale__MeasurementSystem__ImperialUKSystem QLocale__MeasurementSystem = 2 + QLocale__MeasurementSystem__ImperialSystem QLocale__MeasurementSystem = 1 +) + +type QLocale__FormatType int + +const ( + QLocale__FormatType__LongFormat QLocale__FormatType = 0 + QLocale__FormatType__ShortFormat QLocale__FormatType = 1 + QLocale__FormatType__NarrowFormat QLocale__FormatType = 2 +) + +type QLocale__NumberOption int + +const ( + QLocale__NumberOption__DefaultNumberOptions QLocale__NumberOption = 0 + QLocale__NumberOption__OmitGroupSeparator QLocale__NumberOption = 1 + QLocale__NumberOption__RejectGroupSeparator QLocale__NumberOption = 2 + QLocale__NumberOption__OmitLeadingZeroInExponent QLocale__NumberOption = 4 + QLocale__NumberOption__RejectLeadingZeroInExponent QLocale__NumberOption = 8 + QLocale__NumberOption__IncludeTrailingZeroesAfterDot QLocale__NumberOption = 16 + QLocale__NumberOption__RejectTrailingZeroesAfterDot QLocale__NumberOption = 32 +) + +type QLocale__FloatingPointPrecisionOption int + +const ( + QLocale__FloatingPointPrecisionOption__FloatingPointShortest QLocale__FloatingPointPrecisionOption = -128 +) + +type QLocale__CurrencySymbolFormat int + +const ( + QLocale__CurrencySymbolFormat__CurrencyIsoCode QLocale__CurrencySymbolFormat = 0 + QLocale__CurrencySymbolFormat__CurrencySymbol QLocale__CurrencySymbolFormat = 1 + QLocale__CurrencySymbolFormat__CurrencyDisplayName QLocale__CurrencySymbolFormat = 2 +) + +type QLocale__DataSizeFormat int + +const ( + QLocale__DataSizeFormat__DataSizeBase1000 QLocale__DataSizeFormat = 1 + QLocale__DataSizeFormat__DataSizeSIQuantifiers QLocale__DataSizeFormat = 2 + QLocale__DataSizeFormat__DataSizeIecFormat QLocale__DataSizeFormat = 0 + QLocale__DataSizeFormat__DataSizeTraditionalFormat QLocale__DataSizeFormat = 2 + QLocale__DataSizeFormat__DataSizeSIFormat QLocale__DataSizeFormat = 3 +) + +type QLocale__QuotationStyle int + +const ( + QLocale__QuotationStyle__StandardQuotation QLocale__QuotationStyle = 0 + QLocale__QuotationStyle__AlternateQuotation QLocale__QuotationStyle = 1 +) + type QLocale struct { h *C.QLocale } @@ -50,13 +928,13 @@ func NewQLocale2(name string) *QLocale { } // NewQLocale3 constructs a new QLocale object. -func NewQLocale3(language uintptr) *QLocale { +func NewQLocale3(language QLocale__Language) *QLocale { ret := C.QLocale_new3((C.uintptr_t)(language)) return newQLocale(ret) } // NewQLocale4 constructs a new QLocale object. -func NewQLocale4(language uintptr, script uintptr, country uintptr) *QLocale { +func NewQLocale4(language QLocale__Language, script QLocale__Script, country QLocale__Country) *QLocale { ret := C.QLocale_new4((C.uintptr_t)(language), (C.uintptr_t)(script), (C.uintptr_t)(country)) return newQLocale(ret) } @@ -68,7 +946,7 @@ func NewQLocale5(other *QLocale) *QLocale { } // NewQLocale6 constructs a new QLocale object. -func NewQLocale6(language uintptr, country uintptr) *QLocale { +func NewQLocale6(language QLocale__Language, country QLocale__Country) *QLocale { ret := C.QLocale_new6((C.uintptr_t)(language), (C.uintptr_t)(country)) return newQLocale(ret) } @@ -81,19 +959,19 @@ func (this *QLocale) Swap(other *QLocale) { C.QLocale_Swap(this.h, other.cPointer()) } -func (this *QLocale) Language() uintptr { +func (this *QLocale) Language() QLocale__Language { ret := C.QLocale_Language(this.h) - return (uintptr)(ret) + return (QLocale__Language)(ret) } -func (this *QLocale) Script() uintptr { +func (this *QLocale) Script() QLocale__Script { ret := C.QLocale_Script(this.h) - return (uintptr)(ret) + return (QLocale__Script)(ret) } -func (this *QLocale) Country() uintptr { +func (this *QLocale) Country() QLocale__Country { ret := C.QLocale_Country(this.h) - return (uintptr)(ret) + return (QLocale__Country)(ret) } func (this *QLocale) Name() string { @@ -352,7 +1230,7 @@ func (this *QLocale) ToStringWithDateTime(dateTime *QDateTime) string { return ret } -func (this *QLocale) ToString9(date *QDate, format uintptr, cal QCalendar) string { +func (this *QLocale) ToString9(date *QDate, format QLocale__FormatType, cal QCalendar) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_ToString9(this.h, date.cPointer(), (C.uintptr_t)(format), cal.cPointer(), &_out, &_out_Strlen) @@ -361,7 +1239,7 @@ func (this *QLocale) ToString9(date *QDate, format uintptr, cal QCalendar) strin return ret } -func (this *QLocale) ToString10(dateTime *QDateTime, format uintptr, cal QCalendar) string { +func (this *QLocale) ToString10(dateTime *QDateTime, format QLocale__FormatType, cal QCalendar) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_ToString10(this.h, dateTime.cPointer(), (C.uintptr_t)(format), cal.cPointer(), &_out, &_out_Strlen) @@ -481,7 +1359,7 @@ func (this *QLocale) ToDateTime2(stringVal string, format string) *QDateTime { return ret1 } -func (this *QLocale) ToDate3(stringVal string, format uintptr, cal QCalendar) *QDate { +func (this *QLocale) ToDate3(stringVal string, format QLocale__FormatType, cal QCalendar) *QDate { stringVal_Cstring := C.CString(stringVal) defer C.free(unsafe.Pointer(stringVal_Cstring)) ret := C.QLocale_ToDate3(this.h, stringVal_Cstring, C.size_t(len(stringVal)), (C.uintptr_t)(format), cal.cPointer()) @@ -494,7 +1372,7 @@ func (this *QLocale) ToDate3(stringVal string, format uintptr, cal QCalendar) *Q return ret1 } -func (this *QLocale) ToDateTime3(stringVal string, format uintptr, cal QCalendar) *QDateTime { +func (this *QLocale) ToDateTime3(stringVal string, format QLocale__FormatType, cal QCalendar) *QDateTime { stringVal_Cstring := C.CString(stringVal) defer C.free(unsafe.Pointer(stringVal_Cstring)) ret := C.QLocale_ToDateTime3(this.h, stringVal_Cstring, C.size_t(len(stringVal)), (C.uintptr_t)(format), cal.cPointer()) @@ -537,7 +1415,7 @@ func (this *QLocale) ToDateTime4(stringVal string, format string, cal QCalendar) return ret1 } -func (this *QLocale) ToTime3(stringVal string, format uintptr, cal QCalendar) *QTime { +func (this *QLocale) ToTime3(stringVal string, format QLocale__FormatType, cal QCalendar) *QTime { stringVal_Cstring := C.CString(stringVal) defer C.free(unsafe.Pointer(stringVal_Cstring)) ret := C.QLocale_ToTime3(this.h, stringVal_Cstring, C.size_t(len(stringVal)), (C.uintptr_t)(format), cal.cPointer()) @@ -678,19 +1556,19 @@ func (this *QLocale) StandaloneDayName(param1 int) string { return ret } -func (this *QLocale) FirstDayOfWeek() uintptr { +func (this *QLocale) FirstDayOfWeek() DayOfWeek { ret := C.QLocale_FirstDayOfWeek(this.h) - return (uintptr)(ret) + return (DayOfWeek)(ret) } -func (this *QLocale) Weekdays() []uintptr { +func (this *QLocale) Weekdays() []DayOfWeek { var _out *C.uintptr_t = nil var _out_len C.size_t = 0 C.QLocale_Weekdays(this.h, &_out, &_out_len) - ret := make([]uintptr, int(_out_len)) + ret := make([]DayOfWeek, int(_out_len)) _outCast := (*[0xffff]C.uintptr_t)(unsafe.Pointer(_out)) // mrs jackson for i := 0; i < int(_out_len); i++ { - ret[i] = (uintptr)(_outCast[i]) + ret[i] = (DayOfWeek)(_outCast[i]) } C.free(unsafe.Pointer(_out)) return ret @@ -714,9 +1592,9 @@ func (this *QLocale) PmText() string { return ret } -func (this *QLocale) MeasurementSystem() uintptr { +func (this *QLocale) MeasurementSystem() QLocale__MeasurementSystem { ret := C.QLocale_MeasurementSystem(this.h) - return (uintptr)(ret) + return (QLocale__MeasurementSystem)(ret) } func (this *QLocale) Collation() *QLocale { @@ -730,9 +1608,9 @@ func (this *QLocale) Collation() *QLocale { return ret1 } -func (this *QLocale) TextDirection() uintptr { +func (this *QLocale) TextDirection() LayoutDirection { ret := C.QLocale_TextDirection(this.h) - return (uintptr)(ret) + return (LayoutDirection)(ret) } func (this *QLocale) ToUpper(str string) string { @@ -903,7 +1781,7 @@ func (this *QLocale) OperatorNotEqual(other *QLocale) bool { return (bool)(ret) } -func QLocale_LanguageToString(language uintptr) string { +func QLocale_LanguageToString(language QLocale__Language) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_LanguageToString((C.uintptr_t)(language), &_out, &_out_Strlen) @@ -912,7 +1790,7 @@ func QLocale_LanguageToString(language uintptr) string { return ret } -func QLocale_CountryToString(country uintptr) string { +func QLocale_CountryToString(country QLocale__Country) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_CountryToString((C.uintptr_t)(country), &_out, &_out_Strlen) @@ -921,7 +1799,7 @@ func QLocale_CountryToString(country uintptr) string { return ret } -func QLocale_ScriptToString(script uintptr) string { +func QLocale_ScriptToString(script QLocale__Script) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_ScriptToString((C.uintptr_t)(script), &_out, &_out_Strlen) @@ -956,7 +1834,7 @@ func QLocale_System() *QLocale { return ret1 } -func QLocale_MatchingLocales(language uintptr, script uintptr, country uintptr) []QLocale { +func QLocale_MatchingLocales(language QLocale__Language, script QLocale__Script, country QLocale__Country) []QLocale { var _out **C.QLocale = nil var _out_len C.size_t = 0 C.QLocale_MatchingLocales((C.uintptr_t)(language), (C.uintptr_t)(script), (C.uintptr_t)(country), &_out, &_out_len) @@ -969,14 +1847,14 @@ func QLocale_MatchingLocales(language uintptr, script uintptr, country uintptr) return ret } -func QLocale_CountriesForLanguage(lang uintptr) []uintptr { +func QLocale_CountriesForLanguage(lang QLocale__Language) []QLocale__Country { var _out *C.uintptr_t = nil var _out_len C.size_t = 0 C.QLocale_CountriesForLanguage((C.uintptr_t)(lang), &_out, &_out_len) - ret := make([]uintptr, int(_out_len)) + ret := make([]QLocale__Country, int(_out_len)) _outCast := (*[0xffff]C.uintptr_t)(unsafe.Pointer(_out)) // mrs jackson for i := 0; i < int(_out_len); i++ { - ret[i] = (uintptr)(_outCast[i]) + ret[i] = (QLocale__Country)(_outCast[i]) } C.free(unsafe.Pointer(_out)) return ret @@ -1128,7 +2006,7 @@ func (this *QLocale) ToString33(i float32, f byte, prec int) string { return ret } -func (this *QLocale) ToString24(date *QDate, format uintptr) string { +func (this *QLocale) ToString24(date *QDate, format QLocale__FormatType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_ToString24(this.h, date.cPointer(), (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -1137,7 +2015,7 @@ func (this *QLocale) ToString24(date *QDate, format uintptr) string { return ret } -func (this *QLocale) ToString25(time *QTime, format uintptr) string { +func (this *QLocale) ToString25(time *QTime, format QLocale__FormatType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_ToString25(this.h, time.cPointer(), (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -1146,7 +2024,7 @@ func (this *QLocale) ToString25(time *QTime, format uintptr) string { return ret } -func (this *QLocale) ToString26(dateTime *QDateTime, format uintptr) string { +func (this *QLocale) ToString26(dateTime *QDateTime, format QLocale__FormatType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_ToString26(this.h, dateTime.cPointer(), (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -1155,7 +2033,7 @@ func (this *QLocale) ToString26(dateTime *QDateTime, format uintptr) string { return ret } -func (this *QLocale) DateFormat1(format uintptr) string { +func (this *QLocale) DateFormat1(format QLocale__FormatType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_DateFormat1(this.h, (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -1164,7 +2042,7 @@ func (this *QLocale) DateFormat1(format uintptr) string { return ret } -func (this *QLocale) TimeFormat1(format uintptr) string { +func (this *QLocale) TimeFormat1(format QLocale__FormatType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_TimeFormat1(this.h, (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -1173,7 +2051,7 @@ func (this *QLocale) TimeFormat1(format uintptr) string { return ret } -func (this *QLocale) DateTimeFormat1(format uintptr) string { +func (this *QLocale) DateTimeFormat1(format QLocale__FormatType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_DateTimeFormat1(this.h, (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -1182,7 +2060,7 @@ func (this *QLocale) DateTimeFormat1(format uintptr) string { return ret } -func (this *QLocale) ToDate22(stringVal string, param2 uintptr) *QDate { +func (this *QLocale) ToDate22(stringVal string, param2 QLocale__FormatType) *QDate { stringVal_Cstring := C.CString(stringVal) defer C.free(unsafe.Pointer(stringVal_Cstring)) ret := C.QLocale_ToDate22(this.h, stringVal_Cstring, C.size_t(len(stringVal)), (C.uintptr_t)(param2)) @@ -1195,7 +2073,7 @@ func (this *QLocale) ToDate22(stringVal string, param2 uintptr) *QDate { return ret1 } -func (this *QLocale) ToTime22(stringVal string, param2 uintptr) *QTime { +func (this *QLocale) ToTime22(stringVal string, param2 QLocale__FormatType) *QTime { stringVal_Cstring := C.CString(stringVal) defer C.free(unsafe.Pointer(stringVal_Cstring)) ret := C.QLocale_ToTime22(this.h, stringVal_Cstring, C.size_t(len(stringVal)), (C.uintptr_t)(param2)) @@ -1208,7 +2086,7 @@ func (this *QLocale) ToTime22(stringVal string, param2 uintptr) *QTime { return ret1 } -func (this *QLocale) ToDateTime22(stringVal string, format uintptr) *QDateTime { +func (this *QLocale) ToDateTime22(stringVal string, format QLocale__FormatType) *QDateTime { stringVal_Cstring := C.CString(stringVal) defer C.free(unsafe.Pointer(stringVal_Cstring)) ret := C.QLocale_ToDateTime22(this.h, stringVal_Cstring, C.size_t(len(stringVal)), (C.uintptr_t)(format)) @@ -1221,7 +2099,7 @@ func (this *QLocale) ToDateTime22(stringVal string, format uintptr) *QDateTime { return ret1 } -func (this *QLocale) MonthName2(param1 int, format uintptr) string { +func (this *QLocale) MonthName2(param1 int, format QLocale__FormatType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_MonthName2(this.h, (C.int)(param1), (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -1230,7 +2108,7 @@ func (this *QLocale) MonthName2(param1 int, format uintptr) string { return ret } -func (this *QLocale) StandaloneMonthName2(param1 int, format uintptr) string { +func (this *QLocale) StandaloneMonthName2(param1 int, format QLocale__FormatType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_StandaloneMonthName2(this.h, (C.int)(param1), (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -1239,7 +2117,7 @@ func (this *QLocale) StandaloneMonthName2(param1 int, format uintptr) string { return ret } -func (this *QLocale) DayName2(param1 int, format uintptr) string { +func (this *QLocale) DayName2(param1 int, format QLocale__FormatType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_DayName2(this.h, (C.int)(param1), (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -1248,7 +2126,7 @@ func (this *QLocale) DayName2(param1 int, format uintptr) string { return ret } -func (this *QLocale) StandaloneDayName2(param1 int, format uintptr) string { +func (this *QLocale) StandaloneDayName2(param1 int, format QLocale__FormatType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_StandaloneDayName2(this.h, (C.int)(param1), (C.uintptr_t)(format), &_out, &_out_Strlen) @@ -1257,7 +2135,7 @@ func (this *QLocale) StandaloneDayName2(param1 int, format uintptr) string { return ret } -func (this *QLocale) CurrencySymbol1(param1 uintptr) string { +func (this *QLocale) CurrencySymbol1(param1 QLocale__CurrencySymbolFormat) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QLocale_CurrencySymbol1(this.h, (C.uintptr_t)(param1), &_out, &_out_Strlen) @@ -1390,7 +2268,7 @@ func (this *QLocale) FormattedDataSize32(bytes int64, precision int, format int) return ret } -func (this *QLocale) QuoteString2(str string, style uintptr) string { +func (this *QLocale) QuoteString2(str string, style QLocale__QuotationStyle) string { str_Cstring := C.CString(str) defer C.free(unsafe.Pointer(str_Cstring)) var _out *C.char = nil diff --git a/qt/gen_qlockfile.go b/qt/gen_qlockfile.go index f4713329..41130579 100644 --- a/qt/gen_qlockfile.go +++ b/qt/gen_qlockfile.go @@ -12,6 +12,15 @@ import ( "unsafe" ) +type QLockFile__LockError int + +const ( + QLockFile__LockError__NoError QLockFile__LockError = 0 + QLockFile__LockError__LockFailedError QLockFile__LockError = 1 + QLockFile__LockError__PermissionError QLockFile__LockError = 2 + QLockFile__LockError__UnknownError QLockFile__LockError = 3 +) + type QLockFile struct { h *C.QLockFile } @@ -75,9 +84,9 @@ func (this *QLockFile) RemoveStaleLockFile() bool { return (bool)(ret) } -func (this *QLockFile) Error() uintptr { +func (this *QLockFile) Error() QLockFile__LockError { ret := C.QLockFile_Error(this.h) - return (uintptr)(ret) + return (QLockFile__LockError)(ret) } func (this *QLockFile) TryLock1(timeout int) bool { diff --git a/qt/gen_qmainwindow.go b/qt/gen_qmainwindow.go index 76bc2ee5..243612a6 100644 --- a/qt/gen_qmainwindow.go +++ b/qt/gen_qmainwindow.go @@ -14,6 +14,17 @@ import ( "unsafe" ) +type QMainWindow__DockOption int + +const ( + QMainWindow__DockOption__AnimatedDocks QMainWindow__DockOption = 1 + QMainWindow__DockOption__AllowNestedDocks QMainWindow__DockOption = 2 + QMainWindow__DockOption__AllowTabbedDocks QMainWindow__DockOption = 4 + QMainWindow__DockOption__ForceTabbedDocks QMainWindow__DockOption = 8 + QMainWindow__DockOption__VerticalTabs QMainWindow__DockOption = 16 + QMainWindow__DockOption__GroupedDragging QMainWindow__DockOption = 32 +) + type QMainWindow struct { h *C.QMainWindow *QWidget @@ -97,12 +108,12 @@ func (this *QMainWindow) SetIconSize(iconSize *QSize) { C.QMainWindow_SetIconSize(this.h, iconSize.cPointer()) } -func (this *QMainWindow) ToolButtonStyle() uintptr { +func (this *QMainWindow) ToolButtonStyle() ToolButtonStyle { ret := C.QMainWindow_ToolButtonStyle(this.h) - return (uintptr)(ret) + return (ToolButtonStyle)(ret) } -func (this *QMainWindow) SetToolButtonStyle(toolButtonStyle uintptr) { +func (this *QMainWindow) SetToolButtonStyle(toolButtonStyle ToolButtonStyle) { C.QMainWindow_SetToolButtonStyle(this.h, (C.uintptr_t)(toolButtonStyle)) } @@ -125,21 +136,21 @@ func (this *QMainWindow) SetDocumentMode(enabled bool) { C.QMainWindow_SetDocumentMode(this.h, (C.bool)(enabled)) } -func (this *QMainWindow) TabShape() uintptr { +func (this *QMainWindow) TabShape() QTabWidget__TabShape { ret := C.QMainWindow_TabShape(this.h) - return (uintptr)(ret) + return (QTabWidget__TabShape)(ret) } -func (this *QMainWindow) SetTabShape(tabShape uintptr) { +func (this *QMainWindow) SetTabShape(tabShape QTabWidget__TabShape) { C.QMainWindow_SetTabShape(this.h, (C.uintptr_t)(tabShape)) } -func (this *QMainWindow) TabPosition(area uintptr) uintptr { +func (this *QMainWindow) TabPosition(area DockWidgetArea) QTabWidget__TabPosition { ret := C.QMainWindow_TabPosition(this.h, (C.uintptr_t)(area)) - return (uintptr)(ret) + return (QTabWidget__TabPosition)(ret) } -func (this *QMainWindow) SetTabPosition(areas int, tabPosition uintptr) { +func (this *QMainWindow) SetTabPosition(areas int, tabPosition QTabWidget__TabPosition) { C.QMainWindow_SetTabPosition(this.h, (C.int)(areas), (C.uintptr_t)(tabPosition)) } @@ -198,13 +209,13 @@ func (this *QMainWindow) TakeCentralWidget() *QWidget { return newQWidget_U(unsafe.Pointer(ret)) } -func (this *QMainWindow) SetCorner(corner uintptr, area uintptr) { +func (this *QMainWindow) SetCorner(corner Corner, area DockWidgetArea) { C.QMainWindow_SetCorner(this.h, (C.uintptr_t)(corner), (C.uintptr_t)(area)) } -func (this *QMainWindow) Corner(corner uintptr) uintptr { +func (this *QMainWindow) Corner(corner Corner) DockWidgetArea { ret := C.QMainWindow_Corner(this.h, (C.uintptr_t)(corner)) - return (uintptr)(ret) + return (DockWidgetArea)(ret) } func (this *QMainWindow) AddToolBarBreak() { @@ -215,7 +226,7 @@ func (this *QMainWindow) InsertToolBarBreak(before *QToolBar) { C.QMainWindow_InsertToolBarBreak(this.h, before.cPointer()) } -func (this *QMainWindow) AddToolBar(area uintptr, toolbar *QToolBar) { +func (this *QMainWindow) AddToolBar(area ToolBarArea, toolbar *QToolBar) { C.QMainWindow_AddToolBar(this.h, (C.uintptr_t)(area), toolbar.cPointer()) } @@ -247,9 +258,9 @@ func (this *QMainWindow) UnifiedTitleAndToolBarOnMac() bool { return (bool)(ret) } -func (this *QMainWindow) ToolBarArea(toolbar *QToolBar) uintptr { +func (this *QMainWindow) ToolBarArea(toolbar *QToolBar) ToolBarArea { ret := C.QMainWindow_ToolBarArea(this.h, toolbar.cPointer()) - return (uintptr)(ret) + return (ToolBarArea)(ret) } func (this *QMainWindow) ToolBarBreak(toolbar *QToolBar) bool { @@ -257,15 +268,15 @@ func (this *QMainWindow) ToolBarBreak(toolbar *QToolBar) bool { return (bool)(ret) } -func (this *QMainWindow) AddDockWidget(area uintptr, dockwidget *QDockWidget) { +func (this *QMainWindow) AddDockWidget(area DockWidgetArea, dockwidget *QDockWidget) { C.QMainWindow_AddDockWidget(this.h, (C.uintptr_t)(area), dockwidget.cPointer()) } -func (this *QMainWindow) AddDockWidget2(area uintptr, dockwidget *QDockWidget, orientation uintptr) { +func (this *QMainWindow) AddDockWidget2(area DockWidgetArea, dockwidget *QDockWidget, orientation Orientation) { C.QMainWindow_AddDockWidget2(this.h, (C.uintptr_t)(area), dockwidget.cPointer(), (C.uintptr_t)(orientation)) } -func (this *QMainWindow) SplitDockWidget(after *QDockWidget, dockwidget *QDockWidget, orientation uintptr) { +func (this *QMainWindow) SplitDockWidget(after *QDockWidget, dockwidget *QDockWidget, orientation Orientation) { C.QMainWindow_SplitDockWidget(this.h, after.cPointer(), dockwidget.cPointer(), (C.uintptr_t)(orientation)) } @@ -295,12 +306,12 @@ func (this *QMainWindow) RestoreDockWidget(dockwidget *QDockWidget) bool { return (bool)(ret) } -func (this *QMainWindow) DockWidgetArea(dockwidget *QDockWidget) uintptr { +func (this *QMainWindow) DockWidgetArea(dockwidget *QDockWidget) DockWidgetArea { ret := C.QMainWindow_DockWidgetArea(this.h, dockwidget.cPointer()) - return (uintptr)(ret) + return (DockWidgetArea)(ret) } -func (this *QMainWindow) ResizeDocks(docks []*QDockWidget, sizes []int, orientation uintptr) { +func (this *QMainWindow) ResizeDocks(docks []*QDockWidget, sizes []int, orientation Orientation) { // For the C ABI, malloc a C array of raw pointers docks_CArray := (*[0xffff]*C.QDockWidget)(C.malloc(C.size_t(8 * len(docks)))) defer C.free(unsafe.Pointer(docks_CArray)) @@ -361,7 +372,7 @@ func (this *QMainWindow) OnIconSizeChanged(slot func()) { C.QMainWindow_connect_IconSizeChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QMainWindow) ToolButtonStyleChanged(toolButtonStyle uintptr) { +func (this *QMainWindow) ToolButtonStyleChanged(toolButtonStyle ToolButtonStyle) { C.QMainWindow_ToolButtonStyleChanged(this.h, (C.uintptr_t)(toolButtonStyle)) } @@ -437,7 +448,7 @@ func QMainWindow_TrUtf83(s string, c string, n int) string { return ret } -func (this *QMainWindow) AddToolBarBreak1(area uintptr) { +func (this *QMainWindow) AddToolBarBreak1(area ToolBarArea) { C.QMainWindow_AddToolBarBreak1(this.h, (C.uintptr_t)(area)) } diff --git a/qt/gen_qmap.go b/qt/gen_qmap.go index 734997ea..0596632a 100644 --- a/qt/gen_qmap.go +++ b/qt/gen_qmap.go @@ -12,6 +12,19 @@ import ( "unsafe" ) +type QMapNodeBase__Color int + +const ( + QMapNodeBase__Color__Red QMapNodeBase__Color = 0 + QMapNodeBase__Color__Black QMapNodeBase__Color = 1 +) + +type QMapNodeBase__ int + +const ( + QMapNodeBase____Mask QMapNodeBase__ = 3 +) + type QMapNodeBase struct { h *C.QMapNodeBase } @@ -60,12 +73,12 @@ func (this *QMapNodeBase) PreviousNode2() *QMapNodeBase { return newQMapNodeBase_U(unsafe.Pointer(ret)) } -func (this *QMapNodeBase) Color() uintptr { +func (this *QMapNodeBase) Color() QMapNodeBase__Color { ret := C.QMapNodeBase_Color(this.h) - return (uintptr)(ret) + return (QMapNodeBase__Color)(ret) } -func (this *QMapNodeBase) SetColor(c uintptr) { +func (this *QMapNodeBase) SetColor(c QMapNodeBase__Color) { C.QMapNodeBase_SetColor(this.h, (C.uintptr_t)(c)) } diff --git a/qt/gen_qmatrix.go b/qt/gen_qmatrix.go index 63e766d9..8903f58c 100644 --- a/qt/gen_qmatrix.go +++ b/qt/gen_qmatrix.go @@ -36,7 +36,7 @@ func newQMatrix_U(h unsafe.Pointer) *QMatrix { } // NewQMatrix constructs a new QMatrix object. -func NewQMatrix(param1 uintptr) *QMatrix { +func NewQMatrix(param1 Initialization) *QMatrix { ret := C.QMatrix_new((C.uintptr_t)(param1)) return newQMatrix(ret) } diff --git a/qt/gen_qmatrix4x4.go b/qt/gen_qmatrix4x4.go index ee7d2452..2c6e6a04 100644 --- a/qt/gen_qmatrix4x4.go +++ b/qt/gen_qmatrix4x4.go @@ -42,7 +42,7 @@ func NewQMatrix4x4() *QMatrix4x4 { } // NewQMatrix4x42 constructs a new QMatrix4x4 object. -func NewQMatrix4x42(param1 uintptr) *QMatrix4x4 { +func NewQMatrix4x42(param1 Initialization) *QMatrix4x4 { ret := C.QMatrix4x4_new2((C.uintptr_t)(param1)) return newQMatrix4x4(ret) } diff --git a/qt/gen_qmdiarea.go b/qt/gen_qmdiarea.go index 11a61fc4..affd4dae 100644 --- a/qt/gen_qmdiarea.go +++ b/qt/gen_qmdiarea.go @@ -14,6 +14,27 @@ import ( "unsafe" ) +type QMdiArea__AreaOption int + +const ( + QMdiArea__AreaOption__DontMaximizeSubWindowOnActivation QMdiArea__AreaOption = 1 +) + +type QMdiArea__WindowOrder int + +const ( + QMdiArea__WindowOrder__CreationOrder QMdiArea__WindowOrder = 0 + QMdiArea__WindowOrder__StackingOrder QMdiArea__WindowOrder = 1 + QMdiArea__WindowOrder__ActivationHistoryOrder QMdiArea__WindowOrder = 2 +) + +type QMdiArea__ViewMode int + +const ( + QMdiArea__ViewMode__SubWindowView QMdiArea__ViewMode = 0 + QMdiArea__ViewMode__TabbedView QMdiArea__ViewMode = 1 +) + type QMdiArea struct { h *C.QMdiArea *QAbstractScrollArea @@ -145,31 +166,31 @@ func (this *QMdiArea) SetBackground(background *QBrush) { C.QMdiArea_SetBackground(this.h, background.cPointer()) } -func (this *QMdiArea) ActivationOrder() uintptr { +func (this *QMdiArea) ActivationOrder() QMdiArea__WindowOrder { ret := C.QMdiArea_ActivationOrder(this.h) - return (uintptr)(ret) + return (QMdiArea__WindowOrder)(ret) } -func (this *QMdiArea) SetActivationOrder(order uintptr) { +func (this *QMdiArea) SetActivationOrder(order QMdiArea__WindowOrder) { C.QMdiArea_SetActivationOrder(this.h, (C.uintptr_t)(order)) } -func (this *QMdiArea) SetOption(option uintptr) { +func (this *QMdiArea) SetOption(option QMdiArea__AreaOption) { C.QMdiArea_SetOption(this.h, (C.uintptr_t)(option)) } -func (this *QMdiArea) TestOption(opton uintptr) bool { +func (this *QMdiArea) TestOption(opton QMdiArea__AreaOption) bool { ret := C.QMdiArea_TestOption(this.h, (C.uintptr_t)(opton)) return (bool)(ret) } -func (this *QMdiArea) SetViewMode(mode uintptr) { +func (this *QMdiArea) SetViewMode(mode QMdiArea__ViewMode) { C.QMdiArea_SetViewMode(this.h, (C.uintptr_t)(mode)) } -func (this *QMdiArea) ViewMode() uintptr { +func (this *QMdiArea) ViewMode() QMdiArea__ViewMode { ret := C.QMdiArea_ViewMode(this.h) - return (uintptr)(ret) + return (QMdiArea__ViewMode)(ret) } func (this *QMdiArea) DocumentMode() bool { @@ -199,22 +220,22 @@ func (this *QMdiArea) TabsMovable() bool { return (bool)(ret) } -func (this *QMdiArea) SetTabShape(shape uintptr) { +func (this *QMdiArea) SetTabShape(shape QTabWidget__TabShape) { C.QMdiArea_SetTabShape(this.h, (C.uintptr_t)(shape)) } -func (this *QMdiArea) TabShape() uintptr { +func (this *QMdiArea) TabShape() QTabWidget__TabShape { ret := C.QMdiArea_TabShape(this.h) - return (uintptr)(ret) + return (QTabWidget__TabShape)(ret) } -func (this *QMdiArea) SetTabPosition(position uintptr) { +func (this *QMdiArea) SetTabPosition(position QTabWidget__TabPosition) { C.QMdiArea_SetTabPosition(this.h, (C.uintptr_t)(position)) } -func (this *QMdiArea) TabPosition() uintptr { +func (this *QMdiArea) TabPosition() QTabWidget__TabPosition { ret := C.QMdiArea_TabPosition(this.h) - return (uintptr)(ret) + return (QTabWidget__TabPosition)(ret) } func (this *QMdiArea) SubWindowActivated(param1 *QMdiSubWindow) { @@ -309,7 +330,7 @@ func QMdiArea_TrUtf83(s string, c string, n int) string { return ret } -func (this *QMdiArea) SubWindowList1(order uintptr) []*QMdiSubWindow { +func (this *QMdiArea) SubWindowList1(order QMdiArea__WindowOrder) []*QMdiSubWindow { var _out **C.QMdiSubWindow = nil var _out_len C.size_t = 0 C.QMdiArea_SubWindowList1(this.h, (C.uintptr_t)(order), &_out, &_out_len) @@ -327,7 +348,7 @@ func (this *QMdiArea) AddSubWindow2(widget *QWidget, flags int) *QMdiSubWindow { return newQMdiSubWindow_U(unsafe.Pointer(ret)) } -func (this *QMdiArea) SetOption2(option uintptr, on bool) { +func (this *QMdiArea) SetOption2(option QMdiArea__AreaOption, on bool) { C.QMdiArea_SetOption2(this.h, (C.uintptr_t)(option), (C.bool)(on)) } diff --git a/qt/gen_qmdisubwindow.go b/qt/gen_qmdisubwindow.go index ab05e9e1..b952adc0 100644 --- a/qt/gen_qmdisubwindow.go +++ b/qt/gen_qmdisubwindow.go @@ -14,6 +14,15 @@ import ( "unsafe" ) +type QMdiSubWindow__SubWindowOption int + +const ( + QMdiSubWindow__SubWindowOption__AllowOutsideAreaHorizontally QMdiSubWindow__SubWindowOption = 1 + QMdiSubWindow__SubWindowOption__AllowOutsideAreaVertically QMdiSubWindow__SubWindowOption = 2 + QMdiSubWindow__SubWindowOption__RubberBandResize QMdiSubWindow__SubWindowOption = 4 + QMdiSubWindow__SubWindowOption__RubberBandMove QMdiSubWindow__SubWindowOption = 8 +) + type QMdiSubWindow struct { h *C.QMdiSubWindow *QWidget @@ -128,11 +137,11 @@ func (this *QMdiSubWindow) IsShaded() bool { return (bool)(ret) } -func (this *QMdiSubWindow) SetOption(option uintptr) { +func (this *QMdiSubWindow) SetOption(option QMdiSubWindow__SubWindowOption) { C.QMdiSubWindow_SetOption(this.h, (C.uintptr_t)(option)) } -func (this *QMdiSubWindow) TestOption(param1 uintptr) bool { +func (this *QMdiSubWindow) TestOption(param1 QMdiSubWindow__SubWindowOption) bool { ret := C.QMdiSubWindow_TestOption(this.h, (C.uintptr_t)(param1)) return (bool)(ret) } @@ -253,7 +262,7 @@ func QMdiSubWindow_TrUtf83(s string, c string, n int) string { return ret } -func (this *QMdiSubWindow) SetOption2(option uintptr, on bool) { +func (this *QMdiSubWindow) SetOption2(option QMdiSubWindow__SubWindowOption, on bool) { C.QMdiSubWindow_SetOption2(this.h, (C.uintptr_t)(option), (C.bool)(on)) } diff --git a/qt/gen_qmenubar.go b/qt/gen_qmenubar.go index 60ab80ff..0754ac0c 100644 --- a/qt/gen_qmenubar.go +++ b/qt/gen_qmenubar.go @@ -280,11 +280,11 @@ func QMenuBar_TrUtf83(s string, c string, n int) string { return ret } -func (this *QMenuBar) SetCornerWidget2(w *QWidget, corner uintptr) { +func (this *QMenuBar) SetCornerWidget2(w *QWidget, corner Corner) { C.QMenuBar_SetCornerWidget2(this.h, w.cPointer(), (C.uintptr_t)(corner)) } -func (this *QMenuBar) CornerWidget1(corner uintptr) *QWidget { +func (this *QMenuBar) CornerWidget1(corner Corner) *QWidget { ret := C.QMenuBar_CornerWidget1(this.h, (C.uintptr_t)(corner)) return newQWidget_U(unsafe.Pointer(ret)) } diff --git a/qt/gen_qmessageauthenticationcode.go b/qt/gen_qmessageauthenticationcode.go index 014d3eb5..9218f559 100644 --- a/qt/gen_qmessageauthenticationcode.go +++ b/qt/gen_qmessageauthenticationcode.go @@ -36,13 +36,13 @@ func newQMessageAuthenticationCode_U(h unsafe.Pointer) *QMessageAuthenticationCo } // NewQMessageAuthenticationCode constructs a new QMessageAuthenticationCode object. -func NewQMessageAuthenticationCode(method uintptr) *QMessageAuthenticationCode { +func NewQMessageAuthenticationCode(method QCryptographicHash__Algorithm) *QMessageAuthenticationCode { ret := C.QMessageAuthenticationCode_new((C.uintptr_t)(method)) return newQMessageAuthenticationCode(ret) } // NewQMessageAuthenticationCode2 constructs a new QMessageAuthenticationCode object. -func NewQMessageAuthenticationCode2(method uintptr, key *QByteArray) *QMessageAuthenticationCode { +func NewQMessageAuthenticationCode2(method QCryptographicHash__Algorithm, key *QByteArray) *QMessageAuthenticationCode { ret := C.QMessageAuthenticationCode_new2((C.uintptr_t)(method), key.cPointer()) return newQMessageAuthenticationCode(ret) } @@ -81,7 +81,7 @@ func (this *QMessageAuthenticationCode) Result() *QByteArray { return ret1 } -func QMessageAuthenticationCode_Hash(message *QByteArray, key *QByteArray, method uintptr) *QByteArray { +func QMessageAuthenticationCode_Hash(message *QByteArray, key *QByteArray, method QCryptographicHash__Algorithm) *QByteArray { ret := C.QMessageAuthenticationCode_Hash(message.cPointer(), key.cPointer(), (C.uintptr_t)(method)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQByteArray(ret) diff --git a/qt/gen_qmessagebox.go b/qt/gen_qmessagebox.go index f5271b7a..27b6b4b3 100644 --- a/qt/gen_qmessagebox.go +++ b/qt/gen_qmessagebox.go @@ -14,6 +14,64 @@ import ( "unsafe" ) +type QMessageBox__Icon int + +const ( + QMessageBox__Icon__NoIcon QMessageBox__Icon = 0 + QMessageBox__Icon__Information QMessageBox__Icon = 1 + QMessageBox__Icon__Warning QMessageBox__Icon = 2 + QMessageBox__Icon__Critical QMessageBox__Icon = 3 + QMessageBox__Icon__Question QMessageBox__Icon = 4 +) + +type QMessageBox__ButtonRole int + +const ( + QMessageBox__ButtonRole__InvalidRole QMessageBox__ButtonRole = -1 + QMessageBox__ButtonRole__AcceptRole QMessageBox__ButtonRole = 0 + QMessageBox__ButtonRole__RejectRole QMessageBox__ButtonRole = 1 + QMessageBox__ButtonRole__DestructiveRole QMessageBox__ButtonRole = 2 + QMessageBox__ButtonRole__ActionRole QMessageBox__ButtonRole = 3 + QMessageBox__ButtonRole__HelpRole QMessageBox__ButtonRole = 4 + QMessageBox__ButtonRole__YesRole QMessageBox__ButtonRole = 5 + QMessageBox__ButtonRole__NoRole QMessageBox__ButtonRole = 6 + QMessageBox__ButtonRole__ResetRole QMessageBox__ButtonRole = 7 + QMessageBox__ButtonRole__ApplyRole QMessageBox__ButtonRole = 8 + QMessageBox__ButtonRole__NRoles QMessageBox__ButtonRole = 9 +) + +type QMessageBox__StandardButton int + +const ( + QMessageBox__StandardButton__NoButton QMessageBox__StandardButton = 0 + QMessageBox__StandardButton__Ok QMessageBox__StandardButton = 1024 + QMessageBox__StandardButton__Save QMessageBox__StandardButton = 2048 + QMessageBox__StandardButton__SaveAll QMessageBox__StandardButton = 4096 + QMessageBox__StandardButton__Open QMessageBox__StandardButton = 8192 + QMessageBox__StandardButton__Yes QMessageBox__StandardButton = 16384 + QMessageBox__StandardButton__YesToAll QMessageBox__StandardButton = 32768 + QMessageBox__StandardButton__No QMessageBox__StandardButton = 65536 + QMessageBox__StandardButton__NoToAll QMessageBox__StandardButton = 131072 + QMessageBox__StandardButton__Abort QMessageBox__StandardButton = 262144 + QMessageBox__StandardButton__Retry QMessageBox__StandardButton = 524288 + QMessageBox__StandardButton__Ignore QMessageBox__StandardButton = 1048576 + QMessageBox__StandardButton__Close QMessageBox__StandardButton = 2097152 + QMessageBox__StandardButton__Cancel QMessageBox__StandardButton = 4194304 + QMessageBox__StandardButton__Discard QMessageBox__StandardButton = 8388608 + QMessageBox__StandardButton__Help QMessageBox__StandardButton = 16777216 + QMessageBox__StandardButton__Apply QMessageBox__StandardButton = 33554432 + QMessageBox__StandardButton__Reset QMessageBox__StandardButton = 67108864 + QMessageBox__StandardButton__RestoreDefaults QMessageBox__StandardButton = 134217728 + QMessageBox__StandardButton__FirstButton QMessageBox__StandardButton = 1024 + QMessageBox__StandardButton__LastButton QMessageBox__StandardButton = 134217728 + QMessageBox__StandardButton__YesAll QMessageBox__StandardButton = 32768 + QMessageBox__StandardButton__NoAll QMessageBox__StandardButton = 131072 + QMessageBox__StandardButton__Default QMessageBox__StandardButton = 256 + QMessageBox__StandardButton__Escape QMessageBox__StandardButton = 512 + QMessageBox__StandardButton__FlagMask QMessageBox__StandardButton = 768 + QMessageBox__StandardButton__ButtonMask QMessageBox__StandardButton = -769 +) + type QMessageBox struct { h *C.QMessageBox *QDialog @@ -44,7 +102,7 @@ func NewQMessageBox() *QMessageBox { } // NewQMessageBox2 constructs a new QMessageBox object. -func NewQMessageBox2(icon uintptr, title string, text string) *QMessageBox { +func NewQMessageBox2(icon QMessageBox__Icon, title string, text string) *QMessageBox { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) @@ -54,7 +112,7 @@ func NewQMessageBox2(icon uintptr, title string, text string) *QMessageBox { } // NewQMessageBox3 constructs a new QMessageBox object. -func NewQMessageBox3(title string, text string, icon uintptr, button0 int, button1 int, button2 int) *QMessageBox { +func NewQMessageBox3(title string, text string, icon QMessageBox__Icon, button0 int, button1 int, button2 int) *QMessageBox { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) @@ -70,7 +128,7 @@ func NewQMessageBox4(parent *QWidget) *QMessageBox { } // NewQMessageBox5 constructs a new QMessageBox object. -func NewQMessageBox5(icon uintptr, title string, text string, buttons int) *QMessageBox { +func NewQMessageBox5(icon QMessageBox__Icon, title string, text string, buttons int) *QMessageBox { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) @@ -80,7 +138,7 @@ func NewQMessageBox5(icon uintptr, title string, text string, buttons int) *QMes } // NewQMessageBox6 constructs a new QMessageBox object. -func NewQMessageBox6(icon uintptr, title string, text string, buttons int, parent *QWidget) *QMessageBox { +func NewQMessageBox6(icon QMessageBox__Icon, title string, text string, buttons int, parent *QWidget) *QMessageBox { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) @@ -90,7 +148,7 @@ func NewQMessageBox6(icon uintptr, title string, text string, buttons int, paren } // NewQMessageBox7 constructs a new QMessageBox object. -func NewQMessageBox7(icon uintptr, title string, text string, buttons int, parent *QWidget, flags int) *QMessageBox { +func NewQMessageBox7(icon QMessageBox__Icon, title string, text string, buttons int, parent *QWidget, flags int) *QMessageBox { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) @@ -100,7 +158,7 @@ func NewQMessageBox7(icon uintptr, title string, text string, buttons int, paren } // NewQMessageBox8 constructs a new QMessageBox object. -func NewQMessageBox8(title string, text string, icon uintptr, button0 int, button1 int, button2 int, parent *QWidget) *QMessageBox { +func NewQMessageBox8(title string, text string, icon QMessageBox__Icon, button0 int, button1 int, button2 int, parent *QWidget) *QMessageBox { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) @@ -110,7 +168,7 @@ func NewQMessageBox8(title string, text string, icon uintptr, button0 int, butto } // NewQMessageBox9 constructs a new QMessageBox object. -func NewQMessageBox9(title string, text string, icon uintptr, button0 int, button1 int, button2 int, parent *QWidget, f int) *QMessageBox { +func NewQMessageBox9(title string, text string, icon QMessageBox__Icon, button0 int, button1 int, button2 int, parent *QWidget, f int) *QMessageBox { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) @@ -146,18 +204,18 @@ func QMessageBox_TrUtf8(s string) string { return ret } -func (this *QMessageBox) AddButton(button *QAbstractButton, role uintptr) { +func (this *QMessageBox) AddButton(button *QAbstractButton, role QMessageBox__ButtonRole) { C.QMessageBox_AddButton(this.h, button.cPointer(), (C.uintptr_t)(role)) } -func (this *QMessageBox) AddButton2(text string, role uintptr) *QPushButton { +func (this *QMessageBox) AddButton2(text string, role QMessageBox__ButtonRole) *QPushButton { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QMessageBox_AddButton2(this.h, text_Cstring, C.size_t(len(text)), (C.uintptr_t)(role)) return newQPushButton_U(unsafe.Pointer(ret)) } -func (this *QMessageBox) AddButtonWithButton(button uintptr) *QPushButton { +func (this *QMessageBox) AddButtonWithButton(button QMessageBox__StandardButton) *QPushButton { ret := C.QMessageBox_AddButtonWithButton(this.h, (C.uintptr_t)(button)) return newQPushButton_U(unsafe.Pointer(ret)) } @@ -179,9 +237,9 @@ func (this *QMessageBox) Buttons() []*QAbstractButton { return ret } -func (this *QMessageBox) ButtonRole(button *QAbstractButton) uintptr { +func (this *QMessageBox) ButtonRole(button *QAbstractButton) QMessageBox__ButtonRole { ret := C.QMessageBox_ButtonRole(this.h, button.cPointer()) - return (uintptr)(ret) + return (QMessageBox__ButtonRole)(ret) } func (this *QMessageBox) SetStandardButtons(buttons int) { @@ -193,12 +251,12 @@ func (this *QMessageBox) StandardButtons() int { return (int)(ret) } -func (this *QMessageBox) StandardButton(button *QAbstractButton) uintptr { +func (this *QMessageBox) StandardButton(button *QAbstractButton) QMessageBox__StandardButton { ret := C.QMessageBox_StandardButton(this.h, button.cPointer()) - return (uintptr)(ret) + return (QMessageBox__StandardButton)(ret) } -func (this *QMessageBox) Button(which uintptr) *QAbstractButton { +func (this *QMessageBox) Button(which QMessageBox__StandardButton) *QAbstractButton { ret := C.QMessageBox_Button(this.h, (C.uintptr_t)(which)) return newQAbstractButton_U(unsafe.Pointer(ret)) } @@ -212,7 +270,7 @@ func (this *QMessageBox) SetDefaultButton(button *QPushButton) { C.QMessageBox_SetDefaultButton(this.h, button.cPointer()) } -func (this *QMessageBox) SetDefaultButtonWithButton(button uintptr) { +func (this *QMessageBox) SetDefaultButtonWithButton(button QMessageBox__StandardButton) { C.QMessageBox_SetDefaultButtonWithButton(this.h, (C.uintptr_t)(button)) } @@ -225,7 +283,7 @@ func (this *QMessageBox) SetEscapeButton(button *QAbstractButton) { C.QMessageBox_SetEscapeButton(this.h, button.cPointer()) } -func (this *QMessageBox) SetEscapeButtonWithButton(button uintptr) { +func (this *QMessageBox) SetEscapeButtonWithButton(button QMessageBox__StandardButton) { C.QMessageBox_SetEscapeButtonWithButton(this.h, (C.uintptr_t)(button)) } @@ -249,12 +307,12 @@ func (this *QMessageBox) SetText(text string) { C.QMessageBox_SetText(this.h, text_Cstring, C.size_t(len(text))) } -func (this *QMessageBox) Icon() uintptr { +func (this *QMessageBox) Icon() QMessageBox__Icon { ret := C.QMessageBox_Icon(this.h) - return (uintptr)(ret) + return (QMessageBox__Icon)(ret) } -func (this *QMessageBox) SetIcon(icon uintptr) { +func (this *QMessageBox) SetIcon(icon QMessageBox__Icon) { C.QMessageBox_SetIcon(this.h, (C.uintptr_t)(icon)) } @@ -273,12 +331,12 @@ func (this *QMessageBox) SetIconPixmap(pixmap *QPixmap) { C.QMessageBox_SetIconPixmap(this.h, pixmap.cPointer()) } -func (this *QMessageBox) TextFormat() uintptr { +func (this *QMessageBox) TextFormat() TextFormat { ret := C.QMessageBox_TextFormat(this.h) - return (uintptr)(ret) + return (TextFormat)(ret) } -func (this *QMessageBox) SetTextFormat(format uintptr) { +func (this *QMessageBox) SetTextFormat(format TextFormat) { C.QMessageBox_SetTextFormat(this.h, (C.uintptr_t)(format)) } @@ -300,40 +358,40 @@ func (this *QMessageBox) CheckBox() *QCheckBox { return newQCheckBox_U(unsafe.Pointer(ret)) } -func QMessageBox_Information(parent *QWidget, title string, text string) uintptr { +func QMessageBox_Information(parent *QWidget, title string, text string) QMessageBox__StandardButton { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QMessageBox_Information(parent.cPointer(), title_Cstring, C.size_t(len(title)), text_Cstring, C.size_t(len(text))) - return (uintptr)(ret) + return (QMessageBox__StandardButton)(ret) } -func QMessageBox_Question(parent *QWidget, title string, text string) uintptr { +func QMessageBox_Question(parent *QWidget, title string, text string) QMessageBox__StandardButton { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QMessageBox_Question(parent.cPointer(), title_Cstring, C.size_t(len(title)), text_Cstring, C.size_t(len(text))) - return (uintptr)(ret) + return (QMessageBox__StandardButton)(ret) } -func QMessageBox_Warning(parent *QWidget, title string, text string) uintptr { +func QMessageBox_Warning(parent *QWidget, title string, text string) QMessageBox__StandardButton { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QMessageBox_Warning(parent.cPointer(), title_Cstring, C.size_t(len(title)), text_Cstring, C.size_t(len(text))) - return (uintptr)(ret) + return (QMessageBox__StandardButton)(ret) } -func QMessageBox_Critical(parent *QWidget, title string, text string) uintptr { +func QMessageBox_Critical(parent *QWidget, title string, text string) QMessageBox__StandardButton { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QMessageBox_Critical(parent.cPointer(), title_Cstring, C.size_t(len(title)), text_Cstring, C.size_t(len(text))) - return (uintptr)(ret) + return (QMessageBox__StandardButton)(ret) } func QMessageBox_About(parent *QWidget, title string, text string) { @@ -368,13 +426,13 @@ func QMessageBox_Information3(parent *QWidget, title string, text string, button return (int)(ret) } -func QMessageBox_Information4(parent *QWidget, title string, text string, button0 uintptr) uintptr { +func QMessageBox_Information4(parent *QWidget, title string, text string, button0 QMessageBox__StandardButton) QMessageBox__StandardButton { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QMessageBox_Information4(parent.cPointer(), title_Cstring, C.size_t(len(title)), text_Cstring, C.size_t(len(text)), (C.uintptr_t)(button0)) - return (uintptr)(ret) + return (QMessageBox__StandardButton)(ret) } func QMessageBox_Question2(parent *QWidget, title string, text string, button0 int) int { @@ -397,7 +455,7 @@ func QMessageBox_Question3(parent *QWidget, title string, text string, button0Te return (int)(ret) } -func QMessageBox_Question4(parent *QWidget, title string, text string, button0 uintptr, button1 uintptr) int { +func QMessageBox_Question4(parent *QWidget, title string, text string, button0 QMessageBox__StandardButton, button1 QMessageBox__StandardButton) int { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) @@ -426,7 +484,7 @@ func QMessageBox_Warning3(parent *QWidget, title string, text string, button0Tex return (int)(ret) } -func QMessageBox_Warning4(parent *QWidget, title string, text string, button0 uintptr, button1 uintptr) int { +func QMessageBox_Warning4(parent *QWidget, title string, text string, button0 QMessageBox__StandardButton, button1 QMessageBox__StandardButton) int { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) @@ -455,7 +513,7 @@ func QMessageBox_Critical3(parent *QWidget, title string, text string, button0Te return (int)(ret) } -func QMessageBox_Critical4(parent *QWidget, title string, text string, button0 uintptr, button1 uintptr) int { +func QMessageBox_Critical4(parent *QWidget, title string, text string, button0 QMessageBox__StandardButton, button1 QMessageBox__StandardButton) int { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) @@ -515,11 +573,11 @@ func (this *QMessageBox) SetWindowTitle(title string) { C.QMessageBox_SetWindowTitle(this.h, title_Cstring, C.size_t(len(title))) } -func (this *QMessageBox) SetWindowModality(windowModality uintptr) { +func (this *QMessageBox) SetWindowModality(windowModality WindowModality) { C.QMessageBox_SetWindowModality(this.h, (C.uintptr_t)(windowModality)) } -func QMessageBox_StandardIcon(icon uintptr) *QPixmap { +func QMessageBox_StandardIcon(icon QMessageBox__Icon) *QPixmap { ret := C.QMessageBox_StandardIcon((C.uintptr_t)(icon)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -594,76 +652,76 @@ func QMessageBox_TrUtf83(s string, c string, n int) string { return ret } -func QMessageBox_Information42(parent *QWidget, title string, text string, buttons int) uintptr { +func QMessageBox_Information42(parent *QWidget, title string, text string, buttons int) QMessageBox__StandardButton { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QMessageBox_Information42(parent.cPointer(), title_Cstring, C.size_t(len(title)), text_Cstring, C.size_t(len(text)), (C.int)(buttons)) - return (uintptr)(ret) + return (QMessageBox__StandardButton)(ret) } -func QMessageBox_Information5(parent *QWidget, title string, text string, buttons int, defaultButton uintptr) uintptr { +func QMessageBox_Information5(parent *QWidget, title string, text string, buttons int, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QMessageBox_Information5(parent.cPointer(), title_Cstring, C.size_t(len(title)), text_Cstring, C.size_t(len(text)), (C.int)(buttons), (C.uintptr_t)(defaultButton)) - return (uintptr)(ret) + return (QMessageBox__StandardButton)(ret) } -func QMessageBox_Question42(parent *QWidget, title string, text string, buttons int) uintptr { +func QMessageBox_Question42(parent *QWidget, title string, text string, buttons int) QMessageBox__StandardButton { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QMessageBox_Question42(parent.cPointer(), title_Cstring, C.size_t(len(title)), text_Cstring, C.size_t(len(text)), (C.int)(buttons)) - return (uintptr)(ret) + return (QMessageBox__StandardButton)(ret) } -func QMessageBox_Question5(parent *QWidget, title string, text string, buttons int, defaultButton uintptr) uintptr { +func QMessageBox_Question5(parent *QWidget, title string, text string, buttons int, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QMessageBox_Question5(parent.cPointer(), title_Cstring, C.size_t(len(title)), text_Cstring, C.size_t(len(text)), (C.int)(buttons), (C.uintptr_t)(defaultButton)) - return (uintptr)(ret) + return (QMessageBox__StandardButton)(ret) } -func QMessageBox_Warning42(parent *QWidget, title string, text string, buttons int) uintptr { +func QMessageBox_Warning42(parent *QWidget, title string, text string, buttons int) QMessageBox__StandardButton { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QMessageBox_Warning42(parent.cPointer(), title_Cstring, C.size_t(len(title)), text_Cstring, C.size_t(len(text)), (C.int)(buttons)) - return (uintptr)(ret) + return (QMessageBox__StandardButton)(ret) } -func QMessageBox_Warning5(parent *QWidget, title string, text string, buttons int, defaultButton uintptr) uintptr { +func QMessageBox_Warning5(parent *QWidget, title string, text string, buttons int, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QMessageBox_Warning5(parent.cPointer(), title_Cstring, C.size_t(len(title)), text_Cstring, C.size_t(len(text)), (C.int)(buttons), (C.uintptr_t)(defaultButton)) - return (uintptr)(ret) + return (QMessageBox__StandardButton)(ret) } -func QMessageBox_Critical42(parent *QWidget, title string, text string, buttons int) uintptr { +func QMessageBox_Critical42(parent *QWidget, title string, text string, buttons int) QMessageBox__StandardButton { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QMessageBox_Critical42(parent.cPointer(), title_Cstring, C.size_t(len(title)), text_Cstring, C.size_t(len(text)), (C.int)(buttons)) - return (uintptr)(ret) + return (QMessageBox__StandardButton)(ret) } -func QMessageBox_Critical5(parent *QWidget, title string, text string, buttons int, defaultButton uintptr) uintptr { +func QMessageBox_Critical5(parent *QWidget, title string, text string, buttons int, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QMessageBox_Critical5(parent.cPointer(), title_Cstring, C.size_t(len(title)), text_Cstring, C.size_t(len(text)), (C.int)(buttons), (C.uintptr_t)(defaultButton)) - return (uintptr)(ret) + return (QMessageBox__StandardButton)(ret) } func QMessageBox_AboutQt2(parent *QWidget, title string) { @@ -748,13 +806,13 @@ func QMessageBox_Information8(parent *QWidget, title string, text string, button return (int)(ret) } -func QMessageBox_Information54(parent *QWidget, title string, text string, button0 uintptr, button1 uintptr) uintptr { +func QMessageBox_Information54(parent *QWidget, title string, text string, button0 QMessageBox__StandardButton, button1 QMessageBox__StandardButton) QMessageBox__StandardButton { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) ret := C.QMessageBox_Information54(parent.cPointer(), title_Cstring, C.size_t(len(title)), text_Cstring, C.size_t(len(text)), (C.uintptr_t)(button0), (C.uintptr_t)(button1)) - return (uintptr)(ret) + return (QMessageBox__StandardButton)(ret) } func QMessageBox_Question52(parent *QWidget, title string, text string, button0 int, button1 int) int { diff --git a/qt/gen_qmetaobject.go b/qt/gen_qmetaobject.go index 5eaadcf4..a24357de 100644 --- a/qt/gen_qmetaobject.go +++ b/qt/gen_qmetaobject.go @@ -13,6 +13,31 @@ import ( "unsafe" ) +type QMetaMethod__Access int + +const ( + QMetaMethod__Access__Private QMetaMethod__Access = 0 + QMetaMethod__Access__Protected QMetaMethod__Access = 1 + QMetaMethod__Access__Public QMetaMethod__Access = 2 +) + +type QMetaMethod__MethodType int + +const ( + QMetaMethod__MethodType__Method QMetaMethod__MethodType = 0 + QMetaMethod__MethodType__Signal QMetaMethod__MethodType = 1 + QMetaMethod__MethodType__Slot QMetaMethod__MethodType = 2 + QMetaMethod__MethodType__Constructor QMetaMethod__MethodType = 3 +) + +type QMetaMethod__Attributes int + +const ( + QMetaMethod__Attributes__Compatibility QMetaMethod__Attributes = 1 + QMetaMethod__Attributes__Cloned QMetaMethod__Attributes = 2 + QMetaMethod__Attributes__Scriptable QMetaMethod__Attributes = 4 +) + type QMetaMethod struct { h *C.QMetaMethod } @@ -124,14 +149,14 @@ func (this *QMetaMethod) Tag() unsafe.Pointer { return (unsafe.Pointer)(ret) } -func (this *QMetaMethod) Access() uintptr { +func (this *QMetaMethod) Access() QMetaMethod__Access { ret := C.QMetaMethod_Access(this.h) - return (uintptr)(ret) + return (QMetaMethod__Access)(ret) } -func (this *QMetaMethod) MethodType() uintptr { +func (this *QMetaMethod) MethodType() QMetaMethod__MethodType { ret := C.QMetaMethod_MethodType(this.h) - return (uintptr)(ret) + return (QMetaMethod__MethodType)(ret) } func (this *QMetaMethod) Attributes() int { @@ -154,7 +179,7 @@ func (this *QMetaMethod) EnclosingMetaObject() *QMetaObject { return newQMetaObject_U(unsafe.Pointer(ret)) } -func (this *QMetaMethod) Invoke(object *QObject, connectionType uintptr, returnValue QGenericReturnArgument) bool { +func (this *QMetaMethod) Invoke(object *QObject, connectionType ConnectionType, returnValue QGenericReturnArgument) bool { ret := C.QMetaMethod_Invoke(this.h, object.cPointer(), (C.uintptr_t)(connectionType), returnValue.cPointer()) return (bool)(ret) } @@ -164,7 +189,7 @@ func (this *QMetaMethod) Invoke2(object *QObject, returnValue QGenericReturnArgu return (bool)(ret) } -func (this *QMetaMethod) Invoke3(object *QObject, connectionType uintptr) bool { +func (this *QMetaMethod) Invoke3(object *QObject, connectionType ConnectionType) bool { ret := C.QMetaMethod_Invoke3(this.h, object.cPointer(), (C.uintptr_t)(connectionType)) return (bool)(ret) } @@ -179,52 +204,52 @@ func (this *QMetaMethod) IsValid() bool { return (bool)(ret) } -func (this *QMetaMethod) Invoke4(object *QObject, connectionType uintptr, returnValue QGenericReturnArgument, val0 QGenericArgument) bool { +func (this *QMetaMethod) Invoke4(object *QObject, connectionType ConnectionType, returnValue QGenericReturnArgument, val0 QGenericArgument) bool { ret := C.QMetaMethod_Invoke4(this.h, object.cPointer(), (C.uintptr_t)(connectionType), returnValue.cPointer(), val0.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke5(object *QObject, connectionType uintptr, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument) bool { +func (this *QMetaMethod) Invoke5(object *QObject, connectionType ConnectionType, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument) bool { ret := C.QMetaMethod_Invoke5(this.h, object.cPointer(), (C.uintptr_t)(connectionType), returnValue.cPointer(), val0.cPointer(), val1.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke6(object *QObject, connectionType uintptr, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument) bool { +func (this *QMetaMethod) Invoke6(object *QObject, connectionType ConnectionType, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument) bool { ret := C.QMetaMethod_Invoke6(this.h, object.cPointer(), (C.uintptr_t)(connectionType), returnValue.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke7(object *QObject, connectionType uintptr, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument) bool { +func (this *QMetaMethod) Invoke7(object *QObject, connectionType ConnectionType, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument) bool { ret := C.QMetaMethod_Invoke7(this.h, object.cPointer(), (C.uintptr_t)(connectionType), returnValue.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke8(object *QObject, connectionType uintptr, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument) bool { +func (this *QMetaMethod) Invoke8(object *QObject, connectionType ConnectionType, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument) bool { ret := C.QMetaMethod_Invoke8(this.h, object.cPointer(), (C.uintptr_t)(connectionType), returnValue.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke9(object *QObject, connectionType uintptr, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument) bool { +func (this *QMetaMethod) Invoke9(object *QObject, connectionType ConnectionType, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument) bool { ret := C.QMetaMethod_Invoke9(this.h, object.cPointer(), (C.uintptr_t)(connectionType), returnValue.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke10(object *QObject, connectionType uintptr, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument) bool { +func (this *QMetaMethod) Invoke10(object *QObject, connectionType ConnectionType, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument) bool { ret := C.QMetaMethod_Invoke10(this.h, object.cPointer(), (C.uintptr_t)(connectionType), returnValue.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke11(object *QObject, connectionType uintptr, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument) bool { +func (this *QMetaMethod) Invoke11(object *QObject, connectionType ConnectionType, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument) bool { ret := C.QMetaMethod_Invoke11(this.h, object.cPointer(), (C.uintptr_t)(connectionType), returnValue.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer(), val7.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke12(object *QObject, connectionType uintptr, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument) bool { +func (this *QMetaMethod) Invoke12(object *QObject, connectionType ConnectionType, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument) bool { ret := C.QMetaMethod_Invoke12(this.h, object.cPointer(), (C.uintptr_t)(connectionType), returnValue.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer(), val7.cPointer(), val8.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke13(object *QObject, connectionType uintptr, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument, val9 QGenericArgument) bool { +func (this *QMetaMethod) Invoke13(object *QObject, connectionType ConnectionType, returnValue QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument, val9 QGenericArgument) bool { ret := C.QMetaMethod_Invoke13(this.h, object.cPointer(), (C.uintptr_t)(connectionType), returnValue.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer(), val7.cPointer(), val8.cPointer(), val9.cPointer()) return (bool)(ret) } @@ -279,52 +304,52 @@ func (this *QMetaMethod) Invoke122(object *QObject, returnValue QGenericReturnAr return (bool)(ret) } -func (this *QMetaMethod) Invoke33(object *QObject, connectionType uintptr, val0 QGenericArgument) bool { +func (this *QMetaMethod) Invoke33(object *QObject, connectionType ConnectionType, val0 QGenericArgument) bool { ret := C.QMetaMethod_Invoke33(this.h, object.cPointer(), (C.uintptr_t)(connectionType), val0.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke43(object *QObject, connectionType uintptr, val0 QGenericArgument, val1 QGenericArgument) bool { +func (this *QMetaMethod) Invoke43(object *QObject, connectionType ConnectionType, val0 QGenericArgument, val1 QGenericArgument) bool { ret := C.QMetaMethod_Invoke43(this.h, object.cPointer(), (C.uintptr_t)(connectionType), val0.cPointer(), val1.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke53(object *QObject, connectionType uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument) bool { +func (this *QMetaMethod) Invoke53(object *QObject, connectionType ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument) bool { ret := C.QMetaMethod_Invoke53(this.h, object.cPointer(), (C.uintptr_t)(connectionType), val0.cPointer(), val1.cPointer(), val2.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke63(object *QObject, connectionType uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument) bool { +func (this *QMetaMethod) Invoke63(object *QObject, connectionType ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument) bool { ret := C.QMetaMethod_Invoke63(this.h, object.cPointer(), (C.uintptr_t)(connectionType), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke73(object *QObject, connectionType uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument) bool { +func (this *QMetaMethod) Invoke73(object *QObject, connectionType ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument) bool { ret := C.QMetaMethod_Invoke73(this.h, object.cPointer(), (C.uintptr_t)(connectionType), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke83(object *QObject, connectionType uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument) bool { +func (this *QMetaMethod) Invoke83(object *QObject, connectionType ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument) bool { ret := C.QMetaMethod_Invoke83(this.h, object.cPointer(), (C.uintptr_t)(connectionType), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke93(object *QObject, connectionType uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument) bool { +func (this *QMetaMethod) Invoke93(object *QObject, connectionType ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument) bool { ret := C.QMetaMethod_Invoke93(this.h, object.cPointer(), (C.uintptr_t)(connectionType), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke103(object *QObject, connectionType uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument) bool { +func (this *QMetaMethod) Invoke103(object *QObject, connectionType ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument) bool { ret := C.QMetaMethod_Invoke103(this.h, object.cPointer(), (C.uintptr_t)(connectionType), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer(), val7.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke113(object *QObject, connectionType uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument) bool { +func (this *QMetaMethod) Invoke113(object *QObject, connectionType ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument) bool { ret := C.QMetaMethod_Invoke113(this.h, object.cPointer(), (C.uintptr_t)(connectionType), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer(), val7.cPointer(), val8.cPointer()) return (bool)(ret) } -func (this *QMetaMethod) Invoke123(object *QObject, connectionType uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument, val9 QGenericArgument) bool { +func (this *QMetaMethod) Invoke123(object *QObject, connectionType ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument, val9 QGenericArgument) bool { ret := C.QMetaMethod_Invoke123(this.h, object.cPointer(), (C.uintptr_t)(connectionType), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer(), val7.cPointer(), val8.cPointer(), val9.cPointer()) return (bool)(ret) } @@ -553,9 +578,9 @@ func (this *QMetaProperty) TypeName() unsafe.Pointer { return (unsafe.Pointer)(ret) } -func (this *QMetaProperty) Type() uintptr { +func (this *QMetaProperty) Type() QVariant__Type { ret := C.QMetaProperty_Type(this.h) - return (uintptr)(ret) + return (QVariant__Type)(ret) } func (this *QMetaProperty) UserType() int { diff --git a/qt/gen_qmetatype.go b/qt/gen_qmetatype.go index 4688b383..297b5cd0 100644 --- a/qt/gen_qmetatype.go +++ b/qt/gen_qmetatype.go @@ -13,6 +13,138 @@ import ( "unsafe" ) +type QtMetaTypePrivate__IteratorCapability int + +const ( + QtMetaTypePrivate__IteratorCapability__ForwardCapability QtMetaTypePrivate__IteratorCapability = 1 + QtMetaTypePrivate__IteratorCapability__BiDirectionalCapability QtMetaTypePrivate__IteratorCapability = 2 + QtMetaTypePrivate__IteratorCapability__RandomAccessCapability QtMetaTypePrivate__IteratorCapability = 4 +) + +type QtMetaTypePrivate__ContainerCapability int + +const ( + QtMetaTypePrivate__ContainerCapability__ContainerIsAppendable QtMetaTypePrivate__ContainerCapability = 1 +) + +type QMetaType__Type int + +const ( + QMetaType__Type__Void QMetaType__Type = 43 + QMetaType__Type__Bool QMetaType__Type = 1 + QMetaType__Type__Int QMetaType__Type = 2 + QMetaType__Type__UInt QMetaType__Type = 3 + QMetaType__Type__LongLong QMetaType__Type = 4 + QMetaType__Type__ULongLong QMetaType__Type = 5 + QMetaType__Type__Double QMetaType__Type = 6 + QMetaType__Type__Long QMetaType__Type = 32 + QMetaType__Type__Short QMetaType__Type = 33 + QMetaType__Type__Char QMetaType__Type = 34 + QMetaType__Type__ULong QMetaType__Type = 35 + QMetaType__Type__UShort QMetaType__Type = 36 + QMetaType__Type__UChar QMetaType__Type = 37 + QMetaType__Type__Float QMetaType__Type = 38 + QMetaType__Type__SChar QMetaType__Type = 40 + QMetaType__Type__Nullptr QMetaType__Type = 51 + QMetaType__Type__QCborSimpleType QMetaType__Type = 52 + QMetaType__Type__VoidStar QMetaType__Type = 31 + QMetaType__Type__QChar QMetaType__Type = 7 + QMetaType__Type__QString QMetaType__Type = 10 + QMetaType__Type__QStringList QMetaType__Type = 11 + QMetaType__Type__QByteArray QMetaType__Type = 12 + QMetaType__Type__QBitArray QMetaType__Type = 13 + QMetaType__Type__QDate QMetaType__Type = 14 + QMetaType__Type__QTime QMetaType__Type = 15 + QMetaType__Type__QDateTime QMetaType__Type = 16 + QMetaType__Type__QUrl QMetaType__Type = 17 + QMetaType__Type__QLocale QMetaType__Type = 18 + QMetaType__Type__QRect QMetaType__Type = 19 + QMetaType__Type__QRectF QMetaType__Type = 20 + QMetaType__Type__QSize QMetaType__Type = 21 + QMetaType__Type__QSizeF QMetaType__Type = 22 + QMetaType__Type__QLine QMetaType__Type = 23 + QMetaType__Type__QLineF QMetaType__Type = 24 + QMetaType__Type__QPoint QMetaType__Type = 25 + QMetaType__Type__QPointF QMetaType__Type = 26 + QMetaType__Type__QRegExp QMetaType__Type = 27 + QMetaType__Type__QEasingCurve QMetaType__Type = 29 + QMetaType__Type__QUuid QMetaType__Type = 30 + QMetaType__Type__QVariant QMetaType__Type = 41 + QMetaType__Type__QRegularExpression QMetaType__Type = 44 + QMetaType__Type__QJsonValue QMetaType__Type = 45 + QMetaType__Type__QJsonObject QMetaType__Type = 46 + QMetaType__Type__QJsonArray QMetaType__Type = 47 + QMetaType__Type__QJsonDocument QMetaType__Type = 48 + QMetaType__Type__QCborValue QMetaType__Type = 53 + QMetaType__Type__QCborArray QMetaType__Type = 54 + QMetaType__Type__QCborMap QMetaType__Type = 55 + QMetaType__Type__QModelIndex QMetaType__Type = 42 + QMetaType__Type__QPersistentModelIndex QMetaType__Type = 50 + QMetaType__Type__QObjectStar QMetaType__Type = 39 + QMetaType__Type__QVariantMap QMetaType__Type = 8 + QMetaType__Type__QVariantList QMetaType__Type = 9 + QMetaType__Type__QVariantHash QMetaType__Type = 28 + QMetaType__Type__QByteArrayList QMetaType__Type = 49 + QMetaType__Type__QFont QMetaType__Type = 64 + QMetaType__Type__QPixmap QMetaType__Type = 65 + QMetaType__Type__QBrush QMetaType__Type = 66 + QMetaType__Type__QColor QMetaType__Type = 67 + QMetaType__Type__QPalette QMetaType__Type = 68 + QMetaType__Type__QIcon QMetaType__Type = 69 + QMetaType__Type__QImage QMetaType__Type = 70 + QMetaType__Type__QPolygon QMetaType__Type = 71 + QMetaType__Type__QRegion QMetaType__Type = 72 + QMetaType__Type__QBitmap QMetaType__Type = 73 + QMetaType__Type__QCursor QMetaType__Type = 74 + QMetaType__Type__QKeySequence QMetaType__Type = 75 + QMetaType__Type__QPen QMetaType__Type = 76 + QMetaType__Type__QTextLength QMetaType__Type = 77 + QMetaType__Type__QTextFormat QMetaType__Type = 78 + QMetaType__Type__QMatrix QMetaType__Type = 79 + QMetaType__Type__QTransform QMetaType__Type = 80 + QMetaType__Type__QMatrix4x4 QMetaType__Type = 81 + QMetaType__Type__QVector2D QMetaType__Type = 82 + QMetaType__Type__QVector3D QMetaType__Type = 83 + QMetaType__Type__QVector4D QMetaType__Type = 84 + QMetaType__Type__QQuaternion QMetaType__Type = 85 + QMetaType__Type__QPolygonF QMetaType__Type = 86 + QMetaType__Type__QColorSpace QMetaType__Type = 87 + QMetaType__Type__QSizePolicy QMetaType__Type = 121 + QMetaType__Type__FirstCoreType QMetaType__Type = 1 + QMetaType__Type__LastCoreType QMetaType__Type = 55 + QMetaType__Type__FirstGuiType QMetaType__Type = 64 + QMetaType__Type__LastGuiType QMetaType__Type = 87 + QMetaType__Type__FirstWidgetsType QMetaType__Type = 121 + QMetaType__Type__LastWidgetsType QMetaType__Type = 121 + QMetaType__Type__HighestInternalId QMetaType__Type = 121 + QMetaType__Type__QReal QMetaType__Type = 6 + QMetaType__Type__UnknownType QMetaType__Type = 0 + QMetaType__Type__User QMetaType__Type = 1024 +) + +type QMetaType__TypeFlag int + +const ( + QMetaType__TypeFlag__NeedsConstruction QMetaType__TypeFlag = 1 + QMetaType__TypeFlag__NeedsDestruction QMetaType__TypeFlag = 2 + QMetaType__TypeFlag__MovableType QMetaType__TypeFlag = 4 + QMetaType__TypeFlag__PointerToQObject QMetaType__TypeFlag = 8 + QMetaType__TypeFlag__IsEnumeration QMetaType__TypeFlag = 16 + QMetaType__TypeFlag__SharedPointerToQObject QMetaType__TypeFlag = 32 + QMetaType__TypeFlag__WeakPointerToQObject QMetaType__TypeFlag = 64 + QMetaType__TypeFlag__TrackingPointerToQObject QMetaType__TypeFlag = 128 + QMetaType__TypeFlag__WasDeclaredAsMetaType QMetaType__TypeFlag = 256 + QMetaType__TypeFlag__IsGadget QMetaType__TypeFlag = 512 + QMetaType__TypeFlag__PointerToGadget QMetaType__TypeFlag = 1024 +) + +type QtMetaTypePrivate__QSequentialIterableImpl__Position int + +const ( + QtMetaTypePrivate__QSequentialIterableImpl__Position__ToBegin QtMetaTypePrivate__QSequentialIterableImpl__Position = 0 + QtMetaTypePrivate__QSequentialIterableImpl__Position__ToEnd QtMetaTypePrivate__QSequentialIterableImpl__Position = 1 +) + type QtPrivate__AbstractDebugStreamFunction struct { h *C.QtPrivate__AbstractDebugStreamFunction } @@ -349,9 +481,9 @@ func NewQtMetaTypePrivate__QSequentialIterableImpl2(param1 *QtMetaTypePrivate__Q return newQtMetaTypePrivate__QSequentialIterableImpl(ret) } -func (this *QtMetaTypePrivate__QSequentialIterableImpl) IteratorCapabilities() uintptr { +func (this *QtMetaTypePrivate__QSequentialIterableImpl) IteratorCapabilities() QtMetaTypePrivate__IteratorCapability { ret := C.QtMetaTypePrivate__QSequentialIterableImpl_IteratorCapabilities(this.h) - return (uintptr)(ret) + return (QtMetaTypePrivate__IteratorCapability)(ret) } func (this *QtMetaTypePrivate__QSequentialIterableImpl) Revision() uint { diff --git a/qt/gen_qmimedatabase.go b/qt/gen_qmimedatabase.go index 7ea1fca3..6a5165fb 100644 --- a/qt/gen_qmimedatabase.go +++ b/qt/gen_qmimedatabase.go @@ -13,6 +13,14 @@ import ( "unsafe" ) +type QMimeDatabase__MatchMode int + +const ( + QMimeDatabase__MatchMode__MatchDefault QMimeDatabase__MatchMode = 0 + QMimeDatabase__MatchMode__MatchExtension QMimeDatabase__MatchMode = 1 + QMimeDatabase__MatchMode__MatchContent QMimeDatabase__MatchMode = 2 +) + type QMimeDatabase struct { h *C.QMimeDatabase } @@ -176,7 +184,7 @@ func (this *QMimeDatabase) AllMimeTypes() []QMimeType { return ret } -func (this *QMimeDatabase) MimeTypeForFile2(fileName string, mode uintptr) *QMimeType { +func (this *QMimeDatabase) MimeTypeForFile2(fileName string, mode QMimeDatabase__MatchMode) *QMimeType { fileName_Cstring := C.CString(fileName) defer C.free(unsafe.Pointer(fileName_Cstring)) ret := C.QMimeDatabase_MimeTypeForFile2(this.h, fileName_Cstring, C.size_t(len(fileName)), (C.uintptr_t)(mode)) @@ -189,7 +197,7 @@ func (this *QMimeDatabase) MimeTypeForFile2(fileName string, mode uintptr) *QMim return ret1 } -func (this *QMimeDatabase) MimeTypeForFile22(fileInfo *QFileInfo, mode uintptr) *QMimeType { +func (this *QMimeDatabase) MimeTypeForFile22(fileInfo *QFileInfo, mode QMimeDatabase__MatchMode) *QMimeType { ret := C.QMimeDatabase_MimeTypeForFile22(this.h, fileInfo.cPointer(), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQMimeType(ret) diff --git a/qt/gen_qmouseeventtransition.go b/qt/gen_qmouseeventtransition.go index 7118d649..879b16d8 100644 --- a/qt/gen_qmouseeventtransition.go +++ b/qt/gen_qmouseeventtransition.go @@ -43,7 +43,7 @@ func NewQMouseEventTransition() *QMouseEventTransition { } // NewQMouseEventTransition2 constructs a new QMouseEventTransition object. -func NewQMouseEventTransition2(object *QObject, typeVal uintptr, button uintptr) *QMouseEventTransition { +func NewQMouseEventTransition2(object *QObject, typeVal QEvent__Type, button MouseButton) *QMouseEventTransition { ret := C.QMouseEventTransition_new2(object.cPointer(), (C.uintptr_t)(typeVal), (C.uintptr_t)(button)) return newQMouseEventTransition(ret) } @@ -55,7 +55,7 @@ func NewQMouseEventTransition3(sourceState *QState) *QMouseEventTransition { } // NewQMouseEventTransition4 constructs a new QMouseEventTransition object. -func NewQMouseEventTransition4(object *QObject, typeVal uintptr, button uintptr, sourceState *QState) *QMouseEventTransition { +func NewQMouseEventTransition4(object *QObject, typeVal QEvent__Type, button MouseButton, sourceState *QState) *QMouseEventTransition { ret := C.QMouseEventTransition_new4(object.cPointer(), (C.uintptr_t)(typeVal), (C.uintptr_t)(button), sourceState.cPointer()) return newQMouseEventTransition(ret) } @@ -87,12 +87,12 @@ func QMouseEventTransition_TrUtf8(s string) string { return ret } -func (this *QMouseEventTransition) Button() uintptr { +func (this *QMouseEventTransition) Button() MouseButton { ret := C.QMouseEventTransition_Button(this.h) - return (uintptr)(ret) + return (MouseButton)(ret) } -func (this *QMouseEventTransition) SetButton(button uintptr) { +func (this *QMouseEventTransition) SetButton(button MouseButton) { C.QMouseEventTransition_SetButton(this.h, (C.uintptr_t)(button)) } diff --git a/qt/gen_qmovie.go b/qt/gen_qmovie.go index 34bf5bf9..44585286 100644 --- a/qt/gen_qmovie.go +++ b/qt/gen_qmovie.go @@ -14,6 +14,21 @@ import ( "unsafe" ) +type QMovie__MovieState int + +const ( + QMovie__MovieState__NotRunning QMovie__MovieState = 0 + QMovie__MovieState__Paused QMovie__MovieState = 1 + QMovie__MovieState__Running QMovie__MovieState = 2 +) + +type QMovie__CacheMode int + +const ( + QMovie__CacheMode__CacheNone QMovie__CacheMode = 0 + QMovie__CacheMode__CacheAll QMovie__CacheMode = 1 +) + type QMovie struct { h *C.QMovie *QObject @@ -185,9 +200,9 @@ func (this *QMovie) BackgroundColor() *QColor { return ret1 } -func (this *QMovie) State() uintptr { +func (this *QMovie) State() QMovie__MovieState { ret := C.QMovie_State(this.h) - return (uintptr)(ret) + return (QMovie__MovieState)(ret) } func (this *QMovie) FrameRect() *QRect { @@ -228,9 +243,9 @@ func (this *QMovie) IsValid() bool { return (bool)(ret) } -func (this *QMovie) LastError() uintptr { +func (this *QMovie) LastError() QImageReader__ImageReaderError { ret := C.QMovie_LastError(this.h) - return (uintptr)(ret) + return (QImageReader__ImageReaderError)(ret) } func (this *QMovie) LastErrorString() string { @@ -287,12 +302,12 @@ func (this *QMovie) SetScaledSize(size *QSize) { C.QMovie_SetScaledSize(this.h, size.cPointer()) } -func (this *QMovie) CacheMode() uintptr { +func (this *QMovie) CacheMode() QMovie__CacheMode { ret := C.QMovie_CacheMode(this.h) - return (uintptr)(ret) + return (QMovie__CacheMode)(ret) } -func (this *QMovie) SetCacheMode(mode uintptr) { +func (this *QMovie) SetCacheMode(mode QMovie__CacheMode) { C.QMovie_SetCacheMode(this.h, (C.uintptr_t)(mode)) } @@ -332,7 +347,7 @@ func (this *QMovie) OnUpdated(slot func()) { C.QMovie_connect_Updated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QMovie) StateChanged(state uintptr) { +func (this *QMovie) StateChanged(state QMovie__MovieState) { C.QMovie_StateChanged(this.h, (C.uintptr_t)(state)) } @@ -344,7 +359,7 @@ func (this *QMovie) OnStateChanged(slot func()) { C.QMovie_connect_StateChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QMovie) Error(error uintptr) { +func (this *QMovie) Error(error QImageReader__ImageReaderError) { C.QMovie_Error(this.h, (C.uintptr_t)(error)) } diff --git a/qt/gen_qmutex.go b/qt/gen_qmutex.go index 2381149c..6241f528 100644 --- a/qt/gen_qmutex.go +++ b/qt/gen_qmutex.go @@ -12,6 +12,13 @@ import ( "unsafe" ) +type QMutex__RecursionMode int + +const ( + QMutex__RecursionMode__NonRecursive QMutex__RecursionMode = 0 + QMutex__RecursionMode__Recursive QMutex__RecursionMode = 1 +) + type QBasicMutex struct { h *C.QBasicMutex } @@ -102,7 +109,7 @@ func NewQMutex() *QMutex { } // NewQMutex2 constructs a new QMutex object. -func NewQMutex2(mode uintptr) *QMutex { +func NewQMutex2(mode QMutex__RecursionMode) *QMutex { ret := C.QMutex_new2((C.uintptr_t)(mode)) return newQMutex(ret) } diff --git a/qt/gen_qnamespace.go b/qt/gen_qnamespace.go index 11343907..287b46a1 100644 --- a/qt/gen_qnamespace.go +++ b/qt/gen_qnamespace.go @@ -12,6 +12,1694 @@ import ( "unsafe" ) +type GlobalColor int + +const ( + GlobalColor__color0 GlobalColor = 0 + GlobalColor__color1 GlobalColor = 1 + GlobalColor__black GlobalColor = 2 + GlobalColor__white GlobalColor = 3 + GlobalColor__darkGray GlobalColor = 4 + GlobalColor__gray GlobalColor = 5 + GlobalColor__lightGray GlobalColor = 6 + GlobalColor__red GlobalColor = 7 + GlobalColor__green GlobalColor = 8 + GlobalColor__blue GlobalColor = 9 + GlobalColor__cyan GlobalColor = 10 + GlobalColor__magenta GlobalColor = 11 + GlobalColor__yellow GlobalColor = 12 + GlobalColor__darkRed GlobalColor = 13 + GlobalColor__darkGreen GlobalColor = 14 + GlobalColor__darkBlue GlobalColor = 15 + GlobalColor__darkCyan GlobalColor = 16 + GlobalColor__darkMagenta GlobalColor = 17 + GlobalColor__darkYellow GlobalColor = 18 + GlobalColor__transparent GlobalColor = 19 +) + +type KeyboardModifier int + +const ( + KeyboardModifier__NoModifier KeyboardModifier = 0 + KeyboardModifier__ShiftModifier KeyboardModifier = 33554432 + KeyboardModifier__ControlModifier KeyboardModifier = 67108864 + KeyboardModifier__AltModifier KeyboardModifier = 134217728 + KeyboardModifier__MetaModifier KeyboardModifier = 268435456 + KeyboardModifier__KeypadModifier KeyboardModifier = 536870912 + KeyboardModifier__GroupSwitchModifier KeyboardModifier = 1073741824 + KeyboardModifier__KeyboardModifierMask KeyboardModifier = 4261412864 +) + +type Modifier int + +const ( + Modifier__META Modifier = 268435456 + Modifier__SHIFT Modifier = 33554432 + Modifier__CTRL Modifier = 67108864 + Modifier__ALT Modifier = 134217728 + Modifier__MODIFIER_MASK Modifier = 4261412864 + Modifier__UNICODE_ACCEL Modifier = 0 +) + +type MouseButton int + +const ( + MouseButton__NoButton MouseButton = 0 + MouseButton__LeftButton MouseButton = 1 + MouseButton__RightButton MouseButton = 2 + MouseButton__MiddleButton MouseButton = 4 + MouseButton__MidButton MouseButton = 4 + MouseButton__BackButton MouseButton = 8 + MouseButton__XButton1 MouseButton = 8 + MouseButton__ExtraButton1 MouseButton = 8 + MouseButton__ForwardButton MouseButton = 16 + MouseButton__XButton2 MouseButton = 16 + MouseButton__ExtraButton2 MouseButton = 16 + MouseButton__TaskButton MouseButton = 32 + MouseButton__ExtraButton3 MouseButton = 32 + MouseButton__ExtraButton4 MouseButton = 64 + MouseButton__ExtraButton5 MouseButton = 128 + MouseButton__ExtraButton6 MouseButton = 256 + MouseButton__ExtraButton7 MouseButton = 512 + MouseButton__ExtraButton8 MouseButton = 1024 + MouseButton__ExtraButton9 MouseButton = 2048 + MouseButton__ExtraButton10 MouseButton = 4096 + MouseButton__ExtraButton11 MouseButton = 8192 + MouseButton__ExtraButton12 MouseButton = 16384 + MouseButton__ExtraButton13 MouseButton = 32768 + MouseButton__ExtraButton14 MouseButton = 65536 + MouseButton__ExtraButton15 MouseButton = 131072 + MouseButton__ExtraButton16 MouseButton = 262144 + MouseButton__ExtraButton17 MouseButton = 524288 + MouseButton__ExtraButton18 MouseButton = 1048576 + MouseButton__ExtraButton19 MouseButton = 2097152 + MouseButton__ExtraButton20 MouseButton = 4194304 + MouseButton__ExtraButton21 MouseButton = 8388608 + MouseButton__ExtraButton22 MouseButton = 16777216 + MouseButton__ExtraButton23 MouseButton = 33554432 + MouseButton__ExtraButton24 MouseButton = 67108864 + MouseButton__AllButtons MouseButton = 134217727 + MouseButton__MaxMouseButton MouseButton = 67108864 + MouseButton__MouseButtonMask MouseButton = 4294967295 +) + +type Orientation int + +const ( + Orientation__Horizontal Orientation = 1 + Orientation__Vertical Orientation = 2 +) + +type FocusPolicy int + +const ( + FocusPolicy__NoFocus FocusPolicy = 0 + FocusPolicy__TabFocus FocusPolicy = 1 + FocusPolicy__ClickFocus FocusPolicy = 2 + FocusPolicy__StrongFocus FocusPolicy = 11 + FocusPolicy__WheelFocus FocusPolicy = 15 +) + +type TabFocusBehavior int + +const ( + TabFocusBehavior__NoTabFocus TabFocusBehavior = 0 + TabFocusBehavior__TabFocusTextControls TabFocusBehavior = 1 + TabFocusBehavior__TabFocusListControls TabFocusBehavior = 2 + TabFocusBehavior__TabFocusAllControls TabFocusBehavior = 255 +) + +type SortOrder int + +const ( + SortOrder__AscendingOrder SortOrder = 0 + SortOrder__DescendingOrder SortOrder = 1 +) + +type SplitBehaviorFlags int + +const ( + SplitBehaviorFlags__KeepEmptyParts SplitBehaviorFlags = 0 + SplitBehaviorFlags__SkipEmptyParts SplitBehaviorFlags = 1 +) + +type TileRule int + +const ( + TileRule__StretchTile TileRule = 0 + TileRule__RepeatTile TileRule = 1 + TileRule__RoundTile TileRule = 2 +) + +type AlignmentFlag int + +const ( + AlignmentFlag__AlignLeft AlignmentFlag = 1 + AlignmentFlag__AlignLeading AlignmentFlag = 1 + AlignmentFlag__AlignRight AlignmentFlag = 2 + AlignmentFlag__AlignTrailing AlignmentFlag = 2 + AlignmentFlag__AlignHCenter AlignmentFlag = 4 + AlignmentFlag__AlignJustify AlignmentFlag = 8 + AlignmentFlag__AlignAbsolute AlignmentFlag = 16 + AlignmentFlag__AlignHorizontal_Mask AlignmentFlag = 31 + AlignmentFlag__AlignTop AlignmentFlag = 32 + AlignmentFlag__AlignBottom AlignmentFlag = 64 + AlignmentFlag__AlignVCenter AlignmentFlag = 128 + AlignmentFlag__AlignBaseline AlignmentFlag = 256 + AlignmentFlag__AlignVertical_Mask AlignmentFlag = 480 + AlignmentFlag__AlignCenter AlignmentFlag = 132 +) + +type TextFlag int + +const ( + TextFlag__TextSingleLine TextFlag = 256 + TextFlag__TextDontClip TextFlag = 512 + TextFlag__TextExpandTabs TextFlag = 1024 + TextFlag__TextShowMnemonic TextFlag = 2048 + TextFlag__TextWordWrap TextFlag = 4096 + TextFlag__TextWrapAnywhere TextFlag = 8192 + TextFlag__TextDontPrint TextFlag = 16384 + TextFlag__TextIncludeTrailingSpaces TextFlag = 134217728 + TextFlag__TextHideMnemonic TextFlag = 32768 + TextFlag__TextJustificationForced TextFlag = 65536 + TextFlag__TextForceLeftToRight TextFlag = 131072 + TextFlag__TextForceRightToLeft TextFlag = 262144 + TextFlag__TextLongestVariant TextFlag = 524288 + TextFlag__TextBypassShaping TextFlag = 1048576 +) + +type TextElideMode int + +const ( + TextElideMode__ElideLeft TextElideMode = 0 + TextElideMode__ElideRight TextElideMode = 1 + TextElideMode__ElideMiddle TextElideMode = 2 + TextElideMode__ElideNone TextElideMode = 3 +) + +type WhiteSpaceMode int + +const ( + WhiteSpaceMode__WhiteSpaceNormal WhiteSpaceMode = 0 + WhiteSpaceMode__WhiteSpacePre WhiteSpaceMode = 1 + WhiteSpaceMode__WhiteSpaceNoWrap WhiteSpaceMode = 2 + WhiteSpaceMode__WhiteSpaceModeUndefined WhiteSpaceMode = -1 +) + +type HitTestAccuracy int + +const ( + HitTestAccuracy__ExactHit HitTestAccuracy = 0 + HitTestAccuracy__FuzzyHit HitTestAccuracy = 1 +) + +type WindowType int + +const ( + WindowType__Widget WindowType = 0 + WindowType__Window WindowType = 1 + WindowType__Dialog WindowType = 3 + WindowType__Sheet WindowType = 5 + WindowType__Drawer WindowType = 7 + WindowType__Popup WindowType = 9 + WindowType__Tool WindowType = 11 + WindowType__ToolTip WindowType = 13 + WindowType__SplashScreen WindowType = 15 + WindowType__Desktop WindowType = 17 + WindowType__SubWindow WindowType = 18 + WindowType__ForeignWindow WindowType = 33 + WindowType__CoverWindow WindowType = 65 + WindowType__WindowType_Mask WindowType = 255 + WindowType__MSWindowsFixedSizeDialogHint WindowType = 256 + WindowType__MSWindowsOwnDC WindowType = 512 + WindowType__BypassWindowManagerHint WindowType = 1024 + WindowType__X11BypassWindowManagerHint WindowType = 1024 + WindowType__FramelessWindowHint WindowType = 2048 + WindowType__WindowTitleHint WindowType = 4096 + WindowType__WindowSystemMenuHint WindowType = 8192 + WindowType__WindowMinimizeButtonHint WindowType = 16384 + WindowType__WindowMaximizeButtonHint WindowType = 32768 + WindowType__WindowMinMaxButtonsHint WindowType = 49152 + WindowType__WindowContextHelpButtonHint WindowType = 65536 + WindowType__WindowShadeButtonHint WindowType = 131072 + WindowType__WindowStaysOnTopHint WindowType = 262144 + WindowType__WindowTransparentForInput WindowType = 524288 + WindowType__WindowOverridesSystemGestures WindowType = 1048576 + WindowType__WindowDoesNotAcceptFocus WindowType = 2097152 + WindowType__MaximizeUsingFullscreenGeometryHint WindowType = 4194304 + WindowType__CustomizeWindowHint WindowType = 33554432 + WindowType__WindowStaysOnBottomHint WindowType = 67108864 + WindowType__WindowCloseButtonHint WindowType = 134217728 + WindowType__MacWindowToolBarButtonHint WindowType = 268435456 + WindowType__BypassGraphicsProxyWidget WindowType = 536870912 + WindowType__NoDropShadowWindowHint WindowType = 1073741824 + WindowType__WindowFullscreenButtonHint WindowType = 2147483648 +) + +type WindowState int + +const ( + WindowState__WindowNoState WindowState = 0 + WindowState__WindowMinimized WindowState = 1 + WindowState__WindowMaximized WindowState = 2 + WindowState__WindowFullScreen WindowState = 4 + WindowState__WindowActive WindowState = 8 +) + +type ApplicationState int + +const ( + ApplicationState__ApplicationSuspended ApplicationState = 0 + ApplicationState__ApplicationHidden ApplicationState = 1 + ApplicationState__ApplicationInactive ApplicationState = 2 + ApplicationState__ApplicationActive ApplicationState = 4 +) + +type ScreenOrientation int + +const ( + ScreenOrientation__PrimaryOrientation ScreenOrientation = 0 + ScreenOrientation__PortraitOrientation ScreenOrientation = 1 + ScreenOrientation__LandscapeOrientation ScreenOrientation = 2 + ScreenOrientation__InvertedPortraitOrientation ScreenOrientation = 4 + ScreenOrientation__InvertedLandscapeOrientation ScreenOrientation = 8 +) + +type WidgetAttribute int + +const ( + WidgetAttribute__WA_Disabled WidgetAttribute = 0 + WidgetAttribute__WA_UnderMouse WidgetAttribute = 1 + WidgetAttribute__WA_MouseTracking WidgetAttribute = 2 + WidgetAttribute__WA_ContentsPropagated WidgetAttribute = 3 + WidgetAttribute__WA_OpaquePaintEvent WidgetAttribute = 4 + WidgetAttribute__WA_NoBackground WidgetAttribute = 4 + WidgetAttribute__WA_StaticContents WidgetAttribute = 5 + WidgetAttribute__WA_LaidOut WidgetAttribute = 7 + WidgetAttribute__WA_PaintOnScreen WidgetAttribute = 8 + WidgetAttribute__WA_NoSystemBackground WidgetAttribute = 9 + WidgetAttribute__WA_UpdatesDisabled WidgetAttribute = 10 + WidgetAttribute__WA_Mapped WidgetAttribute = 11 + WidgetAttribute__WA_MacNoClickThrough WidgetAttribute = 12 + WidgetAttribute__WA_InputMethodEnabled WidgetAttribute = 14 + WidgetAttribute__WA_WState_Visible WidgetAttribute = 15 + WidgetAttribute__WA_WState_Hidden WidgetAttribute = 16 + WidgetAttribute__WA_ForceDisabled WidgetAttribute = 32 + WidgetAttribute__WA_KeyCompression WidgetAttribute = 33 + WidgetAttribute__WA_PendingMoveEvent WidgetAttribute = 34 + WidgetAttribute__WA_PendingResizeEvent WidgetAttribute = 35 + WidgetAttribute__WA_SetPalette WidgetAttribute = 36 + WidgetAttribute__WA_SetFont WidgetAttribute = 37 + WidgetAttribute__WA_SetCursor WidgetAttribute = 38 + WidgetAttribute__WA_NoChildEventsFromChildren WidgetAttribute = 39 + WidgetAttribute__WA_WindowModified WidgetAttribute = 41 + WidgetAttribute__WA_Resized WidgetAttribute = 42 + WidgetAttribute__WA_Moved WidgetAttribute = 43 + WidgetAttribute__WA_PendingUpdate WidgetAttribute = 44 + WidgetAttribute__WA_InvalidSize WidgetAttribute = 45 + WidgetAttribute__WA_MacBrushedMetal WidgetAttribute = 46 + WidgetAttribute__WA_MacMetalStyle WidgetAttribute = 46 + WidgetAttribute__WA_CustomWhatsThis WidgetAttribute = 47 + WidgetAttribute__WA_LayoutOnEntireRect WidgetAttribute = 48 + WidgetAttribute__WA_OutsideWSRange WidgetAttribute = 49 + WidgetAttribute__WA_GrabbedShortcut WidgetAttribute = 50 + WidgetAttribute__WA_TransparentForMouseEvents WidgetAttribute = 51 + WidgetAttribute__WA_PaintUnclipped WidgetAttribute = 52 + WidgetAttribute__WA_SetWindowIcon WidgetAttribute = 53 + WidgetAttribute__WA_NoMouseReplay WidgetAttribute = 54 + WidgetAttribute__WA_DeleteOnClose WidgetAttribute = 55 + WidgetAttribute__WA_RightToLeft WidgetAttribute = 56 + WidgetAttribute__WA_SetLayoutDirection WidgetAttribute = 57 + WidgetAttribute__WA_NoChildEventsForParent WidgetAttribute = 58 + WidgetAttribute__WA_ForceUpdatesDisabled WidgetAttribute = 59 + WidgetAttribute__WA_WState_Created WidgetAttribute = 60 + WidgetAttribute__WA_WState_CompressKeys WidgetAttribute = 61 + WidgetAttribute__WA_WState_InPaintEvent WidgetAttribute = 62 + WidgetAttribute__WA_WState_Reparented WidgetAttribute = 63 + WidgetAttribute__WA_WState_ConfigPending WidgetAttribute = 64 + WidgetAttribute__WA_WState_Polished WidgetAttribute = 66 + WidgetAttribute__WA_WState_DND WidgetAttribute = 67 + WidgetAttribute__WA_WState_OwnSizePolicy WidgetAttribute = 68 + WidgetAttribute__WA_WState_ExplicitShowHide WidgetAttribute = 69 + WidgetAttribute__WA_ShowModal WidgetAttribute = 70 + WidgetAttribute__WA_MouseNoMask WidgetAttribute = 71 + WidgetAttribute__WA_GroupLeader WidgetAttribute = 72 + WidgetAttribute__WA_NoMousePropagation WidgetAttribute = 73 + WidgetAttribute__WA_Hover WidgetAttribute = 74 + WidgetAttribute__WA_InputMethodTransparent WidgetAttribute = 75 + WidgetAttribute__WA_QuitOnClose WidgetAttribute = 76 + WidgetAttribute__WA_KeyboardFocusChange WidgetAttribute = 77 + WidgetAttribute__WA_AcceptDrops WidgetAttribute = 78 + WidgetAttribute__WA_DropSiteRegistered WidgetAttribute = 79 + WidgetAttribute__WA_ForceAcceptDrops WidgetAttribute = 79 + WidgetAttribute__WA_WindowPropagation WidgetAttribute = 80 + WidgetAttribute__WA_NoX11EventCompression WidgetAttribute = 81 + WidgetAttribute__WA_TintedBackground WidgetAttribute = 82 + WidgetAttribute__WA_X11OpenGLOverlay WidgetAttribute = 83 + WidgetAttribute__WA_AlwaysShowToolTips WidgetAttribute = 84 + WidgetAttribute__WA_MacOpaqueSizeGrip WidgetAttribute = 85 + WidgetAttribute__WA_SetStyle WidgetAttribute = 86 + WidgetAttribute__WA_SetLocale WidgetAttribute = 87 + WidgetAttribute__WA_MacShowFocusRect WidgetAttribute = 88 + WidgetAttribute__WA_MacNormalSize WidgetAttribute = 89 + WidgetAttribute__WA_MacSmallSize WidgetAttribute = 90 + WidgetAttribute__WA_MacMiniSize WidgetAttribute = 91 + WidgetAttribute__WA_LayoutUsesWidgetRect WidgetAttribute = 92 + WidgetAttribute__WA_StyledBackground WidgetAttribute = 93 + WidgetAttribute__WA_MSWindowsUseDirect3D WidgetAttribute = 94 + WidgetAttribute__WA_CanHostQMdiSubWindowTitleBar WidgetAttribute = 95 + WidgetAttribute__WA_MacAlwaysShowToolWindow WidgetAttribute = 96 + WidgetAttribute__WA_StyleSheet WidgetAttribute = 97 + WidgetAttribute__WA_ShowWithoutActivating WidgetAttribute = 98 + WidgetAttribute__WA_X11BypassTransientForHint WidgetAttribute = 99 + WidgetAttribute__WA_NativeWindow WidgetAttribute = 100 + WidgetAttribute__WA_DontCreateNativeAncestors WidgetAttribute = 101 + WidgetAttribute__WA_MacVariableSize WidgetAttribute = 102 + WidgetAttribute__WA_DontShowOnScreen WidgetAttribute = 103 + WidgetAttribute__WA_X11NetWmWindowTypeDesktop WidgetAttribute = 104 + WidgetAttribute__WA_X11NetWmWindowTypeDock WidgetAttribute = 105 + WidgetAttribute__WA_X11NetWmWindowTypeToolBar WidgetAttribute = 106 + WidgetAttribute__WA_X11NetWmWindowTypeMenu WidgetAttribute = 107 + WidgetAttribute__WA_X11NetWmWindowTypeUtility WidgetAttribute = 108 + WidgetAttribute__WA_X11NetWmWindowTypeSplash WidgetAttribute = 109 + WidgetAttribute__WA_X11NetWmWindowTypeDialog WidgetAttribute = 110 + WidgetAttribute__WA_X11NetWmWindowTypeDropDownMenu WidgetAttribute = 111 + WidgetAttribute__WA_X11NetWmWindowTypePopupMenu WidgetAttribute = 112 + WidgetAttribute__WA_X11NetWmWindowTypeToolTip WidgetAttribute = 113 + WidgetAttribute__WA_X11NetWmWindowTypeNotification WidgetAttribute = 114 + WidgetAttribute__WA_X11NetWmWindowTypeCombo WidgetAttribute = 115 + WidgetAttribute__WA_X11NetWmWindowTypeDND WidgetAttribute = 116 + WidgetAttribute__WA_MacFrameworkScaled WidgetAttribute = 117 + WidgetAttribute__WA_SetWindowModality WidgetAttribute = 118 + WidgetAttribute__WA_WState_WindowOpacitySet WidgetAttribute = 119 + WidgetAttribute__WA_TranslucentBackground WidgetAttribute = 120 + WidgetAttribute__WA_AcceptTouchEvents WidgetAttribute = 121 + WidgetAttribute__WA_WState_AcceptedTouchBeginEvent WidgetAttribute = 122 + WidgetAttribute__WA_TouchPadAcceptSingleTouchEvents WidgetAttribute = 123 + WidgetAttribute__WA_X11DoNotAcceptFocus WidgetAttribute = 126 + WidgetAttribute__WA_MacNoShadow WidgetAttribute = 127 + WidgetAttribute__WA_AlwaysStackOnTop WidgetAttribute = 128 + WidgetAttribute__WA_TabletTracking WidgetAttribute = 129 + WidgetAttribute__WA_ContentsMarginsRespectsSafeArea WidgetAttribute = 130 + WidgetAttribute__WA_StyleSheetTarget WidgetAttribute = 131 + WidgetAttribute__WA_AttributeCount WidgetAttribute = 132 +) + +type ApplicationAttribute int + +const ( + ApplicationAttribute__AA_ImmediateWidgetCreation ApplicationAttribute = 0 + ApplicationAttribute__AA_MSWindowsUseDirect3DByDefault ApplicationAttribute = 1 + ApplicationAttribute__AA_DontShowIconsInMenus ApplicationAttribute = 2 + ApplicationAttribute__AA_NativeWindows ApplicationAttribute = 3 + ApplicationAttribute__AA_DontCreateNativeWidgetSiblings ApplicationAttribute = 4 + ApplicationAttribute__AA_PluginApplication ApplicationAttribute = 5 + ApplicationAttribute__AA_MacPluginApplication ApplicationAttribute = 5 + ApplicationAttribute__AA_DontUseNativeMenuBar ApplicationAttribute = 6 + ApplicationAttribute__AA_MacDontSwapCtrlAndMeta ApplicationAttribute = 7 + ApplicationAttribute__AA_Use96Dpi ApplicationAttribute = 8 + ApplicationAttribute__AA_DisableNativeVirtualKeyboard ApplicationAttribute = 9 + ApplicationAttribute__AA_X11InitThreads ApplicationAttribute = 10 + ApplicationAttribute__AA_SynthesizeTouchForUnhandledMouseEvents ApplicationAttribute = 11 + ApplicationAttribute__AA_SynthesizeMouseForUnhandledTouchEvents ApplicationAttribute = 12 + ApplicationAttribute__AA_UseHighDpiPixmaps ApplicationAttribute = 13 + ApplicationAttribute__AA_ForceRasterWidgets ApplicationAttribute = 14 + ApplicationAttribute__AA_UseDesktopOpenGL ApplicationAttribute = 15 + ApplicationAttribute__AA_UseOpenGLES ApplicationAttribute = 16 + ApplicationAttribute__AA_UseSoftwareOpenGL ApplicationAttribute = 17 + ApplicationAttribute__AA_ShareOpenGLContexts ApplicationAttribute = 18 + ApplicationAttribute__AA_SetPalette ApplicationAttribute = 19 + ApplicationAttribute__AA_EnableHighDpiScaling ApplicationAttribute = 20 + ApplicationAttribute__AA_DisableHighDpiScaling ApplicationAttribute = 21 + ApplicationAttribute__AA_UseStyleSheetPropagationInWidgetStyles ApplicationAttribute = 22 + ApplicationAttribute__AA_DontUseNativeDialogs ApplicationAttribute = 23 + ApplicationAttribute__AA_SynthesizeMouseForUnhandledTabletEvents ApplicationAttribute = 24 + ApplicationAttribute__AA_CompressHighFrequencyEvents ApplicationAttribute = 25 + ApplicationAttribute__AA_DontCheckOpenGLContextThreadAffinity ApplicationAttribute = 26 + ApplicationAttribute__AA_DisableShaderDiskCache ApplicationAttribute = 27 + ApplicationAttribute__AA_DontShowShortcutsInContextMenus ApplicationAttribute = 28 + ApplicationAttribute__AA_CompressTabletEvents ApplicationAttribute = 29 + ApplicationAttribute__AA_DisableWindowContextHelpButton ApplicationAttribute = 30 + ApplicationAttribute__AA_DisableSessionManager ApplicationAttribute = 31 + ApplicationAttribute__AA_AttributeCount ApplicationAttribute = 32 +) + +type ImageConversionFlag int + +const ( + ImageConversionFlag__ColorMode_Mask ImageConversionFlag = 3 + ImageConversionFlag__AutoColor ImageConversionFlag = 0 + ImageConversionFlag__ColorOnly ImageConversionFlag = 3 + ImageConversionFlag__MonoOnly ImageConversionFlag = 2 + ImageConversionFlag__AlphaDither_Mask ImageConversionFlag = 12 + ImageConversionFlag__ThresholdAlphaDither ImageConversionFlag = 0 + ImageConversionFlag__OrderedAlphaDither ImageConversionFlag = 4 + ImageConversionFlag__DiffuseAlphaDither ImageConversionFlag = 8 + ImageConversionFlag__NoAlpha ImageConversionFlag = 12 + ImageConversionFlag__Dither_Mask ImageConversionFlag = 48 + ImageConversionFlag__DiffuseDither ImageConversionFlag = 0 + ImageConversionFlag__OrderedDither ImageConversionFlag = 16 + ImageConversionFlag__ThresholdDither ImageConversionFlag = 32 + ImageConversionFlag__DitherMode_Mask ImageConversionFlag = 192 + ImageConversionFlag__AutoDither ImageConversionFlag = 0 + ImageConversionFlag__PreferDither ImageConversionFlag = 64 + ImageConversionFlag__AvoidDither ImageConversionFlag = 128 + ImageConversionFlag__NoOpaqueDetection ImageConversionFlag = 256 + ImageConversionFlag__NoFormatConversion ImageConversionFlag = 512 +) + +type BGMode int + +const ( + BGMode__TransparentMode BGMode = 0 + BGMode__OpaqueMode BGMode = 1 +) + +type Key int + +const ( + Key__Key_Escape Key = 16777216 + Key__Key_Tab Key = 16777217 + Key__Key_Backtab Key = 16777218 + Key__Key_Backspace Key = 16777219 + Key__Key_Return Key = 16777220 + Key__Key_Enter Key = 16777221 + Key__Key_Insert Key = 16777222 + Key__Key_Delete Key = 16777223 + Key__Key_Pause Key = 16777224 + Key__Key_Print Key = 16777225 + Key__Key_SysReq Key = 16777226 + Key__Key_Clear Key = 16777227 + Key__Key_Home Key = 16777232 + Key__Key_End Key = 16777233 + Key__Key_Left Key = 16777234 + Key__Key_Up Key = 16777235 + Key__Key_Right Key = 16777236 + Key__Key_Down Key = 16777237 + Key__Key_PageUp Key = 16777238 + Key__Key_PageDown Key = 16777239 + Key__Key_Shift Key = 16777248 + Key__Key_Control Key = 16777249 + Key__Key_Meta Key = 16777250 + Key__Key_Alt Key = 16777251 + Key__Key_CapsLock Key = 16777252 + Key__Key_NumLock Key = 16777253 + Key__Key_ScrollLock Key = 16777254 + Key__Key_F1 Key = 16777264 + Key__Key_F2 Key = 16777265 + Key__Key_F3 Key = 16777266 + Key__Key_F4 Key = 16777267 + Key__Key_F5 Key = 16777268 + Key__Key_F6 Key = 16777269 + Key__Key_F7 Key = 16777270 + Key__Key_F8 Key = 16777271 + Key__Key_F9 Key = 16777272 + Key__Key_F10 Key = 16777273 + Key__Key_F11 Key = 16777274 + Key__Key_F12 Key = 16777275 + Key__Key_F13 Key = 16777276 + Key__Key_F14 Key = 16777277 + Key__Key_F15 Key = 16777278 + Key__Key_F16 Key = 16777279 + Key__Key_F17 Key = 16777280 + Key__Key_F18 Key = 16777281 + Key__Key_F19 Key = 16777282 + Key__Key_F20 Key = 16777283 + Key__Key_F21 Key = 16777284 + Key__Key_F22 Key = 16777285 + Key__Key_F23 Key = 16777286 + Key__Key_F24 Key = 16777287 + Key__Key_F25 Key = 16777288 + Key__Key_F26 Key = 16777289 + Key__Key_F27 Key = 16777290 + Key__Key_F28 Key = 16777291 + Key__Key_F29 Key = 16777292 + Key__Key_F30 Key = 16777293 + Key__Key_F31 Key = 16777294 + Key__Key_F32 Key = 16777295 + Key__Key_F33 Key = 16777296 + Key__Key_F34 Key = 16777297 + Key__Key_F35 Key = 16777298 + Key__Key_Super_L Key = 16777299 + Key__Key_Super_R Key = 16777300 + Key__Key_Menu Key = 16777301 + Key__Key_Hyper_L Key = 16777302 + Key__Key_Hyper_R Key = 16777303 + Key__Key_Help Key = 16777304 + Key__Key_Direction_L Key = 16777305 + Key__Key_Direction_R Key = 16777312 + Key__Key_Space Key = 32 + Key__Key_Any Key = 32 + Key__Key_Exclam Key = 33 + Key__Key_QuoteDbl Key = 34 + Key__Key_NumberSign Key = 35 + Key__Key_Dollar Key = 36 + Key__Key_Percent Key = 37 + Key__Key_Ampersand Key = 38 + Key__Key_Apostrophe Key = 39 + Key__Key_ParenLeft Key = 40 + Key__Key_ParenRight Key = 41 + Key__Key_Asterisk Key = 42 + Key__Key_Plus Key = 43 + Key__Key_Comma Key = 44 + Key__Key_Minus Key = 45 + Key__Key_Period Key = 46 + Key__Key_Slash Key = 47 + Key__Key_0 Key = 48 + Key__Key_1 Key = 49 + Key__Key_2 Key = 50 + Key__Key_3 Key = 51 + Key__Key_4 Key = 52 + Key__Key_5 Key = 53 + Key__Key_6 Key = 54 + Key__Key_7 Key = 55 + Key__Key_8 Key = 56 + Key__Key_9 Key = 57 + Key__Key_Colon Key = 58 + Key__Key_Semicolon Key = 59 + Key__Key_Less Key = 60 + Key__Key_Equal Key = 61 + Key__Key_Greater Key = 62 + Key__Key_Question Key = 63 + Key__Key_At Key = 64 + Key__Key_A Key = 65 + Key__Key_B Key = 66 + Key__Key_C Key = 67 + Key__Key_D Key = 68 + Key__Key_E Key = 69 + Key__Key_F Key = 70 + Key__Key_G Key = 71 + Key__Key_H Key = 72 + Key__Key_I Key = 73 + Key__Key_J Key = 74 + Key__Key_K Key = 75 + Key__Key_L Key = 76 + Key__Key_M Key = 77 + Key__Key_N Key = 78 + Key__Key_O Key = 79 + Key__Key_P Key = 80 + Key__Key_Q Key = 81 + Key__Key_R Key = 82 + Key__Key_S Key = 83 + Key__Key_T Key = 84 + Key__Key_U Key = 85 + Key__Key_V Key = 86 + Key__Key_W Key = 87 + Key__Key_X Key = 88 + Key__Key_Y Key = 89 + Key__Key_Z Key = 90 + Key__Key_BracketLeft Key = 91 + Key__Key_Backslash Key = 92 + Key__Key_BracketRight Key = 93 + Key__Key_AsciiCircum Key = 94 + Key__Key_Underscore Key = 95 + Key__Key_QuoteLeft Key = 96 + Key__Key_BraceLeft Key = 123 + Key__Key_Bar Key = 124 + Key__Key_BraceRight Key = 125 + Key__Key_AsciiTilde Key = 126 + Key__Key_nobreakspace Key = 160 + Key__Key_exclamdown Key = 161 + Key__Key_cent Key = 162 + Key__Key_sterling Key = 163 + Key__Key_currency Key = 164 + Key__Key_yen Key = 165 + Key__Key_brokenbar Key = 166 + Key__Key_section Key = 167 + Key__Key_diaeresis Key = 168 + Key__Key_copyright Key = 169 + Key__Key_ordfeminine Key = 170 + Key__Key_guillemotleft Key = 171 + Key__Key_notsign Key = 172 + Key__Key_hyphen Key = 173 + Key__Key_registered Key = 174 + Key__Key_macron Key = 175 + Key__Key_degree Key = 176 + Key__Key_plusminus Key = 177 + Key__Key_twosuperior Key = 178 + Key__Key_threesuperior Key = 179 + Key__Key_acute Key = 180 + Key__Key_mu Key = 181 + Key__Key_paragraph Key = 182 + Key__Key_periodcentered Key = 183 + Key__Key_cedilla Key = 184 + Key__Key_onesuperior Key = 185 + Key__Key_masculine Key = 186 + Key__Key_guillemotright Key = 187 + Key__Key_onequarter Key = 188 + Key__Key_onehalf Key = 189 + Key__Key_threequarters Key = 190 + Key__Key_questiondown Key = 191 + Key__Key_Agrave Key = 192 + Key__Key_Aacute Key = 193 + Key__Key_Acircumflex Key = 194 + Key__Key_Atilde Key = 195 + Key__Key_Adiaeresis Key = 196 + Key__Key_Aring Key = 197 + Key__Key_AE Key = 198 + Key__Key_Ccedilla Key = 199 + Key__Key_Egrave Key = 200 + Key__Key_Eacute Key = 201 + Key__Key_Ecircumflex Key = 202 + Key__Key_Ediaeresis Key = 203 + Key__Key_Igrave Key = 204 + Key__Key_Iacute Key = 205 + Key__Key_Icircumflex Key = 206 + Key__Key_Idiaeresis Key = 207 + Key__Key_ETH Key = 208 + Key__Key_Ntilde Key = 209 + Key__Key_Ograve Key = 210 + Key__Key_Oacute Key = 211 + Key__Key_Ocircumflex Key = 212 + Key__Key_Otilde Key = 213 + Key__Key_Odiaeresis Key = 214 + Key__Key_multiply Key = 215 + Key__Key_Ooblique Key = 216 + Key__Key_Ugrave Key = 217 + Key__Key_Uacute Key = 218 + Key__Key_Ucircumflex Key = 219 + Key__Key_Udiaeresis Key = 220 + Key__Key_Yacute Key = 221 + Key__Key_THORN Key = 222 + Key__Key_ssharp Key = 223 + Key__Key_division Key = 247 + Key__Key_ydiaeresis Key = 255 + Key__Key_AltGr Key = 16781571 + Key__Key_Multi_key Key = 16781600 + Key__Key_Codeinput Key = 16781623 + Key__Key_SingleCandidate Key = 16781628 + Key__Key_MultipleCandidate Key = 16781629 + Key__Key_PreviousCandidate Key = 16781630 + Key__Key_Mode_switch Key = 16781694 + Key__Key_Kanji Key = 16781601 + Key__Key_Muhenkan Key = 16781602 + Key__Key_Henkan Key = 16781603 + Key__Key_Romaji Key = 16781604 + Key__Key_Hiragana Key = 16781605 + Key__Key_Katakana Key = 16781606 + Key__Key_Hiragana_Katakana Key = 16781607 + Key__Key_Zenkaku Key = 16781608 + Key__Key_Hankaku Key = 16781609 + Key__Key_Zenkaku_Hankaku Key = 16781610 + Key__Key_Touroku Key = 16781611 + Key__Key_Massyo Key = 16781612 + Key__Key_Kana_Lock Key = 16781613 + Key__Key_Kana_Shift Key = 16781614 + Key__Key_Eisu_Shift Key = 16781615 + Key__Key_Eisu_toggle Key = 16781616 + Key__Key_Hangul Key = 16781617 + Key__Key_Hangul_Start Key = 16781618 + Key__Key_Hangul_End Key = 16781619 + Key__Key_Hangul_Hanja Key = 16781620 + Key__Key_Hangul_Jamo Key = 16781621 + Key__Key_Hangul_Romaja Key = 16781622 + Key__Key_Hangul_Jeonja Key = 16781624 + Key__Key_Hangul_Banja Key = 16781625 + Key__Key_Hangul_PreHanja Key = 16781626 + Key__Key_Hangul_PostHanja Key = 16781627 + Key__Key_Hangul_Special Key = 16781631 + Key__Key_Dead_Grave Key = 16781904 + Key__Key_Dead_Acute Key = 16781905 + Key__Key_Dead_Circumflex Key = 16781906 + Key__Key_Dead_Tilde Key = 16781907 + Key__Key_Dead_Macron Key = 16781908 + Key__Key_Dead_Breve Key = 16781909 + Key__Key_Dead_Abovedot Key = 16781910 + Key__Key_Dead_Diaeresis Key = 16781911 + Key__Key_Dead_Abovering Key = 16781912 + Key__Key_Dead_Doubleacute Key = 16781913 + Key__Key_Dead_Caron Key = 16781914 + Key__Key_Dead_Cedilla Key = 16781915 + Key__Key_Dead_Ogonek Key = 16781916 + Key__Key_Dead_Iota Key = 16781917 + Key__Key_Dead_Voiced_Sound Key = 16781918 + Key__Key_Dead_Semivoiced_Sound Key = 16781919 + Key__Key_Dead_Belowdot Key = 16781920 + Key__Key_Dead_Hook Key = 16781921 + Key__Key_Dead_Horn Key = 16781922 + Key__Key_Dead_Stroke Key = 16781923 + Key__Key_Dead_Abovecomma Key = 16781924 + Key__Key_Dead_Abovereversedcomma Key = 16781925 + Key__Key_Dead_Doublegrave Key = 16781926 + Key__Key_Dead_Belowring Key = 16781927 + Key__Key_Dead_Belowmacron Key = 16781928 + Key__Key_Dead_Belowcircumflex Key = 16781929 + Key__Key_Dead_Belowtilde Key = 16781930 + Key__Key_Dead_Belowbreve Key = 16781931 + Key__Key_Dead_Belowdiaeresis Key = 16781932 + Key__Key_Dead_Invertedbreve Key = 16781933 + Key__Key_Dead_Belowcomma Key = 16781934 + Key__Key_Dead_Currency Key = 16781935 + Key__Key_Dead_a Key = 16781952 + Key__Key_Dead_A Key = 16781953 + Key__Key_Dead_e Key = 16781954 + Key__Key_Dead_E Key = 16781955 + Key__Key_Dead_i Key = 16781956 + Key__Key_Dead_I Key = 16781957 + Key__Key_Dead_o Key = 16781958 + Key__Key_Dead_O Key = 16781959 + Key__Key_Dead_u Key = 16781960 + Key__Key_Dead_U Key = 16781961 + Key__Key_Dead_Small_Schwa Key = 16781962 + Key__Key_Dead_Capital_Schwa Key = 16781963 + Key__Key_Dead_Greek Key = 16781964 + Key__Key_Dead_Lowline Key = 16781968 + Key__Key_Dead_Aboveverticalline Key = 16781969 + Key__Key_Dead_Belowverticalline Key = 16781970 + Key__Key_Dead_Longsolidusoverlay Key = 16781971 + Key__Key_Back Key = 16777313 + Key__Key_Forward Key = 16777314 + Key__Key_Stop Key = 16777315 + Key__Key_Refresh Key = 16777316 + Key__Key_VolumeDown Key = 16777328 + Key__Key_VolumeMute Key = 16777329 + Key__Key_VolumeUp Key = 16777330 + Key__Key_BassBoost Key = 16777331 + Key__Key_BassUp Key = 16777332 + Key__Key_BassDown Key = 16777333 + Key__Key_TrebleUp Key = 16777334 + Key__Key_TrebleDown Key = 16777335 + Key__Key_MediaPlay Key = 16777344 + Key__Key_MediaStop Key = 16777345 + Key__Key_MediaPrevious Key = 16777346 + Key__Key_MediaNext Key = 16777347 + Key__Key_MediaRecord Key = 16777348 + Key__Key_MediaPause Key = 16777349 + Key__Key_MediaTogglePlayPause Key = 16777350 + Key__Key_HomePage Key = 16777360 + Key__Key_Favorites Key = 16777361 + Key__Key_Search Key = 16777362 + Key__Key_Standby Key = 16777363 + Key__Key_OpenUrl Key = 16777364 + Key__Key_LaunchMail Key = 16777376 + Key__Key_LaunchMedia Key = 16777377 + Key__Key_Launch0 Key = 16777378 + Key__Key_Launch1 Key = 16777379 + Key__Key_Launch2 Key = 16777380 + Key__Key_Launch3 Key = 16777381 + Key__Key_Launch4 Key = 16777382 + Key__Key_Launch5 Key = 16777383 + Key__Key_Launch6 Key = 16777384 + Key__Key_Launch7 Key = 16777385 + Key__Key_Launch8 Key = 16777386 + Key__Key_Launch9 Key = 16777387 + Key__Key_LaunchA Key = 16777388 + Key__Key_LaunchB Key = 16777389 + Key__Key_LaunchC Key = 16777390 + Key__Key_LaunchD Key = 16777391 + Key__Key_LaunchE Key = 16777392 + Key__Key_LaunchF Key = 16777393 + Key__Key_MonBrightnessUp Key = 16777394 + Key__Key_MonBrightnessDown Key = 16777395 + Key__Key_KeyboardLightOnOff Key = 16777396 + Key__Key_KeyboardBrightnessUp Key = 16777397 + Key__Key_KeyboardBrightnessDown Key = 16777398 + Key__Key_PowerOff Key = 16777399 + Key__Key_WakeUp Key = 16777400 + Key__Key_Eject Key = 16777401 + Key__Key_ScreenSaver Key = 16777402 + Key__Key_WWW Key = 16777403 + Key__Key_Memo Key = 16777404 + Key__Key_LightBulb Key = 16777405 + Key__Key_Shop Key = 16777406 + Key__Key_History Key = 16777407 + Key__Key_AddFavorite Key = 16777408 + Key__Key_HotLinks Key = 16777409 + Key__Key_BrightnessAdjust Key = 16777410 + Key__Key_Finance Key = 16777411 + Key__Key_Community Key = 16777412 + Key__Key_AudioRewind Key = 16777413 + Key__Key_BackForward Key = 16777414 + Key__Key_ApplicationLeft Key = 16777415 + Key__Key_ApplicationRight Key = 16777416 + Key__Key_Book Key = 16777417 + Key__Key_CD Key = 16777418 + Key__Key_Calculator Key = 16777419 + Key__Key_ToDoList Key = 16777420 + Key__Key_ClearGrab Key = 16777421 + Key__Key_Close Key = 16777422 + Key__Key_Copy Key = 16777423 + Key__Key_Cut Key = 16777424 + Key__Key_Display Key = 16777425 + Key__Key_DOS Key = 16777426 + Key__Key_Documents Key = 16777427 + Key__Key_Excel Key = 16777428 + Key__Key_Explorer Key = 16777429 + Key__Key_Game Key = 16777430 + Key__Key_Go Key = 16777431 + Key__Key_iTouch Key = 16777432 + Key__Key_LogOff Key = 16777433 + Key__Key_Market Key = 16777434 + Key__Key_Meeting Key = 16777435 + Key__Key_MenuKB Key = 16777436 + Key__Key_MenuPB Key = 16777437 + Key__Key_MySites Key = 16777438 + Key__Key_News Key = 16777439 + Key__Key_OfficeHome Key = 16777440 + Key__Key_Option Key = 16777441 + Key__Key_Paste Key = 16777442 + Key__Key_Phone Key = 16777443 + Key__Key_Calendar Key = 16777444 + Key__Key_Reply Key = 16777445 + Key__Key_Reload Key = 16777446 + Key__Key_RotateWindows Key = 16777447 + Key__Key_RotationPB Key = 16777448 + Key__Key_RotationKB Key = 16777449 + Key__Key_Save Key = 16777450 + Key__Key_Send Key = 16777451 + Key__Key_Spell Key = 16777452 + Key__Key_SplitScreen Key = 16777453 + Key__Key_Support Key = 16777454 + Key__Key_TaskPane Key = 16777455 + Key__Key_Terminal Key = 16777456 + Key__Key_Tools Key = 16777457 + Key__Key_Travel Key = 16777458 + Key__Key_Video Key = 16777459 + Key__Key_Word Key = 16777460 + Key__Key_Xfer Key = 16777461 + Key__Key_ZoomIn Key = 16777462 + Key__Key_ZoomOut Key = 16777463 + Key__Key_Away Key = 16777464 + Key__Key_Messenger Key = 16777465 + Key__Key_WebCam Key = 16777466 + Key__Key_MailForward Key = 16777467 + Key__Key_Pictures Key = 16777468 + Key__Key_Music Key = 16777469 + Key__Key_Battery Key = 16777470 + Key__Key_Bluetooth Key = 16777471 + Key__Key_WLAN Key = 16777472 + Key__Key_UWB Key = 16777473 + Key__Key_AudioForward Key = 16777474 + Key__Key_AudioRepeat Key = 16777475 + Key__Key_AudioRandomPlay Key = 16777476 + Key__Key_Subtitle Key = 16777477 + Key__Key_AudioCycleTrack Key = 16777478 + Key__Key_Time Key = 16777479 + Key__Key_Hibernate Key = 16777480 + Key__Key_View Key = 16777481 + Key__Key_TopMenu Key = 16777482 + Key__Key_PowerDown Key = 16777483 + Key__Key_Suspend Key = 16777484 + Key__Key_ContrastAdjust Key = 16777485 + Key__Key_LaunchG Key = 16777486 + Key__Key_LaunchH Key = 16777487 + Key__Key_TouchpadToggle Key = 16777488 + Key__Key_TouchpadOn Key = 16777489 + Key__Key_TouchpadOff Key = 16777490 + Key__Key_MicMute Key = 16777491 + Key__Key_Red Key = 16777492 + Key__Key_Green Key = 16777493 + Key__Key_Yellow Key = 16777494 + Key__Key_Blue Key = 16777495 + Key__Key_ChannelUp Key = 16777496 + Key__Key_ChannelDown Key = 16777497 + Key__Key_Guide Key = 16777498 + Key__Key_Info Key = 16777499 + Key__Key_Settings Key = 16777500 + Key__Key_MicVolumeUp Key = 16777501 + Key__Key_MicVolumeDown Key = 16777502 + Key__Key_New Key = 16777504 + Key__Key_Open Key = 16777505 + Key__Key_Find Key = 16777506 + Key__Key_Undo Key = 16777507 + Key__Key_Redo Key = 16777508 + Key__Key_MediaLast Key = 16842751 + Key__Key_Select Key = 16842752 + Key__Key_Yes Key = 16842753 + Key__Key_No Key = 16842754 + Key__Key_Cancel Key = 16908289 + Key__Key_Printer Key = 16908290 + Key__Key_Execute Key = 16908291 + Key__Key_Sleep Key = 16908292 + Key__Key_Play Key = 16908293 + Key__Key_Zoom Key = 16908294 + Key__Key_Exit Key = 16908298 + Key__Key_Context1 Key = 17825792 + Key__Key_Context2 Key = 17825793 + Key__Key_Context3 Key = 17825794 + Key__Key_Context4 Key = 17825795 + Key__Key_Call Key = 17825796 + Key__Key_Hangup Key = 17825797 + Key__Key_Flip Key = 17825798 + Key__Key_ToggleCallHangup Key = 17825799 + Key__Key_VoiceDial Key = 17825800 + Key__Key_LastNumberRedial Key = 17825801 + Key__Key_Camera Key = 17825824 + Key__Key_CameraFocus Key = 17825825 + Key__Key_unknown Key = 33554431 +) + +type ArrowType int + +const ( + ArrowType__NoArrow ArrowType = 0 + ArrowType__UpArrow ArrowType = 1 + ArrowType__DownArrow ArrowType = 2 + ArrowType__LeftArrow ArrowType = 3 + ArrowType__RightArrow ArrowType = 4 +) + +type PenStyle int + +const ( + PenStyle__NoPen PenStyle = 0 + PenStyle__SolidLine PenStyle = 1 + PenStyle__DashLine PenStyle = 2 + PenStyle__DotLine PenStyle = 3 + PenStyle__DashDotLine PenStyle = 4 + PenStyle__DashDotDotLine PenStyle = 5 + PenStyle__CustomDashLine PenStyle = 6 + PenStyle__MPenStyle PenStyle = 15 +) + +type PenCapStyle int + +const ( + PenCapStyle__FlatCap PenCapStyle = 0 + PenCapStyle__SquareCap PenCapStyle = 16 + PenCapStyle__RoundCap PenCapStyle = 32 + PenCapStyle__MPenCapStyle PenCapStyle = 48 +) + +type PenJoinStyle int + +const ( + PenJoinStyle__MiterJoin PenJoinStyle = 0 + PenJoinStyle__BevelJoin PenJoinStyle = 64 + PenJoinStyle__RoundJoin PenJoinStyle = 128 + PenJoinStyle__SvgMiterJoin PenJoinStyle = 256 + PenJoinStyle__MPenJoinStyle PenJoinStyle = 448 +) + +type BrushStyle int + +const ( + BrushStyle__NoBrush BrushStyle = 0 + BrushStyle__SolidPattern BrushStyle = 1 + BrushStyle__Dense1Pattern BrushStyle = 2 + BrushStyle__Dense2Pattern BrushStyle = 3 + BrushStyle__Dense3Pattern BrushStyle = 4 + BrushStyle__Dense4Pattern BrushStyle = 5 + BrushStyle__Dense5Pattern BrushStyle = 6 + BrushStyle__Dense6Pattern BrushStyle = 7 + BrushStyle__Dense7Pattern BrushStyle = 8 + BrushStyle__HorPattern BrushStyle = 9 + BrushStyle__VerPattern BrushStyle = 10 + BrushStyle__CrossPattern BrushStyle = 11 + BrushStyle__BDiagPattern BrushStyle = 12 + BrushStyle__FDiagPattern BrushStyle = 13 + BrushStyle__DiagCrossPattern BrushStyle = 14 + BrushStyle__LinearGradientPattern BrushStyle = 15 + BrushStyle__RadialGradientPattern BrushStyle = 16 + BrushStyle__ConicalGradientPattern BrushStyle = 17 + BrushStyle__TexturePattern BrushStyle = 24 +) + +type SizeMode int + +const ( + SizeMode__AbsoluteSize SizeMode = 0 + SizeMode__RelativeSize SizeMode = 1 +) + +type UIEffect int + +const ( + UIEffect__UI_General UIEffect = 0 + UIEffect__UI_AnimateMenu UIEffect = 1 + UIEffect__UI_FadeMenu UIEffect = 2 + UIEffect__UI_AnimateCombo UIEffect = 3 + UIEffect__UI_AnimateTooltip UIEffect = 4 + UIEffect__UI_FadeTooltip UIEffect = 5 + UIEffect__UI_AnimateToolBox UIEffect = 6 +) + +type CursorShape int + +const ( + CursorShape__ArrowCursor CursorShape = 0 + CursorShape__UpArrowCursor CursorShape = 1 + CursorShape__CrossCursor CursorShape = 2 + CursorShape__WaitCursor CursorShape = 3 + CursorShape__IBeamCursor CursorShape = 4 + CursorShape__SizeVerCursor CursorShape = 5 + CursorShape__SizeHorCursor CursorShape = 6 + CursorShape__SizeBDiagCursor CursorShape = 7 + CursorShape__SizeFDiagCursor CursorShape = 8 + CursorShape__SizeAllCursor CursorShape = 9 + CursorShape__BlankCursor CursorShape = 10 + CursorShape__SplitVCursor CursorShape = 11 + CursorShape__SplitHCursor CursorShape = 12 + CursorShape__PointingHandCursor CursorShape = 13 + CursorShape__ForbiddenCursor CursorShape = 14 + CursorShape__WhatsThisCursor CursorShape = 15 + CursorShape__BusyCursor CursorShape = 16 + CursorShape__OpenHandCursor CursorShape = 17 + CursorShape__ClosedHandCursor CursorShape = 18 + CursorShape__DragCopyCursor CursorShape = 19 + CursorShape__DragMoveCursor CursorShape = 20 + CursorShape__DragLinkCursor CursorShape = 21 + CursorShape__LastCursor CursorShape = 21 + CursorShape__BitmapCursor CursorShape = 24 + CursorShape__CustomCursor CursorShape = 25 +) + +type TextFormat int + +const ( + TextFormat__PlainText TextFormat = 0 + TextFormat__RichText TextFormat = 1 + TextFormat__AutoText TextFormat = 2 + TextFormat__MarkdownText TextFormat = 3 +) + +type AspectRatioMode int + +const ( + AspectRatioMode__IgnoreAspectRatio AspectRatioMode = 0 + AspectRatioMode__KeepAspectRatio AspectRatioMode = 1 + AspectRatioMode__KeepAspectRatioByExpanding AspectRatioMode = 2 +) + +type DockWidgetArea int + +const ( + DockWidgetArea__LeftDockWidgetArea DockWidgetArea = 1 + DockWidgetArea__RightDockWidgetArea DockWidgetArea = 2 + DockWidgetArea__TopDockWidgetArea DockWidgetArea = 4 + DockWidgetArea__BottomDockWidgetArea DockWidgetArea = 8 + DockWidgetArea__DockWidgetArea_Mask DockWidgetArea = 15 + DockWidgetArea__AllDockWidgetAreas DockWidgetArea = 15 + DockWidgetArea__NoDockWidgetArea DockWidgetArea = 0 +) + +type DockWidgetAreaSizes int + +const ( + DockWidgetAreaSizes__NDockWidgetAreas DockWidgetAreaSizes = 4 +) + +type ToolBarArea int + +const ( + ToolBarArea__LeftToolBarArea ToolBarArea = 1 + ToolBarArea__RightToolBarArea ToolBarArea = 2 + ToolBarArea__TopToolBarArea ToolBarArea = 4 + ToolBarArea__BottomToolBarArea ToolBarArea = 8 + ToolBarArea__ToolBarArea_Mask ToolBarArea = 15 + ToolBarArea__AllToolBarAreas ToolBarArea = 15 + ToolBarArea__NoToolBarArea ToolBarArea = 0 +) + +type ToolBarAreaSizes int + +const ( + ToolBarAreaSizes__NToolBarAreas ToolBarAreaSizes = 4 +) + +type DateFormat int + +const ( + DateFormat__TextDate DateFormat = 0 + DateFormat__ISODate DateFormat = 1 + DateFormat__SystemLocaleDate DateFormat = 2 + DateFormat__LocalDate DateFormat = 2 + DateFormat__LocaleDate DateFormat = 3 + DateFormat__SystemLocaleShortDate DateFormat = 4 + DateFormat__SystemLocaleLongDate DateFormat = 5 + DateFormat__DefaultLocaleShortDate DateFormat = 6 + DateFormat__DefaultLocaleLongDate DateFormat = 7 + DateFormat__RFC2822Date DateFormat = 8 + DateFormat__ISODateWithMs DateFormat = 9 +) + +type TimeSpec int + +const ( + TimeSpec__LocalTime TimeSpec = 0 + TimeSpec__UTC TimeSpec = 1 + TimeSpec__OffsetFromUTC TimeSpec = 2 + TimeSpec__TimeZone TimeSpec = 3 +) + +type DayOfWeek int + +const ( + DayOfWeek__Monday DayOfWeek = 1 + DayOfWeek__Tuesday DayOfWeek = 2 + DayOfWeek__Wednesday DayOfWeek = 3 + DayOfWeek__Thursday DayOfWeek = 4 + DayOfWeek__Friday DayOfWeek = 5 + DayOfWeek__Saturday DayOfWeek = 6 + DayOfWeek__Sunday DayOfWeek = 7 +) + +type ScrollBarPolicy int + +const ( + ScrollBarPolicy__ScrollBarAsNeeded ScrollBarPolicy = 0 + ScrollBarPolicy__ScrollBarAlwaysOff ScrollBarPolicy = 1 + ScrollBarPolicy__ScrollBarAlwaysOn ScrollBarPolicy = 2 +) + +type CaseSensitivity int + +const ( + CaseSensitivity__CaseInsensitive CaseSensitivity = 0 + CaseSensitivity__CaseSensitive CaseSensitivity = 1 +) + +type Corner int + +const ( + Corner__TopLeftCorner Corner = 0 + Corner__TopRightCorner Corner = 1 + Corner__BottomLeftCorner Corner = 2 + Corner__BottomRightCorner Corner = 3 +) + +type Edge int + +const ( + Edge__TopEdge Edge = 1 + Edge__LeftEdge Edge = 2 + Edge__RightEdge Edge = 4 + Edge__BottomEdge Edge = 8 +) + +type ConnectionType int + +const ( + ConnectionType__AutoConnection ConnectionType = 0 + ConnectionType__DirectConnection ConnectionType = 1 + ConnectionType__QueuedConnection ConnectionType = 2 + ConnectionType__BlockingQueuedConnection ConnectionType = 3 + ConnectionType__UniqueConnection ConnectionType = 128 +) + +type ShortcutContext int + +const ( + ShortcutContext__WidgetShortcut ShortcutContext = 0 + ShortcutContext__WindowShortcut ShortcutContext = 1 + ShortcutContext__ApplicationShortcut ShortcutContext = 2 + ShortcutContext__WidgetWithChildrenShortcut ShortcutContext = 3 +) + +type FillRule int + +const ( + FillRule__OddEvenFill FillRule = 0 + FillRule__WindingFill FillRule = 1 +) + +type MaskMode int + +const ( + MaskMode__MaskInColor MaskMode = 0 + MaskMode__MaskOutColor MaskMode = 1 +) + +type ClipOperation int + +const ( + ClipOperation__NoClip ClipOperation = 0 + ClipOperation__ReplaceClip ClipOperation = 1 + ClipOperation__IntersectClip ClipOperation = 2 +) + +type ItemSelectionMode int + +const ( + ItemSelectionMode__ContainsItemShape ItemSelectionMode = 0 + ItemSelectionMode__IntersectsItemShape ItemSelectionMode = 1 + ItemSelectionMode__ContainsItemBoundingRect ItemSelectionMode = 2 + ItemSelectionMode__IntersectsItemBoundingRect ItemSelectionMode = 3 +) + +type ItemSelectionOperation int + +const ( + ItemSelectionOperation__ReplaceSelection ItemSelectionOperation = 0 + ItemSelectionOperation__AddToSelection ItemSelectionOperation = 1 +) + +type TransformationMode int + +const ( + TransformationMode__FastTransformation TransformationMode = 0 + TransformationMode__SmoothTransformation TransformationMode = 1 +) + +type Axis int + +const ( + Axis__XAxis Axis = 0 + Axis__YAxis Axis = 1 + Axis__ZAxis Axis = 2 +) + +type FocusReason int + +const ( + FocusReason__MouseFocusReason FocusReason = 0 + FocusReason__TabFocusReason FocusReason = 1 + FocusReason__BacktabFocusReason FocusReason = 2 + FocusReason__ActiveWindowFocusReason FocusReason = 3 + FocusReason__PopupFocusReason FocusReason = 4 + FocusReason__ShortcutFocusReason FocusReason = 5 + FocusReason__MenuBarFocusReason FocusReason = 6 + FocusReason__OtherFocusReason FocusReason = 7 + FocusReason__NoFocusReason FocusReason = 8 +) + +type ContextMenuPolicy int + +const ( + ContextMenuPolicy__NoContextMenu ContextMenuPolicy = 0 + ContextMenuPolicy__DefaultContextMenu ContextMenuPolicy = 1 + ContextMenuPolicy__ActionsContextMenu ContextMenuPolicy = 2 + ContextMenuPolicy__CustomContextMenu ContextMenuPolicy = 3 + ContextMenuPolicy__PreventContextMenu ContextMenuPolicy = 4 +) + +type InputMethodQuery int + +const ( + InputMethodQuery__ImEnabled InputMethodQuery = 1 + InputMethodQuery__ImCursorRectangle InputMethodQuery = 2 + InputMethodQuery__ImMicroFocus InputMethodQuery = 2 + InputMethodQuery__ImFont InputMethodQuery = 4 + InputMethodQuery__ImCursorPosition InputMethodQuery = 8 + InputMethodQuery__ImSurroundingText InputMethodQuery = 16 + InputMethodQuery__ImCurrentSelection InputMethodQuery = 32 + InputMethodQuery__ImMaximumTextLength InputMethodQuery = 64 + InputMethodQuery__ImAnchorPosition InputMethodQuery = 128 + InputMethodQuery__ImHints InputMethodQuery = 256 + InputMethodQuery__ImPreferredLanguage InputMethodQuery = 512 + InputMethodQuery__ImAbsolutePosition InputMethodQuery = 1024 + InputMethodQuery__ImTextBeforeCursor InputMethodQuery = 2048 + InputMethodQuery__ImTextAfterCursor InputMethodQuery = 4096 + InputMethodQuery__ImEnterKeyType InputMethodQuery = 8192 + InputMethodQuery__ImAnchorRectangle InputMethodQuery = 16384 + InputMethodQuery__ImInputItemClipRectangle InputMethodQuery = 32768 + InputMethodQuery__ImPlatformData InputMethodQuery = 2147483648 + InputMethodQuery__ImQueryInput InputMethodQuery = 16570 + InputMethodQuery__ImQueryAll InputMethodQuery = 4294967295 +) + +type InputMethodHint int + +const ( + InputMethodHint__ImhNone InputMethodHint = 0 + InputMethodHint__ImhHiddenText InputMethodHint = 1 + InputMethodHint__ImhSensitiveData InputMethodHint = 2 + InputMethodHint__ImhNoAutoUppercase InputMethodHint = 4 + InputMethodHint__ImhPreferNumbers InputMethodHint = 8 + InputMethodHint__ImhPreferUppercase InputMethodHint = 16 + InputMethodHint__ImhPreferLowercase InputMethodHint = 32 + InputMethodHint__ImhNoPredictiveText InputMethodHint = 64 + InputMethodHint__ImhDate InputMethodHint = 128 + InputMethodHint__ImhTime InputMethodHint = 256 + InputMethodHint__ImhPreferLatin InputMethodHint = 512 + InputMethodHint__ImhMultiLine InputMethodHint = 1024 + InputMethodHint__ImhNoEditMenu InputMethodHint = 2048 + InputMethodHint__ImhNoTextHandles InputMethodHint = 4096 + InputMethodHint__ImhDigitsOnly InputMethodHint = 65536 + InputMethodHint__ImhFormattedNumbersOnly InputMethodHint = 131072 + InputMethodHint__ImhUppercaseOnly InputMethodHint = 262144 + InputMethodHint__ImhLowercaseOnly InputMethodHint = 524288 + InputMethodHint__ImhDialableCharactersOnly InputMethodHint = 1048576 + InputMethodHint__ImhEmailCharactersOnly InputMethodHint = 2097152 + InputMethodHint__ImhUrlCharactersOnly InputMethodHint = 4194304 + InputMethodHint__ImhLatinOnly InputMethodHint = 8388608 + InputMethodHint__ImhExclusiveInputMask InputMethodHint = 4294901760 +) + +type EnterKeyType int + +const ( + EnterKeyType__EnterKeyDefault EnterKeyType = 0 + EnterKeyType__EnterKeyReturn EnterKeyType = 1 + EnterKeyType__EnterKeyDone EnterKeyType = 2 + EnterKeyType__EnterKeyGo EnterKeyType = 3 + EnterKeyType__EnterKeySend EnterKeyType = 4 + EnterKeyType__EnterKeySearch EnterKeyType = 5 + EnterKeyType__EnterKeyNext EnterKeyType = 6 + EnterKeyType__EnterKeyPrevious EnterKeyType = 7 +) + +type ToolButtonStyle int + +const ( + ToolButtonStyle__ToolButtonIconOnly ToolButtonStyle = 0 + ToolButtonStyle__ToolButtonTextOnly ToolButtonStyle = 1 + ToolButtonStyle__ToolButtonTextBesideIcon ToolButtonStyle = 2 + ToolButtonStyle__ToolButtonTextUnderIcon ToolButtonStyle = 3 + ToolButtonStyle__ToolButtonFollowStyle ToolButtonStyle = 4 +) + +type LayoutDirection int + +const ( + LayoutDirection__LeftToRight LayoutDirection = 0 + LayoutDirection__RightToLeft LayoutDirection = 1 + LayoutDirection__LayoutDirectionAuto LayoutDirection = 2 +) + +type AnchorPoint int + +const ( + AnchorPoint__AnchorLeft AnchorPoint = 0 + AnchorPoint__AnchorHorizontalCenter AnchorPoint = 1 + AnchorPoint__AnchorRight AnchorPoint = 2 + AnchorPoint__AnchorTop AnchorPoint = 3 + AnchorPoint__AnchorVerticalCenter AnchorPoint = 4 + AnchorPoint__AnchorBottom AnchorPoint = 5 +) + +type FindChildOption int + +const ( + FindChildOption__FindDirectChildrenOnly FindChildOption = 0 + FindChildOption__FindChildrenRecursively FindChildOption = 1 +) + +type DropAction int + +const ( + DropAction__CopyAction DropAction = 1 + DropAction__MoveAction DropAction = 2 + DropAction__LinkAction DropAction = 4 + DropAction__ActionMask DropAction = 255 + DropAction__TargetMoveAction DropAction = 32770 + DropAction__IgnoreAction DropAction = 0 +) + +type CheckState int + +const ( + CheckState__Unchecked CheckState = 0 + CheckState__PartiallyChecked CheckState = 1 + CheckState__Checked CheckState = 2 +) + +type ItemDataRole int + +const ( + ItemDataRole__DisplayRole ItemDataRole = 0 + ItemDataRole__DecorationRole ItemDataRole = 1 + ItemDataRole__EditRole ItemDataRole = 2 + ItemDataRole__ToolTipRole ItemDataRole = 3 + ItemDataRole__StatusTipRole ItemDataRole = 4 + ItemDataRole__WhatsThisRole ItemDataRole = 5 + ItemDataRole__FontRole ItemDataRole = 6 + ItemDataRole__TextAlignmentRole ItemDataRole = 7 + ItemDataRole__BackgroundRole ItemDataRole = 8 + ItemDataRole__ForegroundRole ItemDataRole = 9 + ItemDataRole__BackgroundColorRole ItemDataRole = 8 + ItemDataRole__TextColorRole ItemDataRole = 9 + ItemDataRole__CheckStateRole ItemDataRole = 10 + ItemDataRole__AccessibleTextRole ItemDataRole = 11 + ItemDataRole__AccessibleDescriptionRole ItemDataRole = 12 + ItemDataRole__SizeHintRole ItemDataRole = 13 + ItemDataRole__InitialSortOrderRole ItemDataRole = 14 + ItemDataRole__DisplayPropertyRole ItemDataRole = 27 + ItemDataRole__DecorationPropertyRole ItemDataRole = 28 + ItemDataRole__ToolTipPropertyRole ItemDataRole = 29 + ItemDataRole__StatusTipPropertyRole ItemDataRole = 30 + ItemDataRole__WhatsThisPropertyRole ItemDataRole = 31 + ItemDataRole__UserRole ItemDataRole = 256 +) + +type ItemFlag int + +const ( + ItemFlag__NoItemFlags ItemFlag = 0 + ItemFlag__ItemIsSelectable ItemFlag = 1 + ItemFlag__ItemIsEditable ItemFlag = 2 + ItemFlag__ItemIsDragEnabled ItemFlag = 4 + ItemFlag__ItemIsDropEnabled ItemFlag = 8 + ItemFlag__ItemIsUserCheckable ItemFlag = 16 + ItemFlag__ItemIsEnabled ItemFlag = 32 + ItemFlag__ItemIsAutoTristate ItemFlag = 64 + ItemFlag__ItemIsTristate ItemFlag = 64 + ItemFlag__ItemNeverHasChildren ItemFlag = 128 + ItemFlag__ItemIsUserTristate ItemFlag = 256 +) + +type MatchFlag int + +const ( + MatchFlag__MatchExactly MatchFlag = 0 + MatchFlag__MatchContains MatchFlag = 1 + MatchFlag__MatchStartsWith MatchFlag = 2 + MatchFlag__MatchEndsWith MatchFlag = 3 + MatchFlag__MatchRegExp MatchFlag = 4 + MatchFlag__MatchWildcard MatchFlag = 5 + MatchFlag__MatchFixedString MatchFlag = 8 + MatchFlag__MatchRegularExpression MatchFlag = 9 + MatchFlag__MatchCaseSensitive MatchFlag = 16 + MatchFlag__MatchWrap MatchFlag = 32 + MatchFlag__MatchRecursive MatchFlag = 64 +) + +type WindowModality int + +const ( + WindowModality__NonModal WindowModality = 0 + WindowModality__WindowModal WindowModality = 1 + WindowModality__ApplicationModal WindowModality = 2 +) + +type TextInteractionFlag int + +const ( + TextInteractionFlag__NoTextInteraction TextInteractionFlag = 0 + TextInteractionFlag__TextSelectableByMouse TextInteractionFlag = 1 + TextInteractionFlag__TextSelectableByKeyboard TextInteractionFlag = 2 + TextInteractionFlag__LinksAccessibleByMouse TextInteractionFlag = 4 + TextInteractionFlag__LinksAccessibleByKeyboard TextInteractionFlag = 8 + TextInteractionFlag__TextEditable TextInteractionFlag = 16 + TextInteractionFlag__TextEditorInteraction TextInteractionFlag = 19 + TextInteractionFlag__TextBrowserInteraction TextInteractionFlag = 13 +) + +type EventPriority int + +const ( + EventPriority__HighEventPriority EventPriority = 1 + EventPriority__NormalEventPriority EventPriority = 0 + EventPriority__LowEventPriority EventPriority = -1 +) + +type SizeHint int + +const ( + SizeHint__MinimumSize SizeHint = 0 + SizeHint__PreferredSize SizeHint = 1 + SizeHint__MaximumSize SizeHint = 2 + SizeHint__MinimumDescent SizeHint = 3 + SizeHint__NSizeHints SizeHint = 4 +) + +type WindowFrameSection int + +const ( + WindowFrameSection__NoSection WindowFrameSection = 0 + WindowFrameSection__LeftSection WindowFrameSection = 1 + WindowFrameSection__TopLeftSection WindowFrameSection = 2 + WindowFrameSection__TopSection WindowFrameSection = 3 + WindowFrameSection__TopRightSection WindowFrameSection = 4 + WindowFrameSection__RightSection WindowFrameSection = 5 + WindowFrameSection__BottomRightSection WindowFrameSection = 6 + WindowFrameSection__BottomSection WindowFrameSection = 7 + WindowFrameSection__BottomLeftSection WindowFrameSection = 8 + WindowFrameSection__TitleBarArea WindowFrameSection = 9 +) + +type Initialization int + +const ( + Initialization__Uninitialized Initialization = 0 +) + +type CoordinateSystem int + +const ( + CoordinateSystem__DeviceCoordinates CoordinateSystem = 0 + CoordinateSystem__LogicalCoordinates CoordinateSystem = 1 +) + +type TouchPointState int + +const ( + TouchPointState__TouchPointPressed TouchPointState = 1 + TouchPointState__TouchPointMoved TouchPointState = 2 + TouchPointState__TouchPointStationary TouchPointState = 4 + TouchPointState__TouchPointReleased TouchPointState = 8 +) + +type GestureState int + +const ( + GestureState__NoGesture GestureState = 0 + GestureState__GestureStarted GestureState = 1 + GestureState__GestureUpdated GestureState = 2 + GestureState__GestureFinished GestureState = 3 + GestureState__GestureCanceled GestureState = 4 +) + +type GestureType int + +const ( + GestureType__TapGesture GestureType = 1 + GestureType__TapAndHoldGesture GestureType = 2 + GestureType__PanGesture GestureType = 3 + GestureType__PinchGesture GestureType = 4 + GestureType__SwipeGesture GestureType = 5 + GestureType__CustomGesture GestureType = 256 + GestureType__LastGestureType GestureType = 4294967295 +) + +type GestureFlag int + +const ( + GestureFlag__DontStartGestureOnChildren GestureFlag = 1 + GestureFlag__ReceivePartialGestures GestureFlag = 2 + GestureFlag__IgnoredGesturesPropagateToParent GestureFlag = 4 +) + +type NativeGestureType int + +const ( + NativeGestureType__BeginNativeGesture NativeGestureType = 0 + NativeGestureType__EndNativeGesture NativeGestureType = 1 + NativeGestureType__PanNativeGesture NativeGestureType = 2 + NativeGestureType__ZoomNativeGesture NativeGestureType = 3 + NativeGestureType__SmartZoomNativeGesture NativeGestureType = 4 + NativeGestureType__RotateNativeGesture NativeGestureType = 5 + NativeGestureType__SwipeNativeGesture NativeGestureType = 6 +) + +type NavigationMode int + +const ( + NavigationMode__NavigationModeNone NavigationMode = 0 + NavigationMode__NavigationModeKeypadTabOrder NavigationMode = 1 + NavigationMode__NavigationModeKeypadDirectional NavigationMode = 2 + NavigationMode__NavigationModeCursorAuto NavigationMode = 3 + NavigationMode__NavigationModeCursorForceVisible NavigationMode = 4 +) + +type CursorMoveStyle int + +const ( + CursorMoveStyle__LogicalMoveStyle CursorMoveStyle = 0 + CursorMoveStyle__VisualMoveStyle CursorMoveStyle = 1 +) + +type TimerType int + +const ( + TimerType__PreciseTimer TimerType = 0 + TimerType__CoarseTimer TimerType = 1 + TimerType__VeryCoarseTimer TimerType = 2 +) + +type ScrollPhase int + +const ( + ScrollPhase__NoScrollPhase ScrollPhase = 0 + ScrollPhase__ScrollBegin ScrollPhase = 1 + ScrollPhase__ScrollUpdate ScrollPhase = 2 + ScrollPhase__ScrollEnd ScrollPhase = 3 + ScrollPhase__ScrollMomentum ScrollPhase = 4 +) + +type MouseEventSource int + +const ( + MouseEventSource__MouseEventNotSynthesized MouseEventSource = 0 + MouseEventSource__MouseEventSynthesizedBySystem MouseEventSource = 1 + MouseEventSource__MouseEventSynthesizedByQt MouseEventSource = 2 + MouseEventSource__MouseEventSynthesizedByApplication MouseEventSource = 3 +) + +type MouseEventFlag int + +const ( + MouseEventFlag__MouseEventCreatedDoubleClick MouseEventFlag = 1 + MouseEventFlag__MouseEventFlagMask MouseEventFlag = 255 +) + +type ChecksumType int + +const ( + ChecksumType__ChecksumIso3309 ChecksumType = 0 + ChecksumType__ChecksumItuV41 ChecksumType = 1 +) + +type HighDpiScaleFactorRoundingPolicy int + +const ( + HighDpiScaleFactorRoundingPolicy__Unset HighDpiScaleFactorRoundingPolicy = 0 + HighDpiScaleFactorRoundingPolicy__Round HighDpiScaleFactorRoundingPolicy = 1 + HighDpiScaleFactorRoundingPolicy__Ceil HighDpiScaleFactorRoundingPolicy = 2 + HighDpiScaleFactorRoundingPolicy__Floor HighDpiScaleFactorRoundingPolicy = 3 + HighDpiScaleFactorRoundingPolicy__RoundPreferFloor HighDpiScaleFactorRoundingPolicy = 4 + HighDpiScaleFactorRoundingPolicy__PassThrough HighDpiScaleFactorRoundingPolicy = 5 +) + +type ReturnByValueConstant int + +const ( + ReturnByValueConstant__ReturnByValue ReturnByValueConstant = 0 +) + +type QInternal__PaintDeviceFlags int + +const ( + QInternal__PaintDeviceFlags__UnknownDevice QInternal__PaintDeviceFlags = 0 + QInternal__PaintDeviceFlags__Widget QInternal__PaintDeviceFlags = 1 + QInternal__PaintDeviceFlags__Pixmap QInternal__PaintDeviceFlags = 2 + QInternal__PaintDeviceFlags__Image QInternal__PaintDeviceFlags = 3 + QInternal__PaintDeviceFlags__Printer QInternal__PaintDeviceFlags = 4 + QInternal__PaintDeviceFlags__Picture QInternal__PaintDeviceFlags = 5 + QInternal__PaintDeviceFlags__Pbuffer QInternal__PaintDeviceFlags = 6 + QInternal__PaintDeviceFlags__FramebufferObject QInternal__PaintDeviceFlags = 7 + QInternal__PaintDeviceFlags__CustomRaster QInternal__PaintDeviceFlags = 8 + QInternal__PaintDeviceFlags__MacQuartz QInternal__PaintDeviceFlags = 9 + QInternal__PaintDeviceFlags__PaintBuffer QInternal__PaintDeviceFlags = 10 + QInternal__PaintDeviceFlags__OpenGL QInternal__PaintDeviceFlags = 11 +) + +type QInternal__RelayoutType int + +const ( + QInternal__RelayoutType__RelayoutNormal QInternal__RelayoutType = 0 + QInternal__RelayoutType__RelayoutDragging QInternal__RelayoutType = 1 + QInternal__RelayoutType__RelayoutDropped QInternal__RelayoutType = 2 +) + +type QInternal__DockPosition int + +const ( + QInternal__DockPosition__LeftDock QInternal__DockPosition = 0 + QInternal__DockPosition__RightDock QInternal__DockPosition = 1 + QInternal__DockPosition__TopDock QInternal__DockPosition = 2 + QInternal__DockPosition__BottomDock QInternal__DockPosition = 3 + QInternal__DockPosition__DockCount QInternal__DockPosition = 4 +) + +type QInternal__Callback int + +const ( + QInternal__Callback__EventNotifyCallback QInternal__Callback = 0 + QInternal__Callback__LastCallback QInternal__Callback = 1 +) + type QInternal struct { h *C.QInternal } diff --git a/qt/gen_qobject.go b/qt/gen_qobject.go index 7236b0c9..fd321db6 100644 --- a/qt/gen_qobject.go +++ b/qt/gen_qobject.go @@ -14,6 +14,12 @@ import ( "unsafe" ) +type QObjectData__ int + +const ( + QObjectData____CheckForParentChildLoopsWarnDepth QObjectData__ = 4096 +) + type QObjectData struct { h *C.QObjectData } @@ -365,12 +371,12 @@ func QObject_TrUtf83(s string, c string, n int) string { return ret } -func (this *QObject) StartTimer2(interval int, timerType uintptr) int { +func (this *QObject) StartTimer2(interval int, timerType TimerType) int { ret := C.QObject_StartTimer2(this.h, (C.int)(interval), (C.uintptr_t)(timerType)) return (int)(ret) } -func QObject_Connect5(sender *QObject, signal *QMetaMethod, receiver *QObject, method *QMetaMethod, typeVal uintptr) *QMetaObject__Connection { +func QObject_Connect5(sender *QObject, signal *QMetaMethod, receiver *QObject, method *QMetaMethod, typeVal ConnectionType) *QMetaObject__Connection { ret := C.QObject_Connect5(sender.cPointer(), signal.cPointer(), receiver.cPointer(), method.cPointer(), (C.uintptr_t)(typeVal)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQMetaObject__Connection(ret) @@ -381,7 +387,7 @@ func QObject_Connect5(sender *QObject, signal *QMetaMethod, receiver *QObject, m return ret1 } -func (this *QObject) Connect4(sender *QObject, signal string, member string, typeVal uintptr) *QMetaObject__Connection { +func (this *QObject) Connect4(sender *QObject, signal string, member string, typeVal ConnectionType) *QMetaObject__Connection { signal_Cstring := C.CString(signal) defer C.free(unsafe.Pointer(signal_Cstring)) member_Cstring := C.CString(member) diff --git a/qt/gen_qobjectdefs.go b/qt/gen_qobjectdefs.go index 6bf7cd9e..8ea6e637 100644 --- a/qt/gen_qobjectdefs.go +++ b/qt/gen_qobjectdefs.go @@ -13,6 +13,24 @@ import ( "unsafe" ) +type QMetaObject__Call int + +const ( + QMetaObject__Call__InvokeMetaMethod QMetaObject__Call = 0 + QMetaObject__Call__ReadProperty QMetaObject__Call = 1 + QMetaObject__Call__WriteProperty QMetaObject__Call = 2 + QMetaObject__Call__ResetProperty QMetaObject__Call = 3 + QMetaObject__Call__QueryPropertyDesignable QMetaObject__Call = 4 + QMetaObject__Call__QueryPropertyScriptable QMetaObject__Call = 5 + QMetaObject__Call__QueryPropertyStored QMetaObject__Call = 6 + QMetaObject__Call__QueryPropertyEditable QMetaObject__Call = 7 + QMetaObject__Call__QueryPropertyUser QMetaObject__Call = 8 + QMetaObject__Call__CreateInstance QMetaObject__Call = 9 + QMetaObject__Call__IndexOfMethod QMetaObject__Call = 10 + QMetaObject__Call__RegisterPropertyMetaType QMetaObject__Call = 11 + QMetaObject__Call__RegisterMethodArgumentMetaType QMetaObject__Call = 12 +) + type QGenericArgument struct { h *C.QGenericArgument } @@ -408,7 +426,7 @@ func QMetaObject_ConnectSlotsByName(o *QObject) { C.QMetaObject_ConnectSlotsByName(o.cPointer()) } -func QMetaObject_InvokeMethod(obj *QObject, member string, param3 uintptr, retVal QGenericReturnArgument) bool { +func QMetaObject_InvokeMethod(obj *QObject, member string, param3 ConnectionType, retVal QGenericReturnArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod(obj.cPointer(), member_Cstring, (C.uintptr_t)(param3), retVal.cPointer()) @@ -422,7 +440,7 @@ func QMetaObject_InvokeMethod2(obj *QObject, member string, retVal QGenericRetur return (bool)(ret) } -func QMetaObject_InvokeMethod3(obj *QObject, member string, typeVal uintptr) bool { +func QMetaObject_InvokeMethod3(obj *QObject, member string, typeVal ConnectionType) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod3(obj.cPointer(), member_Cstring, (C.uintptr_t)(typeVal)) @@ -476,70 +494,70 @@ func QMetaObject_Connect6(sender *QObject, signal_index int, receiver *QObject, return ret1 } -func QMetaObject_InvokeMethod5(obj *QObject, member string, param3 uintptr, retVal QGenericReturnArgument, val0 QGenericArgument) bool { +func QMetaObject_InvokeMethod5(obj *QObject, member string, param3 ConnectionType, retVal QGenericReturnArgument, val0 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod5(obj.cPointer(), member_Cstring, (C.uintptr_t)(param3), retVal.cPointer(), val0.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod6(obj *QObject, member string, param3 uintptr, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument) bool { +func QMetaObject_InvokeMethod6(obj *QObject, member string, param3 ConnectionType, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod6(obj.cPointer(), member_Cstring, (C.uintptr_t)(param3), retVal.cPointer(), val0.cPointer(), val1.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod7(obj *QObject, member string, param3 uintptr, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument) bool { +func QMetaObject_InvokeMethod7(obj *QObject, member string, param3 ConnectionType, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod7(obj.cPointer(), member_Cstring, (C.uintptr_t)(param3), retVal.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod8(obj *QObject, member string, param3 uintptr, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument) bool { +func QMetaObject_InvokeMethod8(obj *QObject, member string, param3 ConnectionType, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod8(obj.cPointer(), member_Cstring, (C.uintptr_t)(param3), retVal.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod9(obj *QObject, member string, param3 uintptr, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument) bool { +func QMetaObject_InvokeMethod9(obj *QObject, member string, param3 ConnectionType, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod9(obj.cPointer(), member_Cstring, (C.uintptr_t)(param3), retVal.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod10(obj *QObject, member string, param3 uintptr, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument) bool { +func QMetaObject_InvokeMethod10(obj *QObject, member string, param3 ConnectionType, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod10(obj.cPointer(), member_Cstring, (C.uintptr_t)(param3), retVal.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod11(obj *QObject, member string, param3 uintptr, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument) bool { +func QMetaObject_InvokeMethod11(obj *QObject, member string, param3 ConnectionType, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod11(obj.cPointer(), member_Cstring, (C.uintptr_t)(param3), retVal.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod12(obj *QObject, member string, param3 uintptr, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument) bool { +func QMetaObject_InvokeMethod12(obj *QObject, member string, param3 ConnectionType, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod12(obj.cPointer(), member_Cstring, (C.uintptr_t)(param3), retVal.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer(), val7.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod13(obj *QObject, member string, param3 uintptr, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument) bool { +func QMetaObject_InvokeMethod13(obj *QObject, member string, param3 ConnectionType, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod13(obj.cPointer(), member_Cstring, (C.uintptr_t)(param3), retVal.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer(), val7.cPointer(), val8.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod14(obj *QObject, member string, param3 uintptr, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument, val9 QGenericArgument) bool { +func QMetaObject_InvokeMethod14(obj *QObject, member string, param3 ConnectionType, retVal QGenericReturnArgument, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument, val9 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod14(obj.cPointer(), member_Cstring, (C.uintptr_t)(param3), retVal.cPointer(), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer(), val7.cPointer(), val8.cPointer(), val9.cPointer()) @@ -616,70 +634,70 @@ func QMetaObject_InvokeMethod132(obj *QObject, member string, retVal QGenericRet return (bool)(ret) } -func QMetaObject_InvokeMethod43(obj *QObject, member string, typeVal uintptr, val0 QGenericArgument) bool { +func QMetaObject_InvokeMethod43(obj *QObject, member string, typeVal ConnectionType, val0 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod43(obj.cPointer(), member_Cstring, (C.uintptr_t)(typeVal), val0.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod53(obj *QObject, member string, typeVal uintptr, val0 QGenericArgument, val1 QGenericArgument) bool { +func QMetaObject_InvokeMethod53(obj *QObject, member string, typeVal ConnectionType, val0 QGenericArgument, val1 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod53(obj.cPointer(), member_Cstring, (C.uintptr_t)(typeVal), val0.cPointer(), val1.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod63(obj *QObject, member string, typeVal uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument) bool { +func QMetaObject_InvokeMethod63(obj *QObject, member string, typeVal ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod63(obj.cPointer(), member_Cstring, (C.uintptr_t)(typeVal), val0.cPointer(), val1.cPointer(), val2.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod73(obj *QObject, member string, typeVal uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument) bool { +func QMetaObject_InvokeMethod73(obj *QObject, member string, typeVal ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod73(obj.cPointer(), member_Cstring, (C.uintptr_t)(typeVal), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod83(obj *QObject, member string, typeVal uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument) bool { +func QMetaObject_InvokeMethod83(obj *QObject, member string, typeVal ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod83(obj.cPointer(), member_Cstring, (C.uintptr_t)(typeVal), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod93(obj *QObject, member string, typeVal uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument) bool { +func QMetaObject_InvokeMethod93(obj *QObject, member string, typeVal ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod93(obj.cPointer(), member_Cstring, (C.uintptr_t)(typeVal), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod103(obj *QObject, member string, typeVal uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument) bool { +func QMetaObject_InvokeMethod103(obj *QObject, member string, typeVal ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod103(obj.cPointer(), member_Cstring, (C.uintptr_t)(typeVal), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod113(obj *QObject, member string, typeVal uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument) bool { +func QMetaObject_InvokeMethod113(obj *QObject, member string, typeVal ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod113(obj.cPointer(), member_Cstring, (C.uintptr_t)(typeVal), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer(), val7.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod123(obj *QObject, member string, typeVal uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument) bool { +func QMetaObject_InvokeMethod123(obj *QObject, member string, typeVal ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod123(obj.cPointer(), member_Cstring, (C.uintptr_t)(typeVal), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer(), val7.cPointer(), val8.cPointer()) return (bool)(ret) } -func QMetaObject_InvokeMethod133(obj *QObject, member string, typeVal uintptr, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument, val9 QGenericArgument) bool { +func QMetaObject_InvokeMethod133(obj *QObject, member string, typeVal ConnectionType, val0 QGenericArgument, val1 QGenericArgument, val2 QGenericArgument, val3 QGenericArgument, val4 QGenericArgument, val5 QGenericArgument, val6 QGenericArgument, val7 QGenericArgument, val8 QGenericArgument, val9 QGenericArgument) bool { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ret := C.QMetaObject_InvokeMethod133(obj.cPointer(), member_Cstring, (C.uintptr_t)(typeVal), val0.cPointer(), val1.cPointer(), val2.cPointer(), val3.cPointer(), val4.cPointer(), val5.cPointer(), val6.cPointer(), val7.cPointer(), val8.cPointer(), val9.cPointer()) diff --git a/qt/gen_qoffscreensurface.go b/qt/gen_qoffscreensurface.go index 556d4eb6..203ce81b 100644 --- a/qt/gen_qoffscreensurface.go +++ b/qt/gen_qoffscreensurface.go @@ -83,9 +83,9 @@ func QOffscreenSurface_TrUtf8(s string) string { return ret } -func (this *QOffscreenSurface) SurfaceType() uintptr { +func (this *QOffscreenSurface) SurfaceType() QSurface__SurfaceType { ret := C.QOffscreenSurface_SurfaceType(this.h) - return (uintptr)(ret) + return (QSurface__SurfaceType)(ret) } func (this *QOffscreenSurface) Create() { diff --git a/qt/gen_qoperatingsystemversion.go b/qt/gen_qoperatingsystemversion.go index 0ec66796..0f039c58 100644 --- a/qt/gen_qoperatingsystemversion.go +++ b/qt/gen_qoperatingsystemversion.go @@ -13,6 +13,18 @@ import ( "unsafe" ) +type QOperatingSystemVersion__OSType int + +const ( + QOperatingSystemVersion__OSType__Unknown QOperatingSystemVersion__OSType = 0 + QOperatingSystemVersion__OSType__Windows QOperatingSystemVersion__OSType = 1 + QOperatingSystemVersion__OSType__MacOS QOperatingSystemVersion__OSType = 2 + QOperatingSystemVersion__OSType__IOS QOperatingSystemVersion__OSType = 3 + QOperatingSystemVersion__OSType__TvOS QOperatingSystemVersion__OSType = 4 + QOperatingSystemVersion__OSType__WatchOS QOperatingSystemVersion__OSType = 5 + QOperatingSystemVersion__OSType__Android QOperatingSystemVersion__OSType = 6 +) + type QOperatingSystemVersion struct { h *C.QOperatingSystemVersion } @@ -36,19 +48,19 @@ func newQOperatingSystemVersion_U(h unsafe.Pointer) *QOperatingSystemVersion { } // NewQOperatingSystemVersion constructs a new QOperatingSystemVersion object. -func NewQOperatingSystemVersion(osType uintptr, vmajor int) *QOperatingSystemVersion { +func NewQOperatingSystemVersion(osType QOperatingSystemVersion__OSType, vmajor int) *QOperatingSystemVersion { ret := C.QOperatingSystemVersion_new((C.uintptr_t)(osType), (C.int)(vmajor)) return newQOperatingSystemVersion(ret) } // NewQOperatingSystemVersion2 constructs a new QOperatingSystemVersion object. -func NewQOperatingSystemVersion2(osType uintptr, vmajor int, vminor int) *QOperatingSystemVersion { +func NewQOperatingSystemVersion2(osType QOperatingSystemVersion__OSType, vmajor int, vminor int) *QOperatingSystemVersion { ret := C.QOperatingSystemVersion_new2((C.uintptr_t)(osType), (C.int)(vmajor), (C.int)(vminor)) return newQOperatingSystemVersion(ret) } // NewQOperatingSystemVersion3 constructs a new QOperatingSystemVersion object. -func NewQOperatingSystemVersion3(osType uintptr, vmajor int, vminor int, vmicro int) *QOperatingSystemVersion { +func NewQOperatingSystemVersion3(osType QOperatingSystemVersion__OSType, vmajor int, vminor int, vmicro int) *QOperatingSystemVersion { ret := C.QOperatingSystemVersion_new3((C.uintptr_t)(osType), (C.int)(vmajor), (C.int)(vminor), (C.int)(vmicro)) return newQOperatingSystemVersion(ret) } @@ -64,9 +76,9 @@ func QOperatingSystemVersion_Current() *QOperatingSystemVersion { return ret1 } -func QOperatingSystemVersion_CurrentType() uintptr { +func QOperatingSystemVersion_CurrentType() QOperatingSystemVersion__OSType { ret := C.QOperatingSystemVersion_CurrentType() - return (uintptr)(ret) + return (QOperatingSystemVersion__OSType)(ret) } func (this *QOperatingSystemVersion) MajorVersion() int { @@ -89,9 +101,9 @@ func (this *QOperatingSystemVersion) SegmentCount() int { return (int)(ret) } -func (this *QOperatingSystemVersion) Type() uintptr { +func (this *QOperatingSystemVersion) Type() QOperatingSystemVersion__OSType { ret := C.QOperatingSystemVersion_Type(this.h) - return (uintptr)(ret) + return (QOperatingSystemVersion__OSType)(ret) } func (this *QOperatingSystemVersion) Name() string { diff --git a/qt/gen_qpagedpaintdevice.go b/qt/gen_qpagedpaintdevice.go index db1585cd..f4982591 100644 --- a/qt/gen_qpagedpaintdevice.go +++ b/qt/gen_qpagedpaintdevice.go @@ -13,6 +13,146 @@ import ( "unsafe" ) +type QPagedPaintDevice__PageSize int + +const ( + QPagedPaintDevice__PageSize__A4 QPagedPaintDevice__PageSize = 0 + QPagedPaintDevice__PageSize__B5 QPagedPaintDevice__PageSize = 1 + QPagedPaintDevice__PageSize__Letter QPagedPaintDevice__PageSize = 2 + QPagedPaintDevice__PageSize__Legal QPagedPaintDevice__PageSize = 3 + QPagedPaintDevice__PageSize__Executive QPagedPaintDevice__PageSize = 4 + QPagedPaintDevice__PageSize__A0 QPagedPaintDevice__PageSize = 5 + QPagedPaintDevice__PageSize__A1 QPagedPaintDevice__PageSize = 6 + QPagedPaintDevice__PageSize__A2 QPagedPaintDevice__PageSize = 7 + QPagedPaintDevice__PageSize__A3 QPagedPaintDevice__PageSize = 8 + QPagedPaintDevice__PageSize__A5 QPagedPaintDevice__PageSize = 9 + QPagedPaintDevice__PageSize__A6 QPagedPaintDevice__PageSize = 10 + QPagedPaintDevice__PageSize__A7 QPagedPaintDevice__PageSize = 11 + QPagedPaintDevice__PageSize__A8 QPagedPaintDevice__PageSize = 12 + QPagedPaintDevice__PageSize__A9 QPagedPaintDevice__PageSize = 13 + QPagedPaintDevice__PageSize__B0 QPagedPaintDevice__PageSize = 14 + QPagedPaintDevice__PageSize__B1 QPagedPaintDevice__PageSize = 15 + QPagedPaintDevice__PageSize__B10 QPagedPaintDevice__PageSize = 16 + QPagedPaintDevice__PageSize__B2 QPagedPaintDevice__PageSize = 17 + QPagedPaintDevice__PageSize__B3 QPagedPaintDevice__PageSize = 18 + QPagedPaintDevice__PageSize__B4 QPagedPaintDevice__PageSize = 19 + QPagedPaintDevice__PageSize__B6 QPagedPaintDevice__PageSize = 20 + QPagedPaintDevice__PageSize__B7 QPagedPaintDevice__PageSize = 21 + QPagedPaintDevice__PageSize__B8 QPagedPaintDevice__PageSize = 22 + QPagedPaintDevice__PageSize__B9 QPagedPaintDevice__PageSize = 23 + QPagedPaintDevice__PageSize__C5E QPagedPaintDevice__PageSize = 24 + QPagedPaintDevice__PageSize__Comm10E QPagedPaintDevice__PageSize = 25 + QPagedPaintDevice__PageSize__DLE QPagedPaintDevice__PageSize = 26 + QPagedPaintDevice__PageSize__Folio QPagedPaintDevice__PageSize = 27 + QPagedPaintDevice__PageSize__Ledger QPagedPaintDevice__PageSize = 28 + QPagedPaintDevice__PageSize__Tabloid QPagedPaintDevice__PageSize = 29 + QPagedPaintDevice__PageSize__Custom QPagedPaintDevice__PageSize = 30 + QPagedPaintDevice__PageSize__A10 QPagedPaintDevice__PageSize = 31 + QPagedPaintDevice__PageSize__A3Extra QPagedPaintDevice__PageSize = 32 + QPagedPaintDevice__PageSize__A4Extra QPagedPaintDevice__PageSize = 33 + QPagedPaintDevice__PageSize__A4Plus QPagedPaintDevice__PageSize = 34 + QPagedPaintDevice__PageSize__A4Small QPagedPaintDevice__PageSize = 35 + QPagedPaintDevice__PageSize__A5Extra QPagedPaintDevice__PageSize = 36 + QPagedPaintDevice__PageSize__B5Extra QPagedPaintDevice__PageSize = 37 + QPagedPaintDevice__PageSize__JisB0 QPagedPaintDevice__PageSize = 38 + QPagedPaintDevice__PageSize__JisB1 QPagedPaintDevice__PageSize = 39 + QPagedPaintDevice__PageSize__JisB2 QPagedPaintDevice__PageSize = 40 + QPagedPaintDevice__PageSize__JisB3 QPagedPaintDevice__PageSize = 41 + QPagedPaintDevice__PageSize__JisB4 QPagedPaintDevice__PageSize = 42 + QPagedPaintDevice__PageSize__JisB5 QPagedPaintDevice__PageSize = 43 + QPagedPaintDevice__PageSize__JisB6 QPagedPaintDevice__PageSize = 44 + QPagedPaintDevice__PageSize__JisB7 QPagedPaintDevice__PageSize = 45 + QPagedPaintDevice__PageSize__JisB8 QPagedPaintDevice__PageSize = 46 + QPagedPaintDevice__PageSize__JisB9 QPagedPaintDevice__PageSize = 47 + QPagedPaintDevice__PageSize__JisB10 QPagedPaintDevice__PageSize = 48 + QPagedPaintDevice__PageSize__AnsiC QPagedPaintDevice__PageSize = 49 + QPagedPaintDevice__PageSize__AnsiD QPagedPaintDevice__PageSize = 50 + QPagedPaintDevice__PageSize__AnsiE QPagedPaintDevice__PageSize = 51 + QPagedPaintDevice__PageSize__LegalExtra QPagedPaintDevice__PageSize = 52 + QPagedPaintDevice__PageSize__LetterExtra QPagedPaintDevice__PageSize = 53 + QPagedPaintDevice__PageSize__LetterPlus QPagedPaintDevice__PageSize = 54 + QPagedPaintDevice__PageSize__LetterSmall QPagedPaintDevice__PageSize = 55 + QPagedPaintDevice__PageSize__TabloidExtra QPagedPaintDevice__PageSize = 56 + QPagedPaintDevice__PageSize__ArchA QPagedPaintDevice__PageSize = 57 + QPagedPaintDevice__PageSize__ArchB QPagedPaintDevice__PageSize = 58 + QPagedPaintDevice__PageSize__ArchC QPagedPaintDevice__PageSize = 59 + QPagedPaintDevice__PageSize__ArchD QPagedPaintDevice__PageSize = 60 + QPagedPaintDevice__PageSize__ArchE QPagedPaintDevice__PageSize = 61 + QPagedPaintDevice__PageSize__Imperial7x9 QPagedPaintDevice__PageSize = 62 + QPagedPaintDevice__PageSize__Imperial8x10 QPagedPaintDevice__PageSize = 63 + QPagedPaintDevice__PageSize__Imperial9x11 QPagedPaintDevice__PageSize = 64 + QPagedPaintDevice__PageSize__Imperial9x12 QPagedPaintDevice__PageSize = 65 + QPagedPaintDevice__PageSize__Imperial10x11 QPagedPaintDevice__PageSize = 66 + QPagedPaintDevice__PageSize__Imperial10x13 QPagedPaintDevice__PageSize = 67 + QPagedPaintDevice__PageSize__Imperial10x14 QPagedPaintDevice__PageSize = 68 + QPagedPaintDevice__PageSize__Imperial12x11 QPagedPaintDevice__PageSize = 69 + QPagedPaintDevice__PageSize__Imperial15x11 QPagedPaintDevice__PageSize = 70 + QPagedPaintDevice__PageSize__ExecutiveStandard QPagedPaintDevice__PageSize = 71 + QPagedPaintDevice__PageSize__Note QPagedPaintDevice__PageSize = 72 + QPagedPaintDevice__PageSize__Quarto QPagedPaintDevice__PageSize = 73 + QPagedPaintDevice__PageSize__Statement QPagedPaintDevice__PageSize = 74 + QPagedPaintDevice__PageSize__SuperA QPagedPaintDevice__PageSize = 75 + QPagedPaintDevice__PageSize__SuperB QPagedPaintDevice__PageSize = 76 + QPagedPaintDevice__PageSize__Postcard QPagedPaintDevice__PageSize = 77 + QPagedPaintDevice__PageSize__DoublePostcard QPagedPaintDevice__PageSize = 78 + QPagedPaintDevice__PageSize__Prc16K QPagedPaintDevice__PageSize = 79 + QPagedPaintDevice__PageSize__Prc32K QPagedPaintDevice__PageSize = 80 + QPagedPaintDevice__PageSize__Prc32KBig QPagedPaintDevice__PageSize = 81 + QPagedPaintDevice__PageSize__FanFoldUS QPagedPaintDevice__PageSize = 82 + QPagedPaintDevice__PageSize__FanFoldGerman QPagedPaintDevice__PageSize = 83 + QPagedPaintDevice__PageSize__FanFoldGermanLegal QPagedPaintDevice__PageSize = 84 + QPagedPaintDevice__PageSize__EnvelopeB4 QPagedPaintDevice__PageSize = 85 + QPagedPaintDevice__PageSize__EnvelopeB5 QPagedPaintDevice__PageSize = 86 + QPagedPaintDevice__PageSize__EnvelopeB6 QPagedPaintDevice__PageSize = 87 + QPagedPaintDevice__PageSize__EnvelopeC0 QPagedPaintDevice__PageSize = 88 + QPagedPaintDevice__PageSize__EnvelopeC1 QPagedPaintDevice__PageSize = 89 + QPagedPaintDevice__PageSize__EnvelopeC2 QPagedPaintDevice__PageSize = 90 + QPagedPaintDevice__PageSize__EnvelopeC3 QPagedPaintDevice__PageSize = 91 + QPagedPaintDevice__PageSize__EnvelopeC4 QPagedPaintDevice__PageSize = 92 + QPagedPaintDevice__PageSize__EnvelopeC6 QPagedPaintDevice__PageSize = 93 + QPagedPaintDevice__PageSize__EnvelopeC65 QPagedPaintDevice__PageSize = 94 + QPagedPaintDevice__PageSize__EnvelopeC7 QPagedPaintDevice__PageSize = 95 + QPagedPaintDevice__PageSize__Envelope9 QPagedPaintDevice__PageSize = 96 + QPagedPaintDevice__PageSize__Envelope11 QPagedPaintDevice__PageSize = 97 + QPagedPaintDevice__PageSize__Envelope12 QPagedPaintDevice__PageSize = 98 + QPagedPaintDevice__PageSize__Envelope14 QPagedPaintDevice__PageSize = 99 + QPagedPaintDevice__PageSize__EnvelopeMonarch QPagedPaintDevice__PageSize = 100 + QPagedPaintDevice__PageSize__EnvelopePersonal QPagedPaintDevice__PageSize = 101 + QPagedPaintDevice__PageSize__EnvelopeChou3 QPagedPaintDevice__PageSize = 102 + QPagedPaintDevice__PageSize__EnvelopeChou4 QPagedPaintDevice__PageSize = 103 + QPagedPaintDevice__PageSize__EnvelopeInvite QPagedPaintDevice__PageSize = 104 + QPagedPaintDevice__PageSize__EnvelopeItalian QPagedPaintDevice__PageSize = 105 + QPagedPaintDevice__PageSize__EnvelopeKaku2 QPagedPaintDevice__PageSize = 106 + QPagedPaintDevice__PageSize__EnvelopeKaku3 QPagedPaintDevice__PageSize = 107 + QPagedPaintDevice__PageSize__EnvelopePrc1 QPagedPaintDevice__PageSize = 108 + QPagedPaintDevice__PageSize__EnvelopePrc2 QPagedPaintDevice__PageSize = 109 + QPagedPaintDevice__PageSize__EnvelopePrc3 QPagedPaintDevice__PageSize = 110 + QPagedPaintDevice__PageSize__EnvelopePrc4 QPagedPaintDevice__PageSize = 111 + QPagedPaintDevice__PageSize__EnvelopePrc5 QPagedPaintDevice__PageSize = 112 + QPagedPaintDevice__PageSize__EnvelopePrc6 QPagedPaintDevice__PageSize = 113 + QPagedPaintDevice__PageSize__EnvelopePrc7 QPagedPaintDevice__PageSize = 114 + QPagedPaintDevice__PageSize__EnvelopePrc8 QPagedPaintDevice__PageSize = 115 + QPagedPaintDevice__PageSize__EnvelopePrc9 QPagedPaintDevice__PageSize = 116 + QPagedPaintDevice__PageSize__EnvelopePrc10 QPagedPaintDevice__PageSize = 117 + QPagedPaintDevice__PageSize__EnvelopeYou4 QPagedPaintDevice__PageSize = 118 + QPagedPaintDevice__PageSize__LastPageSize QPagedPaintDevice__PageSize = 118 + QPagedPaintDevice__PageSize__NPageSize QPagedPaintDevice__PageSize = 118 + QPagedPaintDevice__PageSize__NPaperSize QPagedPaintDevice__PageSize = 118 + QPagedPaintDevice__PageSize__AnsiA QPagedPaintDevice__PageSize = 2 + QPagedPaintDevice__PageSize__AnsiB QPagedPaintDevice__PageSize = 28 + QPagedPaintDevice__PageSize__EnvelopeC5 QPagedPaintDevice__PageSize = 24 + QPagedPaintDevice__PageSize__EnvelopeDL QPagedPaintDevice__PageSize = 26 + QPagedPaintDevice__PageSize__Envelope10 QPagedPaintDevice__PageSize = 25 +) + +type QPagedPaintDevice__PdfVersion int + +const ( + QPagedPaintDevice__PdfVersion__PdfVersion_1_4 QPagedPaintDevice__PdfVersion = 0 + QPagedPaintDevice__PdfVersion__PdfVersion_A1b QPagedPaintDevice__PdfVersion = 1 + QPagedPaintDevice__PdfVersion__PdfVersion_1_6 QPagedPaintDevice__PdfVersion = 2 +) + type QPagedPaintDevice struct { h *C.QPagedPaintDevice *QPaintDevice @@ -51,7 +191,7 @@ func (this *QPagedPaintDevice) SetPageSize(pageSize *QPageSize) bool { return (bool)(ret) } -func (this *QPagedPaintDevice) SetPageOrientation(orientation uintptr) bool { +func (this *QPagedPaintDevice) SetPageOrientation(orientation QPageLayout__Orientation) bool { ret := C.QPagedPaintDevice_SetPageOrientation(this.h, (C.uintptr_t)(orientation)) return (bool)(ret) } @@ -61,7 +201,7 @@ func (this *QPagedPaintDevice) SetPageMargins(margins *QMarginsF) bool { return (bool)(ret) } -func (this *QPagedPaintDevice) SetPageMargins2(margins *QMarginsF, units uintptr) bool { +func (this *QPagedPaintDevice) SetPageMargins2(margins *QMarginsF, units QPageLayout__Unit) bool { ret := C.QPagedPaintDevice_SetPageMargins2(this.h, margins.cPointer(), (C.uintptr_t)(units)) return (bool)(ret) } @@ -77,13 +217,13 @@ func (this *QPagedPaintDevice) PageLayout() *QPageLayout { return ret1 } -func (this *QPagedPaintDevice) SetPageSizeWithSize(size uintptr) { +func (this *QPagedPaintDevice) SetPageSizeWithSize(size QPagedPaintDevice__PageSize) { C.QPagedPaintDevice_SetPageSizeWithSize(this.h, (C.uintptr_t)(size)) } -func (this *QPagedPaintDevice) PageSize() uintptr { +func (this *QPagedPaintDevice) PageSize() QPagedPaintDevice__PageSize { ret := C.QPagedPaintDevice_PageSize(this.h) - return (uintptr)(ret) + return (QPagedPaintDevice__PageSize)(ret) } func (this *QPagedPaintDevice) SetPageSizeMM(size *QSizeF) { diff --git a/qt/gen_qpagelayout.go b/qt/gen_qpagelayout.go index 23ac96ce..1dadfcbc 100644 --- a/qt/gen_qpagelayout.go +++ b/qt/gen_qpagelayout.go @@ -13,6 +13,31 @@ import ( "unsafe" ) +type QPageLayout__Unit int + +const ( + QPageLayout__Unit__Millimeter QPageLayout__Unit = 0 + QPageLayout__Unit__Point QPageLayout__Unit = 1 + QPageLayout__Unit__Inch QPageLayout__Unit = 2 + QPageLayout__Unit__Pica QPageLayout__Unit = 3 + QPageLayout__Unit__Didot QPageLayout__Unit = 4 + QPageLayout__Unit__Cicero QPageLayout__Unit = 5 +) + +type QPageLayout__Orientation int + +const ( + QPageLayout__Orientation__Portrait QPageLayout__Orientation = 0 + QPageLayout__Orientation__Landscape QPageLayout__Orientation = 1 +) + +type QPageLayout__Mode int + +const ( + QPageLayout__Mode__StandardMode QPageLayout__Mode = 0 + QPageLayout__Mode__FullPageMode QPageLayout__Mode = 1 +) + type QPageLayout struct { h *C.QPageLayout } @@ -42,7 +67,7 @@ func NewQPageLayout() *QPageLayout { } // NewQPageLayout2 constructs a new QPageLayout object. -func NewQPageLayout2(pageSize *QPageSize, orientation uintptr, margins *QMarginsF) *QPageLayout { +func NewQPageLayout2(pageSize *QPageSize, orientation QPageLayout__Orientation, margins *QMarginsF) *QPageLayout { ret := C.QPageLayout_new2(pageSize.cPointer(), (C.uintptr_t)(orientation), margins.cPointer()) return newQPageLayout(ret) } @@ -54,13 +79,13 @@ func NewQPageLayout3(other *QPageLayout) *QPageLayout { } // NewQPageLayout4 constructs a new QPageLayout object. -func NewQPageLayout4(pageSize *QPageSize, orientation uintptr, margins *QMarginsF, units uintptr) *QPageLayout { +func NewQPageLayout4(pageSize *QPageSize, orientation QPageLayout__Orientation, margins *QMarginsF, units QPageLayout__Unit) *QPageLayout { ret := C.QPageLayout_new4(pageSize.cPointer(), (C.uintptr_t)(orientation), margins.cPointer(), (C.uintptr_t)(units)) return newQPageLayout(ret) } // NewQPageLayout5 constructs a new QPageLayout object. -func NewQPageLayout5(pageSize *QPageSize, orientation uintptr, margins *QMarginsF, units uintptr, minMargins *QMarginsF) *QPageLayout { +func NewQPageLayout5(pageSize *QPageSize, orientation QPageLayout__Orientation, margins *QMarginsF, units QPageLayout__Unit, minMargins *QMarginsF) *QPageLayout { ret := C.QPageLayout_new5(pageSize.cPointer(), (C.uintptr_t)(orientation), margins.cPointer(), (C.uintptr_t)(units), minMargins.cPointer()) return newQPageLayout(ret) } @@ -83,13 +108,13 @@ func (this *QPageLayout) IsValid() bool { return (bool)(ret) } -func (this *QPageLayout) SetMode(mode uintptr) { +func (this *QPageLayout) SetMode(mode QPageLayout__Mode) { C.QPageLayout_SetMode(this.h, (C.uintptr_t)(mode)) } -func (this *QPageLayout) Mode() uintptr { +func (this *QPageLayout) Mode() QPageLayout__Mode { ret := C.QPageLayout_Mode(this.h) - return (uintptr)(ret) + return (QPageLayout__Mode)(ret) } func (this *QPageLayout) SetPageSize(pageSize *QPageSize) { @@ -107,22 +132,22 @@ func (this *QPageLayout) PageSize() *QPageSize { return ret1 } -func (this *QPageLayout) SetOrientation(orientation uintptr) { +func (this *QPageLayout) SetOrientation(orientation QPageLayout__Orientation) { C.QPageLayout_SetOrientation(this.h, (C.uintptr_t)(orientation)) } -func (this *QPageLayout) Orientation() uintptr { +func (this *QPageLayout) Orientation() QPageLayout__Orientation { ret := C.QPageLayout_Orientation(this.h) - return (uintptr)(ret) + return (QPageLayout__Orientation)(ret) } -func (this *QPageLayout) SetUnits(units uintptr) { +func (this *QPageLayout) SetUnits(units QPageLayout__Unit) { C.QPageLayout_SetUnits(this.h, (C.uintptr_t)(units)) } -func (this *QPageLayout) Units() uintptr { +func (this *QPageLayout) Units() QPageLayout__Unit { ret := C.QPageLayout_Units(this.h) - return (uintptr)(ret) + return (QPageLayout__Unit)(ret) } func (this *QPageLayout) SetMargins(margins *QMarginsF) bool { @@ -161,7 +186,7 @@ func (this *QPageLayout) Margins() *QMarginsF { return ret1 } -func (this *QPageLayout) MarginsWithUnits(units uintptr) *QMarginsF { +func (this *QPageLayout) MarginsWithUnits(units QPageLayout__Unit) *QMarginsF { ret := C.QPageLayout_MarginsWithUnits(this.h, (C.uintptr_t)(units)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQMarginsF(ret) @@ -231,7 +256,7 @@ func (this *QPageLayout) FullRect() *QRectF { return ret1 } -func (this *QPageLayout) FullRectWithUnits(units uintptr) *QRectF { +func (this *QPageLayout) FullRectWithUnits(units QPageLayout__Unit) *QRectF { ret := C.QPageLayout_FullRectWithUnits(this.h, (C.uintptr_t)(units)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRectF(ret) @@ -275,7 +300,7 @@ func (this *QPageLayout) PaintRect() *QRectF { return ret1 } -func (this *QPageLayout) PaintRectWithUnits(units uintptr) *QRectF { +func (this *QPageLayout) PaintRectWithUnits(units QPageLayout__Unit) *QRectF { ret := C.QPageLayout_PaintRectWithUnits(this.h, (C.uintptr_t)(units)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRectF(ret) diff --git a/qt/gen_qpagesize.go b/qt/gen_qpagesize.go index 1d48917d..a061ce38 100644 --- a/qt/gen_qpagesize.go +++ b/qt/gen_qpagesize.go @@ -13,6 +13,157 @@ import ( "unsafe" ) +type QPageSize__PageSizeId int + +const ( + QPageSize__PageSizeId__A4 QPageSize__PageSizeId = 0 + QPageSize__PageSizeId__B5 QPageSize__PageSizeId = 1 + QPageSize__PageSizeId__Letter QPageSize__PageSizeId = 2 + QPageSize__PageSizeId__Legal QPageSize__PageSizeId = 3 + QPageSize__PageSizeId__Executive QPageSize__PageSizeId = 4 + QPageSize__PageSizeId__A0 QPageSize__PageSizeId = 5 + QPageSize__PageSizeId__A1 QPageSize__PageSizeId = 6 + QPageSize__PageSizeId__A2 QPageSize__PageSizeId = 7 + QPageSize__PageSizeId__A3 QPageSize__PageSizeId = 8 + QPageSize__PageSizeId__A5 QPageSize__PageSizeId = 9 + QPageSize__PageSizeId__A6 QPageSize__PageSizeId = 10 + QPageSize__PageSizeId__A7 QPageSize__PageSizeId = 11 + QPageSize__PageSizeId__A8 QPageSize__PageSizeId = 12 + QPageSize__PageSizeId__A9 QPageSize__PageSizeId = 13 + QPageSize__PageSizeId__B0 QPageSize__PageSizeId = 14 + QPageSize__PageSizeId__B1 QPageSize__PageSizeId = 15 + QPageSize__PageSizeId__B10 QPageSize__PageSizeId = 16 + QPageSize__PageSizeId__B2 QPageSize__PageSizeId = 17 + QPageSize__PageSizeId__B3 QPageSize__PageSizeId = 18 + QPageSize__PageSizeId__B4 QPageSize__PageSizeId = 19 + QPageSize__PageSizeId__B6 QPageSize__PageSizeId = 20 + QPageSize__PageSizeId__B7 QPageSize__PageSizeId = 21 + QPageSize__PageSizeId__B8 QPageSize__PageSizeId = 22 + QPageSize__PageSizeId__B9 QPageSize__PageSizeId = 23 + QPageSize__PageSizeId__C5E QPageSize__PageSizeId = 24 + QPageSize__PageSizeId__Comm10E QPageSize__PageSizeId = 25 + QPageSize__PageSizeId__DLE QPageSize__PageSizeId = 26 + QPageSize__PageSizeId__Folio QPageSize__PageSizeId = 27 + QPageSize__PageSizeId__Ledger QPageSize__PageSizeId = 28 + QPageSize__PageSizeId__Tabloid QPageSize__PageSizeId = 29 + QPageSize__PageSizeId__Custom QPageSize__PageSizeId = 30 + QPageSize__PageSizeId__A10 QPageSize__PageSizeId = 31 + QPageSize__PageSizeId__A3Extra QPageSize__PageSizeId = 32 + QPageSize__PageSizeId__A4Extra QPageSize__PageSizeId = 33 + QPageSize__PageSizeId__A4Plus QPageSize__PageSizeId = 34 + QPageSize__PageSizeId__A4Small QPageSize__PageSizeId = 35 + QPageSize__PageSizeId__A5Extra QPageSize__PageSizeId = 36 + QPageSize__PageSizeId__B5Extra QPageSize__PageSizeId = 37 + QPageSize__PageSizeId__JisB0 QPageSize__PageSizeId = 38 + QPageSize__PageSizeId__JisB1 QPageSize__PageSizeId = 39 + QPageSize__PageSizeId__JisB2 QPageSize__PageSizeId = 40 + QPageSize__PageSizeId__JisB3 QPageSize__PageSizeId = 41 + QPageSize__PageSizeId__JisB4 QPageSize__PageSizeId = 42 + QPageSize__PageSizeId__JisB5 QPageSize__PageSizeId = 43 + QPageSize__PageSizeId__JisB6 QPageSize__PageSizeId = 44 + QPageSize__PageSizeId__JisB7 QPageSize__PageSizeId = 45 + QPageSize__PageSizeId__JisB8 QPageSize__PageSizeId = 46 + QPageSize__PageSizeId__JisB9 QPageSize__PageSizeId = 47 + QPageSize__PageSizeId__JisB10 QPageSize__PageSizeId = 48 + QPageSize__PageSizeId__AnsiC QPageSize__PageSizeId = 49 + QPageSize__PageSizeId__AnsiD QPageSize__PageSizeId = 50 + QPageSize__PageSizeId__AnsiE QPageSize__PageSizeId = 51 + QPageSize__PageSizeId__LegalExtra QPageSize__PageSizeId = 52 + QPageSize__PageSizeId__LetterExtra QPageSize__PageSizeId = 53 + QPageSize__PageSizeId__LetterPlus QPageSize__PageSizeId = 54 + QPageSize__PageSizeId__LetterSmall QPageSize__PageSizeId = 55 + QPageSize__PageSizeId__TabloidExtra QPageSize__PageSizeId = 56 + QPageSize__PageSizeId__ArchA QPageSize__PageSizeId = 57 + QPageSize__PageSizeId__ArchB QPageSize__PageSizeId = 58 + QPageSize__PageSizeId__ArchC QPageSize__PageSizeId = 59 + QPageSize__PageSizeId__ArchD QPageSize__PageSizeId = 60 + QPageSize__PageSizeId__ArchE QPageSize__PageSizeId = 61 + QPageSize__PageSizeId__Imperial7x9 QPageSize__PageSizeId = 62 + QPageSize__PageSizeId__Imperial8x10 QPageSize__PageSizeId = 63 + QPageSize__PageSizeId__Imperial9x11 QPageSize__PageSizeId = 64 + QPageSize__PageSizeId__Imperial9x12 QPageSize__PageSizeId = 65 + QPageSize__PageSizeId__Imperial10x11 QPageSize__PageSizeId = 66 + QPageSize__PageSizeId__Imperial10x13 QPageSize__PageSizeId = 67 + QPageSize__PageSizeId__Imperial10x14 QPageSize__PageSizeId = 68 + QPageSize__PageSizeId__Imperial12x11 QPageSize__PageSizeId = 69 + QPageSize__PageSizeId__Imperial15x11 QPageSize__PageSizeId = 70 + QPageSize__PageSizeId__ExecutiveStandard QPageSize__PageSizeId = 71 + QPageSize__PageSizeId__Note QPageSize__PageSizeId = 72 + QPageSize__PageSizeId__Quarto QPageSize__PageSizeId = 73 + QPageSize__PageSizeId__Statement QPageSize__PageSizeId = 74 + QPageSize__PageSizeId__SuperA QPageSize__PageSizeId = 75 + QPageSize__PageSizeId__SuperB QPageSize__PageSizeId = 76 + QPageSize__PageSizeId__Postcard QPageSize__PageSizeId = 77 + QPageSize__PageSizeId__DoublePostcard QPageSize__PageSizeId = 78 + QPageSize__PageSizeId__Prc16K QPageSize__PageSizeId = 79 + QPageSize__PageSizeId__Prc32K QPageSize__PageSizeId = 80 + QPageSize__PageSizeId__Prc32KBig QPageSize__PageSizeId = 81 + QPageSize__PageSizeId__FanFoldUS QPageSize__PageSizeId = 82 + QPageSize__PageSizeId__FanFoldGerman QPageSize__PageSizeId = 83 + QPageSize__PageSizeId__FanFoldGermanLegal QPageSize__PageSizeId = 84 + QPageSize__PageSizeId__EnvelopeB4 QPageSize__PageSizeId = 85 + QPageSize__PageSizeId__EnvelopeB5 QPageSize__PageSizeId = 86 + QPageSize__PageSizeId__EnvelopeB6 QPageSize__PageSizeId = 87 + QPageSize__PageSizeId__EnvelopeC0 QPageSize__PageSizeId = 88 + QPageSize__PageSizeId__EnvelopeC1 QPageSize__PageSizeId = 89 + QPageSize__PageSizeId__EnvelopeC2 QPageSize__PageSizeId = 90 + QPageSize__PageSizeId__EnvelopeC3 QPageSize__PageSizeId = 91 + QPageSize__PageSizeId__EnvelopeC4 QPageSize__PageSizeId = 92 + QPageSize__PageSizeId__EnvelopeC6 QPageSize__PageSizeId = 93 + QPageSize__PageSizeId__EnvelopeC65 QPageSize__PageSizeId = 94 + QPageSize__PageSizeId__EnvelopeC7 QPageSize__PageSizeId = 95 + QPageSize__PageSizeId__Envelope9 QPageSize__PageSizeId = 96 + QPageSize__PageSizeId__Envelope11 QPageSize__PageSizeId = 97 + QPageSize__PageSizeId__Envelope12 QPageSize__PageSizeId = 98 + QPageSize__PageSizeId__Envelope14 QPageSize__PageSizeId = 99 + QPageSize__PageSizeId__EnvelopeMonarch QPageSize__PageSizeId = 100 + QPageSize__PageSizeId__EnvelopePersonal QPageSize__PageSizeId = 101 + QPageSize__PageSizeId__EnvelopeChou3 QPageSize__PageSizeId = 102 + QPageSize__PageSizeId__EnvelopeChou4 QPageSize__PageSizeId = 103 + QPageSize__PageSizeId__EnvelopeInvite QPageSize__PageSizeId = 104 + QPageSize__PageSizeId__EnvelopeItalian QPageSize__PageSizeId = 105 + QPageSize__PageSizeId__EnvelopeKaku2 QPageSize__PageSizeId = 106 + QPageSize__PageSizeId__EnvelopeKaku3 QPageSize__PageSizeId = 107 + QPageSize__PageSizeId__EnvelopePrc1 QPageSize__PageSizeId = 108 + QPageSize__PageSizeId__EnvelopePrc2 QPageSize__PageSizeId = 109 + QPageSize__PageSizeId__EnvelopePrc3 QPageSize__PageSizeId = 110 + QPageSize__PageSizeId__EnvelopePrc4 QPageSize__PageSizeId = 111 + QPageSize__PageSizeId__EnvelopePrc5 QPageSize__PageSizeId = 112 + QPageSize__PageSizeId__EnvelopePrc6 QPageSize__PageSizeId = 113 + QPageSize__PageSizeId__EnvelopePrc7 QPageSize__PageSizeId = 114 + QPageSize__PageSizeId__EnvelopePrc8 QPageSize__PageSizeId = 115 + QPageSize__PageSizeId__EnvelopePrc9 QPageSize__PageSizeId = 116 + QPageSize__PageSizeId__EnvelopePrc10 QPageSize__PageSizeId = 117 + QPageSize__PageSizeId__EnvelopeYou4 QPageSize__PageSizeId = 118 + QPageSize__PageSizeId__LastPageSize QPageSize__PageSizeId = 118 + QPageSize__PageSizeId__NPageSize QPageSize__PageSizeId = 118 + QPageSize__PageSizeId__NPaperSize QPageSize__PageSizeId = 118 + QPageSize__PageSizeId__AnsiA QPageSize__PageSizeId = 2 + QPageSize__PageSizeId__AnsiB QPageSize__PageSizeId = 28 + QPageSize__PageSizeId__EnvelopeC5 QPageSize__PageSizeId = 24 + QPageSize__PageSizeId__EnvelopeDL QPageSize__PageSizeId = 26 + QPageSize__PageSizeId__Envelope10 QPageSize__PageSizeId = 25 +) + +type QPageSize__Unit int + +const ( + QPageSize__Unit__Millimeter QPageSize__Unit = 0 + QPageSize__Unit__Point QPageSize__Unit = 1 + QPageSize__Unit__Inch QPageSize__Unit = 2 + QPageSize__Unit__Pica QPageSize__Unit = 3 + QPageSize__Unit__Didot QPageSize__Unit = 4 + QPageSize__Unit__Cicero QPageSize__Unit = 5 +) + +type QPageSize__SizeMatchPolicy int + +const ( + QPageSize__SizeMatchPolicy__FuzzyMatch QPageSize__SizeMatchPolicy = 0 + QPageSize__SizeMatchPolicy__FuzzyOrientationMatch QPageSize__SizeMatchPolicy = 1 + QPageSize__SizeMatchPolicy__ExactMatch QPageSize__SizeMatchPolicy = 2 +) + type QPageSize struct { h *C.QPageSize } @@ -42,7 +193,7 @@ func NewQPageSize() *QPageSize { } // NewQPageSize2 constructs a new QPageSize object. -func NewQPageSize2(pageSizeId uintptr) *QPageSize { +func NewQPageSize2(pageSizeId QPageSize__PageSizeId) *QPageSize { ret := C.QPageSize_new2((C.uintptr_t)(pageSizeId)) return newQPageSize(ret) } @@ -54,7 +205,7 @@ func NewQPageSize3(pointSize *QSize) *QPageSize { } // NewQPageSize4 constructs a new QPageSize object. -func NewQPageSize4(size *QSizeF, units uintptr) *QPageSize { +func NewQPageSize4(size *QSizeF, units QPageSize__Unit) *QPageSize { ret := C.QPageSize_new4(size.cPointer(), (C.uintptr_t)(units)) return newQPageSize(ret) } @@ -74,7 +225,7 @@ func NewQPageSize6(pointSize *QSize, name string) *QPageSize { } // NewQPageSize7 constructs a new QPageSize object. -func NewQPageSize7(pointSize *QSize, name string, matchPolicy uintptr) *QPageSize { +func NewQPageSize7(pointSize *QSize, name string, matchPolicy QPageSize__SizeMatchPolicy) *QPageSize { name_Cstring := C.CString(name) defer C.free(unsafe.Pointer(name_Cstring)) ret := C.QPageSize_new7(pointSize.cPointer(), name_Cstring, C.size_t(len(name)), (C.uintptr_t)(matchPolicy)) @@ -82,7 +233,7 @@ func NewQPageSize7(pointSize *QSize, name string, matchPolicy uintptr) *QPageSiz } // NewQPageSize8 constructs a new QPageSize object. -func NewQPageSize8(size *QSizeF, units uintptr, name string) *QPageSize { +func NewQPageSize8(size *QSizeF, units QPageSize__Unit, name string) *QPageSize { name_Cstring := C.CString(name) defer C.free(unsafe.Pointer(name_Cstring)) ret := C.QPageSize_new8(size.cPointer(), (C.uintptr_t)(units), name_Cstring, C.size_t(len(name))) @@ -90,7 +241,7 @@ func NewQPageSize8(size *QSizeF, units uintptr, name string) *QPageSize { } // NewQPageSize9 constructs a new QPageSize object. -func NewQPageSize9(size *QSizeF, units uintptr, name string, matchPolicy uintptr) *QPageSize { +func NewQPageSize9(size *QSizeF, units QPageSize__Unit, name string, matchPolicy QPageSize__SizeMatchPolicy) *QPageSize { name_Cstring := C.CString(name) defer C.free(unsafe.Pointer(name_Cstring)) ret := C.QPageSize_new9(size.cPointer(), (C.uintptr_t)(units), name_Cstring, C.size_t(len(name)), (C.uintptr_t)(matchPolicy)) @@ -133,9 +284,9 @@ func (this *QPageSize) Name() string { return ret } -func (this *QPageSize) Id() uintptr { +func (this *QPageSize) Id() QPageSize__PageSizeId { ret := C.QPageSize_Id(this.h) - return (uintptr)(ret) + return (QPageSize__PageSizeId)(ret) } func (this *QPageSize) WindowsId() int { @@ -154,12 +305,12 @@ func (this *QPageSize) DefinitionSize() *QSizeF { return ret1 } -func (this *QPageSize) DefinitionUnits() uintptr { +func (this *QPageSize) DefinitionUnits() QPageSize__Unit { ret := C.QPageSize_DefinitionUnits(this.h) - return (uintptr)(ret) + return (QPageSize__Unit)(ret) } -func (this *QPageSize) Size(units uintptr) *QSizeF { +func (this *QPageSize) Size(units QPageSize__Unit) *QSizeF { ret := C.QPageSize_Size(this.h, (C.uintptr_t)(units)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSizeF(ret) @@ -192,7 +343,7 @@ func (this *QPageSize) SizePixels(resolution int) *QSize { return ret1 } -func (this *QPageSize) Rect(units uintptr) *QRectF { +func (this *QPageSize) Rect(units QPageSize__Unit) *QRectF { ret := C.QPageSize_Rect(this.h, (C.uintptr_t)(units)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRectF(ret) @@ -225,7 +376,7 @@ func (this *QPageSize) RectPixels(resolution int) *QRect { return ret1 } -func QPageSize_KeyWithPageSizeId(pageSizeId uintptr) string { +func QPageSize_KeyWithPageSizeId(pageSizeId QPageSize__PageSizeId) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QPageSize_KeyWithPageSizeId((C.uintptr_t)(pageSizeId), &_out, &_out_Strlen) @@ -234,7 +385,7 @@ func QPageSize_KeyWithPageSizeId(pageSizeId uintptr) string { return ret } -func QPageSize_NameWithPageSizeId(pageSizeId uintptr) string { +func QPageSize_NameWithPageSizeId(pageSizeId QPageSize__PageSizeId) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QPageSize_NameWithPageSizeId((C.uintptr_t)(pageSizeId), &_out, &_out_Strlen) @@ -243,27 +394,27 @@ func QPageSize_NameWithPageSizeId(pageSizeId uintptr) string { return ret } -func QPageSize_IdWithPointSize(pointSize *QSize) uintptr { +func QPageSize_IdWithPointSize(pointSize *QSize) QPageSize__PageSizeId { ret := C.QPageSize_IdWithPointSize(pointSize.cPointer()) - return (uintptr)(ret) + return (QPageSize__PageSizeId)(ret) } -func QPageSize_Id2(size *QSizeF, units uintptr) uintptr { +func QPageSize_Id2(size *QSizeF, units QPageSize__Unit) QPageSize__PageSizeId { ret := C.QPageSize_Id2(size.cPointer(), (C.uintptr_t)(units)) - return (uintptr)(ret) + return (QPageSize__PageSizeId)(ret) } -func QPageSize_IdWithWindowsId(windowsId int) uintptr { +func QPageSize_IdWithWindowsId(windowsId int) QPageSize__PageSizeId { ret := C.QPageSize_IdWithWindowsId((C.int)(windowsId)) - return (uintptr)(ret) + return (QPageSize__PageSizeId)(ret) } -func QPageSize_WindowsIdWithPageSizeId(pageSizeId uintptr) int { +func QPageSize_WindowsIdWithPageSizeId(pageSizeId QPageSize__PageSizeId) int { ret := C.QPageSize_WindowsIdWithPageSizeId((C.uintptr_t)(pageSizeId)) return (int)(ret) } -func QPageSize_DefinitionSizeWithPageSizeId(pageSizeId uintptr) *QSizeF { +func QPageSize_DefinitionSizeWithPageSizeId(pageSizeId QPageSize__PageSizeId) *QSizeF { ret := C.QPageSize_DefinitionSizeWithPageSizeId((C.uintptr_t)(pageSizeId)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSizeF(ret) @@ -274,12 +425,12 @@ func QPageSize_DefinitionSizeWithPageSizeId(pageSizeId uintptr) *QSizeF { return ret1 } -func QPageSize_DefinitionUnitsWithPageSizeId(pageSizeId uintptr) uintptr { +func QPageSize_DefinitionUnitsWithPageSizeId(pageSizeId QPageSize__PageSizeId) QPageSize__Unit { ret := C.QPageSize_DefinitionUnitsWithPageSizeId((C.uintptr_t)(pageSizeId)) - return (uintptr)(ret) + return (QPageSize__Unit)(ret) } -func QPageSize_Size2(pageSizeId uintptr, units uintptr) *QSizeF { +func QPageSize_Size2(pageSizeId QPageSize__PageSizeId, units QPageSize__Unit) *QSizeF { ret := C.QPageSize_Size2((C.uintptr_t)(pageSizeId), (C.uintptr_t)(units)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSizeF(ret) @@ -290,7 +441,7 @@ func QPageSize_Size2(pageSizeId uintptr, units uintptr) *QSizeF { return ret1 } -func QPageSize_SizePointsWithPageSizeId(pageSizeId uintptr) *QSize { +func QPageSize_SizePointsWithPageSizeId(pageSizeId QPageSize__PageSizeId) *QSize { ret := C.QPageSize_SizePointsWithPageSizeId((C.uintptr_t)(pageSizeId)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSize(ret) @@ -301,7 +452,7 @@ func QPageSize_SizePointsWithPageSizeId(pageSizeId uintptr) *QSize { return ret1 } -func QPageSize_SizePixels2(pageSizeId uintptr, resolution int) *QSize { +func QPageSize_SizePixels2(pageSizeId QPageSize__PageSizeId, resolution int) *QSize { ret := C.QPageSize_SizePixels2((C.uintptr_t)(pageSizeId), (C.int)(resolution)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSize(ret) @@ -312,14 +463,14 @@ func QPageSize_SizePixels2(pageSizeId uintptr, resolution int) *QSize { return ret1 } -func QPageSize_Id22(pointSize *QSize, matchPolicy uintptr) uintptr { +func QPageSize_Id22(pointSize *QSize, matchPolicy QPageSize__SizeMatchPolicy) QPageSize__PageSizeId { ret := C.QPageSize_Id22(pointSize.cPointer(), (C.uintptr_t)(matchPolicy)) - return (uintptr)(ret) + return (QPageSize__PageSizeId)(ret) } -func QPageSize_Id3(size *QSizeF, units uintptr, matchPolicy uintptr) uintptr { +func QPageSize_Id3(size *QSizeF, units QPageSize__Unit, matchPolicy QPageSize__SizeMatchPolicy) QPageSize__PageSizeId { ret := C.QPageSize_Id3(size.cPointer(), (C.uintptr_t)(units), (C.uintptr_t)(matchPolicy)) - return (uintptr)(ret) + return (QPageSize__PageSizeId)(ret) } func (this *QPageSize) Delete() { diff --git a/qt/gen_qpaintdevice.go b/qt/gen_qpaintdevice.go index af44a3fb..85da055b 100644 --- a/qt/gen_qpaintdevice.go +++ b/qt/gen_qpaintdevice.go @@ -12,6 +12,23 @@ import ( "unsafe" ) +type QPaintDevice__PaintDeviceMetric int + +const ( + QPaintDevice__PaintDeviceMetric__PdmWidth QPaintDevice__PaintDeviceMetric = 1 + QPaintDevice__PaintDeviceMetric__PdmHeight QPaintDevice__PaintDeviceMetric = 2 + QPaintDevice__PaintDeviceMetric__PdmWidthMM QPaintDevice__PaintDeviceMetric = 3 + QPaintDevice__PaintDeviceMetric__PdmHeightMM QPaintDevice__PaintDeviceMetric = 4 + QPaintDevice__PaintDeviceMetric__PdmNumColors QPaintDevice__PaintDeviceMetric = 5 + QPaintDevice__PaintDeviceMetric__PdmDepth QPaintDevice__PaintDeviceMetric = 6 + QPaintDevice__PaintDeviceMetric__PdmDpiX QPaintDevice__PaintDeviceMetric = 7 + QPaintDevice__PaintDeviceMetric__PdmDpiY QPaintDevice__PaintDeviceMetric = 8 + QPaintDevice__PaintDeviceMetric__PdmPhysicalDpiX QPaintDevice__PaintDeviceMetric = 9 + QPaintDevice__PaintDeviceMetric__PdmPhysicalDpiY QPaintDevice__PaintDeviceMetric = 10 + QPaintDevice__PaintDeviceMetric__PdmDevicePixelRatio QPaintDevice__PaintDeviceMetric = 11 + QPaintDevice__PaintDeviceMetric__PdmDevicePixelRatioScaled QPaintDevice__PaintDeviceMetric = 12 +) + type QPaintDevice struct { h *C.QPaintDevice } diff --git a/qt/gen_qpaintengine.go b/qt/gen_qpaintengine.go index 946b7952..5636c520 100644 --- a/qt/gen_qpaintengine.go +++ b/qt/gen_qpaintengine.go @@ -13,6 +13,94 @@ import ( "unsafe" ) +type QTextItem__RenderFlag int + +const ( + QTextItem__RenderFlag__RightToLeft QTextItem__RenderFlag = 1 + QTextItem__RenderFlag__Overline QTextItem__RenderFlag = 16 + QTextItem__RenderFlag__Underline QTextItem__RenderFlag = 32 + QTextItem__RenderFlag__StrikeOut QTextItem__RenderFlag = 64 + QTextItem__RenderFlag__Dummy QTextItem__RenderFlag = 4294967295 +) + +type QPaintEngine__PaintEngineFeature int + +const ( + QPaintEngine__PaintEngineFeature__PrimitiveTransform QPaintEngine__PaintEngineFeature = 1 + QPaintEngine__PaintEngineFeature__PatternTransform QPaintEngine__PaintEngineFeature = 2 + QPaintEngine__PaintEngineFeature__PixmapTransform QPaintEngine__PaintEngineFeature = 4 + QPaintEngine__PaintEngineFeature__PatternBrush QPaintEngine__PaintEngineFeature = 8 + QPaintEngine__PaintEngineFeature__LinearGradientFill QPaintEngine__PaintEngineFeature = 16 + QPaintEngine__PaintEngineFeature__RadialGradientFill QPaintEngine__PaintEngineFeature = 32 + QPaintEngine__PaintEngineFeature__ConicalGradientFill QPaintEngine__PaintEngineFeature = 64 + QPaintEngine__PaintEngineFeature__AlphaBlend QPaintEngine__PaintEngineFeature = 128 + QPaintEngine__PaintEngineFeature__PorterDuff QPaintEngine__PaintEngineFeature = 256 + QPaintEngine__PaintEngineFeature__PainterPaths QPaintEngine__PaintEngineFeature = 512 + QPaintEngine__PaintEngineFeature__Antialiasing QPaintEngine__PaintEngineFeature = 1024 + QPaintEngine__PaintEngineFeature__BrushStroke QPaintEngine__PaintEngineFeature = 2048 + QPaintEngine__PaintEngineFeature__ConstantOpacity QPaintEngine__PaintEngineFeature = 4096 + QPaintEngine__PaintEngineFeature__MaskedBrush QPaintEngine__PaintEngineFeature = 8192 + QPaintEngine__PaintEngineFeature__PerspectiveTransform QPaintEngine__PaintEngineFeature = 16384 + QPaintEngine__PaintEngineFeature__BlendModes QPaintEngine__PaintEngineFeature = 32768 + QPaintEngine__PaintEngineFeature__ObjectBoundingModeGradients QPaintEngine__PaintEngineFeature = 65536 + QPaintEngine__PaintEngineFeature__RasterOpModes QPaintEngine__PaintEngineFeature = 131072 + QPaintEngine__PaintEngineFeature__PaintOutsidePaintEvent QPaintEngine__PaintEngineFeature = 536870912 + QPaintEngine__PaintEngineFeature__AllFeatures QPaintEngine__PaintEngineFeature = 4294967295 +) + +type QPaintEngine__DirtyFlag int + +const ( + QPaintEngine__DirtyFlag__DirtyPen QPaintEngine__DirtyFlag = 1 + QPaintEngine__DirtyFlag__DirtyBrush QPaintEngine__DirtyFlag = 2 + QPaintEngine__DirtyFlag__DirtyBrushOrigin QPaintEngine__DirtyFlag = 4 + QPaintEngine__DirtyFlag__DirtyFont QPaintEngine__DirtyFlag = 8 + QPaintEngine__DirtyFlag__DirtyBackground QPaintEngine__DirtyFlag = 16 + QPaintEngine__DirtyFlag__DirtyBackgroundMode QPaintEngine__DirtyFlag = 32 + QPaintEngine__DirtyFlag__DirtyTransform QPaintEngine__DirtyFlag = 64 + QPaintEngine__DirtyFlag__DirtyClipRegion QPaintEngine__DirtyFlag = 128 + QPaintEngine__DirtyFlag__DirtyClipPath QPaintEngine__DirtyFlag = 256 + QPaintEngine__DirtyFlag__DirtyHints QPaintEngine__DirtyFlag = 512 + QPaintEngine__DirtyFlag__DirtyCompositionMode QPaintEngine__DirtyFlag = 1024 + QPaintEngine__DirtyFlag__DirtyClipEnabled QPaintEngine__DirtyFlag = 2048 + QPaintEngine__DirtyFlag__DirtyOpacity QPaintEngine__DirtyFlag = 4096 + QPaintEngine__DirtyFlag__AllDirty QPaintEngine__DirtyFlag = 65535 +) + +type QPaintEngine__PolygonDrawMode int + +const ( + QPaintEngine__PolygonDrawMode__OddEvenMode QPaintEngine__PolygonDrawMode = 0 + QPaintEngine__PolygonDrawMode__WindingMode QPaintEngine__PolygonDrawMode = 1 + QPaintEngine__PolygonDrawMode__ConvexMode QPaintEngine__PolygonDrawMode = 2 + QPaintEngine__PolygonDrawMode__PolylineMode QPaintEngine__PolygonDrawMode = 3 +) + +type QPaintEngine__Type int + +const ( + QPaintEngine__Type__X11 QPaintEngine__Type = 0 + QPaintEngine__Type__Windows QPaintEngine__Type = 1 + QPaintEngine__Type__QuickDraw QPaintEngine__Type = 2 + QPaintEngine__Type__CoreGraphics QPaintEngine__Type = 3 + QPaintEngine__Type__MacPrinter QPaintEngine__Type = 4 + QPaintEngine__Type__QWindowSystem QPaintEngine__Type = 5 + QPaintEngine__Type__PostScript QPaintEngine__Type = 6 + QPaintEngine__Type__OpenGL QPaintEngine__Type = 7 + QPaintEngine__Type__Picture QPaintEngine__Type = 8 + QPaintEngine__Type__SVG QPaintEngine__Type = 9 + QPaintEngine__Type__Raster QPaintEngine__Type = 10 + QPaintEngine__Type__Direct3D QPaintEngine__Type = 11 + QPaintEngine__Type__Pdf QPaintEngine__Type = 12 + QPaintEngine__Type__OpenVG QPaintEngine__Type = 13 + QPaintEngine__Type__OpenGL2 QPaintEngine__Type = 14 + QPaintEngine__Type__PaintBuffer QPaintEngine__Type = 15 + QPaintEngine__Type__Blitter QPaintEngine__Type = 16 + QPaintEngine__Type__Direct2D QPaintEngine__Type = 17 + QPaintEngine__Type__User QPaintEngine__Type = 50 + QPaintEngine__Type__MaxUser QPaintEngine__Type = 100 +) + type QTextItem struct { h *C.QTextItem } @@ -160,11 +248,11 @@ func (this *QPaintEngine) DrawPoints2(points *QPoint, pointCount int) { C.QPaintEngine_DrawPoints2(this.h, points.cPointer(), (C.int)(pointCount)) } -func (this *QPaintEngine) DrawPolygon(points *QPointF, pointCount int, mode uintptr) { +func (this *QPaintEngine) DrawPolygon(points *QPointF, pointCount int, mode QPaintEngine__PolygonDrawMode) { C.QPaintEngine_DrawPolygon(this.h, points.cPointer(), (C.int)(pointCount), (C.uintptr_t)(mode)) } -func (this *QPaintEngine) DrawPolygon2(points *QPoint, pointCount int, mode uintptr) { +func (this *QPaintEngine) DrawPolygon2(points *QPoint, pointCount int, mode QPaintEngine__PolygonDrawMode) { C.QPaintEngine_DrawPolygon2(this.h, points.cPointer(), (C.int)(pointCount), (C.uintptr_t)(mode)) } @@ -234,9 +322,9 @@ func (this *QPaintEngine) CoordinateOffset() *QPoint { return ret1 } -func (this *QPaintEngine) Type() uintptr { +func (this *QPaintEngine) Type() QPaintEngine__Type { ret := C.QPaintEngine_Type(this.h) - return (uintptr)(ret) + return (QPaintEngine__Type)(ret) } func (this *QPaintEngine) FixNegRect(x *int, y *int, w *int, h *int) { @@ -354,9 +442,9 @@ func (this *QPaintEngineState) BackgroundBrush() *QBrush { return ret1 } -func (this *QPaintEngineState) BackgroundMode() uintptr { +func (this *QPaintEngineState) BackgroundMode() BGMode { ret := C.QPaintEngineState_BackgroundMode(this.h) - return (uintptr)(ret) + return (BGMode)(ret) } func (this *QPaintEngineState) Font() *QFont { @@ -392,9 +480,9 @@ func (this *QPaintEngineState) Transform() *QTransform { return ret1 } -func (this *QPaintEngineState) ClipOperation() uintptr { +func (this *QPaintEngineState) ClipOperation() ClipOperation { ret := C.QPaintEngineState_ClipOperation(this.h) - return (uintptr)(ret) + return (ClipOperation)(ret) } func (this *QPaintEngineState) ClipRegion() *QRegion { @@ -429,9 +517,9 @@ func (this *QPaintEngineState) RenderHints() int { return (int)(ret) } -func (this *QPaintEngineState) CompositionMode() uintptr { +func (this *QPaintEngineState) CompositionMode() QPainter__CompositionMode { ret := C.QPaintEngineState_CompositionMode(this.h) - return (uintptr)(ret) + return (QPainter__CompositionMode)(ret) } func (this *QPaintEngineState) Opacity() float64 { diff --git a/qt/gen_qpainter.go b/qt/gen_qpainter.go index 95989093..0e942414 100644 --- a/qt/gen_qpainter.go +++ b/qt/gen_qpainter.go @@ -13,6 +13,67 @@ import ( "unsafe" ) +type QPainter__RenderHint int + +const ( + QPainter__RenderHint__Antialiasing QPainter__RenderHint = 1 + QPainter__RenderHint__TextAntialiasing QPainter__RenderHint = 2 + QPainter__RenderHint__SmoothPixmapTransform QPainter__RenderHint = 4 + QPainter__RenderHint__HighQualityAntialiasing QPainter__RenderHint = 8 + QPainter__RenderHint__NonCosmeticDefaultPen QPainter__RenderHint = 16 + QPainter__RenderHint__Qt4CompatiblePainting QPainter__RenderHint = 32 + QPainter__RenderHint__LosslessImageRendering QPainter__RenderHint = 64 +) + +type QPainter__PixmapFragmentHint int + +const ( + QPainter__PixmapFragmentHint__OpaqueHint QPainter__PixmapFragmentHint = 1 +) + +type QPainter__CompositionMode int + +const ( + QPainter__CompositionMode__CompositionMode_SourceOver QPainter__CompositionMode = 0 + QPainter__CompositionMode__CompositionMode_DestinationOver QPainter__CompositionMode = 1 + QPainter__CompositionMode__CompositionMode_Clear QPainter__CompositionMode = 2 + QPainter__CompositionMode__CompositionMode_Source QPainter__CompositionMode = 3 + QPainter__CompositionMode__CompositionMode_Destination QPainter__CompositionMode = 4 + QPainter__CompositionMode__CompositionMode_SourceIn QPainter__CompositionMode = 5 + QPainter__CompositionMode__CompositionMode_DestinationIn QPainter__CompositionMode = 6 + QPainter__CompositionMode__CompositionMode_SourceOut QPainter__CompositionMode = 7 + QPainter__CompositionMode__CompositionMode_DestinationOut QPainter__CompositionMode = 8 + QPainter__CompositionMode__CompositionMode_SourceAtop QPainter__CompositionMode = 9 + QPainter__CompositionMode__CompositionMode_DestinationAtop QPainter__CompositionMode = 10 + QPainter__CompositionMode__CompositionMode_Xor QPainter__CompositionMode = 11 + QPainter__CompositionMode__CompositionMode_Plus QPainter__CompositionMode = 12 + QPainter__CompositionMode__CompositionMode_Multiply QPainter__CompositionMode = 13 + QPainter__CompositionMode__CompositionMode_Screen QPainter__CompositionMode = 14 + QPainter__CompositionMode__CompositionMode_Overlay QPainter__CompositionMode = 15 + QPainter__CompositionMode__CompositionMode_Darken QPainter__CompositionMode = 16 + QPainter__CompositionMode__CompositionMode_Lighten QPainter__CompositionMode = 17 + QPainter__CompositionMode__CompositionMode_ColorDodge QPainter__CompositionMode = 18 + QPainter__CompositionMode__CompositionMode_ColorBurn QPainter__CompositionMode = 19 + QPainter__CompositionMode__CompositionMode_HardLight QPainter__CompositionMode = 20 + QPainter__CompositionMode__CompositionMode_SoftLight QPainter__CompositionMode = 21 + QPainter__CompositionMode__CompositionMode_Difference QPainter__CompositionMode = 22 + QPainter__CompositionMode__CompositionMode_Exclusion QPainter__CompositionMode = 23 + QPainter__CompositionMode__RasterOp_SourceOrDestination QPainter__CompositionMode = 24 + QPainter__CompositionMode__RasterOp_SourceAndDestination QPainter__CompositionMode = 25 + QPainter__CompositionMode__RasterOp_SourceXorDestination QPainter__CompositionMode = 26 + QPainter__CompositionMode__RasterOp_NotSourceAndNotDestination QPainter__CompositionMode = 27 + QPainter__CompositionMode__RasterOp_NotSourceOrNotDestination QPainter__CompositionMode = 28 + QPainter__CompositionMode__RasterOp_NotSourceXorDestination QPainter__CompositionMode = 29 + QPainter__CompositionMode__RasterOp_NotSource QPainter__CompositionMode = 30 + QPainter__CompositionMode__RasterOp_NotSourceAndDestination QPainter__CompositionMode = 31 + QPainter__CompositionMode__RasterOp_SourceAndNotDestination QPainter__CompositionMode = 32 + QPainter__CompositionMode__RasterOp_NotSourceOrDestination QPainter__CompositionMode = 33 + QPainter__CompositionMode__RasterOp_SourceOrNotDestination QPainter__CompositionMode = 34 + QPainter__CompositionMode__RasterOp_ClearDestination QPainter__CompositionMode = 35 + QPainter__CompositionMode__RasterOp_SetDestination QPainter__CompositionMode = 36 + QPainter__CompositionMode__RasterOp_NotDestination QPainter__CompositionMode = 37 +) + type QPainter struct { h *C.QPainter } @@ -71,13 +132,13 @@ func (this *QPainter) InitFrom(device *QPaintDevice) { C.QPainter_InitFrom(this.h, device.cPointer()) } -func (this *QPainter) SetCompositionMode(mode uintptr) { +func (this *QPainter) SetCompositionMode(mode QPainter__CompositionMode) { C.QPainter_SetCompositionMode(this.h, (C.uintptr_t)(mode)) } -func (this *QPainter) CompositionMode() uintptr { +func (this *QPainter) CompositionMode() QPainter__CompositionMode { ret := C.QPainter_CompositionMode(this.h) - return (uintptr)(ret) + return (QPainter__CompositionMode)(ret) } func (this *QPainter) Font() *QFont { @@ -119,7 +180,7 @@ func (this *QPainter) SetPenWithPen(pen *QPen) { C.QPainter_SetPenWithPen(this.h, pen.cPointer()) } -func (this *QPainter) SetPenWithStyle(style uintptr) { +func (this *QPainter) SetPenWithStyle(style PenStyle) { C.QPainter_SetPenWithStyle(this.h, (C.uintptr_t)(style)) } @@ -132,7 +193,7 @@ func (this *QPainter) SetBrush(brush *QBrush) { C.QPainter_SetBrush(this.h, brush.cPointer()) } -func (this *QPainter) SetBrushWithStyle(style uintptr) { +func (this *QPainter) SetBrushWithStyle(style BrushStyle) { C.QPainter_SetBrushWithStyle(this.h, (C.uintptr_t)(style)) } @@ -141,13 +202,13 @@ func (this *QPainter) Brush() *QBrush { return newQBrush_U(unsafe.Pointer(ret)) } -func (this *QPainter) SetBackgroundMode(mode uintptr) { +func (this *QPainter) SetBackgroundMode(mode BGMode) { C.QPainter_SetBackgroundMode(this.h, (C.uintptr_t)(mode)) } -func (this *QPainter) BackgroundMode() uintptr { +func (this *QPainter) BackgroundMode() BGMode { ret := C.QPainter_BackgroundMode(this.h) - return (uintptr)(ret) + return (BGMode)(ret) } func (this *QPainter) BrushOrigin() *QPoint { @@ -786,13 +847,13 @@ func (this *QPainter) DrawImage9(x int, y int, image *QImage) { C.QPainter_DrawImage9(this.h, (C.int)(x), (C.int)(y), image.cPointer()) } -func (this *QPainter) SetLayoutDirection(direction uintptr) { +func (this *QPainter) SetLayoutDirection(direction LayoutDirection) { C.QPainter_SetLayoutDirection(this.h, (C.uintptr_t)(direction)) } -func (this *QPainter) LayoutDirection() uintptr { +func (this *QPainter) LayoutDirection() LayoutDirection { ret := C.QPainter_LayoutDirection(this.h) - return (uintptr)(ret) + return (LayoutDirection)(ret) } func (this *QPainter) DrawGlyphRun(position *QPointF, glyphRun *QGlyphRun) { @@ -947,39 +1008,39 @@ func (this *QPainter) FillRect6(param1 *QRect, color *QColor) { C.QPainter_FillRect6(this.h, param1.cPointer(), color.cPointer()) } -func (this *QPainter) FillRect7(x int, y int, w int, h int, c uintptr) { +func (this *QPainter) FillRect7(x int, y int, w int, h int, c GlobalColor) { C.QPainter_FillRect7(this.h, (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), (C.uintptr_t)(c)) } -func (this *QPainter) FillRect8(r *QRect, c uintptr) { +func (this *QPainter) FillRect8(r *QRect, c GlobalColor) { C.QPainter_FillRect8(this.h, r.cPointer(), (C.uintptr_t)(c)) } -func (this *QPainter) FillRect9(r *QRectF, c uintptr) { +func (this *QPainter) FillRect9(r *QRectF, c GlobalColor) { C.QPainter_FillRect9(this.h, r.cPointer(), (C.uintptr_t)(c)) } -func (this *QPainter) FillRect10(x int, y int, w int, h int, style uintptr) { +func (this *QPainter) FillRect10(x int, y int, w int, h int, style BrushStyle) { C.QPainter_FillRect10(this.h, (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), (C.uintptr_t)(style)) } -func (this *QPainter) FillRect11(r *QRect, style uintptr) { +func (this *QPainter) FillRect11(r *QRect, style BrushStyle) { C.QPainter_FillRect11(this.h, r.cPointer(), (C.uintptr_t)(style)) } -func (this *QPainter) FillRect12(r *QRectF, style uintptr) { +func (this *QPainter) FillRect12(r *QRectF, style BrushStyle) { C.QPainter_FillRect12(this.h, r.cPointer(), (C.uintptr_t)(style)) } -func (this *QPainter) FillRect13(x int, y int, w int, h int, preset uintptr) { +func (this *QPainter) FillRect13(x int, y int, w int, h int, preset QGradient__Preset) { C.QPainter_FillRect13(this.h, (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), (C.uintptr_t)(preset)) } -func (this *QPainter) FillRect14(r *QRect, preset uintptr) { +func (this *QPainter) FillRect14(r *QRect, preset QGradient__Preset) { C.QPainter_FillRect14(this.h, r.cPointer(), (C.uintptr_t)(preset)) } -func (this *QPainter) FillRect15(r *QRectF, preset uintptr) { +func (this *QPainter) FillRect15(r *QRectF, preset QGradient__Preset) { C.QPainter_FillRect15(this.h, r.cPointer(), (C.uintptr_t)(preset)) } @@ -995,7 +1056,7 @@ func (this *QPainter) EraseRectWithQRect(param1 *QRect) { C.QPainter_EraseRectWithQRect(this.h, param1.cPointer()) } -func (this *QPainter) SetRenderHint(hint uintptr) { +func (this *QPainter) SetRenderHint(hint QPainter__RenderHint) { C.QPainter_SetRenderHint(this.h, (C.uintptr_t)(hint)) } @@ -1008,7 +1069,7 @@ func (this *QPainter) RenderHints() int { return (int)(ret) } -func (this *QPainter) TestRenderHint(hint uintptr) bool { +func (this *QPainter) TestRenderHint(hint QPainter__RenderHint) bool { ret := C.QPainter_TestRenderHint(this.h, (C.uintptr_t)(hint)) return (bool)(ret) } @@ -1039,23 +1100,23 @@ func (this *QPainter) EndNativePainting() { C.QPainter_EndNativePainting(this.h) } -func (this *QPainter) SetClipRect22(param1 *QRectF, op uintptr) { +func (this *QPainter) SetClipRect22(param1 *QRectF, op ClipOperation) { C.QPainter_SetClipRect22(this.h, param1.cPointer(), (C.uintptr_t)(op)) } -func (this *QPainter) SetClipRect23(param1 *QRect, op uintptr) { +func (this *QPainter) SetClipRect23(param1 *QRect, op ClipOperation) { C.QPainter_SetClipRect23(this.h, param1.cPointer(), (C.uintptr_t)(op)) } -func (this *QPainter) SetClipRect5(x int, y int, w int, h int, op uintptr) { +func (this *QPainter) SetClipRect5(x int, y int, w int, h int, op ClipOperation) { C.QPainter_SetClipRect5(this.h, (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), (C.uintptr_t)(op)) } -func (this *QPainter) SetClipRegion2(param1 *QRegion, op uintptr) { +func (this *QPainter) SetClipRegion2(param1 *QRegion, op ClipOperation) { C.QPainter_SetClipRegion2(this.h, param1.cPointer(), (C.uintptr_t)(op)) } -func (this *QPainter) SetClipPath2(path *QPainterPath, op uintptr) { +func (this *QPainter) SetClipPath2(path *QPainterPath, op ClipOperation) { C.QPainter_SetClipPath2(this.h, path.cPointer(), (C.uintptr_t)(op)) } @@ -1075,23 +1136,23 @@ func (this *QPainter) SetWorldTransform2(matrix *QTransform, combine bool) { C.QPainter_SetWorldTransform2(this.h, matrix.cPointer(), (C.bool)(combine)) } -func (this *QPainter) DrawPolygon32(points *QPointF, pointCount int, fillRule uintptr) { +func (this *QPainter) DrawPolygon32(points *QPointF, pointCount int, fillRule FillRule) { C.QPainter_DrawPolygon32(this.h, points.cPointer(), (C.int)(pointCount), (C.uintptr_t)(fillRule)) } -func (this *QPainter) DrawPolygon33(points *QPoint, pointCount int, fillRule uintptr) { +func (this *QPainter) DrawPolygon33(points *QPoint, pointCount int, fillRule FillRule) { C.QPainter_DrawPolygon33(this.h, points.cPointer(), (C.int)(pointCount), (C.uintptr_t)(fillRule)) } -func (this *QPainter) DrawRoundedRect4(rect *QRectF, xRadius float64, yRadius float64, mode uintptr) { +func (this *QPainter) DrawRoundedRect4(rect *QRectF, xRadius float64, yRadius float64, mode SizeMode) { C.QPainter_DrawRoundedRect4(this.h, rect.cPointer(), (C.double)(xRadius), (C.double)(yRadius), (C.uintptr_t)(mode)) } -func (this *QPainter) DrawRoundedRect7(x int, y int, w int, h int, xRadius float64, yRadius float64, mode uintptr) { +func (this *QPainter) DrawRoundedRect7(x int, y int, w int, h int, xRadius float64, yRadius float64, mode SizeMode) { C.QPainter_DrawRoundedRect7(this.h, (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), (C.double)(xRadius), (C.double)(yRadius), (C.uintptr_t)(mode)) } -func (this *QPainter) DrawRoundedRect42(rect *QRect, xRadius float64, yRadius float64, mode uintptr) { +func (this *QPainter) DrawRoundedRect42(rect *QRect, xRadius float64, yRadius float64, mode SizeMode) { C.QPainter_DrawRoundedRect42(this.h, rect.cPointer(), (C.double)(xRadius), (C.double)(yRadius), (C.uintptr_t)(mode)) } @@ -1212,7 +1273,7 @@ func (this *QPainter) BoundingRect32(rect *QRectF, text string, o *QTextOption) return ret1 } -func (this *QPainter) SetRenderHint2(hint uintptr, on bool) { +func (this *QPainter) SetRenderHint2(hint QPainter__RenderHint, on bool) { C.QPainter_SetRenderHint2(this.h, (C.uintptr_t)(hint), (C.bool)(on)) } diff --git a/qt/gen_qpainterpath.go b/qt/gen_qpainterpath.go index 6d090543..79cb75f0 100644 --- a/qt/gen_qpainterpath.go +++ b/qt/gen_qpainterpath.go @@ -13,6 +13,15 @@ import ( "unsafe" ) +type QPainterPath__ElementType int + +const ( + QPainterPath__ElementType__MoveToElement QPainterPath__ElementType = 0 + QPainterPath__ElementType__LineToElement QPainterPath__ElementType = 1 + QPainterPath__ElementType__CurveToElement QPainterPath__ElementType = 2 + QPainterPath__ElementType__CurveToDataElement QPainterPath__ElementType = 3 +) + type QPainterPath struct { h *C.QPainterPath } @@ -272,12 +281,12 @@ func (this *QPainterPath) ControlPointRect() *QRectF { return ret1 } -func (this *QPainterPath) FillRule() uintptr { +func (this *QPainterPath) FillRule() FillRule { ret := C.QPainterPath_FillRule(this.h) - return (uintptr)(ret) + return (FillRule)(ret) } -func (this *QPainterPath) SetFillRule(fillRule uintptr) { +func (this *QPainterPath) SetFillRule(fillRule FillRule) { C.QPainterPath_SetFillRule(this.h, (C.uintptr_t)(fillRule)) } @@ -485,11 +494,11 @@ func (this *QPainterPath) OperatorMinusAssign(other *QPainterPath) *QPainterPath return newQPainterPath_U(unsafe.Pointer(ret)) } -func (this *QPainterPath) AddRoundedRect4(rect *QRectF, xRadius float64, yRadius float64, mode uintptr) { +func (this *QPainterPath) AddRoundedRect4(rect *QRectF, xRadius float64, yRadius float64, mode SizeMode) { C.QPainterPath_AddRoundedRect4(this.h, rect.cPointer(), (C.double)(xRadius), (C.double)(yRadius), (C.uintptr_t)(mode)) } -func (this *QPainterPath) AddRoundedRect7(x float64, y float64, w float64, h float64, xRadius float64, yRadius float64, mode uintptr) { +func (this *QPainterPath) AddRoundedRect7(x float64, y float64, w float64, h float64, xRadius float64, yRadius float64, mode SizeMode) { C.QPainterPath_AddRoundedRect7(this.h, (C.double)(x), (C.double)(y), (C.double)(w), (C.double)(h), (C.double)(xRadius), (C.double)(yRadius), (C.uintptr_t)(mode)) } @@ -540,22 +549,22 @@ func (this *QPainterPathStroker) Width() float64 { return (float64)(ret) } -func (this *QPainterPathStroker) SetCapStyle(style uintptr) { +func (this *QPainterPathStroker) SetCapStyle(style PenCapStyle) { C.QPainterPathStroker_SetCapStyle(this.h, (C.uintptr_t)(style)) } -func (this *QPainterPathStroker) CapStyle() uintptr { +func (this *QPainterPathStroker) CapStyle() PenCapStyle { ret := C.QPainterPathStroker_CapStyle(this.h) - return (uintptr)(ret) + return (PenCapStyle)(ret) } -func (this *QPainterPathStroker) SetJoinStyle(style uintptr) { +func (this *QPainterPathStroker) SetJoinStyle(style PenJoinStyle) { C.QPainterPathStroker_SetJoinStyle(this.h, (C.uintptr_t)(style)) } -func (this *QPainterPathStroker) JoinStyle() uintptr { +func (this *QPainterPathStroker) JoinStyle() PenJoinStyle { ret := C.QPainterPathStroker_JoinStyle(this.h) - return (uintptr)(ret) + return (PenJoinStyle)(ret) } func (this *QPainterPathStroker) SetMiterLimit(length float64) { @@ -576,7 +585,7 @@ func (this *QPainterPathStroker) CurveThreshold() float64 { return (float64)(ret) } -func (this *QPainterPathStroker) SetDashPattern(dashPattern uintptr) { +func (this *QPainterPathStroker) SetDashPattern(dashPattern PenStyle) { C.QPainterPathStroker_SetDashPattern(this.h, (C.uintptr_t)(dashPattern)) } diff --git a/qt/gen_qpalette.go b/qt/gen_qpalette.go index c727a397..49064133 100644 --- a/qt/gen_qpalette.go +++ b/qt/gen_qpalette.go @@ -13,6 +13,47 @@ import ( "unsafe" ) +type QPalette__ColorGroup int + +const ( + QPalette__ColorGroup__Active QPalette__ColorGroup = 0 + QPalette__ColorGroup__Disabled QPalette__ColorGroup = 1 + QPalette__ColorGroup__Inactive QPalette__ColorGroup = 2 + QPalette__ColorGroup__NColorGroups QPalette__ColorGroup = 3 + QPalette__ColorGroup__Current QPalette__ColorGroup = 4 + QPalette__ColorGroup__All QPalette__ColorGroup = 5 + QPalette__ColorGroup__Normal QPalette__ColorGroup = 0 +) + +type QPalette__ColorRole int + +const ( + QPalette__ColorRole__WindowText QPalette__ColorRole = 0 + QPalette__ColorRole__Button QPalette__ColorRole = 1 + QPalette__ColorRole__Light QPalette__ColorRole = 2 + QPalette__ColorRole__Midlight QPalette__ColorRole = 3 + QPalette__ColorRole__Dark QPalette__ColorRole = 4 + QPalette__ColorRole__Mid QPalette__ColorRole = 5 + QPalette__ColorRole__Text QPalette__ColorRole = 6 + QPalette__ColorRole__BrightText QPalette__ColorRole = 7 + QPalette__ColorRole__ButtonText QPalette__ColorRole = 8 + QPalette__ColorRole__Base QPalette__ColorRole = 9 + QPalette__ColorRole__Window QPalette__ColorRole = 10 + QPalette__ColorRole__Shadow QPalette__ColorRole = 11 + QPalette__ColorRole__Highlight QPalette__ColorRole = 12 + QPalette__ColorRole__HighlightedText QPalette__ColorRole = 13 + QPalette__ColorRole__Link QPalette__ColorRole = 14 + QPalette__ColorRole__LinkVisited QPalette__ColorRole = 15 + QPalette__ColorRole__AlternateBase QPalette__ColorRole = 16 + QPalette__ColorRole__NoRole QPalette__ColorRole = 17 + QPalette__ColorRole__ToolTipBase QPalette__ColorRole = 18 + QPalette__ColorRole__ToolTipText QPalette__ColorRole = 19 + QPalette__ColorRole__PlaceholderText QPalette__ColorRole = 20 + QPalette__ColorRole__NColorRoles QPalette__ColorRole = 21 + QPalette__ColorRole__Foreground QPalette__ColorRole = 0 + QPalette__ColorRole__Background QPalette__ColorRole = 10 +) + type QPalette struct { h *C.QPalette } @@ -48,7 +89,7 @@ func NewQPalette2(button *QColor) *QPalette { } // NewQPalette3 constructs a new QPalette object. -func NewQPalette3(button uintptr) *QPalette { +func NewQPalette3(button GlobalColor) *QPalette { ret := C.QPalette_new3((C.uintptr_t)(button)) return newQPalette(ret) } @@ -85,61 +126,61 @@ func (this *QPalette) Swap(other *QPalette) { C.QPalette_Swap(this.h, other.cPointer()) } -func (this *QPalette) CurrentColorGroup() uintptr { +func (this *QPalette) CurrentColorGroup() QPalette__ColorGroup { ret := C.QPalette_CurrentColorGroup(this.h) - return (uintptr)(ret) + return (QPalette__ColorGroup)(ret) } -func (this *QPalette) SetCurrentColorGroup(cg uintptr) { +func (this *QPalette) SetCurrentColorGroup(cg QPalette__ColorGroup) { C.QPalette_SetCurrentColorGroup(this.h, (C.uintptr_t)(cg)) } -func (this *QPalette) Color(cg uintptr, cr uintptr) *QColor { +func (this *QPalette) Color(cg QPalette__ColorGroup, cr QPalette__ColorRole) *QColor { ret := C.QPalette_Color(this.h, (C.uintptr_t)(cg), (C.uintptr_t)(cr)) return newQColor_U(unsafe.Pointer(ret)) } -func (this *QPalette) Brush(cg uintptr, cr uintptr) *QBrush { +func (this *QPalette) Brush(cg QPalette__ColorGroup, cr QPalette__ColorRole) *QBrush { ret := C.QPalette_Brush(this.h, (C.uintptr_t)(cg), (C.uintptr_t)(cr)) return newQBrush_U(unsafe.Pointer(ret)) } -func (this *QPalette) SetColor(cg uintptr, cr uintptr, color *QColor) { +func (this *QPalette) SetColor(cg QPalette__ColorGroup, cr QPalette__ColorRole, color *QColor) { C.QPalette_SetColor(this.h, (C.uintptr_t)(cg), (C.uintptr_t)(cr), color.cPointer()) } -func (this *QPalette) SetColor2(cr uintptr, color *QColor) { +func (this *QPalette) SetColor2(cr QPalette__ColorRole, color *QColor) { C.QPalette_SetColor2(this.h, (C.uintptr_t)(cr), color.cPointer()) } -func (this *QPalette) SetBrush(cr uintptr, brush *QBrush) { +func (this *QPalette) SetBrush(cr QPalette__ColorRole, brush *QBrush) { C.QPalette_SetBrush(this.h, (C.uintptr_t)(cr), brush.cPointer()) } -func (this *QPalette) IsBrushSet(cg uintptr, cr uintptr) bool { +func (this *QPalette) IsBrushSet(cg QPalette__ColorGroup, cr QPalette__ColorRole) bool { ret := C.QPalette_IsBrushSet(this.h, (C.uintptr_t)(cg), (C.uintptr_t)(cr)) return (bool)(ret) } -func (this *QPalette) SetBrush2(cg uintptr, cr uintptr, brush *QBrush) { +func (this *QPalette) SetBrush2(cg QPalette__ColorGroup, cr QPalette__ColorRole, brush *QBrush) { C.QPalette_SetBrush2(this.h, (C.uintptr_t)(cg), (C.uintptr_t)(cr), brush.cPointer()) } -func (this *QPalette) SetColorGroup(cr uintptr, windowText *QBrush, button *QBrush, light *QBrush, dark *QBrush, mid *QBrush, text *QBrush, bright_text *QBrush, base *QBrush, window *QBrush) { +func (this *QPalette) SetColorGroup(cr QPalette__ColorGroup, windowText *QBrush, button *QBrush, light *QBrush, dark *QBrush, mid *QBrush, text *QBrush, bright_text *QBrush, base *QBrush, window *QBrush) { C.QPalette_SetColorGroup(this.h, (C.uintptr_t)(cr), windowText.cPointer(), button.cPointer(), light.cPointer(), dark.cPointer(), mid.cPointer(), text.cPointer(), bright_text.cPointer(), base.cPointer(), window.cPointer()) } -func (this *QPalette) IsEqual(cr1 uintptr, cr2 uintptr) bool { +func (this *QPalette) IsEqual(cr1 QPalette__ColorGroup, cr2 QPalette__ColorGroup) bool { ret := C.QPalette_IsEqual(this.h, (C.uintptr_t)(cr1), (C.uintptr_t)(cr2)) return (bool)(ret) } -func (this *QPalette) ColorWithCr(cr uintptr) *QColor { +func (this *QPalette) ColorWithCr(cr QPalette__ColorRole) *QColor { ret := C.QPalette_ColorWithCr(this.h, (C.uintptr_t)(cr)) return newQColor_U(unsafe.Pointer(ret)) } -func (this *QPalette) BrushWithCr(cr uintptr) *QBrush { +func (this *QPalette) BrushWithCr(cr QPalette__ColorRole) *QBrush { ret := C.QPalette_BrushWithCr(this.h, (C.uintptr_t)(cr)) return newQBrush_U(unsafe.Pointer(ret)) } diff --git a/qt/gen_qpdfwriter.go b/qt/gen_qpdfwriter.go index 5a5cf0ab..bb3d0ac6 100644 --- a/qt/gen_qpdfwriter.go +++ b/qt/gen_qpdfwriter.go @@ -78,13 +78,13 @@ func QPdfWriter_TrUtf8(s string) string { return ret } -func (this *QPdfWriter) SetPdfVersion(version uintptr) { +func (this *QPdfWriter) SetPdfVersion(version QPagedPaintDevice__PdfVersion) { C.QPdfWriter_SetPdfVersion(this.h, (C.uintptr_t)(version)) } -func (this *QPdfWriter) PdfVersion() uintptr { +func (this *QPdfWriter) PdfVersion() QPagedPaintDevice__PdfVersion { ret := C.QPdfWriter_PdfVersion(this.h) - return (uintptr)(ret) + return (QPagedPaintDevice__PdfVersion)(ret) } func (this *QPdfWriter) Title() string { @@ -152,7 +152,7 @@ func (this *QPdfWriter) AddFileAttachment(fileName string, data *QByteArray) { C.QPdfWriter_AddFileAttachment(this.h, fileName_Cstring, C.size_t(len(fileName)), data.cPointer()) } -func (this *QPdfWriter) SetPageSize(size uintptr) { +func (this *QPdfWriter) SetPageSize(size QPagedPaintDevice__PageSize) { C.QPdfWriter_SetPageSize(this.h, (C.uintptr_t)(size)) } diff --git a/qt/gen_qpen.go b/qt/gen_qpen.go index c32ef4e2..56eea875 100644 --- a/qt/gen_qpen.go +++ b/qt/gen_qpen.go @@ -42,7 +42,7 @@ func NewQPen() *QPen { } // NewQPen2 constructs a new QPen object. -func NewQPen2(param1 uintptr) *QPen { +func NewQPen2(param1 PenStyle) *QPen { ret := C.QPen_new2((C.uintptr_t)(param1)) return newQPen(ret) } @@ -66,19 +66,19 @@ func NewQPen5(pen *QPen) *QPen { } // NewQPen6 constructs a new QPen object. -func NewQPen6(brush *QBrush, width float64, s uintptr) *QPen { +func NewQPen6(brush *QBrush, width float64, s PenStyle) *QPen { ret := C.QPen_new6(brush.cPointer(), (C.double)(width), (C.uintptr_t)(s)) return newQPen(ret) } // NewQPen7 constructs a new QPen object. -func NewQPen7(brush *QBrush, width float64, s uintptr, c uintptr) *QPen { +func NewQPen7(brush *QBrush, width float64, s PenStyle, c PenCapStyle) *QPen { ret := C.QPen_new7(brush.cPointer(), (C.double)(width), (C.uintptr_t)(s), (C.uintptr_t)(c)) return newQPen(ret) } // NewQPen8 constructs a new QPen object. -func NewQPen8(brush *QBrush, width float64, s uintptr, c uintptr, j uintptr) *QPen { +func NewQPen8(brush *QBrush, width float64, s PenStyle, c PenCapStyle, j PenJoinStyle) *QPen { ret := C.QPen_new8(brush.cPointer(), (C.double)(width), (C.uintptr_t)(s), (C.uintptr_t)(c), (C.uintptr_t)(j)) return newQPen(ret) } @@ -91,12 +91,12 @@ func (this *QPen) Swap(other *QPen) { C.QPen_Swap(this.h, other.cPointer()) } -func (this *QPen) Style() uintptr { +func (this *QPen) Style() PenStyle { ret := C.QPen_Style(this.h) - return (uintptr)(ret) + return (PenStyle)(ret) } -func (this *QPen) SetStyle(style uintptr) { +func (this *QPen) SetStyle(style PenStyle) { C.QPen_SetStyle(this.h, (C.uintptr_t)(style)) } @@ -194,21 +194,21 @@ func (this *QPen) IsSolid() bool { return (bool)(ret) } -func (this *QPen) CapStyle() uintptr { +func (this *QPen) CapStyle() PenCapStyle { ret := C.QPen_CapStyle(this.h) - return (uintptr)(ret) + return (PenCapStyle)(ret) } -func (this *QPen) SetCapStyle(pcs uintptr) { +func (this *QPen) SetCapStyle(pcs PenCapStyle) { C.QPen_SetCapStyle(this.h, (C.uintptr_t)(pcs)) } -func (this *QPen) JoinStyle() uintptr { +func (this *QPen) JoinStyle() PenJoinStyle { ret := C.QPen_JoinStyle(this.h) - return (uintptr)(ret) + return (PenJoinStyle)(ret) } -func (this *QPen) SetJoinStyle(pcs uintptr) { +func (this *QPen) SetJoinStyle(pcs PenJoinStyle) { C.QPen_SetJoinStyle(this.h, (C.uintptr_t)(pcs)) } diff --git a/qt/gen_qpixelformat.go b/qt/gen_qpixelformat.go index 39c29dd5..3a9a52ba 100644 --- a/qt/gen_qpixelformat.go +++ b/qt/gen_qpixelformat.go @@ -12,6 +12,79 @@ import ( "unsafe" ) +type QPixelFormat__ColorModel int + +const ( + QPixelFormat__ColorModel__RGB QPixelFormat__ColorModel = 0 + QPixelFormat__ColorModel__BGR QPixelFormat__ColorModel = 1 + QPixelFormat__ColorModel__Indexed QPixelFormat__ColorModel = 2 + QPixelFormat__ColorModel__Grayscale QPixelFormat__ColorModel = 3 + QPixelFormat__ColorModel__CMYK QPixelFormat__ColorModel = 4 + QPixelFormat__ColorModel__HSL QPixelFormat__ColorModel = 5 + QPixelFormat__ColorModel__HSV QPixelFormat__ColorModel = 6 + QPixelFormat__ColorModel__YUV QPixelFormat__ColorModel = 7 + QPixelFormat__ColorModel__Alpha QPixelFormat__ColorModel = 8 +) + +type QPixelFormat__AlphaUsage int + +const ( + QPixelFormat__AlphaUsage__UsesAlpha QPixelFormat__AlphaUsage = 0 + QPixelFormat__AlphaUsage__IgnoresAlpha QPixelFormat__AlphaUsage = 1 +) + +type QPixelFormat__AlphaPosition int + +const ( + QPixelFormat__AlphaPosition__AtBeginning QPixelFormat__AlphaPosition = 0 + QPixelFormat__AlphaPosition__AtEnd QPixelFormat__AlphaPosition = 1 +) + +type QPixelFormat__AlphaPremultiplied int + +const ( + QPixelFormat__AlphaPremultiplied__NotPremultiplied QPixelFormat__AlphaPremultiplied = 0 + QPixelFormat__AlphaPremultiplied__Premultiplied QPixelFormat__AlphaPremultiplied = 1 +) + +type QPixelFormat__TypeInterpretation int + +const ( + QPixelFormat__TypeInterpretation__UnsignedInteger QPixelFormat__TypeInterpretation = 0 + QPixelFormat__TypeInterpretation__UnsignedShort QPixelFormat__TypeInterpretation = 1 + QPixelFormat__TypeInterpretation__UnsignedByte QPixelFormat__TypeInterpretation = 2 + QPixelFormat__TypeInterpretation__FloatingPoint QPixelFormat__TypeInterpretation = 3 +) + +type QPixelFormat__YUVLayout int + +const ( + QPixelFormat__YUVLayout__YUV444 QPixelFormat__YUVLayout = 0 + QPixelFormat__YUVLayout__YUV422 QPixelFormat__YUVLayout = 1 + QPixelFormat__YUVLayout__YUV411 QPixelFormat__YUVLayout = 2 + QPixelFormat__YUVLayout__YUV420P QPixelFormat__YUVLayout = 3 + QPixelFormat__YUVLayout__YUV420SP QPixelFormat__YUVLayout = 4 + QPixelFormat__YUVLayout__YV12 QPixelFormat__YUVLayout = 5 + QPixelFormat__YUVLayout__UYVY QPixelFormat__YUVLayout = 6 + QPixelFormat__YUVLayout__YUYV QPixelFormat__YUVLayout = 7 + QPixelFormat__YUVLayout__NV12 QPixelFormat__YUVLayout = 8 + QPixelFormat__YUVLayout__NV21 QPixelFormat__YUVLayout = 9 + QPixelFormat__YUVLayout__IMC1 QPixelFormat__YUVLayout = 10 + QPixelFormat__YUVLayout__IMC2 QPixelFormat__YUVLayout = 11 + QPixelFormat__YUVLayout__IMC3 QPixelFormat__YUVLayout = 12 + QPixelFormat__YUVLayout__IMC4 QPixelFormat__YUVLayout = 13 + QPixelFormat__YUVLayout__Y8 QPixelFormat__YUVLayout = 14 + QPixelFormat__YUVLayout__Y16 QPixelFormat__YUVLayout = 15 +) + +type QPixelFormat__ByteOrder int + +const ( + QPixelFormat__ByteOrder__LittleEndian QPixelFormat__ByteOrder = 0 + QPixelFormat__ByteOrder__BigEndian QPixelFormat__ByteOrder = 1 + QPixelFormat__ByteOrder__CurrentSystemEndian QPixelFormat__ByteOrder = 2 +) + type QPixelFormat struct { h *C.QPixelFormat } @@ -41,7 +114,7 @@ func NewQPixelFormat() *QPixelFormat { } // NewQPixelFormat2 constructs a new QPixelFormat object. -func NewQPixelFormat2(colorModel uintptr, firstSize byte, secondSize byte, thirdSize byte, fourthSize byte, fifthSize byte, alphaSize byte, alphaUsage uintptr, alphaPosition uintptr, premultiplied uintptr, typeInterpretation uintptr) *QPixelFormat { +func NewQPixelFormat2(colorModel QPixelFormat__ColorModel, firstSize byte, secondSize byte, thirdSize byte, fourthSize byte, fifthSize byte, alphaSize byte, alphaUsage QPixelFormat__AlphaUsage, alphaPosition QPixelFormat__AlphaPosition, premultiplied QPixelFormat__AlphaPremultiplied, typeInterpretation QPixelFormat__TypeInterpretation) *QPixelFormat { ret := C.QPixelFormat_new2((C.uintptr_t)(colorModel), (C.uchar)(firstSize), (C.uchar)(secondSize), (C.uchar)(thirdSize), (C.uchar)(fourthSize), (C.uchar)(fifthSize), (C.uchar)(alphaSize), (C.uintptr_t)(alphaUsage), (C.uintptr_t)(alphaPosition), (C.uintptr_t)(premultiplied), (C.uintptr_t)(typeInterpretation)) return newQPixelFormat(ret) } @@ -53,20 +126,20 @@ func NewQPixelFormat3(param1 *QPixelFormat) *QPixelFormat { } // NewQPixelFormat4 constructs a new QPixelFormat object. -func NewQPixelFormat4(colorModel uintptr, firstSize byte, secondSize byte, thirdSize byte, fourthSize byte, fifthSize byte, alphaSize byte, alphaUsage uintptr, alphaPosition uintptr, premultiplied uintptr, typeInterpretation uintptr, byteOrder uintptr) *QPixelFormat { +func NewQPixelFormat4(colorModel QPixelFormat__ColorModel, firstSize byte, secondSize byte, thirdSize byte, fourthSize byte, fifthSize byte, alphaSize byte, alphaUsage QPixelFormat__AlphaUsage, alphaPosition QPixelFormat__AlphaPosition, premultiplied QPixelFormat__AlphaPremultiplied, typeInterpretation QPixelFormat__TypeInterpretation, byteOrder QPixelFormat__ByteOrder) *QPixelFormat { ret := C.QPixelFormat_new4((C.uintptr_t)(colorModel), (C.uchar)(firstSize), (C.uchar)(secondSize), (C.uchar)(thirdSize), (C.uchar)(fourthSize), (C.uchar)(fifthSize), (C.uchar)(alphaSize), (C.uintptr_t)(alphaUsage), (C.uintptr_t)(alphaPosition), (C.uintptr_t)(premultiplied), (C.uintptr_t)(typeInterpretation), (C.uintptr_t)(byteOrder)) return newQPixelFormat(ret) } // NewQPixelFormat5 constructs a new QPixelFormat object. -func NewQPixelFormat5(colorModel uintptr, firstSize byte, secondSize byte, thirdSize byte, fourthSize byte, fifthSize byte, alphaSize byte, alphaUsage uintptr, alphaPosition uintptr, premultiplied uintptr, typeInterpretation uintptr, byteOrder uintptr, subEnum byte) *QPixelFormat { +func NewQPixelFormat5(colorModel QPixelFormat__ColorModel, firstSize byte, secondSize byte, thirdSize byte, fourthSize byte, fifthSize byte, alphaSize byte, alphaUsage QPixelFormat__AlphaUsage, alphaPosition QPixelFormat__AlphaPosition, premultiplied QPixelFormat__AlphaPremultiplied, typeInterpretation QPixelFormat__TypeInterpretation, byteOrder QPixelFormat__ByteOrder, subEnum byte) *QPixelFormat { ret := C.QPixelFormat_new5((C.uintptr_t)(colorModel), (C.uchar)(firstSize), (C.uchar)(secondSize), (C.uchar)(thirdSize), (C.uchar)(fourthSize), (C.uchar)(fifthSize), (C.uchar)(alphaSize), (C.uintptr_t)(alphaUsage), (C.uintptr_t)(alphaPosition), (C.uintptr_t)(premultiplied), (C.uintptr_t)(typeInterpretation), (C.uintptr_t)(byteOrder), (C.uchar)(subEnum)) return newQPixelFormat(ret) } -func (this *QPixelFormat) ColorModel() uintptr { +func (this *QPixelFormat) ColorModel() QPixelFormat__ColorModel { ret := C.QPixelFormat_ColorModel(this.h) - return (uintptr)(ret) + return (QPixelFormat__ColorModel)(ret) } func (this *QPixelFormat) ChannelCount() byte { @@ -139,34 +212,34 @@ func (this *QPixelFormat) BitsPerPixel() byte { return (byte)(ret) } -func (this *QPixelFormat) AlphaUsage() uintptr { +func (this *QPixelFormat) AlphaUsage() QPixelFormat__AlphaUsage { ret := C.QPixelFormat_AlphaUsage(this.h) - return (uintptr)(ret) + return (QPixelFormat__AlphaUsage)(ret) } -func (this *QPixelFormat) AlphaPosition() uintptr { +func (this *QPixelFormat) AlphaPosition() QPixelFormat__AlphaPosition { ret := C.QPixelFormat_AlphaPosition(this.h) - return (uintptr)(ret) + return (QPixelFormat__AlphaPosition)(ret) } -func (this *QPixelFormat) Premultiplied() uintptr { +func (this *QPixelFormat) Premultiplied() QPixelFormat__AlphaPremultiplied { ret := C.QPixelFormat_Premultiplied(this.h) - return (uintptr)(ret) + return (QPixelFormat__AlphaPremultiplied)(ret) } -func (this *QPixelFormat) TypeInterpretation() uintptr { +func (this *QPixelFormat) TypeInterpretation() QPixelFormat__TypeInterpretation { ret := C.QPixelFormat_TypeInterpretation(this.h) - return (uintptr)(ret) + return (QPixelFormat__TypeInterpretation)(ret) } -func (this *QPixelFormat) ByteOrder() uintptr { +func (this *QPixelFormat) ByteOrder() QPixelFormat__ByteOrder { ret := C.QPixelFormat_ByteOrder(this.h) - return (uintptr)(ret) + return (QPixelFormat__ByteOrder)(ret) } -func (this *QPixelFormat) YuvLayout() uintptr { +func (this *QPixelFormat) YuvLayout() QPixelFormat__YUVLayout { ret := C.QPixelFormat_YuvLayout(this.h) - return (uintptr)(ret) + return (QPixelFormat__YUVLayout)(ret) } func (this *QPixelFormat) SubEnum() byte { diff --git a/qt/gen_qpixmap.go b/qt/gen_qpixmap.go index 7192c070..cc46dcc3 100644 --- a/qt/gen_qpixmap.go +++ b/qt/gen_qpixmap.go @@ -478,7 +478,7 @@ func (this *QPixmap) CreateHeuristicMask1(clipTight bool) *QBitmap { return ret1 } -func (this *QPixmap) CreateMaskFromColor2(maskColor *QColor, mode uintptr) *QBitmap { +func (this *QPixmap) CreateMaskFromColor2(maskColor *QColor, mode MaskMode) *QBitmap { ret := C.QPixmap_CreateMaskFromColor2(this.h, maskColor.cPointer(), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQBitmap(ret) @@ -577,7 +577,7 @@ func QPixmap_GrabWidget5(widget *QObject, x int, y int, w int, h int) *QPixmap { return ret1 } -func (this *QPixmap) Scaled3(w int, h int, aspectMode uintptr) *QPixmap { +func (this *QPixmap) Scaled3(w int, h int, aspectMode AspectRatioMode) *QPixmap { ret := C.QPixmap_Scaled3(this.h, (C.int)(w), (C.int)(h), (C.uintptr_t)(aspectMode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -588,7 +588,7 @@ func (this *QPixmap) Scaled3(w int, h int, aspectMode uintptr) *QPixmap { return ret1 } -func (this *QPixmap) Scaled4(w int, h int, aspectMode uintptr, mode uintptr) *QPixmap { +func (this *QPixmap) Scaled4(w int, h int, aspectMode AspectRatioMode, mode TransformationMode) *QPixmap { ret := C.QPixmap_Scaled4(this.h, (C.int)(w), (C.int)(h), (C.uintptr_t)(aspectMode), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -599,7 +599,7 @@ func (this *QPixmap) Scaled4(w int, h int, aspectMode uintptr, mode uintptr) *QP return ret1 } -func (this *QPixmap) Scaled2(s *QSize, aspectMode uintptr) *QPixmap { +func (this *QPixmap) Scaled2(s *QSize, aspectMode AspectRatioMode) *QPixmap { ret := C.QPixmap_Scaled2(this.h, s.cPointer(), (C.uintptr_t)(aspectMode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -610,7 +610,7 @@ func (this *QPixmap) Scaled2(s *QSize, aspectMode uintptr) *QPixmap { return ret1 } -func (this *QPixmap) Scaled32(s *QSize, aspectMode uintptr, mode uintptr) *QPixmap { +func (this *QPixmap) Scaled32(s *QSize, aspectMode AspectRatioMode, mode TransformationMode) *QPixmap { ret := C.QPixmap_Scaled32(this.h, s.cPointer(), (C.uintptr_t)(aspectMode), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -621,7 +621,7 @@ func (this *QPixmap) Scaled32(s *QSize, aspectMode uintptr, mode uintptr) *QPixm return ret1 } -func (this *QPixmap) ScaledToWidth2(w int, mode uintptr) *QPixmap { +func (this *QPixmap) ScaledToWidth2(w int, mode TransformationMode) *QPixmap { ret := C.QPixmap_ScaledToWidth2(this.h, (C.int)(w), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -632,7 +632,7 @@ func (this *QPixmap) ScaledToWidth2(w int, mode uintptr) *QPixmap { return ret1 } -func (this *QPixmap) ScaledToHeight2(h int, mode uintptr) *QPixmap { +func (this *QPixmap) ScaledToHeight2(h int, mode TransformationMode) *QPixmap { ret := C.QPixmap_ScaledToHeight2(this.h, (C.int)(h), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -643,7 +643,7 @@ func (this *QPixmap) ScaledToHeight2(h int, mode uintptr) *QPixmap { return ret1 } -func (this *QPixmap) Transformed2(param1 *QMatrix, mode uintptr) *QPixmap { +func (this *QPixmap) Transformed2(param1 *QMatrix, mode TransformationMode) *QPixmap { ret := C.QPixmap_Transformed2(this.h, param1.cPointer(), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -654,7 +654,7 @@ func (this *QPixmap) Transformed2(param1 *QMatrix, mode uintptr) *QPixmap { return ret1 } -func (this *QPixmap) Transformed22(param1 *QTransform, mode uintptr) *QPixmap { +func (this *QPixmap) Transformed22(param1 *QTransform, mode TransformationMode) *QPixmap { ret := C.QPixmap_Transformed22(this.h, param1.cPointer(), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) diff --git a/qt/gen_qplaintextedit.go b/qt/gen_qplaintextedit.go index f7b2d3d2..e475cc47 100644 --- a/qt/gen_qplaintextedit.go +++ b/qt/gen_qplaintextedit.go @@ -14,6 +14,13 @@ import ( "unsafe" ) +type QPlainTextEdit__LineWrapMode int + +const ( + QPlainTextEdit__LineWrapMode__NoWrap QPlainTextEdit__LineWrapMode = 0 + QPlainTextEdit__LineWrapMode__WidgetWidth QPlainTextEdit__LineWrapMode = 1 +) + type QPlainTextEdit struct { h *C.QPlainTextEdit *QAbstractScrollArea @@ -210,21 +217,21 @@ func (this *QPlainTextEdit) MaximumBlockCount() int { return (int)(ret) } -func (this *QPlainTextEdit) LineWrapMode() uintptr { +func (this *QPlainTextEdit) LineWrapMode() QPlainTextEdit__LineWrapMode { ret := C.QPlainTextEdit_LineWrapMode(this.h) - return (uintptr)(ret) + return (QPlainTextEdit__LineWrapMode)(ret) } -func (this *QPlainTextEdit) SetLineWrapMode(mode uintptr) { +func (this *QPlainTextEdit) SetLineWrapMode(mode QPlainTextEdit__LineWrapMode) { C.QPlainTextEdit_SetLineWrapMode(this.h, (C.uintptr_t)(mode)) } -func (this *QPlainTextEdit) WordWrapMode() uintptr { +func (this *QPlainTextEdit) WordWrapMode() QTextOption__WrapMode { ret := C.QPlainTextEdit_WordWrapMode(this.h) - return (uintptr)(ret) + return (QTextOption__WrapMode)(ret) } -func (this *QPlainTextEdit) SetWordWrapMode(policy uintptr) { +func (this *QPlainTextEdit) SetWordWrapMode(policy QTextOption__WrapMode) { C.QPlainTextEdit_SetWordWrapMode(this.h, (C.uintptr_t)(policy)) } @@ -398,7 +405,7 @@ func (this *QPlainTextEdit) ExtraSelections() []QTextEdit__ExtraSelection { return ret } -func (this *QPlainTextEdit) MoveCursor(operation uintptr) { +func (this *QPlainTextEdit) MoveCursor(operation QTextCursor__MoveOperation) { C.QPlainTextEdit_MoveCursor(this.h, (C.uintptr_t)(operation)) } @@ -416,7 +423,7 @@ func (this *QPlainTextEdit) BlockCount() int { return (int)(ret) } -func (this *QPlainTextEdit) InputMethodQuery(property uintptr) *QVariant { +func (this *QPlainTextEdit) InputMethodQuery(property InputMethodQuery) *QVariant { ret := C.QPlainTextEdit_InputMethodQuery(this.h, (C.uintptr_t)(property)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -427,7 +434,7 @@ func (this *QPlainTextEdit) InputMethodQuery(property uintptr) *QVariant { return ret1 } -func (this *QPlainTextEdit) InputMethodQuery2(query uintptr, argument QVariant) *QVariant { +func (this *QPlainTextEdit) InputMethodQuery2(query InputMethodQuery, argument QVariant) *QVariant { ret := C.QPlainTextEdit_InputMethodQuery2(this.h, (C.uintptr_t)(query), argument.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -679,7 +686,7 @@ func (this *QPlainTextEdit) Find24(exp *QRegularExpression, options int) bool { return (bool)(ret) } -func (this *QPlainTextEdit) MoveCursor2(operation uintptr, mode uintptr) { +func (this *QPlainTextEdit) MoveCursor2(operation QTextCursor__MoveOperation, mode QTextCursor__MoveMode) { C.QPlainTextEdit_MoveCursor2(this.h, (C.uintptr_t)(operation), (C.uintptr_t)(mode)) } @@ -755,7 +762,7 @@ func (this *QPlainTextDocumentLayout) Draw(param1 *QPainter, param2 *QAbstractTe C.QPlainTextDocumentLayout_Draw(this.h, param1.cPointer(), param2.cPointer()) } -func (this *QPlainTextDocumentLayout) HitTest(param1 *QPointF, param2 uintptr) int { +func (this *QPlainTextDocumentLayout) HitTest(param1 *QPointF, param2 HitTestAccuracy) int { ret := C.QPlainTextDocumentLayout_HitTest(this.h, param1.cPointer(), (C.uintptr_t)(param2)) return (int)(ret) } diff --git a/qt/gen_qprocess.go b/qt/gen_qprocess.go index 321210d9..98aadf33 100644 --- a/qt/gen_qprocess.go +++ b/qt/gen_qprocess.go @@ -14,6 +14,56 @@ import ( "unsafe" ) +type QProcess__ProcessError int + +const ( + QProcess__ProcessError__FailedToStart QProcess__ProcessError = 0 + QProcess__ProcessError__Crashed QProcess__ProcessError = 1 + QProcess__ProcessError__Timedout QProcess__ProcessError = 2 + QProcess__ProcessError__ReadError QProcess__ProcessError = 3 + QProcess__ProcessError__WriteError QProcess__ProcessError = 4 + QProcess__ProcessError__UnknownError QProcess__ProcessError = 5 +) + +type QProcess__ProcessState int + +const ( + QProcess__ProcessState__NotRunning QProcess__ProcessState = 0 + QProcess__ProcessState__Starting QProcess__ProcessState = 1 + QProcess__ProcessState__Running QProcess__ProcessState = 2 +) + +type QProcess__ProcessChannel int + +const ( + QProcess__ProcessChannel__StandardOutput QProcess__ProcessChannel = 0 + QProcess__ProcessChannel__StandardError QProcess__ProcessChannel = 1 +) + +type QProcess__ProcessChannelMode int + +const ( + QProcess__ProcessChannelMode__SeparateChannels QProcess__ProcessChannelMode = 0 + QProcess__ProcessChannelMode__MergedChannels QProcess__ProcessChannelMode = 1 + QProcess__ProcessChannelMode__ForwardedChannels QProcess__ProcessChannelMode = 2 + QProcess__ProcessChannelMode__ForwardedOutputChannel QProcess__ProcessChannelMode = 3 + QProcess__ProcessChannelMode__ForwardedErrorChannel QProcess__ProcessChannelMode = 4 +) + +type QProcess__InputChannelMode int + +const ( + QProcess__InputChannelMode__ManagedInputChannel QProcess__InputChannelMode = 0 + QProcess__InputChannelMode__ForwardedInputChannel QProcess__InputChannelMode = 1 +) + +type QProcess__ExitStatus int + +const ( + QProcess__ExitStatus__NormalExit QProcess__ExitStatus = 0 + QProcess__ExitStatus__CrashExit QProcess__ExitStatus = 1 +) + type QProcessEnvironment struct { h *C.QProcessEnvironment } @@ -313,43 +363,43 @@ func (this *QProcess) SetArguments(arguments []string) { C.QProcess_SetArguments(this.h, &arguments_CArray[0], &arguments_Lengths[0], C.size_t(len(arguments))) } -func (this *QProcess) ReadChannelMode() uintptr { +func (this *QProcess) ReadChannelMode() QProcess__ProcessChannelMode { ret := C.QProcess_ReadChannelMode(this.h) - return (uintptr)(ret) + return (QProcess__ProcessChannelMode)(ret) } -func (this *QProcess) SetReadChannelMode(mode uintptr) { +func (this *QProcess) SetReadChannelMode(mode QProcess__ProcessChannelMode) { C.QProcess_SetReadChannelMode(this.h, (C.uintptr_t)(mode)) } -func (this *QProcess) ProcessChannelMode() uintptr { +func (this *QProcess) ProcessChannelMode() QProcess__ProcessChannelMode { ret := C.QProcess_ProcessChannelMode(this.h) - return (uintptr)(ret) + return (QProcess__ProcessChannelMode)(ret) } -func (this *QProcess) SetProcessChannelMode(mode uintptr) { +func (this *QProcess) SetProcessChannelMode(mode QProcess__ProcessChannelMode) { C.QProcess_SetProcessChannelMode(this.h, (C.uintptr_t)(mode)) } -func (this *QProcess) InputChannelMode() uintptr { +func (this *QProcess) InputChannelMode() QProcess__InputChannelMode { ret := C.QProcess_InputChannelMode(this.h) - return (uintptr)(ret) + return (QProcess__InputChannelMode)(ret) } -func (this *QProcess) SetInputChannelMode(mode uintptr) { +func (this *QProcess) SetInputChannelMode(mode QProcess__InputChannelMode) { C.QProcess_SetInputChannelMode(this.h, (C.uintptr_t)(mode)) } -func (this *QProcess) ReadChannel() uintptr { +func (this *QProcess) ReadChannel() QProcess__ProcessChannel { ret := C.QProcess_ReadChannel(this.h) - return (uintptr)(ret) + return (QProcess__ProcessChannel)(ret) } -func (this *QProcess) SetReadChannel(channel uintptr) { +func (this *QProcess) SetReadChannel(channel QProcess__ProcessChannel) { C.QProcess_SetReadChannel(this.h, (C.uintptr_t)(channel)) } -func (this *QProcess) CloseReadChannel(channel uintptr) { +func (this *QProcess) CloseReadChannel(channel QProcess__ProcessChannel) { C.QProcess_CloseReadChannel(this.h, (C.uintptr_t)(channel)) } @@ -439,14 +489,14 @@ func (this *QProcess) ProcessEnvironment() *QProcessEnvironment { return ret1 } -func (this *QProcess) Error() uintptr { +func (this *QProcess) Error() QProcess__ProcessError { ret := C.QProcess_Error(this.h) - return (uintptr)(ret) + return (QProcess__ProcessError)(ret) } -func (this *QProcess) State() uintptr { +func (this *QProcess) State() QProcess__ProcessState { ret := C.QProcess_State(this.h) - return (uintptr)(ret) + return (QProcess__ProcessState)(ret) } func (this *QProcess) Pid() int64 { @@ -511,9 +561,9 @@ func (this *QProcess) ExitCode() int { return (int)(ret) } -func (this *QProcess) ExitStatus() uintptr { +func (this *QProcess) ExitStatus() QProcess__ExitStatus { ret := C.QProcess_ExitStatus(this.h) - return (uintptr)(ret) + return (QProcess__ExitStatus)(ret) } func (this *QProcess) BytesAvailable() int64 { @@ -659,7 +709,7 @@ func (this *QProcess) OnFinished(slot func()) { C.QProcess_connect_Finished(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QProcess) Finished2(exitCode int, exitStatus uintptr) { +func (this *QProcess) Finished2(exitCode int, exitStatus QProcess__ExitStatus) { C.QProcess_Finished2(this.h, (C.int)(exitCode), (C.uintptr_t)(exitStatus)) } @@ -671,7 +721,7 @@ func (this *QProcess) OnFinished2(slot func()) { C.QProcess_connect_Finished2(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QProcess) ErrorWithError(error uintptr) { +func (this *QProcess) ErrorWithError(error QProcess__ProcessError) { C.QProcess_ErrorWithError(this.h, (C.uintptr_t)(error)) } @@ -683,7 +733,7 @@ func (this *QProcess) OnErrorWithError(slot func()) { C.QProcess_connect_ErrorWithError(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QProcess) ErrorOccurred(error uintptr) { +func (this *QProcess) ErrorOccurred(error QProcess__ProcessError) { C.QProcess_ErrorOccurred(this.h, (C.uintptr_t)(error)) } diff --git a/qt/gen_qprogressbar.go b/qt/gen_qprogressbar.go index 0961bd0a..575a8ce5 100644 --- a/qt/gen_qprogressbar.go +++ b/qt/gen_qprogressbar.go @@ -14,6 +14,13 @@ import ( "unsafe" ) +type QProgressBar__Direction int + +const ( + QProgressBar__Direction__TopToBottom QProgressBar__Direction = 0 + QProgressBar__Direction__BottomToTop QProgressBar__Direction = 1 +) + type QProgressBar struct { h *C.QProgressBar *QWidget @@ -140,9 +147,9 @@ func (this *QProgressBar) MinimumSizeHint() *QSize { return ret1 } -func (this *QProgressBar) Orientation() uintptr { +func (this *QProgressBar) Orientation() Orientation { ret := C.QProgressBar_Orientation(this.h) - return (uintptr)(ret) + return (Orientation)(ret) } func (this *QProgressBar) SetInvertedAppearance(invert bool) { @@ -154,13 +161,13 @@ func (this *QProgressBar) InvertedAppearance() bool { return (bool)(ret) } -func (this *QProgressBar) SetTextDirection(textDirection uintptr) { +func (this *QProgressBar) SetTextDirection(textDirection QProgressBar__Direction) { C.QProgressBar_SetTextDirection(this.h, (C.uintptr_t)(textDirection)) } -func (this *QProgressBar) TextDirection() uintptr { +func (this *QProgressBar) TextDirection() QProgressBar__Direction { ret := C.QProgressBar_TextDirection(this.h) - return (uintptr)(ret) + return (QProgressBar__Direction)(ret) } func (this *QProgressBar) SetFormat(format string) { @@ -202,7 +209,7 @@ func (this *QProgressBar) SetValue(value int) { C.QProgressBar_SetValue(this.h, (C.int)(value)) } -func (this *QProgressBar) SetOrientation(orientation uintptr) { +func (this *QProgressBar) SetOrientation(orientation Orientation) { C.QProgressBar_SetOrientation(this.h, (C.uintptr_t)(orientation)) } diff --git a/qt/gen_qproxystyle.go b/qt/gen_qproxystyle.go index 917bf6ae..74d74f89 100644 --- a/qt/gen_qproxystyle.go +++ b/qt/gen_qproxystyle.go @@ -92,15 +92,15 @@ func (this *QProxyStyle) SetBaseStyle(style *QStyle) { C.QProxyStyle_SetBaseStyle(this.h, style.cPointer()) } -func (this *QProxyStyle) DrawPrimitive(element uintptr, option *QStyleOption, painter *QPainter) { +func (this *QProxyStyle) DrawPrimitive(element QStyle__PrimitiveElement, option *QStyleOption, painter *QPainter) { C.QProxyStyle_DrawPrimitive(this.h, (C.uintptr_t)(element), option.cPointer(), painter.cPointer()) } -func (this *QProxyStyle) DrawControl(element uintptr, option *QStyleOption, painter *QPainter) { +func (this *QProxyStyle) DrawControl(element QStyle__ControlElement, option *QStyleOption, painter *QPainter) { C.QProxyStyle_DrawControl(this.h, (C.uintptr_t)(element), option.cPointer(), painter.cPointer()) } -func (this *QProxyStyle) DrawComplexControl(control uintptr, option *QStyleOptionComplex, painter *QPainter) { +func (this *QProxyStyle) DrawComplexControl(control QStyle__ComplexControl, option *QStyleOptionComplex, painter *QPainter) { C.QProxyStyle_DrawComplexControl(this.h, (C.uintptr_t)(control), option.cPointer(), painter.cPointer()) } @@ -114,7 +114,7 @@ func (this *QProxyStyle) DrawItemPixmap(painter *QPainter, rect *QRect, alignmen C.QProxyStyle_DrawItemPixmap(this.h, painter.cPointer(), rect.cPointer(), (C.int)(alignment), pixmap.cPointer()) } -func (this *QProxyStyle) SizeFromContents(typeVal uintptr, option *QStyleOption, size *QSize, widget *QWidget) *QSize { +func (this *QProxyStyle) SizeFromContents(typeVal QStyle__ContentsType, option *QStyleOption, size *QSize, widget *QWidget) *QSize { ret := C.QProxyStyle_SizeFromContents(this.h, (C.uintptr_t)(typeVal), option.cPointer(), size.cPointer(), widget.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSize(ret) @@ -125,7 +125,7 @@ func (this *QProxyStyle) SizeFromContents(typeVal uintptr, option *QStyleOption, return ret1 } -func (this *QProxyStyle) SubElementRect(element uintptr, option *QStyleOption, widget *QWidget) *QRect { +func (this *QProxyStyle) SubElementRect(element QStyle__SubElement, option *QStyleOption, widget *QWidget) *QRect { ret := C.QProxyStyle_SubElementRect(this.h, (C.uintptr_t)(element), option.cPointer(), widget.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRect(ret) @@ -136,7 +136,7 @@ func (this *QProxyStyle) SubElementRect(element uintptr, option *QStyleOption, w return ret1 } -func (this *QProxyStyle) SubControlRect(cc uintptr, opt *QStyleOptionComplex, sc uintptr, widget *QWidget) *QRect { +func (this *QProxyStyle) SubControlRect(cc QStyle__ComplexControl, opt *QStyleOptionComplex, sc QStyle__SubControl, widget *QWidget) *QRect { ret := C.QProxyStyle_SubControlRect(this.h, (C.uintptr_t)(cc), opt.cPointer(), (C.uintptr_t)(sc), widget.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRect(ret) @@ -171,27 +171,27 @@ func (this *QProxyStyle) ItemPixmapRect(r *QRect, flags int, pixmap *QPixmap) *Q return ret1 } -func (this *QProxyStyle) HitTestComplexControl(control uintptr, option *QStyleOptionComplex, pos *QPoint) uintptr { +func (this *QProxyStyle) HitTestComplexControl(control QStyle__ComplexControl, option *QStyleOptionComplex, pos *QPoint) QStyle__SubControl { ret := C.QProxyStyle_HitTestComplexControl(this.h, (C.uintptr_t)(control), option.cPointer(), pos.cPointer()) - return (uintptr)(ret) + return (QStyle__SubControl)(ret) } -func (this *QProxyStyle) StyleHint(hint uintptr) int { +func (this *QProxyStyle) StyleHint(hint QStyle__StyleHint) int { ret := C.QProxyStyle_StyleHint(this.h, (C.uintptr_t)(hint)) return (int)(ret) } -func (this *QProxyStyle) PixelMetric(metric uintptr) int { +func (this *QProxyStyle) PixelMetric(metric QStyle__PixelMetric) int { ret := C.QProxyStyle_PixelMetric(this.h, (C.uintptr_t)(metric)) return (int)(ret) } -func (this *QProxyStyle) LayoutSpacing(control1 uintptr, control2 uintptr, orientation uintptr) int { +func (this *QProxyStyle) LayoutSpacing(control1 QSizePolicy__ControlType, control2 QSizePolicy__ControlType, orientation Orientation) int { ret := C.QProxyStyle_LayoutSpacing(this.h, (C.uintptr_t)(control1), (C.uintptr_t)(control2), (C.uintptr_t)(orientation)) return (int)(ret) } -func (this *QProxyStyle) StandardIcon(standardIcon uintptr) *QIcon { +func (this *QProxyStyle) StandardIcon(standardIcon QStyle__StandardPixmap) *QIcon { ret := C.QProxyStyle_StandardIcon(this.h, (C.uintptr_t)(standardIcon)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQIcon(ret) @@ -202,7 +202,7 @@ func (this *QProxyStyle) StandardIcon(standardIcon uintptr) *QIcon { return ret1 } -func (this *QProxyStyle) StandardPixmap(standardPixmap uintptr, opt *QStyleOption) *QPixmap { +func (this *QProxyStyle) StandardPixmap(standardPixmap QStyle__StandardPixmap, opt *QStyleOption) *QPixmap { ret := C.QProxyStyle_StandardPixmap(this.h, (C.uintptr_t)(standardPixmap), opt.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -213,7 +213,7 @@ func (this *QProxyStyle) StandardPixmap(standardPixmap uintptr, opt *QStyleOptio return ret1 } -func (this *QProxyStyle) GeneratedIconPixmap(iconMode uintptr, pixmap *QPixmap, opt *QStyleOption) *QPixmap { +func (this *QProxyStyle) GeneratedIconPixmap(iconMode QIcon__Mode, pixmap *QPixmap, opt *QStyleOption) *QPixmap { ret := C.QProxyStyle_GeneratedIconPixmap(this.h, (C.uintptr_t)(iconMode), pixmap.cPointer(), opt.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -307,65 +307,65 @@ func QProxyStyle_TrUtf83(s string, c string, n int) string { return ret } -func (this *QProxyStyle) DrawPrimitive4(element uintptr, option *QStyleOption, painter *QPainter, widget *QWidget) { +func (this *QProxyStyle) DrawPrimitive4(element QStyle__PrimitiveElement, option *QStyleOption, painter *QPainter, widget *QWidget) { C.QProxyStyle_DrawPrimitive4(this.h, (C.uintptr_t)(element), option.cPointer(), painter.cPointer(), widget.cPointer()) } -func (this *QProxyStyle) DrawControl4(element uintptr, option *QStyleOption, painter *QPainter, widget *QWidget) { +func (this *QProxyStyle) DrawControl4(element QStyle__ControlElement, option *QStyleOption, painter *QPainter, widget *QWidget) { C.QProxyStyle_DrawControl4(this.h, (C.uintptr_t)(element), option.cPointer(), painter.cPointer(), widget.cPointer()) } -func (this *QProxyStyle) DrawComplexControl4(control uintptr, option *QStyleOptionComplex, painter *QPainter, widget *QWidget) { +func (this *QProxyStyle) DrawComplexControl4(control QStyle__ComplexControl, option *QStyleOptionComplex, painter *QPainter, widget *QWidget) { C.QProxyStyle_DrawComplexControl4(this.h, (C.uintptr_t)(control), option.cPointer(), painter.cPointer(), widget.cPointer()) } -func (this *QProxyStyle) DrawItemText7(painter *QPainter, rect *QRect, flags int, pal *QPalette, enabled bool, text string, textRole uintptr) { +func (this *QProxyStyle) DrawItemText7(painter *QPainter, rect *QRect, flags int, pal *QPalette, enabled bool, text string, textRole QPalette__ColorRole) { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) C.QProxyStyle_DrawItemText7(this.h, painter.cPointer(), rect.cPointer(), (C.int)(flags), pal.cPointer(), (C.bool)(enabled), text_Cstring, C.size_t(len(text)), (C.uintptr_t)(textRole)) } -func (this *QProxyStyle) HitTestComplexControl4(control uintptr, option *QStyleOptionComplex, pos *QPoint, widget *QWidget) uintptr { +func (this *QProxyStyle) HitTestComplexControl4(control QStyle__ComplexControl, option *QStyleOptionComplex, pos *QPoint, widget *QWidget) QStyle__SubControl { ret := C.QProxyStyle_HitTestComplexControl4(this.h, (C.uintptr_t)(control), option.cPointer(), pos.cPointer(), widget.cPointer()) - return (uintptr)(ret) + return (QStyle__SubControl)(ret) } -func (this *QProxyStyle) StyleHint2(hint uintptr, option *QStyleOption) int { +func (this *QProxyStyle) StyleHint2(hint QStyle__StyleHint, option *QStyleOption) int { ret := C.QProxyStyle_StyleHint2(this.h, (C.uintptr_t)(hint), option.cPointer()) return (int)(ret) } -func (this *QProxyStyle) StyleHint3(hint uintptr, option *QStyleOption, widget *QWidget) int { +func (this *QProxyStyle) StyleHint3(hint QStyle__StyleHint, option *QStyleOption, widget *QWidget) int { ret := C.QProxyStyle_StyleHint3(this.h, (C.uintptr_t)(hint), option.cPointer(), widget.cPointer()) return (int)(ret) } -func (this *QProxyStyle) StyleHint4(hint uintptr, option *QStyleOption, widget *QWidget, returnData *QStyleHintReturn) int { +func (this *QProxyStyle) StyleHint4(hint QStyle__StyleHint, option *QStyleOption, widget *QWidget, returnData *QStyleHintReturn) int { ret := C.QProxyStyle_StyleHint4(this.h, (C.uintptr_t)(hint), option.cPointer(), widget.cPointer(), returnData.cPointer()) return (int)(ret) } -func (this *QProxyStyle) PixelMetric2(metric uintptr, option *QStyleOption) int { +func (this *QProxyStyle) PixelMetric2(metric QStyle__PixelMetric, option *QStyleOption) int { ret := C.QProxyStyle_PixelMetric2(this.h, (C.uintptr_t)(metric), option.cPointer()) return (int)(ret) } -func (this *QProxyStyle) PixelMetric3(metric uintptr, option *QStyleOption, widget *QWidget) int { +func (this *QProxyStyle) PixelMetric3(metric QStyle__PixelMetric, option *QStyleOption, widget *QWidget) int { ret := C.QProxyStyle_PixelMetric3(this.h, (C.uintptr_t)(metric), option.cPointer(), widget.cPointer()) return (int)(ret) } -func (this *QProxyStyle) LayoutSpacing4(control1 uintptr, control2 uintptr, orientation uintptr, option *QStyleOption) int { +func (this *QProxyStyle) LayoutSpacing4(control1 QSizePolicy__ControlType, control2 QSizePolicy__ControlType, orientation Orientation, option *QStyleOption) int { ret := C.QProxyStyle_LayoutSpacing4(this.h, (C.uintptr_t)(control1), (C.uintptr_t)(control2), (C.uintptr_t)(orientation), option.cPointer()) return (int)(ret) } -func (this *QProxyStyle) LayoutSpacing5(control1 uintptr, control2 uintptr, orientation uintptr, option *QStyleOption, widget *QWidget) int { +func (this *QProxyStyle) LayoutSpacing5(control1 QSizePolicy__ControlType, control2 QSizePolicy__ControlType, orientation Orientation, option *QStyleOption, widget *QWidget) int { ret := C.QProxyStyle_LayoutSpacing5(this.h, (C.uintptr_t)(control1), (C.uintptr_t)(control2), (C.uintptr_t)(orientation), option.cPointer(), widget.cPointer()) return (int)(ret) } -func (this *QProxyStyle) StandardIcon2(standardIcon uintptr, option *QStyleOption) *QIcon { +func (this *QProxyStyle) StandardIcon2(standardIcon QStyle__StandardPixmap, option *QStyleOption) *QIcon { ret := C.QProxyStyle_StandardIcon2(this.h, (C.uintptr_t)(standardIcon), option.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQIcon(ret) @@ -376,7 +376,7 @@ func (this *QProxyStyle) StandardIcon2(standardIcon uintptr, option *QStyleOptio return ret1 } -func (this *QProxyStyle) StandardIcon3(standardIcon uintptr, option *QStyleOption, widget *QWidget) *QIcon { +func (this *QProxyStyle) StandardIcon3(standardIcon QStyle__StandardPixmap, option *QStyleOption, widget *QWidget) *QIcon { ret := C.QProxyStyle_StandardIcon3(this.h, (C.uintptr_t)(standardIcon), option.cPointer(), widget.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQIcon(ret) @@ -387,7 +387,7 @@ func (this *QProxyStyle) StandardIcon3(standardIcon uintptr, option *QStyleOptio return ret1 } -func (this *QProxyStyle) StandardPixmap3(standardPixmap uintptr, opt *QStyleOption, widget *QWidget) *QPixmap { +func (this *QProxyStyle) StandardPixmap3(standardPixmap QStyle__StandardPixmap, opt *QStyleOption, widget *QWidget) *QPixmap { ret := C.QProxyStyle_StandardPixmap3(this.h, (C.uintptr_t)(standardPixmap), opt.cPointer(), widget.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) diff --git a/qt/gen_qquaternion.go b/qt/gen_qquaternion.go index 3b8d5cc3..b1f94043 100644 --- a/qt/gen_qquaternion.go +++ b/qt/gen_qquaternion.go @@ -42,7 +42,7 @@ func NewQQuaternion() *QQuaternion { } // NewQQuaternion2 constructs a new QQuaternion object. -func NewQQuaternion2(param1 uintptr) *QQuaternion { +func NewQQuaternion2(param1 Initialization) *QQuaternion { ret := C.QQuaternion_new2((C.uintptr_t)(param1)) return newQQuaternion(ret) } diff --git a/qt/gen_qrawfont.go b/qt/gen_qrawfont.go index 2019c2e1..adec66db 100644 --- a/qt/gen_qrawfont.go +++ b/qt/gen_qrawfont.go @@ -13,6 +13,21 @@ import ( "unsafe" ) +type QRawFont__AntialiasingType int + +const ( + QRawFont__AntialiasingType__PixelAntialiasing QRawFont__AntialiasingType = 0 + QRawFont__AntialiasingType__SubPixelAntialiasing QRawFont__AntialiasingType = 1 +) + +type QRawFont__LayoutFlag int + +const ( + QRawFont__LayoutFlag__SeparateAdvances QRawFont__LayoutFlag = 0 + QRawFont__LayoutFlag__KernedAdvances QRawFont__LayoutFlag = 1 + QRawFont__LayoutFlag__UseDesignMetrics QRawFont__LayoutFlag = 2 +) + type QRawFont struct { h *C.QRawFont } @@ -62,7 +77,7 @@ func NewQRawFont4(other *QRawFont) *QRawFont { } // NewQRawFont5 constructs a new QRawFont object. -func NewQRawFont5(fileName string, pixelSize float64, hintingPreference uintptr) *QRawFont { +func NewQRawFont5(fileName string, pixelSize float64, hintingPreference QFont__HintingPreference) *QRawFont { fileName_Cstring := C.CString(fileName) defer C.free(unsafe.Pointer(fileName_Cstring)) ret := C.QRawFont_new5(fileName_Cstring, C.size_t(len(fileName)), (C.double)(pixelSize), (C.uintptr_t)(hintingPreference)) @@ -70,7 +85,7 @@ func NewQRawFont5(fileName string, pixelSize float64, hintingPreference uintptr) } // NewQRawFont6 constructs a new QRawFont object. -func NewQRawFont6(fontData *QByteArray, pixelSize float64, hintingPreference uintptr) *QRawFont { +func NewQRawFont6(fontData *QByteArray, pixelSize float64, hintingPreference QFont__HintingPreference) *QRawFont { ret := C.QRawFont_new6(fontData.cPointer(), (C.double)(pixelSize), (C.uintptr_t)(hintingPreference)) return newQRawFont(ret) } @@ -116,9 +131,9 @@ func (this *QRawFont) StyleName() string { return ret } -func (this *QRawFont) Style() uintptr { +func (this *QRawFont) Style() QFont__Style { ret := C.QRawFont_Style(this.h) - return (uintptr)(ret) + return (QFont__Style)(ret) } func (this *QRawFont) Weight() int { @@ -236,9 +251,9 @@ func (this *QRawFont) PixelSize() float64 { return (float64)(ret) } -func (this *QRawFont) HintingPreference() uintptr { +func (this *QRawFont) HintingPreference() QFont__HintingPreference { ret := C.QRawFont_HintingPreference(this.h) - return (uintptr)(ret) + return (QFont__HintingPreference)(ret) } func (this *QRawFont) Ascent() float64 { @@ -291,13 +306,13 @@ func (this *QRawFont) UnitsPerEm() float64 { return (float64)(ret) } -func (this *QRawFont) LoadFromFile(fileName string, pixelSize float64, hintingPreference uintptr) { +func (this *QRawFont) LoadFromFile(fileName string, pixelSize float64, hintingPreference QFont__HintingPreference) { fileName_Cstring := C.CString(fileName) defer C.free(unsafe.Pointer(fileName_Cstring)) C.QRawFont_LoadFromFile(this.h, fileName_Cstring, C.size_t(len(fileName)), (C.double)(pixelSize), (C.uintptr_t)(hintingPreference)) } -func (this *QRawFont) LoadFromData(fontData *QByteArray, pixelSize float64, hintingPreference uintptr) { +func (this *QRawFont) LoadFromData(fontData *QByteArray, pixelSize float64, hintingPreference QFont__HintingPreference) { C.QRawFont_LoadFromData(this.h, fontData.cPointer(), (C.double)(pixelSize), (C.uintptr_t)(hintingPreference)) } @@ -311,14 +326,14 @@ func (this *QRawFont) SupportsCharacterWithCharacter(character QChar) bool { return (bool)(ret) } -func (this *QRawFont) SupportedWritingSystems() []uintptr { +func (this *QRawFont) SupportedWritingSystems() []QFontDatabase__WritingSystem { var _out *C.uintptr_t = nil var _out_len C.size_t = 0 C.QRawFont_SupportedWritingSystems(this.h, &_out, &_out_len) - ret := make([]uintptr, int(_out_len)) + ret := make([]QFontDatabase__WritingSystem, int(_out_len)) _outCast := (*[0xffff]C.uintptr_t)(unsafe.Pointer(_out)) // mrs jackson for i := 0; i < int(_out_len); i++ { - ret[i] = (uintptr)(_outCast[i]) + ret[i] = (QFontDatabase__WritingSystem)(_outCast[i]) } C.free(unsafe.Pointer(_out)) return ret @@ -348,7 +363,7 @@ func QRawFont_FromFont(font *QFont) *QRawFont { return ret1 } -func (this *QRawFont) AlphaMapForGlyph2(glyphIndex uint, antialiasingType uintptr) *QImage { +func (this *QRawFont) AlphaMapForGlyph2(glyphIndex uint, antialiasingType QRawFont__AntialiasingType) *QImage { ret := C.QRawFont_AlphaMapForGlyph2(this.h, (C.uint)(glyphIndex), (C.uintptr_t)(antialiasingType)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQImage(ret) @@ -359,7 +374,7 @@ func (this *QRawFont) AlphaMapForGlyph2(glyphIndex uint, antialiasingType uintpt return ret1 } -func (this *QRawFont) AlphaMapForGlyph3(glyphIndex uint, antialiasingType uintptr, transform *QTransform) *QImage { +func (this *QRawFont) AlphaMapForGlyph3(glyphIndex uint, antialiasingType QRawFont__AntialiasingType, transform *QTransform) *QImage { ret := C.QRawFont_AlphaMapForGlyph3(this.h, (C.uint)(glyphIndex), (C.uintptr_t)(antialiasingType), transform.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQImage(ret) @@ -370,7 +385,7 @@ func (this *QRawFont) AlphaMapForGlyph3(glyphIndex uint, antialiasingType uintpt return ret1 } -func QRawFont_FromFont2(font *QFont, writingSystem uintptr) *QRawFont { +func QRawFont_FromFont2(font *QFont, writingSystem QFontDatabase__WritingSystem) *QRawFont { ret := C.QRawFont_FromFont2(font.cPointer(), (C.uintptr_t)(writingSystem)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRawFont(ret) diff --git a/qt/gen_qreadwritelock.go b/qt/gen_qreadwritelock.go index fd52f997..e247afa4 100644 --- a/qt/gen_qreadwritelock.go +++ b/qt/gen_qreadwritelock.go @@ -12,6 +12,13 @@ import ( "unsafe" ) +type QReadWriteLock__RecursionMode int + +const ( + QReadWriteLock__RecursionMode__NonRecursive QReadWriteLock__RecursionMode = 0 + QReadWriteLock__RecursionMode__Recursive QReadWriteLock__RecursionMode = 1 +) + type QReadWriteLock struct { h *C.QReadWriteLock } @@ -41,7 +48,7 @@ func NewQReadWriteLock() *QReadWriteLock { } // NewQReadWriteLock2 constructs a new QReadWriteLock object. -func NewQReadWriteLock2(recursionMode uintptr) *QReadWriteLock { +func NewQReadWriteLock2(recursionMode QReadWriteLock__RecursionMode) *QReadWriteLock { ret := C.QReadWriteLock_new2((C.uintptr_t)(recursionMode)) return newQReadWriteLock(ret) } diff --git a/qt/gen_qregexp.go b/qt/gen_qregexp.go index afffe6fa..be629f6a 100644 --- a/qt/gen_qregexp.go +++ b/qt/gen_qregexp.go @@ -12,6 +12,25 @@ import ( "unsafe" ) +type QRegExp__PatternSyntax int + +const ( + QRegExp__PatternSyntax__RegExp QRegExp__PatternSyntax = 0 + QRegExp__PatternSyntax__Wildcard QRegExp__PatternSyntax = 1 + QRegExp__PatternSyntax__FixedString QRegExp__PatternSyntax = 2 + QRegExp__PatternSyntax__RegExp2 QRegExp__PatternSyntax = 3 + QRegExp__PatternSyntax__WildcardUnix QRegExp__PatternSyntax = 4 + QRegExp__PatternSyntax__W3CXmlSchema11 QRegExp__PatternSyntax = 5 +) + +type QRegExp__CaretMode int + +const ( + QRegExp__CaretMode__CaretAtZero QRegExp__CaretMode = 0 + QRegExp__CaretMode__CaretAtOffset QRegExp__CaretMode = 1 + QRegExp__CaretMode__CaretWontMatch QRegExp__CaretMode = 2 +) + type QRegExp struct { h *C.QRegExp } @@ -55,7 +74,7 @@ func NewQRegExp3(rx *QRegExp) *QRegExp { } // NewQRegExp4 constructs a new QRegExp object. -func NewQRegExp4(pattern string, cs uintptr) *QRegExp { +func NewQRegExp4(pattern string, cs CaseSensitivity) *QRegExp { pattern_Cstring := C.CString(pattern) defer C.free(unsafe.Pointer(pattern_Cstring)) ret := C.QRegExp_new4(pattern_Cstring, C.size_t(len(pattern)), (C.uintptr_t)(cs)) @@ -63,7 +82,7 @@ func NewQRegExp4(pattern string, cs uintptr) *QRegExp { } // NewQRegExp5 constructs a new QRegExp object. -func NewQRegExp5(pattern string, cs uintptr, syntax uintptr) *QRegExp { +func NewQRegExp5(pattern string, cs CaseSensitivity, syntax QRegExp__PatternSyntax) *QRegExp { pattern_Cstring := C.CString(pattern) defer C.free(unsafe.Pointer(pattern_Cstring)) ret := C.QRegExp_new5(pattern_Cstring, C.size_t(len(pattern)), (C.uintptr_t)(cs), (C.uintptr_t)(syntax)) @@ -113,21 +132,21 @@ func (this *QRegExp) SetPattern(pattern string) { C.QRegExp_SetPattern(this.h, pattern_Cstring, C.size_t(len(pattern))) } -func (this *QRegExp) CaseSensitivity() uintptr { +func (this *QRegExp) CaseSensitivity() CaseSensitivity { ret := C.QRegExp_CaseSensitivity(this.h) - return (uintptr)(ret) + return (CaseSensitivity)(ret) } -func (this *QRegExp) SetCaseSensitivity(cs uintptr) { +func (this *QRegExp) SetCaseSensitivity(cs CaseSensitivity) { C.QRegExp_SetCaseSensitivity(this.h, (C.uintptr_t)(cs)) } -func (this *QRegExp) PatternSyntax() uintptr { +func (this *QRegExp) PatternSyntax() QRegExp__PatternSyntax { ret := C.QRegExp_PatternSyntax(this.h) - return (uintptr)(ret) + return (QRegExp__PatternSyntax)(ret) } -func (this *QRegExp) SetPatternSyntax(syntax uintptr) { +func (this *QRegExp) SetPatternSyntax(syntax QRegExp__PatternSyntax) { C.QRegExp_SetPatternSyntax(this.h, (C.uintptr_t)(syntax)) } @@ -265,7 +284,7 @@ func (this *QRegExp) IndexIn2(str string, offset int) int { return (int)(ret) } -func (this *QRegExp) IndexIn3(str string, offset int, caretMode uintptr) int { +func (this *QRegExp) IndexIn3(str string, offset int, caretMode QRegExp__CaretMode) int { str_Cstring := C.CString(str) defer C.free(unsafe.Pointer(str_Cstring)) ret := C.QRegExp_IndexIn3(this.h, str_Cstring, C.size_t(len(str)), (C.int)(offset), (C.uintptr_t)(caretMode)) @@ -279,7 +298,7 @@ func (this *QRegExp) LastIndexIn2(str string, offset int) int { return (int)(ret) } -func (this *QRegExp) LastIndexIn3(str string, offset int, caretMode uintptr) int { +func (this *QRegExp) LastIndexIn3(str string, offset int, caretMode QRegExp__CaretMode) int { str_Cstring := C.CString(str) defer C.free(unsafe.Pointer(str_Cstring)) ret := C.QRegExp_LastIndexIn3(this.h, str_Cstring, C.size_t(len(str)), (C.int)(offset), (C.uintptr_t)(caretMode)) diff --git a/qt/gen_qregion.go b/qt/gen_qregion.go index 1b3612a3..7519931c 100644 --- a/qt/gen_qregion.go +++ b/qt/gen_qregion.go @@ -13,6 +13,13 @@ import ( "unsafe" ) +type QRegion__RegionType int + +const ( + QRegion__RegionType__Rectangle QRegion__RegionType = 0 + QRegion__RegionType__Ellipse QRegion__RegionType = 1 +) + type QRegion struct { h *C.QRegion } @@ -66,13 +73,13 @@ func NewQRegion5(bitmap *QBitmap) *QRegion { } // NewQRegion6 constructs a new QRegion object. -func NewQRegion6(x int, y int, w int, h int, t uintptr) *QRegion { +func NewQRegion6(x int, y int, w int, h int, t QRegion__RegionType) *QRegion { ret := C.QRegion_new6((C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), (C.uintptr_t)(t)) return newQRegion(ret) } // NewQRegion7 constructs a new QRegion object. -func NewQRegion7(r *QRect, t uintptr) *QRegion { +func NewQRegion7(r *QRect, t QRegion__RegionType) *QRegion { ret := C.QRegion_new7(r.cPointer(), (C.uintptr_t)(t)) return newQRegion(ret) } diff --git a/qt/gen_qregularexpression.go b/qt/gen_qregularexpression.go index dc6978c1..b84305e0 100644 --- a/qt/gen_qregularexpression.go +++ b/qt/gen_qregularexpression.go @@ -13,6 +13,38 @@ import ( "unsafe" ) +type QRegularExpression__PatternOption int + +const ( + QRegularExpression__PatternOption__NoPatternOption QRegularExpression__PatternOption = 0 + QRegularExpression__PatternOption__CaseInsensitiveOption QRegularExpression__PatternOption = 1 + QRegularExpression__PatternOption__DotMatchesEverythingOption QRegularExpression__PatternOption = 2 + QRegularExpression__PatternOption__MultilineOption QRegularExpression__PatternOption = 4 + QRegularExpression__PatternOption__ExtendedPatternSyntaxOption QRegularExpression__PatternOption = 8 + QRegularExpression__PatternOption__InvertedGreedinessOption QRegularExpression__PatternOption = 16 + QRegularExpression__PatternOption__DontCaptureOption QRegularExpression__PatternOption = 32 + QRegularExpression__PatternOption__UseUnicodePropertiesOption QRegularExpression__PatternOption = 64 + QRegularExpression__PatternOption__OptimizeOnFirstUsageOption QRegularExpression__PatternOption = 128 + QRegularExpression__PatternOption__DontAutomaticallyOptimizeOption QRegularExpression__PatternOption = 256 +) + +type QRegularExpression__MatchType int + +const ( + QRegularExpression__MatchType__NormalMatch QRegularExpression__MatchType = 0 + QRegularExpression__MatchType__PartialPreferCompleteMatch QRegularExpression__MatchType = 1 + QRegularExpression__MatchType__PartialPreferFirstMatch QRegularExpression__MatchType = 2 + QRegularExpression__MatchType__NoMatch QRegularExpression__MatchType = 3 +) + +type QRegularExpression__MatchOption int + +const ( + QRegularExpression__MatchOption__NoMatchOption QRegularExpression__MatchOption = 0 + QRegularExpression__MatchOption__AnchoredMatchOption QRegularExpression__MatchOption = 1 + QRegularExpression__MatchOption__DontCheckSubjectStringMatchOption QRegularExpression__MatchOption = 2 +) + type QRegularExpression struct { h *C.QRegularExpression } @@ -220,7 +252,7 @@ func (this *QRegularExpression) Match2(subject string, offset int) *QRegularExpr return ret1 } -func (this *QRegularExpression) Match3(subject string, offset int, matchType uintptr) *QRegularExpressionMatch { +func (this *QRegularExpression) Match3(subject string, offset int, matchType QRegularExpression__MatchType) *QRegularExpressionMatch { subject_Cstring := C.CString(subject) defer C.free(unsafe.Pointer(subject_Cstring)) ret := C.QRegularExpression_Match3(this.h, subject_Cstring, C.size_t(len(subject)), (C.int)(offset), (C.uintptr_t)(matchType)) @@ -233,7 +265,7 @@ func (this *QRegularExpression) Match3(subject string, offset int, matchType uin return ret1 } -func (this *QRegularExpression) Match4(subject string, offset int, matchType uintptr, matchOptions int) *QRegularExpressionMatch { +func (this *QRegularExpression) Match4(subject string, offset int, matchType QRegularExpression__MatchType, matchOptions int) *QRegularExpressionMatch { subject_Cstring := C.CString(subject) defer C.free(unsafe.Pointer(subject_Cstring)) ret := C.QRegularExpression_Match4(this.h, subject_Cstring, C.size_t(len(subject)), (C.int)(offset), (C.uintptr_t)(matchType), (C.int)(matchOptions)) @@ -259,7 +291,7 @@ func (this *QRegularExpression) GlobalMatch2(subject string, offset int) *QRegul return ret1 } -func (this *QRegularExpression) GlobalMatch3(subject string, offset int, matchType uintptr) *QRegularExpressionMatchIterator { +func (this *QRegularExpression) GlobalMatch3(subject string, offset int, matchType QRegularExpression__MatchType) *QRegularExpressionMatchIterator { subject_Cstring := C.CString(subject) defer C.free(unsafe.Pointer(subject_Cstring)) ret := C.QRegularExpression_GlobalMatch3(this.h, subject_Cstring, C.size_t(len(subject)), (C.int)(offset), (C.uintptr_t)(matchType)) @@ -272,7 +304,7 @@ func (this *QRegularExpression) GlobalMatch3(subject string, offset int, matchTy return ret1 } -func (this *QRegularExpression) GlobalMatch4(subject string, offset int, matchType uintptr, matchOptions int) *QRegularExpressionMatchIterator { +func (this *QRegularExpression) GlobalMatch4(subject string, offset int, matchType QRegularExpression__MatchType, matchOptions int) *QRegularExpressionMatchIterator { subject_Cstring := C.CString(subject) defer C.free(unsafe.Pointer(subject_Cstring)) ret := C.QRegularExpression_GlobalMatch4(this.h, subject_Cstring, C.size_t(len(subject)), (C.int)(offset), (C.uintptr_t)(matchType), (C.int)(matchOptions)) @@ -342,9 +374,9 @@ func (this *QRegularExpressionMatch) RegularExpression() *QRegularExpression { return ret1 } -func (this *QRegularExpressionMatch) MatchType() uintptr { +func (this *QRegularExpressionMatch) MatchType() QRegularExpression__MatchType { ret := C.QRegularExpressionMatch_MatchType(this.h) - return (uintptr)(ret) + return (QRegularExpression__MatchType)(ret) } func (this *QRegularExpressionMatch) MatchOptions() int { @@ -556,9 +588,9 @@ func (this *QRegularExpressionMatchIterator) RegularExpression() *QRegularExpres return ret1 } -func (this *QRegularExpressionMatchIterator) MatchType() uintptr { +func (this *QRegularExpressionMatchIterator) MatchType() QRegularExpression__MatchType { ret := C.QRegularExpressionMatchIterator_MatchType(this.h) - return (uintptr)(ret) + return (QRegularExpression__MatchType)(ret) } func (this *QRegularExpressionMatchIterator) MatchOptions() int { diff --git a/qt/gen_qresource.go b/qt/gen_qresource.go index 1d6c60d0..fdf6a860 100644 --- a/qt/gen_qresource.go +++ b/qt/gen_qresource.go @@ -13,6 +13,14 @@ import ( "unsafe" ) +type QResource__Compression int + +const ( + QResource__Compression__NoCompression QResource__Compression = 0 + QResource__Compression__ZlibCompression QResource__Compression = 1 + QResource__Compression__ZstdCompression QResource__Compression = 2 +) + type QResource struct { h *C.QResource } @@ -101,9 +109,9 @@ func (this *QResource) IsValid() bool { return (bool)(ret) } -func (this *QResource) CompressionAlgorithm() uintptr { +func (this *QResource) CompressionAlgorithm() QResource__Compression { ret := C.QResource_CompressionAlgorithm(this.h) - return (uintptr)(ret) + return (QResource__Compression)(ret) } func (this *QResource) Size() int64 { diff --git a/qt/gen_qrubberband.go b/qt/gen_qrubberband.go index 3dc36e61..89956fc5 100644 --- a/qt/gen_qrubberband.go +++ b/qt/gen_qrubberband.go @@ -12,6 +12,13 @@ import ( "unsafe" ) +type QRubberBand__Shape int + +const ( + QRubberBand__Shape__Line QRubberBand__Shape = 0 + QRubberBand__Shape__Rectangle QRubberBand__Shape = 1 +) + type QRubberBand struct { h *C.QRubberBand *QWidget @@ -36,13 +43,13 @@ func newQRubberBand_U(h unsafe.Pointer) *QRubberBand { } // NewQRubberBand constructs a new QRubberBand object. -func NewQRubberBand(param1 uintptr) *QRubberBand { +func NewQRubberBand(param1 QRubberBand__Shape) *QRubberBand { ret := C.QRubberBand_new((C.uintptr_t)(param1)) return newQRubberBand(ret) } // NewQRubberBand2 constructs a new QRubberBand object. -func NewQRubberBand2(param1 uintptr, param2 *QWidget) *QRubberBand { +func NewQRubberBand2(param1 QRubberBand__Shape, param2 *QWidget) *QRubberBand { ret := C.QRubberBand_new2((C.uintptr_t)(param1), param2.cPointer()) return newQRubberBand(ret) } @@ -74,9 +81,9 @@ func QRubberBand_TrUtf8(s string) string { return ret } -func (this *QRubberBand) Shape() uintptr { +func (this *QRubberBand) Shape() QRubberBand__Shape { ret := C.QRubberBand_Shape(this.h) - return (uintptr)(ret) + return (QRubberBand__Shape)(ret) } func (this *QRubberBand) SetGeometry(r *QRect) { diff --git a/qt/gen_qscreen.go b/qt/gen_qscreen.go index f34b1e00..06762ac5 100644 --- a/qt/gen_qscreen.go +++ b/qt/gen_qscreen.go @@ -257,19 +257,19 @@ func (this *QScreen) AvailableVirtualGeometry() *QRect { return ret1 } -func (this *QScreen) PrimaryOrientation() uintptr { +func (this *QScreen) PrimaryOrientation() ScreenOrientation { ret := C.QScreen_PrimaryOrientation(this.h) - return (uintptr)(ret) + return (ScreenOrientation)(ret) } -func (this *QScreen) Orientation() uintptr { +func (this *QScreen) Orientation() ScreenOrientation { ret := C.QScreen_Orientation(this.h) - return (uintptr)(ret) + return (ScreenOrientation)(ret) } -func (this *QScreen) NativeOrientation() uintptr { +func (this *QScreen) NativeOrientation() ScreenOrientation { ret := C.QScreen_NativeOrientation(this.h) - return (uintptr)(ret) + return (ScreenOrientation)(ret) } func (this *QScreen) OrientationUpdateMask() int { @@ -281,12 +281,12 @@ func (this *QScreen) SetOrientationUpdateMask(mask int) { C.QScreen_SetOrientationUpdateMask(this.h, (C.int)(mask)) } -func (this *QScreen) AngleBetween(a uintptr, b uintptr) int { +func (this *QScreen) AngleBetween(a ScreenOrientation, b ScreenOrientation) int { ret := C.QScreen_AngleBetween(this.h, (C.uintptr_t)(a), (C.uintptr_t)(b)) return (int)(ret) } -func (this *QScreen) TransformBetween(a uintptr, b uintptr, target *QRect) *QTransform { +func (this *QScreen) TransformBetween(a ScreenOrientation, b ScreenOrientation, target *QRect) *QTransform { ret := C.QScreen_TransformBetween(this.h, (C.uintptr_t)(a), (C.uintptr_t)(b), target.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQTransform(ret) @@ -297,7 +297,7 @@ func (this *QScreen) TransformBetween(a uintptr, b uintptr, target *QRect) *QTra return ret1 } -func (this *QScreen) MapBetween(a uintptr, b uintptr, rect *QRect) *QRect { +func (this *QScreen) MapBetween(a ScreenOrientation, b ScreenOrientation, rect *QRect) *QRect { ret := C.QScreen_MapBetween(this.h, (C.uintptr_t)(a), (C.uintptr_t)(b), rect.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRect(ret) @@ -308,12 +308,12 @@ func (this *QScreen) MapBetween(a uintptr, b uintptr, rect *QRect) *QRect { return ret1 } -func (this *QScreen) IsPortrait(orientation uintptr) bool { +func (this *QScreen) IsPortrait(orientation ScreenOrientation) bool { ret := C.QScreen_IsPortrait(this.h, (C.uintptr_t)(orientation)) return (bool)(ret) } -func (this *QScreen) IsLandscape(orientation uintptr) bool { +func (this *QScreen) IsLandscape(orientation ScreenOrientation) bool { ret := C.QScreen_IsLandscape(this.h, (C.uintptr_t)(orientation)) return (bool)(ret) } @@ -406,7 +406,7 @@ func (this *QScreen) OnVirtualGeometryChanged(slot func()) { C.QScreen_connect_VirtualGeometryChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QScreen) PrimaryOrientationChanged(orientation uintptr) { +func (this *QScreen) PrimaryOrientationChanged(orientation ScreenOrientation) { C.QScreen_PrimaryOrientationChanged(this.h, (C.uintptr_t)(orientation)) } @@ -418,7 +418,7 @@ func (this *QScreen) OnPrimaryOrientationChanged(slot func()) { C.QScreen_connect_PrimaryOrientationChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QScreen) OrientationChanged(orientation uintptr) { +func (this *QScreen) OrientationChanged(orientation ScreenOrientation) { C.QScreen_OrientationChanged(this.h, (C.uintptr_t)(orientation)) } diff --git a/qt/gen_qscrollbar.go b/qt/gen_qscrollbar.go index f7260489..310a6a3a 100644 --- a/qt/gen_qscrollbar.go +++ b/qt/gen_qscrollbar.go @@ -43,7 +43,7 @@ func NewQScrollBar() *QScrollBar { } // NewQScrollBar2 constructs a new QScrollBar object. -func NewQScrollBar2(param1 uintptr) *QScrollBar { +func NewQScrollBar2(param1 Orientation) *QScrollBar { ret := C.QScrollBar_new2((C.uintptr_t)(param1)) return newQScrollBar(ret) } @@ -55,7 +55,7 @@ func NewQScrollBar3(parent *QWidget) *QScrollBar { } // NewQScrollBar4 constructs a new QScrollBar object. -func NewQScrollBar4(param1 uintptr, parent *QWidget) *QScrollBar { +func NewQScrollBar4(param1 Orientation, parent *QWidget) *QScrollBar { ret := C.QScrollBar_new4((C.uintptr_t)(param1), parent.cPointer()) return newQScrollBar(ret) } diff --git a/qt/gen_qscroller.go b/qt/gen_qscroller.go index 693c758f..c7279dc9 100644 --- a/qt/gen_qscroller.go +++ b/qt/gen_qscroller.go @@ -14,6 +14,32 @@ import ( "unsafe" ) +type QScroller__State int + +const ( + QScroller__State__Inactive QScroller__State = 0 + QScroller__State__Pressed QScroller__State = 1 + QScroller__State__Dragging QScroller__State = 2 + QScroller__State__Scrolling QScroller__State = 3 +) + +type QScroller__ScrollerGestureType int + +const ( + QScroller__ScrollerGestureType__TouchGesture QScroller__ScrollerGestureType = 0 + QScroller__ScrollerGestureType__LeftMouseButtonGesture QScroller__ScrollerGestureType = 1 + QScroller__ScrollerGestureType__RightMouseButtonGesture QScroller__ScrollerGestureType = 2 + QScroller__ScrollerGestureType__MiddleMouseButtonGesture QScroller__ScrollerGestureType = 3 +) + +type QScroller__Input int + +const ( + QScroller__Input__InputPress QScroller__Input = 1 + QScroller__Input__InputMove QScroller__Input = 2 + QScroller__Input__InputRelease QScroller__Input = 3 +) + type QScroller struct { h *C.QScroller *QObject @@ -79,14 +105,14 @@ func QScroller_ScrollerWithTarget(target *QObject) *QScroller { return newQScroller_U(unsafe.Pointer(ret)) } -func QScroller_GrabGesture(target *QObject) uintptr { +func QScroller_GrabGesture(target *QObject) GestureType { ret := C.QScroller_GrabGesture(target.cPointer()) - return (uintptr)(ret) + return (GestureType)(ret) } -func QScroller_GrabbedGesture(target *QObject) uintptr { +func QScroller_GrabbedGesture(target *QObject) GestureType { ret := C.QScroller_GrabbedGesture(target.cPointer()) - return (uintptr)(ret) + return (GestureType)(ret) } func QScroller_UngrabGesture(target *QObject) { @@ -111,12 +137,12 @@ func (this *QScroller) Target() *QObject { return newQObject_U(unsafe.Pointer(ret)) } -func (this *QScroller) State() uintptr { +func (this *QScroller) State() QScroller__State { ret := C.QScroller_State(this.h) - return (uintptr)(ret) + return (QScroller__State)(ret) } -func (this *QScroller) HandleInput(input uintptr, position *QPointF) bool { +func (this *QScroller) HandleInput(input QScroller__Input, position *QPointF) bool { ret := C.QScroller_HandleInput(this.h, (C.uintptr_t)(input), position.cPointer()) return (bool)(ret) } @@ -221,7 +247,7 @@ func (this *QScroller) ResendPrepareEvent() { C.QScroller_ResendPrepareEvent(this.h) } -func (this *QScroller) StateChanged(newstate uintptr) { +func (this *QScroller) StateChanged(newstate QScroller__State) { C.QScroller_StateChanged(this.h, (C.uintptr_t)(newstate)) } @@ -297,12 +323,12 @@ func QScroller_TrUtf83(s string, c string, n int) string { return ret } -func QScroller_GrabGesture2(target *QObject, gestureType uintptr) uintptr { +func QScroller_GrabGesture2(target *QObject, gestureType QScroller__ScrollerGestureType) GestureType { ret := C.QScroller_GrabGesture2(target.cPointer(), (C.uintptr_t)(gestureType)) - return (uintptr)(ret) + return (GestureType)(ret) } -func (this *QScroller) HandleInput3(input uintptr, position *QPointF, timestamp int64) bool { +func (this *QScroller) HandleInput3(input QScroller__Input, position *QPointF, timestamp int64) bool { ret := C.QScroller_HandleInput3(this.h, (C.uintptr_t)(input), position.cPointer(), (C.longlong)(timestamp)) return (bool)(ret) } diff --git a/qt/gen_qscrollerproperties.go b/qt/gen_qscrollerproperties.go index bd4dffaf..f7adef84 100644 --- a/qt/gen_qscrollerproperties.go +++ b/qt/gen_qscrollerproperties.go @@ -13,6 +13,49 @@ import ( "unsafe" ) +type QScrollerProperties__OvershootPolicy int + +const ( + QScrollerProperties__OvershootPolicy__OvershootWhenScrollable QScrollerProperties__OvershootPolicy = 0 + QScrollerProperties__OvershootPolicy__OvershootAlwaysOff QScrollerProperties__OvershootPolicy = 1 + QScrollerProperties__OvershootPolicy__OvershootAlwaysOn QScrollerProperties__OvershootPolicy = 2 +) + +type QScrollerProperties__FrameRates int + +const ( + QScrollerProperties__FrameRates__Standard QScrollerProperties__FrameRates = 0 + QScrollerProperties__FrameRates__Fps60 QScrollerProperties__FrameRates = 1 + QScrollerProperties__FrameRates__Fps30 QScrollerProperties__FrameRates = 2 + QScrollerProperties__FrameRates__Fps20 QScrollerProperties__FrameRates = 3 +) + +type QScrollerProperties__ScrollMetric int + +const ( + QScrollerProperties__ScrollMetric__MousePressEventDelay QScrollerProperties__ScrollMetric = 0 + QScrollerProperties__ScrollMetric__DragStartDistance QScrollerProperties__ScrollMetric = 1 + QScrollerProperties__ScrollMetric__DragVelocitySmoothingFactor QScrollerProperties__ScrollMetric = 2 + QScrollerProperties__ScrollMetric__AxisLockThreshold QScrollerProperties__ScrollMetric = 3 + QScrollerProperties__ScrollMetric__ScrollingCurve QScrollerProperties__ScrollMetric = 4 + QScrollerProperties__ScrollMetric__DecelerationFactor QScrollerProperties__ScrollMetric = 5 + QScrollerProperties__ScrollMetric__MinimumVelocity QScrollerProperties__ScrollMetric = 6 + QScrollerProperties__ScrollMetric__MaximumVelocity QScrollerProperties__ScrollMetric = 7 + QScrollerProperties__ScrollMetric__MaximumClickThroughVelocity QScrollerProperties__ScrollMetric = 8 + QScrollerProperties__ScrollMetric__AcceleratingFlickMaximumTime QScrollerProperties__ScrollMetric = 9 + QScrollerProperties__ScrollMetric__AcceleratingFlickSpeedupFactor QScrollerProperties__ScrollMetric = 10 + QScrollerProperties__ScrollMetric__SnapPositionRatio QScrollerProperties__ScrollMetric = 11 + QScrollerProperties__ScrollMetric__SnapTime QScrollerProperties__ScrollMetric = 12 + QScrollerProperties__ScrollMetric__OvershootDragResistanceFactor QScrollerProperties__ScrollMetric = 13 + QScrollerProperties__ScrollMetric__OvershootDragDistanceFactor QScrollerProperties__ScrollMetric = 14 + QScrollerProperties__ScrollMetric__OvershootScrollDistanceFactor QScrollerProperties__ScrollMetric = 15 + QScrollerProperties__ScrollMetric__OvershootScrollTime QScrollerProperties__ScrollMetric = 16 + QScrollerProperties__ScrollMetric__HorizontalOvershootPolicy QScrollerProperties__ScrollMetric = 17 + QScrollerProperties__ScrollMetric__VerticalOvershootPolicy QScrollerProperties__ScrollMetric = 18 + QScrollerProperties__ScrollMetric__FrameRate QScrollerProperties__ScrollMetric = 19 + QScrollerProperties__ScrollMetric__ScrollMetricCount QScrollerProperties__ScrollMetric = 20 +) + type QScrollerProperties struct { h *C.QScrollerProperties } @@ -69,7 +112,7 @@ func QScrollerProperties_UnsetDefaultScrollerProperties() { C.QScrollerProperties_UnsetDefaultScrollerProperties() } -func (this *QScrollerProperties) ScrollMetric(metric uintptr) *QVariant { +func (this *QScrollerProperties) ScrollMetric(metric QScrollerProperties__ScrollMetric) *QVariant { ret := C.QScrollerProperties_ScrollMetric(this.h, (C.uintptr_t)(metric)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -80,7 +123,7 @@ func (this *QScrollerProperties) ScrollMetric(metric uintptr) *QVariant { return ret1 } -func (this *QScrollerProperties) SetScrollMetric(metric uintptr, value *QVariant) { +func (this *QScrollerProperties) SetScrollMetric(metric QScrollerProperties__ScrollMetric, value *QVariant) { C.QScrollerProperties_SetScrollMetric(this.h, (C.uintptr_t)(metric), value.cPointer()) } diff --git a/qt/gen_qsessionmanager.go b/qt/gen_qsessionmanager.go index d963ed4f..bbb1887f 100644 --- a/qt/gen_qsessionmanager.go +++ b/qt/gen_qsessionmanager.go @@ -12,6 +12,15 @@ import ( "unsafe" ) +type QSessionManager__RestartHint int + +const ( + QSessionManager__RestartHint__RestartIfRunning QSessionManager__RestartHint = 0 + QSessionManager__RestartHint__RestartAnyway QSessionManager__RestartHint = 1 + QSessionManager__RestartHint__RestartImmediately QSessionManager__RestartHint = 2 + QSessionManager__RestartHint__RestartNever QSessionManager__RestartHint = 3 +) + type QSessionManager struct { h *C.QSessionManager *QObject @@ -98,13 +107,13 @@ func (this *QSessionManager) Cancel() { C.QSessionManager_Cancel(this.h) } -func (this *QSessionManager) SetRestartHint(restartHint uintptr) { +func (this *QSessionManager) SetRestartHint(restartHint QSessionManager__RestartHint) { C.QSessionManager_SetRestartHint(this.h, (C.uintptr_t)(restartHint)) } -func (this *QSessionManager) RestartHint() uintptr { +func (this *QSessionManager) RestartHint() QSessionManager__RestartHint { ret := C.QSessionManager_RestartHint(this.h) - return (uintptr)(ret) + return (QSessionManager__RestartHint)(ret) } func (this *QSessionManager) SetRestartCommand(restartCommand []string) { diff --git a/qt/gen_qsettings.go b/qt/gen_qsettings.go index 84d0fcdf..4550711c 100644 --- a/qt/gen_qsettings.go +++ b/qt/gen_qsettings.go @@ -13,6 +13,45 @@ import ( "unsafe" ) +type QSettings__Status int + +const ( + QSettings__Status__NoError QSettings__Status = 0 + QSettings__Status__AccessError QSettings__Status = 1 + QSettings__Status__FormatError QSettings__Status = 2 +) + +type QSettings__Format int + +const ( + QSettings__Format__NativeFormat QSettings__Format = 0 + QSettings__Format__IniFormat QSettings__Format = 1 + QSettings__Format__InvalidFormat QSettings__Format = 16 + QSettings__Format__CustomFormat1 QSettings__Format = 17 + QSettings__Format__CustomFormat2 QSettings__Format = 18 + QSettings__Format__CustomFormat3 QSettings__Format = 19 + QSettings__Format__CustomFormat4 QSettings__Format = 20 + QSettings__Format__CustomFormat5 QSettings__Format = 21 + QSettings__Format__CustomFormat6 QSettings__Format = 22 + QSettings__Format__CustomFormat7 QSettings__Format = 23 + QSettings__Format__CustomFormat8 QSettings__Format = 24 + QSettings__Format__CustomFormat9 QSettings__Format = 25 + QSettings__Format__CustomFormat10 QSettings__Format = 26 + QSettings__Format__CustomFormat11 QSettings__Format = 27 + QSettings__Format__CustomFormat12 QSettings__Format = 28 + QSettings__Format__CustomFormat13 QSettings__Format = 29 + QSettings__Format__CustomFormat14 QSettings__Format = 30 + QSettings__Format__CustomFormat15 QSettings__Format = 31 + QSettings__Format__CustomFormat16 QSettings__Format = 32 +) + +type QSettings__Scope int + +const ( + QSettings__Scope__UserScope QSettings__Scope = 0 + QSettings__Scope__SystemScope QSettings__Scope = 1 +) + type QSettings struct { h *C.QSettings *QObject @@ -45,7 +84,7 @@ func NewQSettings(organization string) *QSettings { } // NewQSettings2 constructs a new QSettings object. -func NewQSettings2(scope uintptr, organization string) *QSettings { +func NewQSettings2(scope QSettings__Scope, organization string) *QSettings { organization_Cstring := C.CString(organization) defer C.free(unsafe.Pointer(organization_Cstring)) ret := C.QSettings_new2((C.uintptr_t)(scope), organization_Cstring, C.size_t(len(organization))) @@ -53,7 +92,7 @@ func NewQSettings2(scope uintptr, organization string) *QSettings { } // NewQSettings3 constructs a new QSettings object. -func NewQSettings3(format uintptr, scope uintptr, organization string) *QSettings { +func NewQSettings3(format QSettings__Format, scope QSettings__Scope, organization string) *QSettings { organization_Cstring := C.CString(organization) defer C.free(unsafe.Pointer(organization_Cstring)) ret := C.QSettings_new3((C.uintptr_t)(format), (C.uintptr_t)(scope), organization_Cstring, C.size_t(len(organization))) @@ -61,7 +100,7 @@ func NewQSettings3(format uintptr, scope uintptr, organization string) *QSetting } // NewQSettings4 constructs a new QSettings object. -func NewQSettings4(fileName string, format uintptr) *QSettings { +func NewQSettings4(fileName string, format QSettings__Format) *QSettings { fileName_Cstring := C.CString(fileName) defer C.free(unsafe.Pointer(fileName_Cstring)) ret := C.QSettings_new4(fileName_Cstring, C.size_t(len(fileName)), (C.uintptr_t)(format)) @@ -75,7 +114,7 @@ func NewQSettings5() *QSettings { } // NewQSettings6 constructs a new QSettings object. -func NewQSettings6(scope uintptr) *QSettings { +func NewQSettings6(scope QSettings__Scope) *QSettings { ret := C.QSettings_new6((C.uintptr_t)(scope)) return newQSettings(ret) } @@ -101,7 +140,7 @@ func NewQSettings8(organization string, application string, parent *QObject) *QS } // NewQSettings9 constructs a new QSettings object. -func NewQSettings9(scope uintptr, organization string, application string) *QSettings { +func NewQSettings9(scope QSettings__Scope, organization string, application string) *QSettings { organization_Cstring := C.CString(organization) defer C.free(unsafe.Pointer(organization_Cstring)) application_Cstring := C.CString(application) @@ -111,7 +150,7 @@ func NewQSettings9(scope uintptr, organization string, application string) *QSet } // NewQSettings10 constructs a new QSettings object. -func NewQSettings10(scope uintptr, organization string, application string, parent *QObject) *QSettings { +func NewQSettings10(scope QSettings__Scope, organization string, application string, parent *QObject) *QSettings { organization_Cstring := C.CString(organization) defer C.free(unsafe.Pointer(organization_Cstring)) application_Cstring := C.CString(application) @@ -121,7 +160,7 @@ func NewQSettings10(scope uintptr, organization string, application string, pare } // NewQSettings11 constructs a new QSettings object. -func NewQSettings11(format uintptr, scope uintptr, organization string, application string) *QSettings { +func NewQSettings11(format QSettings__Format, scope QSettings__Scope, organization string, application string) *QSettings { organization_Cstring := C.CString(organization) defer C.free(unsafe.Pointer(organization_Cstring)) application_Cstring := C.CString(application) @@ -131,7 +170,7 @@ func NewQSettings11(format uintptr, scope uintptr, organization string, applicat } // NewQSettings12 constructs a new QSettings object. -func NewQSettings12(format uintptr, scope uintptr, organization string, application string, parent *QObject) *QSettings { +func NewQSettings12(format QSettings__Format, scope QSettings__Scope, organization string, application string, parent *QObject) *QSettings { organization_Cstring := C.CString(organization) defer C.free(unsafe.Pointer(organization_Cstring)) application_Cstring := C.CString(application) @@ -141,7 +180,7 @@ func NewQSettings12(format uintptr, scope uintptr, organization string, applicat } // NewQSettings13 constructs a new QSettings object. -func NewQSettings13(fileName string, format uintptr, parent *QObject) *QSettings { +func NewQSettings13(fileName string, format QSettings__Format, parent *QObject) *QSettings { fileName_Cstring := C.CString(fileName) defer C.free(unsafe.Pointer(fileName_Cstring)) ret := C.QSettings_new13(fileName_Cstring, C.size_t(len(fileName)), (C.uintptr_t)(format), parent.cPointer()) @@ -155,7 +194,7 @@ func NewQSettings14(parent *QObject) *QSettings { } // NewQSettings15 constructs a new QSettings object. -func NewQSettings15(scope uintptr, parent *QObject) *QSettings { +func NewQSettings15(scope QSettings__Scope, parent *QObject) *QSettings { ret := C.QSettings_new15((C.uintptr_t)(scope), parent.cPointer()) return newQSettings(ret) } @@ -195,9 +234,9 @@ func (this *QSettings) Sync() { C.QSettings_Sync(this.h) } -func (this *QSettings) Status() uintptr { +func (this *QSettings) Status() QSettings__Status { ret := C.QSettings_Status(this.h) - return (uintptr)(ret) + return (QSettings__Status)(ret) } func (this *QSettings) IsAtomicSyncRequired() bool { @@ -349,14 +388,14 @@ func (this *QSettings) FileName() string { return ret } -func (this *QSettings) Format() uintptr { +func (this *QSettings) Format() QSettings__Format { ret := C.QSettings_Format(this.h) - return (uintptr)(ret) + return (QSettings__Format)(ret) } -func (this *QSettings) Scope() uintptr { +func (this *QSettings) Scope() QSettings__Scope { ret := C.QSettings_Scope(this.h) - return (uintptr)(ret) + return (QSettings__Scope)(ret) } func (this *QSettings) OrganizationName() string { @@ -392,13 +431,13 @@ func (this *QSettings) IniCodec() *QTextCodec { return newQTextCodec_U(unsafe.Pointer(ret)) } -func QSettings_SetDefaultFormat(format uintptr) { +func QSettings_SetDefaultFormat(format QSettings__Format) { C.QSettings_SetDefaultFormat((C.uintptr_t)(format)) } -func QSettings_DefaultFormat() uintptr { +func QSettings_DefaultFormat() QSettings__Format { ret := C.QSettings_DefaultFormat() - return (uintptr)(ret) + return (QSettings__Format)(ret) } func QSettings_SetSystemIniPath(dir string) { @@ -413,7 +452,7 @@ func QSettings_SetUserIniPath(dir string) { C.QSettings_SetUserIniPath(dir_Cstring, C.size_t(len(dir))) } -func QSettings_SetPath(format uintptr, scope uintptr, path string) { +func QSettings_SetPath(format QSettings__Format, scope QSettings__Scope, path string) { path_Cstring := C.CString(path) defer C.free(unsafe.Pointer(path_Cstring)) C.QSettings_SetPath((C.uintptr_t)(format), (C.uintptr_t)(scope), path_Cstring, C.size_t(len(path))) diff --git a/qt/gen_qsharedmemory.go b/qt/gen_qsharedmemory.go index 3e109abb..96eca158 100644 --- a/qt/gen_qsharedmemory.go +++ b/qt/gen_qsharedmemory.go @@ -12,6 +12,27 @@ import ( "unsafe" ) +type QSharedMemory__AccessMode int + +const ( + QSharedMemory__AccessMode__ReadOnly QSharedMemory__AccessMode = 0 + QSharedMemory__AccessMode__ReadWrite QSharedMemory__AccessMode = 1 +) + +type QSharedMemory__SharedMemoryError int + +const ( + QSharedMemory__SharedMemoryError__NoError QSharedMemory__SharedMemoryError = 0 + QSharedMemory__SharedMemoryError__PermissionDenied QSharedMemory__SharedMemoryError = 1 + QSharedMemory__SharedMemoryError__InvalidSize QSharedMemory__SharedMemoryError = 2 + QSharedMemory__SharedMemoryError__KeyError QSharedMemory__SharedMemoryError = 3 + QSharedMemory__SharedMemoryError__AlreadyExists QSharedMemory__SharedMemoryError = 4 + QSharedMemory__SharedMemoryError__NotFound QSharedMemory__SharedMemoryError = 5 + QSharedMemory__SharedMemoryError__LockError QSharedMemory__SharedMemoryError = 6 + QSharedMemory__SharedMemoryError__OutOfResources QSharedMemory__SharedMemoryError = 7 + QSharedMemory__SharedMemoryError__UnknownError QSharedMemory__SharedMemoryError = 8 +) + type QSharedMemory struct { h *C.QSharedMemory *QObject @@ -155,9 +176,9 @@ func (this *QSharedMemory) Unlock() bool { return (bool)(ret) } -func (this *QSharedMemory) Error() uintptr { +func (this *QSharedMemory) Error() QSharedMemory__SharedMemoryError { ret := C.QSharedMemory_Error(this.h) - return (uintptr)(ret) + return (QSharedMemory__SharedMemoryError)(ret) } func (this *QSharedMemory) ErrorString() string { @@ -221,12 +242,12 @@ func QSharedMemory_TrUtf83(s string, c string, n int) string { return ret } -func (this *QSharedMemory) Create2(size int, mode uintptr) bool { +func (this *QSharedMemory) Create2(size int, mode QSharedMemory__AccessMode) bool { ret := C.QSharedMemory_Create2(this.h, (C.int)(size), (C.uintptr_t)(mode)) return (bool)(ret) } -func (this *QSharedMemory) Attach1(mode uintptr) bool { +func (this *QSharedMemory) Attach1(mode QSharedMemory__AccessMode) bool { ret := C.QSharedMemory_Attach1(this.h, (C.uintptr_t)(mode)) return (bool)(ret) } diff --git a/qt/gen_qshortcut.go b/qt/gen_qshortcut.go index ea99a66d..6a2cd64b 100644 --- a/qt/gen_qshortcut.go +++ b/qt/gen_qshortcut.go @@ -68,7 +68,7 @@ func NewQShortcut4(key *QKeySequence, parent *QWidget, member string, ambiguousM } // NewQShortcut5 constructs a new QShortcut object. -func NewQShortcut5(key *QKeySequence, parent *QWidget, member string, ambiguousMember string, shortcutContext uintptr) *QShortcut { +func NewQShortcut5(key *QKeySequence, parent *QWidget, member string, ambiguousMember string, shortcutContext ShortcutContext) *QShortcut { member_Cstring := C.CString(member) defer C.free(unsafe.Pointer(member_Cstring)) ambiguousMember_Cstring := C.CString(ambiguousMember) @@ -128,13 +128,13 @@ func (this *QShortcut) IsEnabled() bool { return (bool)(ret) } -func (this *QShortcut) SetContext(context uintptr) { +func (this *QShortcut) SetContext(context ShortcutContext) { C.QShortcut_SetContext(this.h, (C.uintptr_t)(context)) } -func (this *QShortcut) Context() uintptr { +func (this *QShortcut) Context() ShortcutContext { ret := C.QShortcut_Context(this.h) - return (uintptr)(ret) + return (ShortcutContext)(ret) } func (this *QShortcut) SetWhatsThis(text string) { diff --git a/qt/gen_qsize.go b/qt/gen_qsize.go index c66408d7..a072eac8 100644 --- a/qt/gen_qsize.go +++ b/qt/gen_qsize.go @@ -101,15 +101,15 @@ func (this *QSize) Transposed() *QSize { return ret1 } -func (this *QSize) Scale(w int, h int, mode uintptr) { +func (this *QSize) Scale(w int, h int, mode AspectRatioMode) { C.QSize_Scale(this.h, (C.int)(w), (C.int)(h), (C.uintptr_t)(mode)) } -func (this *QSize) Scale2(s *QSize, mode uintptr) { +func (this *QSize) Scale2(s *QSize, mode AspectRatioMode) { C.QSize_Scale2(this.h, s.cPointer(), (C.uintptr_t)(mode)) } -func (this *QSize) Scaled(w int, h int, mode uintptr) *QSize { +func (this *QSize) Scaled(w int, h int, mode AspectRatioMode) *QSize { ret := C.QSize_Scaled(this.h, (C.int)(w), (C.int)(h), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSize(ret) @@ -120,7 +120,7 @@ func (this *QSize) Scaled(w int, h int, mode uintptr) *QSize { return ret1 } -func (this *QSize) Scaled2(s *QSize, mode uintptr) *QSize { +func (this *QSize) Scaled2(s *QSize, mode AspectRatioMode) *QSize { ret := C.QSize_Scaled2(this.h, s.cPointer(), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSize(ret) @@ -293,15 +293,15 @@ func (this *QSizeF) Transposed() *QSizeF { return ret1 } -func (this *QSizeF) Scale(w float64, h float64, mode uintptr) { +func (this *QSizeF) Scale(w float64, h float64, mode AspectRatioMode) { C.QSizeF_Scale(this.h, (C.double)(w), (C.double)(h), (C.uintptr_t)(mode)) } -func (this *QSizeF) Scale2(s *QSizeF, mode uintptr) { +func (this *QSizeF) Scale2(s *QSizeF, mode AspectRatioMode) { C.QSizeF_Scale2(this.h, s.cPointer(), (C.uintptr_t)(mode)) } -func (this *QSizeF) Scaled(w float64, h float64, mode uintptr) *QSizeF { +func (this *QSizeF) Scaled(w float64, h float64, mode AspectRatioMode) *QSizeF { ret := C.QSizeF_Scaled(this.h, (C.double)(w), (C.double)(h), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSizeF(ret) @@ -312,7 +312,7 @@ func (this *QSizeF) Scaled(w float64, h float64, mode uintptr) *QSizeF { return ret1 } -func (this *QSizeF) Scaled2(s *QSizeF, mode uintptr) *QSizeF { +func (this *QSizeF) Scaled2(s *QSizeF, mode AspectRatioMode) *QSizeF { ret := C.QSizeF_Scaled2(this.h, s.cPointer(), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSizeF(ret) diff --git a/qt/gen_qsizepolicy.go b/qt/gen_qsizepolicy.go index f7e36179..6f43e776 100644 --- a/qt/gen_qsizepolicy.go +++ b/qt/gen_qsizepolicy.go @@ -13,6 +13,47 @@ import ( "unsafe" ) +type QSizePolicy__PolicyFlag int + +const ( + QSizePolicy__PolicyFlag__GrowFlag QSizePolicy__PolicyFlag = 1 + QSizePolicy__PolicyFlag__ExpandFlag QSizePolicy__PolicyFlag = 2 + QSizePolicy__PolicyFlag__ShrinkFlag QSizePolicy__PolicyFlag = 4 + QSizePolicy__PolicyFlag__IgnoreFlag QSizePolicy__PolicyFlag = 8 +) + +type QSizePolicy__Policy int + +const ( + QSizePolicy__Policy__Fixed QSizePolicy__Policy = 0 + QSizePolicy__Policy__Minimum QSizePolicy__Policy = 1 + QSizePolicy__Policy__Maximum QSizePolicy__Policy = 4 + QSizePolicy__Policy__Preferred QSizePolicy__Policy = 5 + QSizePolicy__Policy__MinimumExpanding QSizePolicy__Policy = 3 + QSizePolicy__Policy__Expanding QSizePolicy__Policy = 7 + QSizePolicy__Policy__Ignored QSizePolicy__Policy = 13 +) + +type QSizePolicy__ControlType int + +const ( + QSizePolicy__ControlType__DefaultType QSizePolicy__ControlType = 1 + QSizePolicy__ControlType__ButtonBox QSizePolicy__ControlType = 2 + QSizePolicy__ControlType__CheckBox QSizePolicy__ControlType = 4 + QSizePolicy__ControlType__ComboBox QSizePolicy__ControlType = 8 + QSizePolicy__ControlType__Frame QSizePolicy__ControlType = 16 + QSizePolicy__ControlType__GroupBox QSizePolicy__ControlType = 32 + QSizePolicy__ControlType__Label QSizePolicy__ControlType = 64 + QSizePolicy__ControlType__Line QSizePolicy__ControlType = 128 + QSizePolicy__ControlType__LineEdit QSizePolicy__ControlType = 256 + QSizePolicy__ControlType__PushButton QSizePolicy__ControlType = 512 + QSizePolicy__ControlType__RadioButton QSizePolicy__ControlType = 1024 + QSizePolicy__ControlType__Slider QSizePolicy__ControlType = 2048 + QSizePolicy__ControlType__SpinBox QSizePolicy__ControlType = 4096 + QSizePolicy__ControlType__TabWidget QSizePolicy__ControlType = 8192 + QSizePolicy__ControlType__ToolButton QSizePolicy__ControlType = 16384 +) + type QSizePolicy struct { h *C.QSizePolicy } @@ -42,7 +83,7 @@ func NewQSizePolicy() *QSizePolicy { } // NewQSizePolicy2 constructs a new QSizePolicy object. -func NewQSizePolicy2(horizontal uintptr, vertical uintptr) *QSizePolicy { +func NewQSizePolicy2(horizontal QSizePolicy__Policy, vertical QSizePolicy__Policy) *QSizePolicy { ret := C.QSizePolicy_new2((C.uintptr_t)(horizontal), (C.uintptr_t)(vertical)) return newQSizePolicy(ret) } @@ -54,35 +95,35 @@ func NewQSizePolicy3(param1 *QSizePolicy) *QSizePolicy { } // NewQSizePolicy4 constructs a new QSizePolicy object. -func NewQSizePolicy4(horizontal uintptr, vertical uintptr, typeVal uintptr) *QSizePolicy { +func NewQSizePolicy4(horizontal QSizePolicy__Policy, vertical QSizePolicy__Policy, typeVal QSizePolicy__ControlType) *QSizePolicy { ret := C.QSizePolicy_new4((C.uintptr_t)(horizontal), (C.uintptr_t)(vertical), (C.uintptr_t)(typeVal)) return newQSizePolicy(ret) } -func (this *QSizePolicy) HorizontalPolicy() uintptr { +func (this *QSizePolicy) HorizontalPolicy() QSizePolicy__Policy { ret := C.QSizePolicy_HorizontalPolicy(this.h) - return (uintptr)(ret) + return (QSizePolicy__Policy)(ret) } -func (this *QSizePolicy) VerticalPolicy() uintptr { +func (this *QSizePolicy) VerticalPolicy() QSizePolicy__Policy { ret := C.QSizePolicy_VerticalPolicy(this.h) - return (uintptr)(ret) + return (QSizePolicy__Policy)(ret) } -func (this *QSizePolicy) ControlType() uintptr { +func (this *QSizePolicy) ControlType() QSizePolicy__ControlType { ret := C.QSizePolicy_ControlType(this.h) - return (uintptr)(ret) + return (QSizePolicy__ControlType)(ret) } -func (this *QSizePolicy) SetHorizontalPolicy(d uintptr) { +func (this *QSizePolicy) SetHorizontalPolicy(d QSizePolicy__Policy) { C.QSizePolicy_SetHorizontalPolicy(this.h, (C.uintptr_t)(d)) } -func (this *QSizePolicy) SetVerticalPolicy(d uintptr) { +func (this *QSizePolicy) SetVerticalPolicy(d QSizePolicy__Policy) { C.QSizePolicy_SetVerticalPolicy(this.h, (C.uintptr_t)(d)) } -func (this *QSizePolicy) SetControlType(typeVal uintptr) { +func (this *QSizePolicy) SetControlType(typeVal QSizePolicy__ControlType) { C.QSizePolicy_SetControlType(this.h, (C.uintptr_t)(typeVal)) } diff --git a/qt/gen_qslider.go b/qt/gen_qslider.go index 0febdba3..086e165c 100644 --- a/qt/gen_qslider.go +++ b/qt/gen_qslider.go @@ -13,6 +13,17 @@ import ( "unsafe" ) +type QSlider__TickPosition int + +const ( + QSlider__TickPosition__NoTicks QSlider__TickPosition = 0 + QSlider__TickPosition__TicksAbove QSlider__TickPosition = 1 + QSlider__TickPosition__TicksLeft QSlider__TickPosition = 1 + QSlider__TickPosition__TicksBelow QSlider__TickPosition = 2 + QSlider__TickPosition__TicksRight QSlider__TickPosition = 2 + QSlider__TickPosition__TicksBothSides QSlider__TickPosition = 3 +) + type QSlider struct { h *C.QSlider *QAbstractSlider @@ -43,7 +54,7 @@ func NewQSlider() *QSlider { } // NewQSlider2 constructs a new QSlider object. -func NewQSlider2(orientation uintptr) *QSlider { +func NewQSlider2(orientation Orientation) *QSlider { ret := C.QSlider_new2((C.uintptr_t)(orientation)) return newQSlider(ret) } @@ -55,7 +66,7 @@ func NewQSlider3(parent *QWidget) *QSlider { } // NewQSlider4 constructs a new QSlider object. -func NewQSlider4(orientation uintptr, parent *QWidget) *QSlider { +func NewQSlider4(orientation Orientation, parent *QWidget) *QSlider { ret := C.QSlider_new4((C.uintptr_t)(orientation), parent.cPointer()) return newQSlider(ret) } @@ -109,13 +120,13 @@ func (this *QSlider) MinimumSizeHint() *QSize { return ret1 } -func (this *QSlider) SetTickPosition(position uintptr) { +func (this *QSlider) SetTickPosition(position QSlider__TickPosition) { C.QSlider_SetTickPosition(this.h, (C.uintptr_t)(position)) } -func (this *QSlider) TickPosition() uintptr { +func (this *QSlider) TickPosition() QSlider__TickPosition { ret := C.QSlider_TickPosition(this.h) - return (uintptr)(ret) + return (QSlider__TickPosition)(ret) } func (this *QSlider) SetTickInterval(ti int) { diff --git a/qt/gen_qsocketnotifier.go b/qt/gen_qsocketnotifier.go index 84495cb5..89544a25 100644 --- a/qt/gen_qsocketnotifier.go +++ b/qt/gen_qsocketnotifier.go @@ -13,6 +13,14 @@ import ( "unsafe" ) +type QSocketNotifier__Type int + +const ( + QSocketNotifier__Type__Read QSocketNotifier__Type = 0 + QSocketNotifier__Type__Write QSocketNotifier__Type = 1 + QSocketNotifier__Type__Exception QSocketNotifier__Type = 2 +) + type QSocketNotifier struct { h *C.QSocketNotifier *QObject @@ -37,13 +45,13 @@ func newQSocketNotifier_U(h unsafe.Pointer) *QSocketNotifier { } // NewQSocketNotifier constructs a new QSocketNotifier object. -func NewQSocketNotifier(socket uint64, param2 uintptr) *QSocketNotifier { +func NewQSocketNotifier(socket uint64, param2 QSocketNotifier__Type) *QSocketNotifier { ret := C.QSocketNotifier_new((C.ptrdiff_t)(socket), (C.uintptr_t)(param2)) return newQSocketNotifier(ret) } // NewQSocketNotifier2 constructs a new QSocketNotifier object. -func NewQSocketNotifier2(socket uint64, param2 uintptr, parent *QObject) *QSocketNotifier { +func NewQSocketNotifier2(socket uint64, param2 QSocketNotifier__Type, parent *QObject) *QSocketNotifier { ret := C.QSocketNotifier_new2((C.ptrdiff_t)(socket), (C.uintptr_t)(param2), parent.cPointer()) return newQSocketNotifier(ret) } @@ -80,9 +88,9 @@ func (this *QSocketNotifier) Socket() uint64 { return (uint64)(ret) } -func (this *QSocketNotifier) Type() uintptr { +func (this *QSocketNotifier) Type() QSocketNotifier__Type { ret := C.QSocketNotifier_Type(this.h) - return (uintptr)(ret) + return (QSocketNotifier__Type)(ret) } func (this *QSocketNotifier) IsEnabled() bool { diff --git a/qt/gen_qsortfilterproxymodel.go b/qt/gen_qsortfilterproxymodel.go index b11b898e..140e988e 100644 --- a/qt/gen_qsortfilterproxymodel.go +++ b/qt/gen_qsortfilterproxymodel.go @@ -133,21 +133,21 @@ func (this *QSortFilterProxyModel) SetFilterKeyColumn(column int) { C.QSortFilterProxyModel_SetFilterKeyColumn(this.h, (C.int)(column)) } -func (this *QSortFilterProxyModel) FilterCaseSensitivity() uintptr { +func (this *QSortFilterProxyModel) FilterCaseSensitivity() CaseSensitivity { ret := C.QSortFilterProxyModel_FilterCaseSensitivity(this.h) - return (uintptr)(ret) + return (CaseSensitivity)(ret) } -func (this *QSortFilterProxyModel) SetFilterCaseSensitivity(cs uintptr) { +func (this *QSortFilterProxyModel) SetFilterCaseSensitivity(cs CaseSensitivity) { C.QSortFilterProxyModel_SetFilterCaseSensitivity(this.h, (C.uintptr_t)(cs)) } -func (this *QSortFilterProxyModel) SortCaseSensitivity() uintptr { +func (this *QSortFilterProxyModel) SortCaseSensitivity() CaseSensitivity { ret := C.QSortFilterProxyModel_SortCaseSensitivity(this.h) - return (uintptr)(ret) + return (CaseSensitivity)(ret) } -func (this *QSortFilterProxyModel) SetSortCaseSensitivity(cs uintptr) { +func (this *QSortFilterProxyModel) SetSortCaseSensitivity(cs CaseSensitivity) { C.QSortFilterProxyModel_SetSortCaseSensitivity(this.h, (C.uintptr_t)(cs)) } @@ -165,9 +165,9 @@ func (this *QSortFilterProxyModel) SortColumn() int { return (int)(ret) } -func (this *QSortFilterProxyModel) SortOrder() uintptr { +func (this *QSortFilterProxyModel) SortOrder() SortOrder { ret := C.QSortFilterProxyModel_SortOrder(this.h) - return (uintptr)(ret) + return (SortOrder)(ret) } func (this *QSortFilterProxyModel) DynamicSortFilter() bool { @@ -310,7 +310,7 @@ func (this *QSortFilterProxyModel) SetData(index *QModelIndex, value *QVariant) return (bool)(ret) } -func (this *QSortFilterProxyModel) HeaderData(section int, orientation uintptr) *QVariant { +func (this *QSortFilterProxyModel) HeaderData(section int, orientation Orientation) *QVariant { ret := C.QSortFilterProxyModel_HeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -321,7 +321,7 @@ func (this *QSortFilterProxyModel) HeaderData(section int, orientation uintptr) return ret1 } -func (this *QSortFilterProxyModel) SetHeaderData(section int, orientation uintptr, value *QVariant) bool { +func (this *QSortFilterProxyModel) SetHeaderData(section int, orientation Orientation, value *QVariant) bool { ret := C.QSortFilterProxyModel_SetHeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer()) return (bool)(ret) } @@ -337,7 +337,7 @@ func (this *QSortFilterProxyModel) MimeData(indexes []QModelIndex) *QMimeData { return newQMimeData_U(unsafe.Pointer(ret)) } -func (this *QSortFilterProxyModel) DropMimeData(data *QMimeData, action uintptr, row int, column int, parent *QModelIndex) bool { +func (this *QSortFilterProxyModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool { ret := C.QSortFilterProxyModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()) return (bool)(ret) } @@ -447,7 +447,7 @@ func (this *QSortFilterProxyModel) OnDynamicSortFilterChanged(slot func()) { C.QSortFilterProxyModel_connect_DynamicSortFilterChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QSortFilterProxyModel) FilterCaseSensitivityChanged(filterCaseSensitivity uintptr) { +func (this *QSortFilterProxyModel) FilterCaseSensitivityChanged(filterCaseSensitivity CaseSensitivity) { C.QSortFilterProxyModel_FilterCaseSensitivityChanged(this.h, (C.uintptr_t)(filterCaseSensitivity)) } @@ -459,7 +459,7 @@ func (this *QSortFilterProxyModel) OnFilterCaseSensitivityChanged(slot func()) { C.QSortFilterProxyModel_connect_FilterCaseSensitivityChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QSortFilterProxyModel) SortCaseSensitivityChanged(sortCaseSensitivity uintptr) { +func (this *QSortFilterProxyModel) SortCaseSensitivityChanged(sortCaseSensitivity CaseSensitivity) { C.QSortFilterProxyModel_SortCaseSensitivityChanged(this.h, (C.uintptr_t)(sortCaseSensitivity)) } @@ -613,7 +613,7 @@ func (this *QSortFilterProxyModel) SetData3(index *QModelIndex, value *QVariant, return (bool)(ret) } -func (this *QSortFilterProxyModel) HeaderData3(section int, orientation uintptr, role int) *QVariant { +func (this *QSortFilterProxyModel) HeaderData3(section int, orientation Orientation, role int) *QVariant { ret := C.QSortFilterProxyModel_HeaderData3(this.h, (C.int)(section), (C.uintptr_t)(orientation), (C.int)(role)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -624,7 +624,7 @@ func (this *QSortFilterProxyModel) HeaderData3(section int, orientation uintptr, return ret1 } -func (this *QSortFilterProxyModel) SetHeaderData4(section int, orientation uintptr, value *QVariant, role int) bool { +func (this *QSortFilterProxyModel) SetHeaderData4(section int, orientation Orientation, value *QVariant, role int) bool { ret := C.QSortFilterProxyModel_SetHeaderData4(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer(), (C.int)(role)) return (bool)(ret) } @@ -675,7 +675,7 @@ func (this *QSortFilterProxyModel) Match5(start *QModelIndex, role int, value *Q return ret } -func (this *QSortFilterProxyModel) Sort2(column int, order uintptr) { +func (this *QSortFilterProxyModel) Sort2(column int, order SortOrder) { C.QSortFilterProxyModel_Sort2(this.h, (C.int)(column), (C.uintptr_t)(order)) } diff --git a/qt/gen_qspinbox.go b/qt/gen_qspinbox.go index 433736fc..81331ffd 100644 --- a/qt/gen_qspinbox.go +++ b/qt/gen_qspinbox.go @@ -150,12 +150,12 @@ func (this *QSpinBox) SetRange(min int, max int) { C.QSpinBox_SetRange(this.h, (C.int)(min), (C.int)(max)) } -func (this *QSpinBox) StepType() uintptr { +func (this *QSpinBox) StepType() QAbstractSpinBox__StepType { ret := C.QSpinBox_StepType(this.h) - return (uintptr)(ret) + return (QAbstractSpinBox__StepType)(ret) } -func (this *QSpinBox) SetStepType(stepType uintptr) { +func (this *QSpinBox) SetStepType(stepType QAbstractSpinBox__StepType) { C.QSpinBox_SetStepType(this.h, (C.uintptr_t)(stepType)) } @@ -405,12 +405,12 @@ func (this *QDoubleSpinBox) SetRange(min float64, max float64) { C.QDoubleSpinBox_SetRange(this.h, (C.double)(min), (C.double)(max)) } -func (this *QDoubleSpinBox) StepType() uintptr { +func (this *QDoubleSpinBox) StepType() QAbstractSpinBox__StepType { ret := C.QDoubleSpinBox_StepType(this.h) - return (uintptr)(ret) + return (QAbstractSpinBox__StepType)(ret) } -func (this *QDoubleSpinBox) SetStepType(stepType uintptr) { +func (this *QDoubleSpinBox) SetStepType(stepType QAbstractSpinBox__StepType) { C.QDoubleSpinBox_SetStepType(this.h, (C.uintptr_t)(stepType)) } @@ -423,11 +423,11 @@ func (this *QDoubleSpinBox) SetDecimals(prec int) { C.QDoubleSpinBox_SetDecimals(this.h, (C.int)(prec)) } -func (this *QDoubleSpinBox) Validate(input string, pos *int) uintptr { +func (this *QDoubleSpinBox) Validate(input string, pos *int) QValidator__State { input_Cstring := C.CString(input) defer C.free(unsafe.Pointer(input_Cstring)) ret := C.QDoubleSpinBox_Validate(this.h, input_Cstring, C.size_t(len(input)), (*C.int)(unsafe.Pointer(pos))) - return (uintptr)(ret) + return (QValidator__State)(ret) } func (this *QDoubleSpinBox) ValueFromText(text string) float64 { diff --git a/qt/gen_qsplitter.go b/qt/gen_qsplitter.go index 453cc16c..3fed61ef 100644 --- a/qt/gen_qsplitter.go +++ b/qt/gen_qsplitter.go @@ -44,7 +44,7 @@ func NewQSplitter() *QSplitter { } // NewQSplitter2 constructs a new QSplitter object. -func NewQSplitter2(param1 uintptr) *QSplitter { +func NewQSplitter2(param1 Orientation) *QSplitter { ret := C.QSplitter_new2((C.uintptr_t)(param1)) return newQSplitter(ret) } @@ -56,7 +56,7 @@ func NewQSplitter3(parent *QWidget) *QSplitter { } // NewQSplitter4 constructs a new QSplitter object. -func NewQSplitter4(param1 uintptr, parent *QWidget) *QSplitter { +func NewQSplitter4(param1 Orientation, parent *QWidget) *QSplitter { ret := C.QSplitter_new4((C.uintptr_t)(param1), parent.cPointer()) return newQSplitter(ret) } @@ -101,13 +101,13 @@ func (this *QSplitter) ReplaceWidget(index int, widget *QWidget) *QWidget { return newQWidget_U(unsafe.Pointer(ret)) } -func (this *QSplitter) SetOrientation(orientation uintptr) { +func (this *QSplitter) SetOrientation(orientation Orientation) { C.QSplitter_SetOrientation(this.h, (C.uintptr_t)(orientation)) } -func (this *QSplitter) Orientation() uintptr { +func (this *QSplitter) Orientation() Orientation { ret := C.QSplitter_Orientation(this.h) - return (uintptr)(ret) + return (Orientation)(ret) } func (this *QSplitter) SetChildrenCollapsible(childrenCollapsible bool) { @@ -335,7 +335,7 @@ func newQSplitterHandle_U(h unsafe.Pointer) *QSplitterHandle { } // NewQSplitterHandle constructs a new QSplitterHandle object. -func NewQSplitterHandle(o uintptr, parent *QSplitter) *QSplitterHandle { +func NewQSplitterHandle(o Orientation, parent *QSplitter) *QSplitterHandle { ret := C.QSplitterHandle_new((C.uintptr_t)(o), parent.cPointer()) return newQSplitterHandle(ret) } @@ -367,13 +367,13 @@ func QSplitterHandle_TrUtf8(s string) string { return ret } -func (this *QSplitterHandle) SetOrientation(o uintptr) { +func (this *QSplitterHandle) SetOrientation(o Orientation) { C.QSplitterHandle_SetOrientation(this.h, (C.uintptr_t)(o)) } -func (this *QSplitterHandle) Orientation() uintptr { +func (this *QSplitterHandle) Orientation() Orientation { ret := C.QSplitterHandle_Orientation(this.h) - return (uintptr)(ret) + return (Orientation)(ret) } func (this *QSplitterHandle) OpaqueResize() bool { diff --git a/qt/gen_qstackedlayout.go b/qt/gen_qstackedlayout.go index c91f9664..36f3e22f 100644 --- a/qt/gen_qstackedlayout.go +++ b/qt/gen_qstackedlayout.go @@ -14,6 +14,13 @@ import ( "unsafe" ) +type QStackedLayout__StackingMode int + +const ( + QStackedLayout__StackingMode__StackOne QStackedLayout__StackingMode = 0 + QStackedLayout__StackingMode__StackAll QStackedLayout__StackingMode = 1 +) + type QStackedLayout struct { h *C.QStackedLayout *QLayout @@ -112,12 +119,12 @@ func (this *QStackedLayout) Count() int { return (int)(ret) } -func (this *QStackedLayout) StackingMode() uintptr { +func (this *QStackedLayout) StackingMode() QStackedLayout__StackingMode { ret := C.QStackedLayout_StackingMode(this.h) - return (uintptr)(ret) + return (QStackedLayout__StackingMode)(ret) } -func (this *QStackedLayout) SetStackingMode(stackingMode uintptr) { +func (this *QStackedLayout) SetStackingMode(stackingMode QStackedLayout__StackingMode) { C.QStackedLayout_SetStackingMode(this.h, (C.uintptr_t)(stackingMode)) } diff --git a/qt/gen_qstandarditemmodel.go b/qt/gen_qstandarditemmodel.go index 2ca56801..5521cdd3 100644 --- a/qt/gen_qstandarditemmodel.go +++ b/qt/gen_qstandarditemmodel.go @@ -14,6 +14,13 @@ import ( "unsafe" ) +type QStandardItem__ItemType int + +const ( + QStandardItem__ItemType__Type QStandardItem__ItemType = 0 + QStandardItem__ItemType__UserType QStandardItem__ItemType = 1000 +) + type QStandardItem struct { h *C.QStandardItem } @@ -233,12 +240,12 @@ func (this *QStandardItem) SetForeground(brush *QBrush) { C.QStandardItem_SetForeground(this.h, brush.cPointer()) } -func (this *QStandardItem) CheckState() uintptr { +func (this *QStandardItem) CheckState() CheckState { ret := C.QStandardItem_CheckState(this.h) - return (uintptr)(ret) + return (CheckState)(ret) } -func (this *QStandardItem) SetCheckState(checkState uintptr) { +func (this *QStandardItem) SetCheckState(checkState CheckState) { C.QStandardItem_SetCheckState(this.h, (C.uintptr_t)(checkState)) } @@ -604,7 +611,7 @@ func (this *QStandardItem) TakeChild2(row int, column int) *QStandardItem { return newQStandardItem_U(unsafe.Pointer(ret)) } -func (this *QStandardItem) SortChildren2(column int, order uintptr) { +func (this *QStandardItem) SortChildren2(column int, order SortOrder) { C.QStandardItem_SortChildren2(this.h, (C.int)(column), (C.uintptr_t)(order)) } @@ -755,7 +762,7 @@ func (this *QStandardItemModel) ClearItemData(index *QModelIndex) bool { return (bool)(ret) } -func (this *QStandardItemModel) HeaderData(section int, orientation uintptr) *QVariant { +func (this *QStandardItemModel) HeaderData(section int, orientation Orientation) *QVariant { ret := C.QStandardItemModel_HeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -766,7 +773,7 @@ func (this *QStandardItemModel) HeaderData(section int, orientation uintptr) *QV return ret1 } -func (this *QStandardItemModel) SetHeaderData(section int, orientation uintptr, value *QVariant) bool { +func (this *QStandardItemModel) SetHeaderData(section int, orientation Orientation, value *QVariant) bool { ret := C.QStandardItemModel_SetHeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer()) return (bool)(ret) } @@ -1057,7 +1064,7 @@ func (this *QStandardItemModel) MimeData(indexes []QModelIndex) *QMimeData { return newQMimeData_U(unsafe.Pointer(ret)) } -func (this *QStandardItemModel) DropMimeData(data *QMimeData, action uintptr, row int, column int, parent *QModelIndex) bool { +func (this *QStandardItemModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool { ret := C.QStandardItemModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()) return (bool)(ret) } @@ -1168,7 +1175,7 @@ func (this *QStandardItemModel) SetData3(index *QModelIndex, value *QVariant, ro return (bool)(ret) } -func (this *QStandardItemModel) HeaderData3(section int, orientation uintptr, role int) *QVariant { +func (this *QStandardItemModel) HeaderData3(section int, orientation Orientation, role int) *QVariant { ret := C.QStandardItemModel_HeaderData3(this.h, (C.int)(section), (C.uintptr_t)(orientation), (C.int)(role)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -1179,7 +1186,7 @@ func (this *QStandardItemModel) HeaderData3(section int, orientation uintptr, ro return ret1 } -func (this *QStandardItemModel) SetHeaderData4(section int, orientation uintptr, value *QVariant, role int) bool { +func (this *QStandardItemModel) SetHeaderData4(section int, orientation Orientation, value *QVariant, role int) bool { ret := C.QStandardItemModel_SetHeaderData4(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer(), (C.int)(role)) return (bool)(ret) } @@ -1204,7 +1211,7 @@ func (this *QStandardItemModel) RemoveColumns3(column int, count int, parent *QM return (bool)(ret) } -func (this *QStandardItemModel) Sort2(column int, order uintptr) { +func (this *QStandardItemModel) Sort2(column int, order SortOrder) { C.QStandardItemModel_Sort2(this.h, (C.int)(column), (C.uintptr_t)(order)) } diff --git a/qt/gen_qstandardpaths.go b/qt/gen_qstandardpaths.go index 6368acc5..cac364d6 100644 --- a/qt/gen_qstandardpaths.go +++ b/qt/gen_qstandardpaths.go @@ -12,6 +12,38 @@ import ( "unsafe" ) +type QStandardPaths__StandardLocation int + +const ( + QStandardPaths__StandardLocation__DesktopLocation QStandardPaths__StandardLocation = 0 + QStandardPaths__StandardLocation__DocumentsLocation QStandardPaths__StandardLocation = 1 + QStandardPaths__StandardLocation__FontsLocation QStandardPaths__StandardLocation = 2 + QStandardPaths__StandardLocation__ApplicationsLocation QStandardPaths__StandardLocation = 3 + QStandardPaths__StandardLocation__MusicLocation QStandardPaths__StandardLocation = 4 + QStandardPaths__StandardLocation__MoviesLocation QStandardPaths__StandardLocation = 5 + QStandardPaths__StandardLocation__PicturesLocation QStandardPaths__StandardLocation = 6 + QStandardPaths__StandardLocation__TempLocation QStandardPaths__StandardLocation = 7 + QStandardPaths__StandardLocation__HomeLocation QStandardPaths__StandardLocation = 8 + QStandardPaths__StandardLocation__DataLocation QStandardPaths__StandardLocation = 9 + QStandardPaths__StandardLocation__CacheLocation QStandardPaths__StandardLocation = 10 + QStandardPaths__StandardLocation__GenericDataLocation QStandardPaths__StandardLocation = 11 + QStandardPaths__StandardLocation__RuntimeLocation QStandardPaths__StandardLocation = 12 + QStandardPaths__StandardLocation__ConfigLocation QStandardPaths__StandardLocation = 13 + QStandardPaths__StandardLocation__DownloadLocation QStandardPaths__StandardLocation = 14 + QStandardPaths__StandardLocation__GenericCacheLocation QStandardPaths__StandardLocation = 15 + QStandardPaths__StandardLocation__GenericConfigLocation QStandardPaths__StandardLocation = 16 + QStandardPaths__StandardLocation__AppDataLocation QStandardPaths__StandardLocation = 17 + QStandardPaths__StandardLocation__AppConfigLocation QStandardPaths__StandardLocation = 18 + QStandardPaths__StandardLocation__AppLocalDataLocation QStandardPaths__StandardLocation = 9 +) + +type QStandardPaths__LocateOption int + +const ( + QStandardPaths__LocateOption__LocateFile QStandardPaths__LocateOption = 0 + QStandardPaths__LocateOption__LocateDirectory QStandardPaths__LocateOption = 1 +) + type QStandardPaths struct { h *C.QStandardPaths } @@ -34,7 +66,7 @@ func newQStandardPaths_U(h unsafe.Pointer) *QStandardPaths { return newQStandardPaths((*C.QStandardPaths)(h)) } -func QStandardPaths_WritableLocation(typeVal uintptr) string { +func QStandardPaths_WritableLocation(typeVal QStandardPaths__StandardLocation) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QStandardPaths_WritableLocation((C.uintptr_t)(typeVal), &_out, &_out_Strlen) @@ -43,7 +75,7 @@ func QStandardPaths_WritableLocation(typeVal uintptr) string { return ret } -func QStandardPaths_StandardLocations(typeVal uintptr) []string { +func QStandardPaths_StandardLocations(typeVal QStandardPaths__StandardLocation) []string { var _out **C.char = nil var _out_Lengths *C.int = nil var _out_len C.size_t = 0 @@ -58,7 +90,7 @@ func QStandardPaths_StandardLocations(typeVal uintptr) []string { return ret } -func QStandardPaths_Locate(typeVal uintptr, fileName string) string { +func QStandardPaths_Locate(typeVal QStandardPaths__StandardLocation, fileName string) string { fileName_Cstring := C.CString(fileName) defer C.free(unsafe.Pointer(fileName_Cstring)) var _out *C.char = nil @@ -69,7 +101,7 @@ func QStandardPaths_Locate(typeVal uintptr, fileName string) string { return ret } -func QStandardPaths_LocateAll(typeVal uintptr, fileName string) []string { +func QStandardPaths_LocateAll(typeVal QStandardPaths__StandardLocation, fileName string) []string { fileName_Cstring := C.CString(fileName) defer C.free(unsafe.Pointer(fileName_Cstring)) var _out **C.char = nil @@ -86,7 +118,7 @@ func QStandardPaths_LocateAll(typeVal uintptr, fileName string) []string { return ret } -func QStandardPaths_DisplayName(typeVal uintptr) string { +func QStandardPaths_DisplayName(typeVal QStandardPaths__StandardLocation) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QStandardPaths_DisplayName((C.uintptr_t)(typeVal), &_out, &_out_Strlen) @@ -119,7 +151,7 @@ func QStandardPaths_IsTestModeEnabled() bool { return (bool)(ret) } -func QStandardPaths_Locate3(typeVal uintptr, fileName string, options int) string { +func QStandardPaths_Locate3(typeVal QStandardPaths__StandardLocation, fileName string, options int) string { fileName_Cstring := C.CString(fileName) defer C.free(unsafe.Pointer(fileName_Cstring)) var _out *C.char = nil @@ -130,7 +162,7 @@ func QStandardPaths_Locate3(typeVal uintptr, fileName string, options int) strin return ret } -func QStandardPaths_LocateAll3(typeVal uintptr, fileName string, options int) []string { +func QStandardPaths_LocateAll3(typeVal QStandardPaths__StandardLocation, fileName string, options int) []string { fileName_Cstring := C.CString(fileName) defer C.free(unsafe.Pointer(fileName_Cstring)) var _out **C.char = nil diff --git a/qt/gen_qstate.go b/qt/gen_qstate.go index a03b1640..e4cdef82 100644 --- a/qt/gen_qstate.go +++ b/qt/gen_qstate.go @@ -12,6 +12,20 @@ import ( "unsafe" ) +type QState__ChildMode int + +const ( + QState__ChildMode__ExclusiveStates QState__ChildMode = 0 + QState__ChildMode__ParallelStates QState__ChildMode = 1 +) + +type QState__RestorePolicy int + +const ( + QState__RestorePolicy__DontRestoreProperties QState__RestorePolicy = 0 + QState__RestorePolicy__RestoreProperties QState__RestorePolicy = 1 +) + type QState struct { h *C.QState *QAbstractState @@ -42,7 +56,7 @@ func NewQState() *QState { } // NewQState2 constructs a new QState object. -func NewQState2(childMode uintptr) *QState { +func NewQState2(childMode QState__ChildMode) *QState { ret := C.QState_new2((C.uintptr_t)(childMode)) return newQState(ret) } @@ -54,7 +68,7 @@ func NewQState3(parent *QState) *QState { } // NewQState4 constructs a new QState object. -func NewQState4(childMode uintptr, parent *QState) *QState { +func NewQState4(childMode QState__ChildMode, parent *QState) *QState { ret := C.QState_new4((C.uintptr_t)(childMode), parent.cPointer()) return newQState(ret) } @@ -137,12 +151,12 @@ func (this *QState) SetInitialState(state *QAbstractState) { C.QState_SetInitialState(this.h, state.cPointer()) } -func (this *QState) ChildMode() uintptr { +func (this *QState) ChildMode() QState__ChildMode { ret := C.QState_ChildMode(this.h) - return (uintptr)(ret) + return (QState__ChildMode)(ret) } -func (this *QState) SetChildMode(mode uintptr) { +func (this *QState) SetChildMode(mode QState__ChildMode) { C.QState_SetChildMode(this.h, (C.uintptr_t)(mode)) } diff --git a/qt/gen_qstatemachine.go b/qt/gen_qstatemachine.go index 297f4dea..7dd6b39d 100644 --- a/qt/gen_qstatemachine.go +++ b/qt/gen_qstatemachine.go @@ -13,6 +13,23 @@ import ( "unsafe" ) +type QStateMachine__EventPriority int + +const ( + QStateMachine__EventPriority__NormalPriority QStateMachine__EventPriority = 0 + QStateMachine__EventPriority__HighPriority QStateMachine__EventPriority = 1 +) + +type QStateMachine__Error int + +const ( + QStateMachine__Error__NoError QStateMachine__Error = 0 + QStateMachine__Error__NoInitialStateError QStateMachine__Error = 1 + QStateMachine__Error__NoDefaultStateInHistoryStateError QStateMachine__Error = 2 + QStateMachine__Error__NoCommonAncestorForTransitionError QStateMachine__Error = 3 + QStateMachine__Error__StateMachineChildModeSetToParallelError QStateMachine__Error = 4 +) + type QStateMachine struct { h *C.QStateMachine *QState @@ -43,7 +60,7 @@ func NewQStateMachine() *QStateMachine { } // NewQStateMachine2 constructs a new QStateMachine object. -func NewQStateMachine2(childMode uintptr) *QStateMachine { +func NewQStateMachine2(childMode QState__ChildMode) *QStateMachine { ret := C.QStateMachine_new2((C.uintptr_t)(childMode)) return newQStateMachine(ret) } @@ -55,7 +72,7 @@ func NewQStateMachine3(parent *QObject) *QStateMachine { } // NewQStateMachine4 constructs a new QStateMachine object. -func NewQStateMachine4(childMode uintptr, parent *QObject) *QStateMachine { +func NewQStateMachine4(childMode QState__ChildMode, parent *QObject) *QStateMachine { ret := C.QStateMachine_new4((C.uintptr_t)(childMode), parent.cPointer()) return newQStateMachine(ret) } @@ -95,9 +112,9 @@ func (this *QStateMachine) RemoveState(state *QAbstractState) { C.QStateMachine_RemoveState(this.h, state.cPointer()) } -func (this *QStateMachine) Error() uintptr { +func (this *QStateMachine) Error() QStateMachine__Error { ret := C.QStateMachine_Error(this.h) - return (uintptr)(ret) + return (QStateMachine__Error)(ret) } func (this *QStateMachine) ErrorString() string { @@ -148,12 +165,12 @@ func (this *QStateMachine) RemoveDefaultAnimation(animation *QAbstractAnimation) C.QStateMachine_RemoveDefaultAnimation(this.h, animation.cPointer()) } -func (this *QStateMachine) GlobalRestorePolicy() uintptr { +func (this *QStateMachine) GlobalRestorePolicy() QState__RestorePolicy { ret := C.QStateMachine_GlobalRestorePolicy(this.h) - return (uintptr)(ret) + return (QState__RestorePolicy)(ret) } -func (this *QStateMachine) SetGlobalRestorePolicy(restorePolicy uintptr) { +func (this *QStateMachine) SetGlobalRestorePolicy(restorePolicy QState__RestorePolicy) { C.QStateMachine_SetGlobalRestorePolicy(this.h, (C.uintptr_t)(restorePolicy)) } @@ -252,7 +269,7 @@ func QStateMachine_TrUtf83(s string, c string, n int) string { return ret } -func (this *QStateMachine) PostEvent2(event *QEvent, priority uintptr) { +func (this *QStateMachine) PostEvent2(event *QEvent, priority QStateMachine__EventPriority) { C.QStateMachine_PostEvent2(this.h, event.cPointer(), (C.uintptr_t)(priority)) } diff --git a/qt/gen_qstatictext.go b/qt/gen_qstatictext.go index 394c248a..35789614 100644 --- a/qt/gen_qstatictext.go +++ b/qt/gen_qstatictext.go @@ -13,6 +13,13 @@ import ( "unsafe" ) +type QStaticText__PerformanceHint int + +const ( + QStaticText__PerformanceHint__ModerateCaching QStaticText__PerformanceHint = 0 + QStaticText__PerformanceHint__AggressiveCaching QStaticText__PerformanceHint = 1 +) + type QStaticText struct { h *C.QStaticText } @@ -78,13 +85,13 @@ func (this *QStaticText) Text() string { return ret } -func (this *QStaticText) SetTextFormat(textFormat uintptr) { +func (this *QStaticText) SetTextFormat(textFormat TextFormat) { C.QStaticText_SetTextFormat(this.h, (C.uintptr_t)(textFormat)) } -func (this *QStaticText) TextFormat() uintptr { +func (this *QStaticText) TextFormat() TextFormat { ret := C.QStaticText_TextFormat(this.h) - return (uintptr)(ret) + return (TextFormat)(ret) } func (this *QStaticText) SetTextWidth(textWidth float64) { @@ -126,13 +133,13 @@ func (this *QStaticText) Prepare() { C.QStaticText_Prepare(this.h) } -func (this *QStaticText) SetPerformanceHint(performanceHint uintptr) { +func (this *QStaticText) SetPerformanceHint(performanceHint QStaticText__PerformanceHint) { C.QStaticText_SetPerformanceHint(this.h, (C.uintptr_t)(performanceHint)) } -func (this *QStaticText) PerformanceHint() uintptr { +func (this *QStaticText) PerformanceHint() QStaticText__PerformanceHint { ret := C.QStaticText_PerformanceHint(this.h) - return (uintptr)(ret) + return (QStaticText__PerformanceHint)(ret) } func (this *QStaticText) OperatorEqual(param1 *QStaticText) bool { diff --git a/qt/gen_qstringlistmodel.go b/qt/gen_qstringlistmodel.go index 93a4a86e..09056ace 100644 --- a/qt/gen_qstringlistmodel.go +++ b/qt/gen_qstringlistmodel.go @@ -283,7 +283,7 @@ func (this *QStringListModel) RemoveRows3(row int, count int, parent *QModelInde return (bool)(ret) } -func (this *QStringListModel) Sort2(column int, order uintptr) { +func (this *QStringListModel) Sort2(column int, order SortOrder) { C.QStringListModel_Sort2(this.h, (C.int)(column), (C.uintptr_t)(order)) } diff --git a/qt/gen_qstringmatcher.go b/qt/gen_qstringmatcher.go index 51d1aae8..5c19a2e3 100644 --- a/qt/gen_qstringmatcher.go +++ b/qt/gen_qstringmatcher.go @@ -61,7 +61,7 @@ func NewQStringMatcher4(other *QStringMatcher) *QStringMatcher { } // NewQStringMatcher5 constructs a new QStringMatcher object. -func NewQStringMatcher5(pattern string, cs uintptr) *QStringMatcher { +func NewQStringMatcher5(pattern string, cs CaseSensitivity) *QStringMatcher { pattern_Cstring := C.CString(pattern) defer C.free(unsafe.Pointer(pattern_Cstring)) ret := C.QStringMatcher_new5(pattern_Cstring, C.size_t(len(pattern)), (C.uintptr_t)(cs)) @@ -69,7 +69,7 @@ func NewQStringMatcher5(pattern string, cs uintptr) *QStringMatcher { } // NewQStringMatcher6 constructs a new QStringMatcher object. -func NewQStringMatcher6(uc *QChar, lenVal int, cs uintptr) *QStringMatcher { +func NewQStringMatcher6(uc *QChar, lenVal int, cs CaseSensitivity) *QStringMatcher { ret := C.QStringMatcher_new6(uc.cPointer(), (C.int)(lenVal), (C.uintptr_t)(cs)) return newQStringMatcher(ret) } @@ -84,7 +84,7 @@ func (this *QStringMatcher) SetPattern(pattern string) { C.QStringMatcher_SetPattern(this.h, pattern_Cstring, C.size_t(len(pattern))) } -func (this *QStringMatcher) SetCaseSensitivity(cs uintptr) { +func (this *QStringMatcher) SetCaseSensitivity(cs CaseSensitivity) { C.QStringMatcher_SetCaseSensitivity(this.h, (C.uintptr_t)(cs)) } @@ -109,9 +109,9 @@ func (this *QStringMatcher) Pattern() string { return ret } -func (this *QStringMatcher) CaseSensitivity() uintptr { +func (this *QStringMatcher) CaseSensitivity() CaseSensitivity { ret := C.QStringMatcher_CaseSensitivity(this.h) - return (uintptr)(ret) + return (CaseSensitivity)(ret) } func (this *QStringMatcher) IndexIn22(str string, from int) int { diff --git a/qt/gen_qstringview.go b/qt/gen_qstringview.go index 50067ffb..ab5d5dbb 100644 --- a/qt/gen_qstringview.go +++ b/qt/gen_qstringview.go @@ -136,7 +136,7 @@ func (this *QStringView) CompareWithQChar(c QChar) int { return (int)(ret) } -func (this *QStringView) Compare2(c QChar, cs uintptr) int { +func (this *QStringView) Compare2(c QChar, cs CaseSensitivity) int { ret := C.QStringView_Compare2(this.h, c.cPointer(), (C.uintptr_t)(cs)) return (int)(ret) } @@ -146,7 +146,7 @@ func (this *QStringView) StartsWithWithQChar(c QChar) bool { return (bool)(ret) } -func (this *QStringView) StartsWith2(c QChar, cs uintptr) bool { +func (this *QStringView) StartsWith2(c QChar, cs CaseSensitivity) bool { ret := C.QStringView_StartsWith2(this.h, c.cPointer(), (C.uintptr_t)(cs)) return (bool)(ret) } @@ -156,7 +156,7 @@ func (this *QStringView) EndsWithWithQChar(c QChar) bool { return (bool)(ret) } -func (this *QStringView) EndsWith2(c QChar, cs uintptr) bool { +func (this *QStringView) EndsWith2(c QChar, cs CaseSensitivity) bool { ret := C.QStringView_EndsWith2(this.h, c.cPointer(), (C.uintptr_t)(cs)) return (bool)(ret) } @@ -310,17 +310,17 @@ func (this *QStringView) IndexOf2(c QChar, from uint64) uint64 { return (uint64)(ret) } -func (this *QStringView) IndexOf3(c QChar, from uint64, cs uintptr) uint64 { +func (this *QStringView) IndexOf3(c QChar, from uint64, cs CaseSensitivity) uint64 { ret := C.QStringView_IndexOf3(this.h, c.cPointer(), (C.size_t)(from), (C.uintptr_t)(cs)) return (uint64)(ret) } -func (this *QStringView) Contains2(c QChar, cs uintptr) bool { +func (this *QStringView) Contains2(c QChar, cs CaseSensitivity) bool { ret := C.QStringView_Contains2(this.h, c.cPointer(), (C.uintptr_t)(cs)) return (bool)(ret) } -func (this *QStringView) Count2(c QChar, cs uintptr) uint64 { +func (this *QStringView) Count2(c QChar, cs CaseSensitivity) uint64 { ret := C.QStringView_Count2(this.h, c.cPointer(), (C.uintptr_t)(cs)) return (uint64)(ret) } @@ -330,7 +330,7 @@ func (this *QStringView) LastIndexOf2(c QChar, from uint64) uint64 { return (uint64)(ret) } -func (this *QStringView) LastIndexOf3(c QChar, from uint64, cs uintptr) uint64 { +func (this *QStringView) LastIndexOf3(c QChar, from uint64, cs CaseSensitivity) uint64 { ret := C.QStringView_LastIndexOf3(this.h, c.cPointer(), (C.size_t)(from), (C.uintptr_t)(cs)) return (uint64)(ret) } diff --git a/qt/gen_qstyle.go b/qt/gen_qstyle.go index 2b972630..617d4fe4 100644 --- a/qt/gen_qstyle.go +++ b/qt/gen_qstyle.go @@ -13,6 +13,629 @@ import ( "unsafe" ) +type QStyle__StateFlag int + +const ( + QStyle__StateFlag__State_None QStyle__StateFlag = 0 + QStyle__StateFlag__State_Enabled QStyle__StateFlag = 1 + QStyle__StateFlag__State_Raised QStyle__StateFlag = 2 + QStyle__StateFlag__State_Sunken QStyle__StateFlag = 4 + QStyle__StateFlag__State_Off QStyle__StateFlag = 8 + QStyle__StateFlag__State_NoChange QStyle__StateFlag = 16 + QStyle__StateFlag__State_On QStyle__StateFlag = 32 + QStyle__StateFlag__State_DownArrow QStyle__StateFlag = 64 + QStyle__StateFlag__State_Horizontal QStyle__StateFlag = 128 + QStyle__StateFlag__State_HasFocus QStyle__StateFlag = 256 + QStyle__StateFlag__State_Top QStyle__StateFlag = 512 + QStyle__StateFlag__State_Bottom QStyle__StateFlag = 1024 + QStyle__StateFlag__State_FocusAtBorder QStyle__StateFlag = 2048 + QStyle__StateFlag__State_AutoRaise QStyle__StateFlag = 4096 + QStyle__StateFlag__State_MouseOver QStyle__StateFlag = 8192 + QStyle__StateFlag__State_UpArrow QStyle__StateFlag = 16384 + QStyle__StateFlag__State_Selected QStyle__StateFlag = 32768 + QStyle__StateFlag__State_Active QStyle__StateFlag = 65536 + QStyle__StateFlag__State_Window QStyle__StateFlag = 131072 + QStyle__StateFlag__State_Open QStyle__StateFlag = 262144 + QStyle__StateFlag__State_Children QStyle__StateFlag = 524288 + QStyle__StateFlag__State_Item QStyle__StateFlag = 1048576 + QStyle__StateFlag__State_Sibling QStyle__StateFlag = 2097152 + QStyle__StateFlag__State_Editing QStyle__StateFlag = 4194304 + QStyle__StateFlag__State_KeyboardFocusChange QStyle__StateFlag = 8388608 + QStyle__StateFlag__State_ReadOnly QStyle__StateFlag = 33554432 + QStyle__StateFlag__State_Small QStyle__StateFlag = 67108864 + QStyle__StateFlag__State_Mini QStyle__StateFlag = 134217728 +) + +type QStyle__PrimitiveElement int + +const ( + QStyle__PrimitiveElement__PE_Frame QStyle__PrimitiveElement = 0 + QStyle__PrimitiveElement__PE_FrameDefaultButton QStyle__PrimitiveElement = 1 + QStyle__PrimitiveElement__PE_FrameDockWidget QStyle__PrimitiveElement = 2 + QStyle__PrimitiveElement__PE_FrameFocusRect QStyle__PrimitiveElement = 3 + QStyle__PrimitiveElement__PE_FrameGroupBox QStyle__PrimitiveElement = 4 + QStyle__PrimitiveElement__PE_FrameLineEdit QStyle__PrimitiveElement = 5 + QStyle__PrimitiveElement__PE_FrameMenu QStyle__PrimitiveElement = 6 + QStyle__PrimitiveElement__PE_FrameStatusBarItem QStyle__PrimitiveElement = 7 + QStyle__PrimitiveElement__PE_FrameStatusBar QStyle__PrimitiveElement = 7 + QStyle__PrimitiveElement__PE_FrameTabWidget QStyle__PrimitiveElement = 8 + QStyle__PrimitiveElement__PE_FrameWindow QStyle__PrimitiveElement = 9 + QStyle__PrimitiveElement__PE_FrameButtonBevel QStyle__PrimitiveElement = 10 + QStyle__PrimitiveElement__PE_FrameButtonTool QStyle__PrimitiveElement = 11 + QStyle__PrimitiveElement__PE_FrameTabBarBase QStyle__PrimitiveElement = 12 + QStyle__PrimitiveElement__PE_PanelButtonCommand QStyle__PrimitiveElement = 13 + QStyle__PrimitiveElement__PE_PanelButtonBevel QStyle__PrimitiveElement = 14 + QStyle__PrimitiveElement__PE_PanelButtonTool QStyle__PrimitiveElement = 15 + QStyle__PrimitiveElement__PE_PanelMenuBar QStyle__PrimitiveElement = 16 + QStyle__PrimitiveElement__PE_PanelToolBar QStyle__PrimitiveElement = 17 + QStyle__PrimitiveElement__PE_PanelLineEdit QStyle__PrimitiveElement = 18 + QStyle__PrimitiveElement__PE_IndicatorArrowDown QStyle__PrimitiveElement = 19 + QStyle__PrimitiveElement__PE_IndicatorArrowLeft QStyle__PrimitiveElement = 20 + QStyle__PrimitiveElement__PE_IndicatorArrowRight QStyle__PrimitiveElement = 21 + QStyle__PrimitiveElement__PE_IndicatorArrowUp QStyle__PrimitiveElement = 22 + QStyle__PrimitiveElement__PE_IndicatorBranch QStyle__PrimitiveElement = 23 + QStyle__PrimitiveElement__PE_IndicatorButtonDropDown QStyle__PrimitiveElement = 24 + QStyle__PrimitiveElement__PE_IndicatorItemViewItemCheck QStyle__PrimitiveElement = 25 + QStyle__PrimitiveElement__PE_IndicatorViewItemCheck QStyle__PrimitiveElement = 25 + QStyle__PrimitiveElement__PE_IndicatorCheckBox QStyle__PrimitiveElement = 26 + QStyle__PrimitiveElement__PE_IndicatorDockWidgetResizeHandle QStyle__PrimitiveElement = 27 + QStyle__PrimitiveElement__PE_IndicatorHeaderArrow QStyle__PrimitiveElement = 28 + QStyle__PrimitiveElement__PE_IndicatorMenuCheckMark QStyle__PrimitiveElement = 29 + QStyle__PrimitiveElement__PE_IndicatorProgressChunk QStyle__PrimitiveElement = 30 + QStyle__PrimitiveElement__PE_IndicatorRadioButton QStyle__PrimitiveElement = 31 + QStyle__PrimitiveElement__PE_IndicatorSpinDown QStyle__PrimitiveElement = 32 + QStyle__PrimitiveElement__PE_IndicatorSpinMinus QStyle__PrimitiveElement = 33 + QStyle__PrimitiveElement__PE_IndicatorSpinPlus QStyle__PrimitiveElement = 34 + QStyle__PrimitiveElement__PE_IndicatorSpinUp QStyle__PrimitiveElement = 35 + QStyle__PrimitiveElement__PE_IndicatorToolBarHandle QStyle__PrimitiveElement = 36 + QStyle__PrimitiveElement__PE_IndicatorToolBarSeparator QStyle__PrimitiveElement = 37 + QStyle__PrimitiveElement__PE_PanelTipLabel QStyle__PrimitiveElement = 38 + QStyle__PrimitiveElement__PE_IndicatorTabTear QStyle__PrimitiveElement = 39 + QStyle__PrimitiveElement__PE_IndicatorTabTearLeft QStyle__PrimitiveElement = 39 + QStyle__PrimitiveElement__PE_PanelScrollAreaCorner QStyle__PrimitiveElement = 40 + QStyle__PrimitiveElement__PE_Widget QStyle__PrimitiveElement = 41 + QStyle__PrimitiveElement__PE_IndicatorColumnViewArrow QStyle__PrimitiveElement = 42 + QStyle__PrimitiveElement__PE_IndicatorItemViewItemDrop QStyle__PrimitiveElement = 43 + QStyle__PrimitiveElement__PE_PanelItemViewItem QStyle__PrimitiveElement = 44 + QStyle__PrimitiveElement__PE_PanelItemViewRow QStyle__PrimitiveElement = 45 + QStyle__PrimitiveElement__PE_PanelStatusBar QStyle__PrimitiveElement = 46 + QStyle__PrimitiveElement__PE_IndicatorTabClose QStyle__PrimitiveElement = 47 + QStyle__PrimitiveElement__PE_PanelMenu QStyle__PrimitiveElement = 48 + QStyle__PrimitiveElement__PE_IndicatorTabTearRight QStyle__PrimitiveElement = 49 + QStyle__PrimitiveElement__PE_CustomBase QStyle__PrimitiveElement = 251658240 +) + +type QStyle__ControlElement int + +const ( + QStyle__ControlElement__CE_PushButton QStyle__ControlElement = 0 + QStyle__ControlElement__CE_PushButtonBevel QStyle__ControlElement = 1 + QStyle__ControlElement__CE_PushButtonLabel QStyle__ControlElement = 2 + QStyle__ControlElement__CE_CheckBox QStyle__ControlElement = 3 + QStyle__ControlElement__CE_CheckBoxLabel QStyle__ControlElement = 4 + QStyle__ControlElement__CE_RadioButton QStyle__ControlElement = 5 + QStyle__ControlElement__CE_RadioButtonLabel QStyle__ControlElement = 6 + QStyle__ControlElement__CE_TabBarTab QStyle__ControlElement = 7 + QStyle__ControlElement__CE_TabBarTabShape QStyle__ControlElement = 8 + QStyle__ControlElement__CE_TabBarTabLabel QStyle__ControlElement = 9 + QStyle__ControlElement__CE_ProgressBar QStyle__ControlElement = 10 + QStyle__ControlElement__CE_ProgressBarGroove QStyle__ControlElement = 11 + QStyle__ControlElement__CE_ProgressBarContents QStyle__ControlElement = 12 + QStyle__ControlElement__CE_ProgressBarLabel QStyle__ControlElement = 13 + QStyle__ControlElement__CE_MenuItem QStyle__ControlElement = 14 + QStyle__ControlElement__CE_MenuScroller QStyle__ControlElement = 15 + QStyle__ControlElement__CE_MenuVMargin QStyle__ControlElement = 16 + QStyle__ControlElement__CE_MenuHMargin QStyle__ControlElement = 17 + QStyle__ControlElement__CE_MenuTearoff QStyle__ControlElement = 18 + QStyle__ControlElement__CE_MenuEmptyArea QStyle__ControlElement = 19 + QStyle__ControlElement__CE_MenuBarItem QStyle__ControlElement = 20 + QStyle__ControlElement__CE_MenuBarEmptyArea QStyle__ControlElement = 21 + QStyle__ControlElement__CE_ToolButtonLabel QStyle__ControlElement = 22 + QStyle__ControlElement__CE_Header QStyle__ControlElement = 23 + QStyle__ControlElement__CE_HeaderSection QStyle__ControlElement = 24 + QStyle__ControlElement__CE_HeaderLabel QStyle__ControlElement = 25 + QStyle__ControlElement__CE_ToolBoxTab QStyle__ControlElement = 26 + QStyle__ControlElement__CE_SizeGrip QStyle__ControlElement = 27 + QStyle__ControlElement__CE_Splitter QStyle__ControlElement = 28 + QStyle__ControlElement__CE_RubberBand QStyle__ControlElement = 29 + QStyle__ControlElement__CE_DockWidgetTitle QStyle__ControlElement = 30 + QStyle__ControlElement__CE_ScrollBarAddLine QStyle__ControlElement = 31 + QStyle__ControlElement__CE_ScrollBarSubLine QStyle__ControlElement = 32 + QStyle__ControlElement__CE_ScrollBarAddPage QStyle__ControlElement = 33 + QStyle__ControlElement__CE_ScrollBarSubPage QStyle__ControlElement = 34 + QStyle__ControlElement__CE_ScrollBarSlider QStyle__ControlElement = 35 + QStyle__ControlElement__CE_ScrollBarFirst QStyle__ControlElement = 36 + QStyle__ControlElement__CE_ScrollBarLast QStyle__ControlElement = 37 + QStyle__ControlElement__CE_FocusFrame QStyle__ControlElement = 38 + QStyle__ControlElement__CE_ComboBoxLabel QStyle__ControlElement = 39 + QStyle__ControlElement__CE_ToolBar QStyle__ControlElement = 40 + QStyle__ControlElement__CE_ToolBoxTabShape QStyle__ControlElement = 41 + QStyle__ControlElement__CE_ToolBoxTabLabel QStyle__ControlElement = 42 + QStyle__ControlElement__CE_HeaderEmptyArea QStyle__ControlElement = 43 + QStyle__ControlElement__CE_ColumnViewGrip QStyle__ControlElement = 44 + QStyle__ControlElement__CE_ItemViewItem QStyle__ControlElement = 45 + QStyle__ControlElement__CE_ShapedFrame QStyle__ControlElement = 46 + QStyle__ControlElement__CE_CustomBase QStyle__ControlElement = 4026531840 +) + +type QStyle__SubElement int + +const ( + QStyle__SubElement__SE_PushButtonContents QStyle__SubElement = 0 + QStyle__SubElement__SE_PushButtonFocusRect QStyle__SubElement = 1 + QStyle__SubElement__SE_CheckBoxIndicator QStyle__SubElement = 2 + QStyle__SubElement__SE_CheckBoxContents QStyle__SubElement = 3 + QStyle__SubElement__SE_CheckBoxFocusRect QStyle__SubElement = 4 + QStyle__SubElement__SE_CheckBoxClickRect QStyle__SubElement = 5 + QStyle__SubElement__SE_RadioButtonIndicator QStyle__SubElement = 6 + QStyle__SubElement__SE_RadioButtonContents QStyle__SubElement = 7 + QStyle__SubElement__SE_RadioButtonFocusRect QStyle__SubElement = 8 + QStyle__SubElement__SE_RadioButtonClickRect QStyle__SubElement = 9 + QStyle__SubElement__SE_ComboBoxFocusRect QStyle__SubElement = 10 + QStyle__SubElement__SE_SliderFocusRect QStyle__SubElement = 11 + QStyle__SubElement__SE_ProgressBarGroove QStyle__SubElement = 12 + QStyle__SubElement__SE_ProgressBarContents QStyle__SubElement = 13 + QStyle__SubElement__SE_ProgressBarLabel QStyle__SubElement = 14 + QStyle__SubElement__SE_ToolBoxTabContents QStyle__SubElement = 15 + QStyle__SubElement__SE_HeaderLabel QStyle__SubElement = 16 + QStyle__SubElement__SE_HeaderArrow QStyle__SubElement = 17 + QStyle__SubElement__SE_TabWidgetTabBar QStyle__SubElement = 18 + QStyle__SubElement__SE_TabWidgetTabPane QStyle__SubElement = 19 + QStyle__SubElement__SE_TabWidgetTabContents QStyle__SubElement = 20 + QStyle__SubElement__SE_TabWidgetLeftCorner QStyle__SubElement = 21 + QStyle__SubElement__SE_TabWidgetRightCorner QStyle__SubElement = 22 + QStyle__SubElement__SE_ItemViewItemCheckIndicator QStyle__SubElement = 23 + QStyle__SubElement__SE_ViewItemCheckIndicator QStyle__SubElement = 23 + QStyle__SubElement__SE_TabBarTearIndicator QStyle__SubElement = 24 + QStyle__SubElement__SE_TabBarTearIndicatorLeft QStyle__SubElement = 24 + QStyle__SubElement__SE_TreeViewDisclosureItem QStyle__SubElement = 25 + QStyle__SubElement__SE_LineEditContents QStyle__SubElement = 26 + QStyle__SubElement__SE_FrameContents QStyle__SubElement = 27 + QStyle__SubElement__SE_DockWidgetCloseButton QStyle__SubElement = 28 + QStyle__SubElement__SE_DockWidgetFloatButton QStyle__SubElement = 29 + QStyle__SubElement__SE_DockWidgetTitleBarText QStyle__SubElement = 30 + QStyle__SubElement__SE_DockWidgetIcon QStyle__SubElement = 31 + QStyle__SubElement__SE_CheckBoxLayoutItem QStyle__SubElement = 32 + QStyle__SubElement__SE_ComboBoxLayoutItem QStyle__SubElement = 33 + QStyle__SubElement__SE_DateTimeEditLayoutItem QStyle__SubElement = 34 + QStyle__SubElement__SE_DialogButtonBoxLayoutItem QStyle__SubElement = 35 + QStyle__SubElement__SE_LabelLayoutItem QStyle__SubElement = 36 + QStyle__SubElement__SE_ProgressBarLayoutItem QStyle__SubElement = 37 + QStyle__SubElement__SE_PushButtonLayoutItem QStyle__SubElement = 38 + QStyle__SubElement__SE_RadioButtonLayoutItem QStyle__SubElement = 39 + QStyle__SubElement__SE_SliderLayoutItem QStyle__SubElement = 40 + QStyle__SubElement__SE_SpinBoxLayoutItem QStyle__SubElement = 41 + QStyle__SubElement__SE_ToolButtonLayoutItem QStyle__SubElement = 42 + QStyle__SubElement__SE_FrameLayoutItem QStyle__SubElement = 43 + QStyle__SubElement__SE_GroupBoxLayoutItem QStyle__SubElement = 44 + QStyle__SubElement__SE_TabWidgetLayoutItem QStyle__SubElement = 45 + QStyle__SubElement__SE_ItemViewItemDecoration QStyle__SubElement = 46 + QStyle__SubElement__SE_ItemViewItemText QStyle__SubElement = 47 + QStyle__SubElement__SE_ItemViewItemFocusRect QStyle__SubElement = 48 + QStyle__SubElement__SE_TabBarTabLeftButton QStyle__SubElement = 49 + QStyle__SubElement__SE_TabBarTabRightButton QStyle__SubElement = 50 + QStyle__SubElement__SE_TabBarTabText QStyle__SubElement = 51 + QStyle__SubElement__SE_ShapedFrameContents QStyle__SubElement = 52 + QStyle__SubElement__SE_ToolBarHandle QStyle__SubElement = 53 + QStyle__SubElement__SE_TabBarScrollLeftButton QStyle__SubElement = 54 + QStyle__SubElement__SE_TabBarScrollRightButton QStyle__SubElement = 55 + QStyle__SubElement__SE_TabBarTearIndicatorRight QStyle__SubElement = 56 + QStyle__SubElement__SE_PushButtonBevel QStyle__SubElement = 57 + QStyle__SubElement__SE_CustomBase QStyle__SubElement = 4026531840 +) + +type QStyle__ComplexControl int + +const ( + QStyle__ComplexControl__CC_SpinBox QStyle__ComplexControl = 0 + QStyle__ComplexControl__CC_ComboBox QStyle__ComplexControl = 1 + QStyle__ComplexControl__CC_ScrollBar QStyle__ComplexControl = 2 + QStyle__ComplexControl__CC_Slider QStyle__ComplexControl = 3 + QStyle__ComplexControl__CC_ToolButton QStyle__ComplexControl = 4 + QStyle__ComplexControl__CC_TitleBar QStyle__ComplexControl = 5 + QStyle__ComplexControl__CC_Dial QStyle__ComplexControl = 6 + QStyle__ComplexControl__CC_GroupBox QStyle__ComplexControl = 7 + QStyle__ComplexControl__CC_MdiControls QStyle__ComplexControl = 8 + QStyle__ComplexControl__CC_CustomBase QStyle__ComplexControl = 4026531840 +) + +type QStyle__SubControl int + +const ( + QStyle__SubControl__SC_None QStyle__SubControl = 0 + QStyle__SubControl__SC_ScrollBarAddLine QStyle__SubControl = 1 + QStyle__SubControl__SC_ScrollBarSubLine QStyle__SubControl = 2 + QStyle__SubControl__SC_ScrollBarAddPage QStyle__SubControl = 4 + QStyle__SubControl__SC_ScrollBarSubPage QStyle__SubControl = 8 + QStyle__SubControl__SC_ScrollBarFirst QStyle__SubControl = 16 + QStyle__SubControl__SC_ScrollBarLast QStyle__SubControl = 32 + QStyle__SubControl__SC_ScrollBarSlider QStyle__SubControl = 64 + QStyle__SubControl__SC_ScrollBarGroove QStyle__SubControl = 128 + QStyle__SubControl__SC_SpinBoxUp QStyle__SubControl = 1 + QStyle__SubControl__SC_SpinBoxDown QStyle__SubControl = 2 + QStyle__SubControl__SC_SpinBoxFrame QStyle__SubControl = 4 + QStyle__SubControl__SC_SpinBoxEditField QStyle__SubControl = 8 + QStyle__SubControl__SC_ComboBoxFrame QStyle__SubControl = 1 + QStyle__SubControl__SC_ComboBoxEditField QStyle__SubControl = 2 + QStyle__SubControl__SC_ComboBoxArrow QStyle__SubControl = 4 + QStyle__SubControl__SC_ComboBoxListBoxPopup QStyle__SubControl = 8 + QStyle__SubControl__SC_SliderGroove QStyle__SubControl = 1 + QStyle__SubControl__SC_SliderHandle QStyle__SubControl = 2 + QStyle__SubControl__SC_SliderTickmarks QStyle__SubControl = 4 + QStyle__SubControl__SC_ToolButton QStyle__SubControl = 1 + QStyle__SubControl__SC_ToolButtonMenu QStyle__SubControl = 2 + QStyle__SubControl__SC_TitleBarSysMenu QStyle__SubControl = 1 + QStyle__SubControl__SC_TitleBarMinButton QStyle__SubControl = 2 + QStyle__SubControl__SC_TitleBarMaxButton QStyle__SubControl = 4 + QStyle__SubControl__SC_TitleBarCloseButton QStyle__SubControl = 8 + QStyle__SubControl__SC_TitleBarNormalButton QStyle__SubControl = 16 + QStyle__SubControl__SC_TitleBarShadeButton QStyle__SubControl = 32 + QStyle__SubControl__SC_TitleBarUnshadeButton QStyle__SubControl = 64 + QStyle__SubControl__SC_TitleBarContextHelpButton QStyle__SubControl = 128 + QStyle__SubControl__SC_TitleBarLabel QStyle__SubControl = 256 + QStyle__SubControl__SC_DialGroove QStyle__SubControl = 1 + QStyle__SubControl__SC_DialHandle QStyle__SubControl = 2 + QStyle__SubControl__SC_DialTickmarks QStyle__SubControl = 4 + QStyle__SubControl__SC_GroupBoxCheckBox QStyle__SubControl = 1 + QStyle__SubControl__SC_GroupBoxLabel QStyle__SubControl = 2 + QStyle__SubControl__SC_GroupBoxContents QStyle__SubControl = 4 + QStyle__SubControl__SC_GroupBoxFrame QStyle__SubControl = 8 + QStyle__SubControl__SC_MdiMinButton QStyle__SubControl = 1 + QStyle__SubControl__SC_MdiNormalButton QStyle__SubControl = 2 + QStyle__SubControl__SC_MdiCloseButton QStyle__SubControl = 4 + QStyle__SubControl__SC_CustomBase QStyle__SubControl = 4026531840 + QStyle__SubControl__SC_All QStyle__SubControl = 4294967295 +) + +type QStyle__PixelMetric int + +const ( + QStyle__PixelMetric__PM_ButtonMargin QStyle__PixelMetric = 0 + QStyle__PixelMetric__PM_ButtonDefaultIndicator QStyle__PixelMetric = 1 + QStyle__PixelMetric__PM_MenuButtonIndicator QStyle__PixelMetric = 2 + QStyle__PixelMetric__PM_ButtonShiftHorizontal QStyle__PixelMetric = 3 + QStyle__PixelMetric__PM_ButtonShiftVertical QStyle__PixelMetric = 4 + QStyle__PixelMetric__PM_DefaultFrameWidth QStyle__PixelMetric = 5 + QStyle__PixelMetric__PM_SpinBoxFrameWidth QStyle__PixelMetric = 6 + QStyle__PixelMetric__PM_ComboBoxFrameWidth QStyle__PixelMetric = 7 + QStyle__PixelMetric__PM_MaximumDragDistance QStyle__PixelMetric = 8 + QStyle__PixelMetric__PM_ScrollBarExtent QStyle__PixelMetric = 9 + QStyle__PixelMetric__PM_ScrollBarSliderMin QStyle__PixelMetric = 10 + QStyle__PixelMetric__PM_SliderThickness QStyle__PixelMetric = 11 + QStyle__PixelMetric__PM_SliderControlThickness QStyle__PixelMetric = 12 + QStyle__PixelMetric__PM_SliderLength QStyle__PixelMetric = 13 + QStyle__PixelMetric__PM_SliderTickmarkOffset QStyle__PixelMetric = 14 + QStyle__PixelMetric__PM_SliderSpaceAvailable QStyle__PixelMetric = 15 + QStyle__PixelMetric__PM_DockWidgetSeparatorExtent QStyle__PixelMetric = 16 + QStyle__PixelMetric__PM_DockWidgetHandleExtent QStyle__PixelMetric = 17 + QStyle__PixelMetric__PM_DockWidgetFrameWidth QStyle__PixelMetric = 18 + QStyle__PixelMetric__PM_TabBarTabOverlap QStyle__PixelMetric = 19 + QStyle__PixelMetric__PM_TabBarTabHSpace QStyle__PixelMetric = 20 + QStyle__PixelMetric__PM_TabBarTabVSpace QStyle__PixelMetric = 21 + QStyle__PixelMetric__PM_TabBarBaseHeight QStyle__PixelMetric = 22 + QStyle__PixelMetric__PM_TabBarBaseOverlap QStyle__PixelMetric = 23 + QStyle__PixelMetric__PM_ProgressBarChunkWidth QStyle__PixelMetric = 24 + QStyle__PixelMetric__PM_SplitterWidth QStyle__PixelMetric = 25 + QStyle__PixelMetric__PM_TitleBarHeight QStyle__PixelMetric = 26 + QStyle__PixelMetric__PM_MenuScrollerHeight QStyle__PixelMetric = 27 + QStyle__PixelMetric__PM_MenuHMargin QStyle__PixelMetric = 28 + QStyle__PixelMetric__PM_MenuVMargin QStyle__PixelMetric = 29 + QStyle__PixelMetric__PM_MenuPanelWidth QStyle__PixelMetric = 30 + QStyle__PixelMetric__PM_MenuTearoffHeight QStyle__PixelMetric = 31 + QStyle__PixelMetric__PM_MenuDesktopFrameWidth QStyle__PixelMetric = 32 + QStyle__PixelMetric__PM_MenuBarPanelWidth QStyle__PixelMetric = 33 + QStyle__PixelMetric__PM_MenuBarItemSpacing QStyle__PixelMetric = 34 + QStyle__PixelMetric__PM_MenuBarVMargin QStyle__PixelMetric = 35 + QStyle__PixelMetric__PM_MenuBarHMargin QStyle__PixelMetric = 36 + QStyle__PixelMetric__PM_IndicatorWidth QStyle__PixelMetric = 37 + QStyle__PixelMetric__PM_IndicatorHeight QStyle__PixelMetric = 38 + QStyle__PixelMetric__PM_ExclusiveIndicatorWidth QStyle__PixelMetric = 39 + QStyle__PixelMetric__PM_ExclusiveIndicatorHeight QStyle__PixelMetric = 40 + QStyle__PixelMetric__PM_DialogButtonsSeparator QStyle__PixelMetric = 41 + QStyle__PixelMetric__PM_DialogButtonsButtonWidth QStyle__PixelMetric = 42 + QStyle__PixelMetric__PM_DialogButtonsButtonHeight QStyle__PixelMetric = 43 + QStyle__PixelMetric__PM_MdiSubWindowFrameWidth QStyle__PixelMetric = 44 + QStyle__PixelMetric__PM_MdiSubWindowMinimizedWidth QStyle__PixelMetric = 45 + QStyle__PixelMetric__PM_MDIFrameWidth QStyle__PixelMetric = 44 + QStyle__PixelMetric__PM_MDIMinimizedWidth QStyle__PixelMetric = 45 + QStyle__PixelMetric__PM_HeaderMargin QStyle__PixelMetric = 46 + QStyle__PixelMetric__PM_HeaderMarkSize QStyle__PixelMetric = 47 + QStyle__PixelMetric__PM_HeaderGripMargin QStyle__PixelMetric = 48 + QStyle__PixelMetric__PM_TabBarTabShiftHorizontal QStyle__PixelMetric = 49 + QStyle__PixelMetric__PM_TabBarTabShiftVertical QStyle__PixelMetric = 50 + QStyle__PixelMetric__PM_TabBarScrollButtonWidth QStyle__PixelMetric = 51 + QStyle__PixelMetric__PM_ToolBarFrameWidth QStyle__PixelMetric = 52 + QStyle__PixelMetric__PM_ToolBarHandleExtent QStyle__PixelMetric = 53 + QStyle__PixelMetric__PM_ToolBarItemSpacing QStyle__PixelMetric = 54 + QStyle__PixelMetric__PM_ToolBarItemMargin QStyle__PixelMetric = 55 + QStyle__PixelMetric__PM_ToolBarSeparatorExtent QStyle__PixelMetric = 56 + QStyle__PixelMetric__PM_ToolBarExtensionExtent QStyle__PixelMetric = 57 + QStyle__PixelMetric__PM_SpinBoxSliderHeight QStyle__PixelMetric = 58 + QStyle__PixelMetric__PM_DefaultTopLevelMargin QStyle__PixelMetric = 59 + QStyle__PixelMetric__PM_DefaultChildMargin QStyle__PixelMetric = 60 + QStyle__PixelMetric__PM_DefaultLayoutSpacing QStyle__PixelMetric = 61 + QStyle__PixelMetric__PM_ToolBarIconSize QStyle__PixelMetric = 62 + QStyle__PixelMetric__PM_ListViewIconSize QStyle__PixelMetric = 63 + QStyle__PixelMetric__PM_IconViewIconSize QStyle__PixelMetric = 64 + QStyle__PixelMetric__PM_SmallIconSize QStyle__PixelMetric = 65 + QStyle__PixelMetric__PM_LargeIconSize QStyle__PixelMetric = 66 + QStyle__PixelMetric__PM_FocusFrameVMargin QStyle__PixelMetric = 67 + QStyle__PixelMetric__PM_FocusFrameHMargin QStyle__PixelMetric = 68 + QStyle__PixelMetric__PM_ToolTipLabelFrameWidth QStyle__PixelMetric = 69 + QStyle__PixelMetric__PM_CheckBoxLabelSpacing QStyle__PixelMetric = 70 + QStyle__PixelMetric__PM_TabBarIconSize QStyle__PixelMetric = 71 + QStyle__PixelMetric__PM_SizeGripSize QStyle__PixelMetric = 72 + QStyle__PixelMetric__PM_DockWidgetTitleMargin QStyle__PixelMetric = 73 + QStyle__PixelMetric__PM_MessageBoxIconSize QStyle__PixelMetric = 74 + QStyle__PixelMetric__PM_ButtonIconSize QStyle__PixelMetric = 75 + QStyle__PixelMetric__PM_DockWidgetTitleBarButtonMargin QStyle__PixelMetric = 76 + QStyle__PixelMetric__PM_RadioButtonLabelSpacing QStyle__PixelMetric = 77 + QStyle__PixelMetric__PM_LayoutLeftMargin QStyle__PixelMetric = 78 + QStyle__PixelMetric__PM_LayoutTopMargin QStyle__PixelMetric = 79 + QStyle__PixelMetric__PM_LayoutRightMargin QStyle__PixelMetric = 80 + QStyle__PixelMetric__PM_LayoutBottomMargin QStyle__PixelMetric = 81 + QStyle__PixelMetric__PM_LayoutHorizontalSpacing QStyle__PixelMetric = 82 + QStyle__PixelMetric__PM_LayoutVerticalSpacing QStyle__PixelMetric = 83 + QStyle__PixelMetric__PM_TabBar_ScrollButtonOverlap QStyle__PixelMetric = 84 + QStyle__PixelMetric__PM_TextCursorWidth QStyle__PixelMetric = 85 + QStyle__PixelMetric__PM_TabCloseIndicatorWidth QStyle__PixelMetric = 86 + QStyle__PixelMetric__PM_TabCloseIndicatorHeight QStyle__PixelMetric = 87 + QStyle__PixelMetric__PM_ScrollView_ScrollBarSpacing QStyle__PixelMetric = 88 + QStyle__PixelMetric__PM_ScrollView_ScrollBarOverlap QStyle__PixelMetric = 89 + QStyle__PixelMetric__PM_SubMenuOverlap QStyle__PixelMetric = 90 + QStyle__PixelMetric__PM_TreeViewIndentation QStyle__PixelMetric = 91 + QStyle__PixelMetric__PM_HeaderDefaultSectionSizeHorizontal QStyle__PixelMetric = 92 + QStyle__PixelMetric__PM_HeaderDefaultSectionSizeVertical QStyle__PixelMetric = 93 + QStyle__PixelMetric__PM_TitleBarButtonIconSize QStyle__PixelMetric = 94 + QStyle__PixelMetric__PM_TitleBarButtonSize QStyle__PixelMetric = 95 + QStyle__PixelMetric__PM_CustomBase QStyle__PixelMetric = 4026531840 +) + +type QStyle__ContentsType int + +const ( + QStyle__ContentsType__CT_PushButton QStyle__ContentsType = 0 + QStyle__ContentsType__CT_CheckBox QStyle__ContentsType = 1 + QStyle__ContentsType__CT_RadioButton QStyle__ContentsType = 2 + QStyle__ContentsType__CT_ToolButton QStyle__ContentsType = 3 + QStyle__ContentsType__CT_ComboBox QStyle__ContentsType = 4 + QStyle__ContentsType__CT_Splitter QStyle__ContentsType = 5 + QStyle__ContentsType__CT_ProgressBar QStyle__ContentsType = 6 + QStyle__ContentsType__CT_MenuItem QStyle__ContentsType = 7 + QStyle__ContentsType__CT_MenuBarItem QStyle__ContentsType = 8 + QStyle__ContentsType__CT_MenuBar QStyle__ContentsType = 9 + QStyle__ContentsType__CT_Menu QStyle__ContentsType = 10 + QStyle__ContentsType__CT_TabBarTab QStyle__ContentsType = 11 + QStyle__ContentsType__CT_Slider QStyle__ContentsType = 12 + QStyle__ContentsType__CT_ScrollBar QStyle__ContentsType = 13 + QStyle__ContentsType__CT_LineEdit QStyle__ContentsType = 14 + QStyle__ContentsType__CT_SpinBox QStyle__ContentsType = 15 + QStyle__ContentsType__CT_SizeGrip QStyle__ContentsType = 16 + QStyle__ContentsType__CT_TabWidget QStyle__ContentsType = 17 + QStyle__ContentsType__CT_DialogButtons QStyle__ContentsType = 18 + QStyle__ContentsType__CT_HeaderSection QStyle__ContentsType = 19 + QStyle__ContentsType__CT_GroupBox QStyle__ContentsType = 20 + QStyle__ContentsType__CT_MdiControls QStyle__ContentsType = 21 + QStyle__ContentsType__CT_ItemViewItem QStyle__ContentsType = 22 + QStyle__ContentsType__CT_CustomBase QStyle__ContentsType = 4026531840 +) + +type QStyle__RequestSoftwareInputPanel int + +const ( + QStyle__RequestSoftwareInputPanel__RSIP_OnMouseClickAndAlreadyFocused QStyle__RequestSoftwareInputPanel = 0 + QStyle__RequestSoftwareInputPanel__RSIP_OnMouseClick QStyle__RequestSoftwareInputPanel = 1 +) + +type QStyle__StyleHint int + +const ( + QStyle__StyleHint__SH_EtchDisabledText QStyle__StyleHint = 0 + QStyle__StyleHint__SH_DitherDisabledText QStyle__StyleHint = 1 + QStyle__StyleHint__SH_ScrollBar_MiddleClickAbsolutePosition QStyle__StyleHint = 2 + QStyle__StyleHint__SH_ScrollBar_ScrollWhenPointerLeavesControl QStyle__StyleHint = 3 + QStyle__StyleHint__SH_TabBar_SelectMouseType QStyle__StyleHint = 4 + QStyle__StyleHint__SH_TabBar_Alignment QStyle__StyleHint = 5 + QStyle__StyleHint__SH_Header_ArrowAlignment QStyle__StyleHint = 6 + QStyle__StyleHint__SH_Slider_SnapToValue QStyle__StyleHint = 7 + QStyle__StyleHint__SH_Slider_SloppyKeyEvents QStyle__StyleHint = 8 + QStyle__StyleHint__SH_ProgressDialog_CenterCancelButton QStyle__StyleHint = 9 + QStyle__StyleHint__SH_ProgressDialog_TextLabelAlignment QStyle__StyleHint = 10 + QStyle__StyleHint__SH_PrintDialog_RightAlignButtons QStyle__StyleHint = 11 + QStyle__StyleHint__SH_MainWindow_SpaceBelowMenuBar QStyle__StyleHint = 12 + QStyle__StyleHint__SH_FontDialog_SelectAssociatedText QStyle__StyleHint = 13 + QStyle__StyleHint__SH_Menu_AllowActiveAndDisabled QStyle__StyleHint = 14 + QStyle__StyleHint__SH_Menu_SpaceActivatesItem QStyle__StyleHint = 15 + QStyle__StyleHint__SH_Menu_SubMenuPopupDelay QStyle__StyleHint = 16 + QStyle__StyleHint__SH_ScrollView_FrameOnlyAroundContents QStyle__StyleHint = 17 + QStyle__StyleHint__SH_MenuBar_AltKeyNavigation QStyle__StyleHint = 18 + QStyle__StyleHint__SH_ComboBox_ListMouseTracking QStyle__StyleHint = 19 + QStyle__StyleHint__SH_Menu_MouseTracking QStyle__StyleHint = 20 + QStyle__StyleHint__SH_MenuBar_MouseTracking QStyle__StyleHint = 21 + QStyle__StyleHint__SH_ItemView_ChangeHighlightOnFocus QStyle__StyleHint = 22 + QStyle__StyleHint__SH_Widget_ShareActivation QStyle__StyleHint = 23 + QStyle__StyleHint__SH_Workspace_FillSpaceOnMaximize QStyle__StyleHint = 24 + QStyle__StyleHint__SH_ComboBox_Popup QStyle__StyleHint = 25 + QStyle__StyleHint__SH_TitleBar_NoBorder QStyle__StyleHint = 26 + QStyle__StyleHint__SH_Slider_StopMouseOverSlider QStyle__StyleHint = 27 + QStyle__StyleHint__SH_ScrollBar_StopMouseOverSlider QStyle__StyleHint = 27 + QStyle__StyleHint__SH_BlinkCursorWhenTextSelected QStyle__StyleHint = 28 + QStyle__StyleHint__SH_RichText_FullWidthSelection QStyle__StyleHint = 29 + QStyle__StyleHint__SH_Menu_Scrollable QStyle__StyleHint = 30 + QStyle__StyleHint__SH_GroupBox_TextLabelVerticalAlignment QStyle__StyleHint = 31 + QStyle__StyleHint__SH_GroupBox_TextLabelColor QStyle__StyleHint = 32 + QStyle__StyleHint__SH_Menu_SloppySubMenus QStyle__StyleHint = 33 + QStyle__StyleHint__SH_Table_GridLineColor QStyle__StyleHint = 34 + QStyle__StyleHint__SH_LineEdit_PasswordCharacter QStyle__StyleHint = 35 + QStyle__StyleHint__SH_DialogButtons_DefaultButton QStyle__StyleHint = 36 + QStyle__StyleHint__SH_ToolBox_SelectedPageTitleBold QStyle__StyleHint = 37 + QStyle__StyleHint__SH_TabBar_PreferNoArrows QStyle__StyleHint = 38 + QStyle__StyleHint__SH_ScrollBar_LeftClickAbsolutePosition QStyle__StyleHint = 39 + QStyle__StyleHint__SH_ListViewExpand_SelectMouseType QStyle__StyleHint = 40 + QStyle__StyleHint__SH_UnderlineShortcut QStyle__StyleHint = 41 + QStyle__StyleHint__SH_SpinBox_AnimateButton QStyle__StyleHint = 42 + QStyle__StyleHint__SH_SpinBox_KeyPressAutoRepeatRate QStyle__StyleHint = 43 + QStyle__StyleHint__SH_SpinBox_ClickAutoRepeatRate QStyle__StyleHint = 44 + QStyle__StyleHint__SH_Menu_FillScreenWithScroll QStyle__StyleHint = 45 + QStyle__StyleHint__SH_ToolTipLabel_Opacity QStyle__StyleHint = 46 + QStyle__StyleHint__SH_DrawMenuBarSeparator QStyle__StyleHint = 47 + QStyle__StyleHint__SH_TitleBar_ModifyNotification QStyle__StyleHint = 48 + QStyle__StyleHint__SH_Button_FocusPolicy QStyle__StyleHint = 49 + QStyle__StyleHint__SH_MessageBox_UseBorderForButtonSpacing QStyle__StyleHint = 50 + QStyle__StyleHint__SH_TitleBar_AutoRaise QStyle__StyleHint = 51 + QStyle__StyleHint__SH_ToolButton_PopupDelay QStyle__StyleHint = 52 + QStyle__StyleHint__SH_FocusFrame_Mask QStyle__StyleHint = 53 + QStyle__StyleHint__SH_RubberBand_Mask QStyle__StyleHint = 54 + QStyle__StyleHint__SH_WindowFrame_Mask QStyle__StyleHint = 55 + QStyle__StyleHint__SH_SpinControls_DisableOnBounds QStyle__StyleHint = 56 + QStyle__StyleHint__SH_Dial_BackgroundRole QStyle__StyleHint = 57 + QStyle__StyleHint__SH_ComboBox_LayoutDirection QStyle__StyleHint = 58 + QStyle__StyleHint__SH_ItemView_EllipsisLocation QStyle__StyleHint = 59 + QStyle__StyleHint__SH_ItemView_ShowDecorationSelected QStyle__StyleHint = 60 + QStyle__StyleHint__SH_ItemView_ActivateItemOnSingleClick QStyle__StyleHint = 61 + QStyle__StyleHint__SH_ScrollBar_ContextMenu QStyle__StyleHint = 62 + QStyle__StyleHint__SH_ScrollBar_RollBetweenButtons QStyle__StyleHint = 63 + QStyle__StyleHint__SH_Slider_AbsoluteSetButtons QStyle__StyleHint = 64 + QStyle__StyleHint__SH_Slider_PageSetButtons QStyle__StyleHint = 65 + QStyle__StyleHint__SH_Menu_KeyboardSearch QStyle__StyleHint = 66 + QStyle__StyleHint__SH_TabBar_ElideMode QStyle__StyleHint = 67 + QStyle__StyleHint__SH_DialogButtonLayout QStyle__StyleHint = 68 + QStyle__StyleHint__SH_ComboBox_PopupFrameStyle QStyle__StyleHint = 69 + QStyle__StyleHint__SH_MessageBox_TextInteractionFlags QStyle__StyleHint = 70 + QStyle__StyleHint__SH_DialogButtonBox_ButtonsHaveIcons QStyle__StyleHint = 71 + QStyle__StyleHint__SH_SpellCheckUnderlineStyle QStyle__StyleHint = 72 + QStyle__StyleHint__SH_MessageBox_CenterButtons QStyle__StyleHint = 73 + QStyle__StyleHint__SH_Menu_SelectionWrap QStyle__StyleHint = 74 + QStyle__StyleHint__SH_ItemView_MovementWithoutUpdatingSelection QStyle__StyleHint = 75 + QStyle__StyleHint__SH_ToolTip_Mask QStyle__StyleHint = 76 + QStyle__StyleHint__SH_FocusFrame_AboveWidget QStyle__StyleHint = 77 + QStyle__StyleHint__SH_TextControl_FocusIndicatorTextCharFormat QStyle__StyleHint = 78 + QStyle__StyleHint__SH_WizardStyle QStyle__StyleHint = 79 + QStyle__StyleHint__SH_ItemView_ArrowKeysNavigateIntoChildren QStyle__StyleHint = 80 + QStyle__StyleHint__SH_Menu_Mask QStyle__StyleHint = 81 + QStyle__StyleHint__SH_Menu_FlashTriggeredItem QStyle__StyleHint = 82 + QStyle__StyleHint__SH_Menu_FadeOutOnHide QStyle__StyleHint = 83 + QStyle__StyleHint__SH_SpinBox_ClickAutoRepeatThreshold QStyle__StyleHint = 84 + QStyle__StyleHint__SH_ItemView_PaintAlternatingRowColorsForEmptyArea QStyle__StyleHint = 85 + QStyle__StyleHint__SH_FormLayoutWrapPolicy QStyle__StyleHint = 86 + QStyle__StyleHint__SH_TabWidget_DefaultTabPosition QStyle__StyleHint = 87 + QStyle__StyleHint__SH_ToolBar_Movable QStyle__StyleHint = 88 + QStyle__StyleHint__SH_FormLayoutFieldGrowthPolicy QStyle__StyleHint = 89 + QStyle__StyleHint__SH_FormLayoutFormAlignment QStyle__StyleHint = 90 + QStyle__StyleHint__SH_FormLayoutLabelAlignment QStyle__StyleHint = 91 + QStyle__StyleHint__SH_ItemView_DrawDelegateFrame QStyle__StyleHint = 92 + QStyle__StyleHint__SH_TabBar_CloseButtonPosition QStyle__StyleHint = 93 + QStyle__StyleHint__SH_DockWidget_ButtonsHaveFrame QStyle__StyleHint = 94 + QStyle__StyleHint__SH_ToolButtonStyle QStyle__StyleHint = 95 + QStyle__StyleHint__SH_RequestSoftwareInputPanel QStyle__StyleHint = 96 + QStyle__StyleHint__SH_ScrollBar_Transient QStyle__StyleHint = 97 + QStyle__StyleHint__SH_Menu_SupportsSections QStyle__StyleHint = 98 + QStyle__StyleHint__SH_ToolTip_WakeUpDelay QStyle__StyleHint = 99 + QStyle__StyleHint__SH_ToolTip_FallAsleepDelay QStyle__StyleHint = 100 + QStyle__StyleHint__SH_Widget_Animate QStyle__StyleHint = 101 + QStyle__StyleHint__SH_Splitter_OpaqueResize QStyle__StyleHint = 102 + QStyle__StyleHint__SH_ComboBox_UseNativePopup QStyle__StyleHint = 103 + QStyle__StyleHint__SH_LineEdit_PasswordMaskDelay QStyle__StyleHint = 104 + QStyle__StyleHint__SH_TabBar_ChangeCurrentDelay QStyle__StyleHint = 105 + QStyle__StyleHint__SH_Menu_SubMenuUniDirection QStyle__StyleHint = 106 + QStyle__StyleHint__SH_Menu_SubMenuUniDirectionFailCount QStyle__StyleHint = 107 + QStyle__StyleHint__SH_Menu_SubMenuSloppySelectOtherActions QStyle__StyleHint = 108 + QStyle__StyleHint__SH_Menu_SubMenuSloppyCloseTimeout QStyle__StyleHint = 109 + QStyle__StyleHint__SH_Menu_SubMenuResetWhenReenteringParent QStyle__StyleHint = 110 + QStyle__StyleHint__SH_Menu_SubMenuDontStartSloppyOnLeave QStyle__StyleHint = 111 + QStyle__StyleHint__SH_ItemView_ScrollMode QStyle__StyleHint = 112 + QStyle__StyleHint__SH_TitleBar_ShowToolTipsOnButtons QStyle__StyleHint = 113 + QStyle__StyleHint__SH_Widget_Animation_Duration QStyle__StyleHint = 114 + QStyle__StyleHint__SH_ComboBox_AllowWheelScrolling QStyle__StyleHint = 115 + QStyle__StyleHint__SH_SpinBox_ButtonsInsideFrame QStyle__StyleHint = 116 + QStyle__StyleHint__SH_SpinBox_StepModifier QStyle__StyleHint = 117 + QStyle__StyleHint__SH_CustomBase QStyle__StyleHint = 4026531840 +) + +type QStyle__StandardPixmap int + +const ( + QStyle__StandardPixmap__SP_TitleBarMenuButton QStyle__StandardPixmap = 0 + QStyle__StandardPixmap__SP_TitleBarMinButton QStyle__StandardPixmap = 1 + QStyle__StandardPixmap__SP_TitleBarMaxButton QStyle__StandardPixmap = 2 + QStyle__StandardPixmap__SP_TitleBarCloseButton QStyle__StandardPixmap = 3 + QStyle__StandardPixmap__SP_TitleBarNormalButton QStyle__StandardPixmap = 4 + QStyle__StandardPixmap__SP_TitleBarShadeButton QStyle__StandardPixmap = 5 + QStyle__StandardPixmap__SP_TitleBarUnshadeButton QStyle__StandardPixmap = 6 + QStyle__StandardPixmap__SP_TitleBarContextHelpButton QStyle__StandardPixmap = 7 + QStyle__StandardPixmap__SP_DockWidgetCloseButton QStyle__StandardPixmap = 8 + QStyle__StandardPixmap__SP_MessageBoxInformation QStyle__StandardPixmap = 9 + QStyle__StandardPixmap__SP_MessageBoxWarning QStyle__StandardPixmap = 10 + QStyle__StandardPixmap__SP_MessageBoxCritical QStyle__StandardPixmap = 11 + QStyle__StandardPixmap__SP_MessageBoxQuestion QStyle__StandardPixmap = 12 + QStyle__StandardPixmap__SP_DesktopIcon QStyle__StandardPixmap = 13 + QStyle__StandardPixmap__SP_TrashIcon QStyle__StandardPixmap = 14 + QStyle__StandardPixmap__SP_ComputerIcon QStyle__StandardPixmap = 15 + QStyle__StandardPixmap__SP_DriveFDIcon QStyle__StandardPixmap = 16 + QStyle__StandardPixmap__SP_DriveHDIcon QStyle__StandardPixmap = 17 + QStyle__StandardPixmap__SP_DriveCDIcon QStyle__StandardPixmap = 18 + QStyle__StandardPixmap__SP_DriveDVDIcon QStyle__StandardPixmap = 19 + QStyle__StandardPixmap__SP_DriveNetIcon QStyle__StandardPixmap = 20 + QStyle__StandardPixmap__SP_DirOpenIcon QStyle__StandardPixmap = 21 + QStyle__StandardPixmap__SP_DirClosedIcon QStyle__StandardPixmap = 22 + QStyle__StandardPixmap__SP_DirLinkIcon QStyle__StandardPixmap = 23 + QStyle__StandardPixmap__SP_DirLinkOpenIcon QStyle__StandardPixmap = 24 + QStyle__StandardPixmap__SP_FileIcon QStyle__StandardPixmap = 25 + QStyle__StandardPixmap__SP_FileLinkIcon QStyle__StandardPixmap = 26 + QStyle__StandardPixmap__SP_ToolBarHorizontalExtensionButton QStyle__StandardPixmap = 27 + QStyle__StandardPixmap__SP_ToolBarVerticalExtensionButton QStyle__StandardPixmap = 28 + QStyle__StandardPixmap__SP_FileDialogStart QStyle__StandardPixmap = 29 + QStyle__StandardPixmap__SP_FileDialogEnd QStyle__StandardPixmap = 30 + QStyle__StandardPixmap__SP_FileDialogToParent QStyle__StandardPixmap = 31 + QStyle__StandardPixmap__SP_FileDialogNewFolder QStyle__StandardPixmap = 32 + QStyle__StandardPixmap__SP_FileDialogDetailedView QStyle__StandardPixmap = 33 + QStyle__StandardPixmap__SP_FileDialogInfoView QStyle__StandardPixmap = 34 + QStyle__StandardPixmap__SP_FileDialogContentsView QStyle__StandardPixmap = 35 + QStyle__StandardPixmap__SP_FileDialogListView QStyle__StandardPixmap = 36 + QStyle__StandardPixmap__SP_FileDialogBack QStyle__StandardPixmap = 37 + QStyle__StandardPixmap__SP_DirIcon QStyle__StandardPixmap = 38 + QStyle__StandardPixmap__SP_DialogOkButton QStyle__StandardPixmap = 39 + QStyle__StandardPixmap__SP_DialogCancelButton QStyle__StandardPixmap = 40 + QStyle__StandardPixmap__SP_DialogHelpButton QStyle__StandardPixmap = 41 + QStyle__StandardPixmap__SP_DialogOpenButton QStyle__StandardPixmap = 42 + QStyle__StandardPixmap__SP_DialogSaveButton QStyle__StandardPixmap = 43 + QStyle__StandardPixmap__SP_DialogCloseButton QStyle__StandardPixmap = 44 + QStyle__StandardPixmap__SP_DialogApplyButton QStyle__StandardPixmap = 45 + QStyle__StandardPixmap__SP_DialogResetButton QStyle__StandardPixmap = 46 + QStyle__StandardPixmap__SP_DialogDiscardButton QStyle__StandardPixmap = 47 + QStyle__StandardPixmap__SP_DialogYesButton QStyle__StandardPixmap = 48 + QStyle__StandardPixmap__SP_DialogNoButton QStyle__StandardPixmap = 49 + QStyle__StandardPixmap__SP_ArrowUp QStyle__StandardPixmap = 50 + QStyle__StandardPixmap__SP_ArrowDown QStyle__StandardPixmap = 51 + QStyle__StandardPixmap__SP_ArrowLeft QStyle__StandardPixmap = 52 + QStyle__StandardPixmap__SP_ArrowRight QStyle__StandardPixmap = 53 + QStyle__StandardPixmap__SP_ArrowBack QStyle__StandardPixmap = 54 + QStyle__StandardPixmap__SP_ArrowForward QStyle__StandardPixmap = 55 + QStyle__StandardPixmap__SP_DirHomeIcon QStyle__StandardPixmap = 56 + QStyle__StandardPixmap__SP_CommandLink QStyle__StandardPixmap = 57 + QStyle__StandardPixmap__SP_VistaShield QStyle__StandardPixmap = 58 + QStyle__StandardPixmap__SP_BrowserReload QStyle__StandardPixmap = 59 + QStyle__StandardPixmap__SP_BrowserStop QStyle__StandardPixmap = 60 + QStyle__StandardPixmap__SP_MediaPlay QStyle__StandardPixmap = 61 + QStyle__StandardPixmap__SP_MediaStop QStyle__StandardPixmap = 62 + QStyle__StandardPixmap__SP_MediaPause QStyle__StandardPixmap = 63 + QStyle__StandardPixmap__SP_MediaSkipForward QStyle__StandardPixmap = 64 + QStyle__StandardPixmap__SP_MediaSkipBackward QStyle__StandardPixmap = 65 + QStyle__StandardPixmap__SP_MediaSeekForward QStyle__StandardPixmap = 66 + QStyle__StandardPixmap__SP_MediaSeekBackward QStyle__StandardPixmap = 67 + QStyle__StandardPixmap__SP_MediaVolume QStyle__StandardPixmap = 68 + QStyle__StandardPixmap__SP_MediaVolumeMuted QStyle__StandardPixmap = 69 + QStyle__StandardPixmap__SP_LineEditClearButton QStyle__StandardPixmap = 70 + QStyle__StandardPixmap__SP_DialogYesToAllButton QStyle__StandardPixmap = 71 + QStyle__StandardPixmap__SP_DialogNoToAllButton QStyle__StandardPixmap = 72 + QStyle__StandardPixmap__SP_DialogSaveAllButton QStyle__StandardPixmap = 73 + QStyle__StandardPixmap__SP_DialogAbortButton QStyle__StandardPixmap = 74 + QStyle__StandardPixmap__SP_DialogRetryButton QStyle__StandardPixmap = 75 + QStyle__StandardPixmap__SP_DialogIgnoreButton QStyle__StandardPixmap = 76 + QStyle__StandardPixmap__SP_RestoreDefaultsButton QStyle__StandardPixmap = 77 + QStyle__StandardPixmap__SP_CustomBase QStyle__StandardPixmap = 4026531840 +) + type QStyle struct { h *C.QStyle *QObject @@ -128,15 +751,15 @@ func (this *QStyle) StandardPalette() *QPalette { return ret1 } -func (this *QStyle) DrawPrimitive(pe uintptr, opt *QStyleOption, p *QPainter) { +func (this *QStyle) DrawPrimitive(pe QStyle__PrimitiveElement, opt *QStyleOption, p *QPainter) { C.QStyle_DrawPrimitive(this.h, (C.uintptr_t)(pe), opt.cPointer(), p.cPointer()) } -func (this *QStyle) DrawControl(element uintptr, opt *QStyleOption, p *QPainter) { +func (this *QStyle) DrawControl(element QStyle__ControlElement, opt *QStyleOption, p *QPainter) { C.QStyle_DrawControl(this.h, (C.uintptr_t)(element), opt.cPointer(), p.cPointer()) } -func (this *QStyle) SubElementRect(subElement uintptr, option *QStyleOption) *QRect { +func (this *QStyle) SubElementRect(subElement QStyle__SubElement, option *QStyleOption) *QRect { ret := C.QStyle_SubElementRect(this.h, (C.uintptr_t)(subElement), option.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRect(ret) @@ -147,16 +770,16 @@ func (this *QStyle) SubElementRect(subElement uintptr, option *QStyleOption) *QR return ret1 } -func (this *QStyle) DrawComplexControl(cc uintptr, opt *QStyleOptionComplex, p *QPainter) { +func (this *QStyle) DrawComplexControl(cc QStyle__ComplexControl, opt *QStyleOptionComplex, p *QPainter) { C.QStyle_DrawComplexControl(this.h, (C.uintptr_t)(cc), opt.cPointer(), p.cPointer()) } -func (this *QStyle) HitTestComplexControl(cc uintptr, opt *QStyleOptionComplex, pt *QPoint) uintptr { +func (this *QStyle) HitTestComplexControl(cc QStyle__ComplexControl, opt *QStyleOptionComplex, pt *QPoint) QStyle__SubControl { ret := C.QStyle_HitTestComplexControl(this.h, (C.uintptr_t)(cc), opt.cPointer(), pt.cPointer()) - return (uintptr)(ret) + return (QStyle__SubControl)(ret) } -func (this *QStyle) SubControlRect(cc uintptr, opt *QStyleOptionComplex, sc uintptr) *QRect { +func (this *QStyle) SubControlRect(cc QStyle__ComplexControl, opt *QStyleOptionComplex, sc QStyle__SubControl) *QRect { ret := C.QStyle_SubControlRect(this.h, (C.uintptr_t)(cc), opt.cPointer(), (C.uintptr_t)(sc)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRect(ret) @@ -167,12 +790,12 @@ func (this *QStyle) SubControlRect(cc uintptr, opt *QStyleOptionComplex, sc uint return ret1 } -func (this *QStyle) PixelMetric(metric uintptr) int { +func (this *QStyle) PixelMetric(metric QStyle__PixelMetric) int { ret := C.QStyle_PixelMetric(this.h, (C.uintptr_t)(metric)) return (int)(ret) } -func (this *QStyle) SizeFromContents(ct uintptr, opt *QStyleOption, contentsSize *QSize) *QSize { +func (this *QStyle) SizeFromContents(ct QStyle__ContentsType, opt *QStyleOption, contentsSize *QSize) *QSize { ret := C.QStyle_SizeFromContents(this.h, (C.uintptr_t)(ct), opt.cPointer(), contentsSize.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSize(ret) @@ -183,12 +806,12 @@ func (this *QStyle) SizeFromContents(ct uintptr, opt *QStyleOption, contentsSize return ret1 } -func (this *QStyle) StyleHint(stylehint uintptr) int { +func (this *QStyle) StyleHint(stylehint QStyle__StyleHint) int { ret := C.QStyle_StyleHint(this.h, (C.uintptr_t)(stylehint)) return (int)(ret) } -func (this *QStyle) StandardPixmap(standardPixmap uintptr) *QPixmap { +func (this *QStyle) StandardPixmap(standardPixmap QStyle__StandardPixmap) *QPixmap { ret := C.QStyle_StandardPixmap(this.h, (C.uintptr_t)(standardPixmap)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -199,7 +822,7 @@ func (this *QStyle) StandardPixmap(standardPixmap uintptr) *QPixmap { return ret1 } -func (this *QStyle) StandardIcon(standardIcon uintptr) *QIcon { +func (this *QStyle) StandardIcon(standardIcon QStyle__StandardPixmap) *QIcon { ret := C.QStyle_StandardIcon(this.h, (C.uintptr_t)(standardIcon)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQIcon(ret) @@ -210,7 +833,7 @@ func (this *QStyle) StandardIcon(standardIcon uintptr) *QIcon { return ret1 } -func (this *QStyle) GeneratedIconPixmap(iconMode uintptr, pixmap *QPixmap, opt *QStyleOption) *QPixmap { +func (this *QStyle) GeneratedIconPixmap(iconMode QIcon__Mode, pixmap *QPixmap, opt *QStyleOption) *QPixmap { ret := C.QStyle_GeneratedIconPixmap(this.h, (C.uintptr_t)(iconMode), pixmap.cPointer(), opt.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -221,7 +844,7 @@ func (this *QStyle) GeneratedIconPixmap(iconMode uintptr, pixmap *QPixmap, opt * return ret1 } -func QStyle_VisualRect(direction uintptr, boundingRect *QRect, logicalRect *QRect) *QRect { +func QStyle_VisualRect(direction LayoutDirection, boundingRect *QRect, logicalRect *QRect) *QRect { ret := C.QStyle_VisualRect((C.uintptr_t)(direction), boundingRect.cPointer(), logicalRect.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRect(ret) @@ -232,7 +855,7 @@ func QStyle_VisualRect(direction uintptr, boundingRect *QRect, logicalRect *QRec return ret1 } -func QStyle_VisualPos(direction uintptr, boundingRect *QRect, logicalPos *QPoint) *QPoint { +func QStyle_VisualPos(direction LayoutDirection, boundingRect *QRect, logicalPos *QPoint) *QPoint { ret := C.QStyle_VisualPos((C.uintptr_t)(direction), boundingRect.cPointer(), logicalPos.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPoint(ret) @@ -253,12 +876,12 @@ func QStyle_SliderValueFromPosition(min int, max int, pos int, space int) int { return (int)(ret) } -func QStyle_VisualAlignment(direction uintptr, alignment int) int { +func QStyle_VisualAlignment(direction LayoutDirection, alignment int) int { ret := C.QStyle_VisualAlignment((C.uintptr_t)(direction), (C.int)(alignment)) return (int)(ret) } -func QStyle_AlignedRect(direction uintptr, alignment int, size *QSize, rectangle *QRect) *QRect { +func QStyle_AlignedRect(direction LayoutDirection, alignment int, size *QSize, rectangle *QRect) *QRect { ret := C.QStyle_AlignedRect((C.uintptr_t)(direction), (C.int)(alignment), size.cPointer(), rectangle.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRect(ret) @@ -269,12 +892,12 @@ func QStyle_AlignedRect(direction uintptr, alignment int, size *QSize, rectangle return ret1 } -func (this *QStyle) LayoutSpacing(control1 uintptr, control2 uintptr, orientation uintptr) int { +func (this *QStyle) LayoutSpacing(control1 QSizePolicy__ControlType, control2 QSizePolicy__ControlType, orientation Orientation) int { ret := C.QStyle_LayoutSpacing(this.h, (C.uintptr_t)(control1), (C.uintptr_t)(control2), (C.uintptr_t)(orientation)) return (int)(ret) } -func (this *QStyle) CombinedLayoutSpacing(controls1 int, controls2 int, orientation uintptr) int { +func (this *QStyle) CombinedLayoutSpacing(controls1 int, controls2 int, orientation Orientation) int { ret := C.QStyle_CombinedLayoutSpacing(this.h, (C.int)(controls1), (C.int)(controls2), (C.uintptr_t)(orientation)) return (int)(ret) } @@ -336,21 +959,21 @@ func QStyle_TrUtf83(s string, c string, n int) string { return ret } -func (this *QStyle) DrawItemText7(painter *QPainter, rect *QRect, flags int, pal *QPalette, enabled bool, text string, textRole uintptr) { +func (this *QStyle) DrawItemText7(painter *QPainter, rect *QRect, flags int, pal *QPalette, enabled bool, text string, textRole QPalette__ColorRole) { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) C.QStyle_DrawItemText7(this.h, painter.cPointer(), rect.cPointer(), (C.int)(flags), pal.cPointer(), (C.bool)(enabled), text_Cstring, C.size_t(len(text)), (C.uintptr_t)(textRole)) } -func (this *QStyle) DrawPrimitive4(pe uintptr, opt *QStyleOption, p *QPainter, w *QWidget) { +func (this *QStyle) DrawPrimitive4(pe QStyle__PrimitiveElement, opt *QStyleOption, p *QPainter, w *QWidget) { C.QStyle_DrawPrimitive4(this.h, (C.uintptr_t)(pe), opt.cPointer(), p.cPointer(), w.cPointer()) } -func (this *QStyle) DrawControl4(element uintptr, opt *QStyleOption, p *QPainter, w *QWidget) { +func (this *QStyle) DrawControl4(element QStyle__ControlElement, opt *QStyleOption, p *QPainter, w *QWidget) { C.QStyle_DrawControl4(this.h, (C.uintptr_t)(element), opt.cPointer(), p.cPointer(), w.cPointer()) } -func (this *QStyle) SubElementRect3(subElement uintptr, option *QStyleOption, widget *QWidget) *QRect { +func (this *QStyle) SubElementRect3(subElement QStyle__SubElement, option *QStyleOption, widget *QWidget) *QRect { ret := C.QStyle_SubElementRect3(this.h, (C.uintptr_t)(subElement), option.cPointer(), widget.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRect(ret) @@ -361,16 +984,16 @@ func (this *QStyle) SubElementRect3(subElement uintptr, option *QStyleOption, wi return ret1 } -func (this *QStyle) DrawComplexControl4(cc uintptr, opt *QStyleOptionComplex, p *QPainter, widget *QWidget) { +func (this *QStyle) DrawComplexControl4(cc QStyle__ComplexControl, opt *QStyleOptionComplex, p *QPainter, widget *QWidget) { C.QStyle_DrawComplexControl4(this.h, (C.uintptr_t)(cc), opt.cPointer(), p.cPointer(), widget.cPointer()) } -func (this *QStyle) HitTestComplexControl4(cc uintptr, opt *QStyleOptionComplex, pt *QPoint, widget *QWidget) uintptr { +func (this *QStyle) HitTestComplexControl4(cc QStyle__ComplexControl, opt *QStyleOptionComplex, pt *QPoint, widget *QWidget) QStyle__SubControl { ret := C.QStyle_HitTestComplexControl4(this.h, (C.uintptr_t)(cc), opt.cPointer(), pt.cPointer(), widget.cPointer()) - return (uintptr)(ret) + return (QStyle__SubControl)(ret) } -func (this *QStyle) SubControlRect4(cc uintptr, opt *QStyleOptionComplex, sc uintptr, widget *QWidget) *QRect { +func (this *QStyle) SubControlRect4(cc QStyle__ComplexControl, opt *QStyleOptionComplex, sc QStyle__SubControl, widget *QWidget) *QRect { ret := C.QStyle_SubControlRect4(this.h, (C.uintptr_t)(cc), opt.cPointer(), (C.uintptr_t)(sc), widget.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQRect(ret) @@ -381,17 +1004,17 @@ func (this *QStyle) SubControlRect4(cc uintptr, opt *QStyleOptionComplex, sc uin return ret1 } -func (this *QStyle) PixelMetric2(metric uintptr, option *QStyleOption) int { +func (this *QStyle) PixelMetric2(metric QStyle__PixelMetric, option *QStyleOption) int { ret := C.QStyle_PixelMetric2(this.h, (C.uintptr_t)(metric), option.cPointer()) return (int)(ret) } -func (this *QStyle) PixelMetric3(metric uintptr, option *QStyleOption, widget *QWidget) int { +func (this *QStyle) PixelMetric3(metric QStyle__PixelMetric, option *QStyleOption, widget *QWidget) int { ret := C.QStyle_PixelMetric3(this.h, (C.uintptr_t)(metric), option.cPointer(), widget.cPointer()) return (int)(ret) } -func (this *QStyle) SizeFromContents4(ct uintptr, opt *QStyleOption, contentsSize *QSize, w *QWidget) *QSize { +func (this *QStyle) SizeFromContents4(ct QStyle__ContentsType, opt *QStyleOption, contentsSize *QSize, w *QWidget) *QSize { ret := C.QStyle_SizeFromContents4(this.h, (C.uintptr_t)(ct), opt.cPointer(), contentsSize.cPointer(), w.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQSize(ret) @@ -402,22 +1025,22 @@ func (this *QStyle) SizeFromContents4(ct uintptr, opt *QStyleOption, contentsSiz return ret1 } -func (this *QStyle) StyleHint2(stylehint uintptr, opt *QStyleOption) int { +func (this *QStyle) StyleHint2(stylehint QStyle__StyleHint, opt *QStyleOption) int { ret := C.QStyle_StyleHint2(this.h, (C.uintptr_t)(stylehint), opt.cPointer()) return (int)(ret) } -func (this *QStyle) StyleHint3(stylehint uintptr, opt *QStyleOption, widget *QWidget) int { +func (this *QStyle) StyleHint3(stylehint QStyle__StyleHint, opt *QStyleOption, widget *QWidget) int { ret := C.QStyle_StyleHint3(this.h, (C.uintptr_t)(stylehint), opt.cPointer(), widget.cPointer()) return (int)(ret) } -func (this *QStyle) StyleHint4(stylehint uintptr, opt *QStyleOption, widget *QWidget, returnData *QStyleHintReturn) int { +func (this *QStyle) StyleHint4(stylehint QStyle__StyleHint, opt *QStyleOption, widget *QWidget, returnData *QStyleHintReturn) int { ret := C.QStyle_StyleHint4(this.h, (C.uintptr_t)(stylehint), opt.cPointer(), widget.cPointer(), returnData.cPointer()) return (int)(ret) } -func (this *QStyle) StandardPixmap2(standardPixmap uintptr, opt *QStyleOption) *QPixmap { +func (this *QStyle) StandardPixmap2(standardPixmap QStyle__StandardPixmap, opt *QStyleOption) *QPixmap { ret := C.QStyle_StandardPixmap2(this.h, (C.uintptr_t)(standardPixmap), opt.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -428,7 +1051,7 @@ func (this *QStyle) StandardPixmap2(standardPixmap uintptr, opt *QStyleOption) * return ret1 } -func (this *QStyle) StandardPixmap3(standardPixmap uintptr, opt *QStyleOption, widget *QWidget) *QPixmap { +func (this *QStyle) StandardPixmap3(standardPixmap QStyle__StandardPixmap, opt *QStyleOption, widget *QWidget) *QPixmap { ret := C.QStyle_StandardPixmap3(this.h, (C.uintptr_t)(standardPixmap), opt.cPointer(), widget.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -439,7 +1062,7 @@ func (this *QStyle) StandardPixmap3(standardPixmap uintptr, opt *QStyleOption, w return ret1 } -func (this *QStyle) StandardIcon2(standardIcon uintptr, option *QStyleOption) *QIcon { +func (this *QStyle) StandardIcon2(standardIcon QStyle__StandardPixmap, option *QStyleOption) *QIcon { ret := C.QStyle_StandardIcon2(this.h, (C.uintptr_t)(standardIcon), option.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQIcon(ret) @@ -450,7 +1073,7 @@ func (this *QStyle) StandardIcon2(standardIcon uintptr, option *QStyleOption) *Q return ret1 } -func (this *QStyle) StandardIcon3(standardIcon uintptr, option *QStyleOption, widget *QWidget) *QIcon { +func (this *QStyle) StandardIcon3(standardIcon QStyle__StandardPixmap, option *QStyleOption, widget *QWidget) *QIcon { ret := C.QStyle_StandardIcon3(this.h, (C.uintptr_t)(standardIcon), option.cPointer(), widget.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQIcon(ret) @@ -471,22 +1094,22 @@ func QStyle_SliderValueFromPosition5(min int, max int, pos int, space int, upsid return (int)(ret) } -func (this *QStyle) LayoutSpacing4(control1 uintptr, control2 uintptr, orientation uintptr, option *QStyleOption) int { +func (this *QStyle) LayoutSpacing4(control1 QSizePolicy__ControlType, control2 QSizePolicy__ControlType, orientation Orientation, option *QStyleOption) int { ret := C.QStyle_LayoutSpacing4(this.h, (C.uintptr_t)(control1), (C.uintptr_t)(control2), (C.uintptr_t)(orientation), option.cPointer()) return (int)(ret) } -func (this *QStyle) LayoutSpacing5(control1 uintptr, control2 uintptr, orientation uintptr, option *QStyleOption, widget *QWidget) int { +func (this *QStyle) LayoutSpacing5(control1 QSizePolicy__ControlType, control2 QSizePolicy__ControlType, orientation Orientation, option *QStyleOption, widget *QWidget) int { ret := C.QStyle_LayoutSpacing5(this.h, (C.uintptr_t)(control1), (C.uintptr_t)(control2), (C.uintptr_t)(orientation), option.cPointer(), widget.cPointer()) return (int)(ret) } -func (this *QStyle) CombinedLayoutSpacing4(controls1 int, controls2 int, orientation uintptr, option *QStyleOption) int { +func (this *QStyle) CombinedLayoutSpacing4(controls1 int, controls2 int, orientation Orientation, option *QStyleOption) int { ret := C.QStyle_CombinedLayoutSpacing4(this.h, (C.int)(controls1), (C.int)(controls2), (C.uintptr_t)(orientation), option.cPointer()) return (int)(ret) } -func (this *QStyle) CombinedLayoutSpacing5(controls1 int, controls2 int, orientation uintptr, option *QStyleOption, widget *QWidget) int { +func (this *QStyle) CombinedLayoutSpacing5(controls1 int, controls2 int, orientation Orientation, option *QStyleOption, widget *QWidget) int { ret := C.QStyle_CombinedLayoutSpacing5(this.h, (C.int)(controls1), (C.int)(controls2), (C.uintptr_t)(orientation), option.cPointer(), widget.cPointer()) return (int)(ret) } diff --git a/qt/gen_qstylehints.go b/qt/gen_qstylehints.go index 79cbe5f7..972e8c2f 100644 --- a/qt/gen_qstylehints.go +++ b/qt/gen_qstylehints.go @@ -188,12 +188,12 @@ func (this *QStyleHints) SetFocusOnTouchRelease() bool { return (bool)(ret) } -func (this *QStyleHints) TabFocusBehavior() uintptr { +func (this *QStyleHints) TabFocusBehavior() TabFocusBehavior { ret := C.QStyleHints_TabFocusBehavior(this.h) - return (uintptr)(ret) + return (TabFocusBehavior)(ret) } -func (this *QStyleHints) SetTabFocusBehavior(tabFocusBehavior uintptr) { +func (this *QStyleHints) SetTabFocusBehavior(tabFocusBehavior TabFocusBehavior) { C.QStyleHints_SetTabFocusBehavior(this.h, (C.uintptr_t)(tabFocusBehavior)) } @@ -301,7 +301,7 @@ func (this *QStyleHints) OnStartDragTimeChanged(slot func()) { C.QStyleHints_connect_StartDragTimeChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QStyleHints) TabFocusBehaviorChanged(tabFocusBehavior uintptr) { +func (this *QStyleHints) TabFocusBehaviorChanged(tabFocusBehavior TabFocusBehavior) { C.QStyleHints_TabFocusBehaviorChanged(this.h, (C.uintptr_t)(tabFocusBehavior)) } diff --git a/qt/gen_qstyleoption.go b/qt/gen_qstyleoption.go index ae995256..1d135166 100644 --- a/qt/gen_qstyleoption.go +++ b/qt/gen_qstyleoption.go @@ -12,6 +12,547 @@ import ( "unsafe" ) +type QStyleOption__OptionType int + +const ( + QStyleOption__OptionType__SO_Default QStyleOption__OptionType = 0 + QStyleOption__OptionType__SO_FocusRect QStyleOption__OptionType = 1 + QStyleOption__OptionType__SO_Button QStyleOption__OptionType = 2 + QStyleOption__OptionType__SO_Tab QStyleOption__OptionType = 3 + QStyleOption__OptionType__SO_MenuItem QStyleOption__OptionType = 4 + QStyleOption__OptionType__SO_Frame QStyleOption__OptionType = 5 + QStyleOption__OptionType__SO_ProgressBar QStyleOption__OptionType = 6 + QStyleOption__OptionType__SO_ToolBox QStyleOption__OptionType = 7 + QStyleOption__OptionType__SO_Header QStyleOption__OptionType = 8 + QStyleOption__OptionType__SO_DockWidget QStyleOption__OptionType = 9 + QStyleOption__OptionType__SO_ViewItem QStyleOption__OptionType = 10 + QStyleOption__OptionType__SO_TabWidgetFrame QStyleOption__OptionType = 11 + QStyleOption__OptionType__SO_TabBarBase QStyleOption__OptionType = 12 + QStyleOption__OptionType__SO_RubberBand QStyleOption__OptionType = 13 + QStyleOption__OptionType__SO_ToolBar QStyleOption__OptionType = 14 + QStyleOption__OptionType__SO_GraphicsItem QStyleOption__OptionType = 15 + QStyleOption__OptionType__SO_Complex QStyleOption__OptionType = 983040 + QStyleOption__OptionType__SO_Slider QStyleOption__OptionType = 983041 + QStyleOption__OptionType__SO_SpinBox QStyleOption__OptionType = 983042 + QStyleOption__OptionType__SO_ToolButton QStyleOption__OptionType = 983043 + QStyleOption__OptionType__SO_ComboBox QStyleOption__OptionType = 983044 + QStyleOption__OptionType__SO_TitleBar QStyleOption__OptionType = 983045 + QStyleOption__OptionType__SO_GroupBox QStyleOption__OptionType = 983046 + QStyleOption__OptionType__SO_SizeGrip QStyleOption__OptionType = 983047 + QStyleOption__OptionType__SO_CustomBase QStyleOption__OptionType = 3840 + QStyleOption__OptionType__SO_ComplexCustomBase QStyleOption__OptionType = 251658240 +) + +type QStyleOption__StyleOptionType int + +const ( + QStyleOption__StyleOptionType__Type QStyleOption__StyleOptionType = 0 +) + +type QStyleOption__StyleOptionVersion int + +const ( + QStyleOption__StyleOptionVersion__Version QStyleOption__StyleOptionVersion = 1 +) + +type QStyleOptionFocusRect__StyleOptionType int + +const ( + QStyleOptionFocusRect__StyleOptionType__Type QStyleOptionFocusRect__StyleOptionType = 1 +) + +type QStyleOptionFocusRect__StyleOptionVersion int + +const ( + QStyleOptionFocusRect__StyleOptionVersion__Version QStyleOptionFocusRect__StyleOptionVersion = 1 +) + +type QStyleOptionFrame__StyleOptionType int + +const ( + QStyleOptionFrame__StyleOptionType__Type QStyleOptionFrame__StyleOptionType = 5 +) + +type QStyleOptionFrame__StyleOptionVersion int + +const ( + QStyleOptionFrame__StyleOptionVersion__Version QStyleOptionFrame__StyleOptionVersion = 3 +) + +type QStyleOptionFrame__FrameFeature int + +const ( + QStyleOptionFrame__FrameFeature__None QStyleOptionFrame__FrameFeature = 0 + QStyleOptionFrame__FrameFeature__Flat QStyleOptionFrame__FrameFeature = 1 + QStyleOptionFrame__FrameFeature__Rounded QStyleOptionFrame__FrameFeature = 2 +) + +type QStyleOptionTabWidgetFrame__StyleOptionType int + +const ( + QStyleOptionTabWidgetFrame__StyleOptionType__Type QStyleOptionTabWidgetFrame__StyleOptionType = 11 +) + +type QStyleOptionTabWidgetFrame__StyleOptionVersion int + +const ( + QStyleOptionTabWidgetFrame__StyleOptionVersion__Version QStyleOptionTabWidgetFrame__StyleOptionVersion = 2 +) + +type QStyleOptionTabBarBase__StyleOptionType int + +const ( + QStyleOptionTabBarBase__StyleOptionType__Type QStyleOptionTabBarBase__StyleOptionType = 12 +) + +type QStyleOptionTabBarBase__StyleOptionVersion int + +const ( + QStyleOptionTabBarBase__StyleOptionVersion__Version QStyleOptionTabBarBase__StyleOptionVersion = 2 +) + +type QStyleOptionHeader__StyleOptionType int + +const ( + QStyleOptionHeader__StyleOptionType__Type QStyleOptionHeader__StyleOptionType = 8 +) + +type QStyleOptionHeader__StyleOptionVersion int + +const ( + QStyleOptionHeader__StyleOptionVersion__Version QStyleOptionHeader__StyleOptionVersion = 1 +) + +type QStyleOptionHeader__SectionPosition int + +const ( + QStyleOptionHeader__SectionPosition__Beginning QStyleOptionHeader__SectionPosition = 0 + QStyleOptionHeader__SectionPosition__Middle QStyleOptionHeader__SectionPosition = 1 + QStyleOptionHeader__SectionPosition__End QStyleOptionHeader__SectionPosition = 2 + QStyleOptionHeader__SectionPosition__OnlyOneSection QStyleOptionHeader__SectionPosition = 3 +) + +type QStyleOptionHeader__SelectedPosition int + +const ( + QStyleOptionHeader__SelectedPosition__NotAdjacent QStyleOptionHeader__SelectedPosition = 0 + QStyleOptionHeader__SelectedPosition__NextIsSelected QStyleOptionHeader__SelectedPosition = 1 + QStyleOptionHeader__SelectedPosition__PreviousIsSelected QStyleOptionHeader__SelectedPosition = 2 + QStyleOptionHeader__SelectedPosition__NextAndPreviousAreSelected QStyleOptionHeader__SelectedPosition = 3 +) + +type QStyleOptionHeader__SortIndicator int + +const ( + QStyleOptionHeader__SortIndicator__None QStyleOptionHeader__SortIndicator = 0 + QStyleOptionHeader__SortIndicator__SortUp QStyleOptionHeader__SortIndicator = 1 + QStyleOptionHeader__SortIndicator__SortDown QStyleOptionHeader__SortIndicator = 2 +) + +type QStyleOptionButton__StyleOptionType int + +const ( + QStyleOptionButton__StyleOptionType__Type QStyleOptionButton__StyleOptionType = 2 +) + +type QStyleOptionButton__StyleOptionVersion int + +const ( + QStyleOptionButton__StyleOptionVersion__Version QStyleOptionButton__StyleOptionVersion = 1 +) + +type QStyleOptionButton__ButtonFeature int + +const ( + QStyleOptionButton__ButtonFeature__None QStyleOptionButton__ButtonFeature = 0 + QStyleOptionButton__ButtonFeature__Flat QStyleOptionButton__ButtonFeature = 1 + QStyleOptionButton__ButtonFeature__HasMenu QStyleOptionButton__ButtonFeature = 2 + QStyleOptionButton__ButtonFeature__DefaultButton QStyleOptionButton__ButtonFeature = 4 + QStyleOptionButton__ButtonFeature__AutoDefaultButton QStyleOptionButton__ButtonFeature = 8 + QStyleOptionButton__ButtonFeature__CommandLinkButton QStyleOptionButton__ButtonFeature = 16 +) + +type QStyleOptionTab__StyleOptionType int + +const ( + QStyleOptionTab__StyleOptionType__Type QStyleOptionTab__StyleOptionType = 3 +) + +type QStyleOptionTab__StyleOptionVersion int + +const ( + QStyleOptionTab__StyleOptionVersion__Version QStyleOptionTab__StyleOptionVersion = 3 +) + +type QStyleOptionTab__TabPosition int + +const ( + QStyleOptionTab__TabPosition__Beginning QStyleOptionTab__TabPosition = 0 + QStyleOptionTab__TabPosition__Middle QStyleOptionTab__TabPosition = 1 + QStyleOptionTab__TabPosition__End QStyleOptionTab__TabPosition = 2 + QStyleOptionTab__TabPosition__OnlyOneTab QStyleOptionTab__TabPosition = 3 +) + +type QStyleOptionTab__SelectedPosition int + +const ( + QStyleOptionTab__SelectedPosition__NotAdjacent QStyleOptionTab__SelectedPosition = 0 + QStyleOptionTab__SelectedPosition__NextIsSelected QStyleOptionTab__SelectedPosition = 1 + QStyleOptionTab__SelectedPosition__PreviousIsSelected QStyleOptionTab__SelectedPosition = 2 +) + +type QStyleOptionTab__CornerWidget int + +const ( + QStyleOptionTab__CornerWidget__NoCornerWidgets QStyleOptionTab__CornerWidget = 0 + QStyleOptionTab__CornerWidget__LeftCornerWidget QStyleOptionTab__CornerWidget = 1 + QStyleOptionTab__CornerWidget__RightCornerWidget QStyleOptionTab__CornerWidget = 2 +) + +type QStyleOptionTab__TabFeature int + +const ( + QStyleOptionTab__TabFeature__None QStyleOptionTab__TabFeature = 0 + QStyleOptionTab__TabFeature__HasFrame QStyleOptionTab__TabFeature = 1 +) + +type QStyleOptionTabV4__StyleOptionVersion int + +const ( + QStyleOptionTabV4__StyleOptionVersion__Version QStyleOptionTabV4__StyleOptionVersion = 4 +) + +type QStyleOptionToolBar__StyleOptionType int + +const ( + QStyleOptionToolBar__StyleOptionType__Type QStyleOptionToolBar__StyleOptionType = 14 +) + +type QStyleOptionToolBar__StyleOptionVersion int + +const ( + QStyleOptionToolBar__StyleOptionVersion__Version QStyleOptionToolBar__StyleOptionVersion = 1 +) + +type QStyleOptionToolBar__ToolBarPosition int + +const ( + QStyleOptionToolBar__ToolBarPosition__Beginning QStyleOptionToolBar__ToolBarPosition = 0 + QStyleOptionToolBar__ToolBarPosition__Middle QStyleOptionToolBar__ToolBarPosition = 1 + QStyleOptionToolBar__ToolBarPosition__End QStyleOptionToolBar__ToolBarPosition = 2 + QStyleOptionToolBar__ToolBarPosition__OnlyOne QStyleOptionToolBar__ToolBarPosition = 3 +) + +type QStyleOptionToolBar__ToolBarFeature int + +const ( + QStyleOptionToolBar__ToolBarFeature__None QStyleOptionToolBar__ToolBarFeature = 0 + QStyleOptionToolBar__ToolBarFeature__Movable QStyleOptionToolBar__ToolBarFeature = 1 +) + +type QStyleOptionProgressBar__StyleOptionType int + +const ( + QStyleOptionProgressBar__StyleOptionType__Type QStyleOptionProgressBar__StyleOptionType = 6 +) + +type QStyleOptionProgressBar__StyleOptionVersion int + +const ( + QStyleOptionProgressBar__StyleOptionVersion__Version QStyleOptionProgressBar__StyleOptionVersion = 2 +) + +type QStyleOptionMenuItem__StyleOptionType int + +const ( + QStyleOptionMenuItem__StyleOptionType__Type QStyleOptionMenuItem__StyleOptionType = 4 +) + +type QStyleOptionMenuItem__StyleOptionVersion int + +const ( + QStyleOptionMenuItem__StyleOptionVersion__Version QStyleOptionMenuItem__StyleOptionVersion = 1 +) + +type QStyleOptionMenuItem__MenuItemType int + +const ( + QStyleOptionMenuItem__MenuItemType__Normal QStyleOptionMenuItem__MenuItemType = 0 + QStyleOptionMenuItem__MenuItemType__DefaultItem QStyleOptionMenuItem__MenuItemType = 1 + QStyleOptionMenuItem__MenuItemType__Separator QStyleOptionMenuItem__MenuItemType = 2 + QStyleOptionMenuItem__MenuItemType__SubMenu QStyleOptionMenuItem__MenuItemType = 3 + QStyleOptionMenuItem__MenuItemType__Scroller QStyleOptionMenuItem__MenuItemType = 4 + QStyleOptionMenuItem__MenuItemType__TearOff QStyleOptionMenuItem__MenuItemType = 5 + QStyleOptionMenuItem__MenuItemType__Margin QStyleOptionMenuItem__MenuItemType = 6 + QStyleOptionMenuItem__MenuItemType__EmptyArea QStyleOptionMenuItem__MenuItemType = 7 +) + +type QStyleOptionMenuItem__CheckType int + +const ( + QStyleOptionMenuItem__CheckType__NotCheckable QStyleOptionMenuItem__CheckType = 0 + QStyleOptionMenuItem__CheckType__Exclusive QStyleOptionMenuItem__CheckType = 1 + QStyleOptionMenuItem__CheckType__NonExclusive QStyleOptionMenuItem__CheckType = 2 +) + +type QStyleOptionDockWidget__StyleOptionType int + +const ( + QStyleOptionDockWidget__StyleOptionType__Type QStyleOptionDockWidget__StyleOptionType = 9 +) + +type QStyleOptionDockWidget__StyleOptionVersion int + +const ( + QStyleOptionDockWidget__StyleOptionVersion__Version QStyleOptionDockWidget__StyleOptionVersion = 2 +) + +type QStyleOptionViewItem__StyleOptionType int + +const ( + QStyleOptionViewItem__StyleOptionType__Type QStyleOptionViewItem__StyleOptionType = 10 +) + +type QStyleOptionViewItem__StyleOptionVersion int + +const ( + QStyleOptionViewItem__StyleOptionVersion__Version QStyleOptionViewItem__StyleOptionVersion = 4 +) + +type QStyleOptionViewItem__Position int + +const ( + QStyleOptionViewItem__Position__Left QStyleOptionViewItem__Position = 0 + QStyleOptionViewItem__Position__Right QStyleOptionViewItem__Position = 1 + QStyleOptionViewItem__Position__Top QStyleOptionViewItem__Position = 2 + QStyleOptionViewItem__Position__Bottom QStyleOptionViewItem__Position = 3 +) + +type QStyleOptionViewItem__ViewItemFeature int + +const ( + QStyleOptionViewItem__ViewItemFeature__None QStyleOptionViewItem__ViewItemFeature = 0 + QStyleOptionViewItem__ViewItemFeature__WrapText QStyleOptionViewItem__ViewItemFeature = 1 + QStyleOptionViewItem__ViewItemFeature__Alternate QStyleOptionViewItem__ViewItemFeature = 2 + QStyleOptionViewItem__ViewItemFeature__HasCheckIndicator QStyleOptionViewItem__ViewItemFeature = 4 + QStyleOptionViewItem__ViewItemFeature__HasDisplay QStyleOptionViewItem__ViewItemFeature = 8 + QStyleOptionViewItem__ViewItemFeature__HasDecoration QStyleOptionViewItem__ViewItemFeature = 16 +) + +type QStyleOptionViewItem__ViewItemPosition int + +const ( + QStyleOptionViewItem__ViewItemPosition__Invalid QStyleOptionViewItem__ViewItemPosition = 0 + QStyleOptionViewItem__ViewItemPosition__Beginning QStyleOptionViewItem__ViewItemPosition = 1 + QStyleOptionViewItem__ViewItemPosition__Middle QStyleOptionViewItem__ViewItemPosition = 2 + QStyleOptionViewItem__ViewItemPosition__End QStyleOptionViewItem__ViewItemPosition = 3 + QStyleOptionViewItem__ViewItemPosition__OnlyOne QStyleOptionViewItem__ViewItemPosition = 4 +) + +type QStyleOptionToolBox__StyleOptionType int + +const ( + QStyleOptionToolBox__StyleOptionType__Type QStyleOptionToolBox__StyleOptionType = 7 +) + +type QStyleOptionToolBox__StyleOptionVersion int + +const ( + QStyleOptionToolBox__StyleOptionVersion__Version QStyleOptionToolBox__StyleOptionVersion = 2 +) + +type QStyleOptionToolBox__TabPosition int + +const ( + QStyleOptionToolBox__TabPosition__Beginning QStyleOptionToolBox__TabPosition = 0 + QStyleOptionToolBox__TabPosition__Middle QStyleOptionToolBox__TabPosition = 1 + QStyleOptionToolBox__TabPosition__End QStyleOptionToolBox__TabPosition = 2 + QStyleOptionToolBox__TabPosition__OnlyOneTab QStyleOptionToolBox__TabPosition = 3 +) + +type QStyleOptionToolBox__SelectedPosition int + +const ( + QStyleOptionToolBox__SelectedPosition__NotAdjacent QStyleOptionToolBox__SelectedPosition = 0 + QStyleOptionToolBox__SelectedPosition__NextIsSelected QStyleOptionToolBox__SelectedPosition = 1 + QStyleOptionToolBox__SelectedPosition__PreviousIsSelected QStyleOptionToolBox__SelectedPosition = 2 +) + +type QStyleOptionRubberBand__StyleOptionType int + +const ( + QStyleOptionRubberBand__StyleOptionType__Type QStyleOptionRubberBand__StyleOptionType = 13 +) + +type QStyleOptionRubberBand__StyleOptionVersion int + +const ( + QStyleOptionRubberBand__StyleOptionVersion__Version QStyleOptionRubberBand__StyleOptionVersion = 1 +) + +type QStyleOptionComplex__StyleOptionType int + +const ( + QStyleOptionComplex__StyleOptionType__Type QStyleOptionComplex__StyleOptionType = 983040 +) + +type QStyleOptionComplex__StyleOptionVersion int + +const ( + QStyleOptionComplex__StyleOptionVersion__Version QStyleOptionComplex__StyleOptionVersion = 1 +) + +type QStyleOptionSlider__StyleOptionType int + +const ( + QStyleOptionSlider__StyleOptionType__Type QStyleOptionSlider__StyleOptionType = 983041 +) + +type QStyleOptionSlider__StyleOptionVersion int + +const ( + QStyleOptionSlider__StyleOptionVersion__Version QStyleOptionSlider__StyleOptionVersion = 1 +) + +type QStyleOptionSpinBox__StyleOptionType int + +const ( + QStyleOptionSpinBox__StyleOptionType__Type QStyleOptionSpinBox__StyleOptionType = 983042 +) + +type QStyleOptionSpinBox__StyleOptionVersion int + +const ( + QStyleOptionSpinBox__StyleOptionVersion__Version QStyleOptionSpinBox__StyleOptionVersion = 1 +) + +type QStyleOptionToolButton__StyleOptionType int + +const ( + QStyleOptionToolButton__StyleOptionType__Type QStyleOptionToolButton__StyleOptionType = 983043 +) + +type QStyleOptionToolButton__StyleOptionVersion int + +const ( + QStyleOptionToolButton__StyleOptionVersion__Version QStyleOptionToolButton__StyleOptionVersion = 1 +) + +type QStyleOptionToolButton__ToolButtonFeature int + +const ( + QStyleOptionToolButton__ToolButtonFeature__None QStyleOptionToolButton__ToolButtonFeature = 0 + QStyleOptionToolButton__ToolButtonFeature__Arrow QStyleOptionToolButton__ToolButtonFeature = 1 + QStyleOptionToolButton__ToolButtonFeature__Menu QStyleOptionToolButton__ToolButtonFeature = 4 + QStyleOptionToolButton__ToolButtonFeature__MenuButtonPopup QStyleOptionToolButton__ToolButtonFeature = 4 + QStyleOptionToolButton__ToolButtonFeature__PopupDelay QStyleOptionToolButton__ToolButtonFeature = 8 + QStyleOptionToolButton__ToolButtonFeature__HasMenu QStyleOptionToolButton__ToolButtonFeature = 16 +) + +type QStyleOptionComboBox__StyleOptionType int + +const ( + QStyleOptionComboBox__StyleOptionType__Type QStyleOptionComboBox__StyleOptionType = 983044 +) + +type QStyleOptionComboBox__StyleOptionVersion int + +const ( + QStyleOptionComboBox__StyleOptionVersion__Version QStyleOptionComboBox__StyleOptionVersion = 1 +) + +type QStyleOptionTitleBar__StyleOptionType int + +const ( + QStyleOptionTitleBar__StyleOptionType__Type QStyleOptionTitleBar__StyleOptionType = 983045 +) + +type QStyleOptionTitleBar__StyleOptionVersion int + +const ( + QStyleOptionTitleBar__StyleOptionVersion__Version QStyleOptionTitleBar__StyleOptionVersion = 1 +) + +type QStyleOptionGroupBox__StyleOptionType int + +const ( + QStyleOptionGroupBox__StyleOptionType__Type QStyleOptionGroupBox__StyleOptionType = 983046 +) + +type QStyleOptionGroupBox__StyleOptionVersion int + +const ( + QStyleOptionGroupBox__StyleOptionVersion__Version QStyleOptionGroupBox__StyleOptionVersion = 1 +) + +type QStyleOptionSizeGrip__StyleOptionType int + +const ( + QStyleOptionSizeGrip__StyleOptionType__Type QStyleOptionSizeGrip__StyleOptionType = 983047 +) + +type QStyleOptionSizeGrip__StyleOptionVersion int + +const ( + QStyleOptionSizeGrip__StyleOptionVersion__Version QStyleOptionSizeGrip__StyleOptionVersion = 1 +) + +type QStyleOptionGraphicsItem__StyleOptionType int + +const ( + QStyleOptionGraphicsItem__StyleOptionType__Type QStyleOptionGraphicsItem__StyleOptionType = 15 +) + +type QStyleOptionGraphicsItem__StyleOptionVersion int + +const ( + QStyleOptionGraphicsItem__StyleOptionVersion__Version QStyleOptionGraphicsItem__StyleOptionVersion = 1 +) + +type QStyleHintReturn__HintReturnType int + +const ( + QStyleHintReturn__HintReturnType__SH_Default QStyleHintReturn__HintReturnType = 61440 + QStyleHintReturn__HintReturnType__SH_Mask QStyleHintReturn__HintReturnType = 61441 + QStyleHintReturn__HintReturnType__SH_Variant QStyleHintReturn__HintReturnType = 61442 +) + +type QStyleHintReturn__StyleOptionType int + +const ( + QStyleHintReturn__StyleOptionType__Type QStyleHintReturn__StyleOptionType = 61440 +) + +type QStyleHintReturn__StyleOptionVersion int + +const ( + QStyleHintReturn__StyleOptionVersion__Version QStyleHintReturn__StyleOptionVersion = 1 +) + +type QStyleHintReturnMask__StyleOptionType int + +const ( + QStyleHintReturnMask__StyleOptionType__Type QStyleHintReturnMask__StyleOptionType = 61441 +) + +type QStyleHintReturnMask__StyleOptionVersion int + +const ( + QStyleHintReturnMask__StyleOptionVersion__Version QStyleHintReturnMask__StyleOptionVersion = 1 +) + +type QStyleHintReturnVariant__StyleOptionType int + +const ( + QStyleHintReturnVariant__StyleOptionType__Type QStyleHintReturnVariant__StyleOptionType = 61442 +) + +type QStyleHintReturnVariant__StyleOptionVersion int + +const ( + QStyleHintReturnVariant__StyleOptionVersion__Version QStyleHintReturnVariant__StyleOptionVersion = 1 +) + type QStyleOption struct { h *C.QStyleOption } diff --git a/qt/gen_qstylepainter.go b/qt/gen_qstylepainter.go index db7dbd03..761f383a 100644 --- a/qt/gen_qstylepainter.go +++ b/qt/gen_qstylepainter.go @@ -63,15 +63,15 @@ func (this *QStylePainter) Begin2(pd *QPaintDevice, w *QWidget) bool { return (bool)(ret) } -func (this *QStylePainter) DrawPrimitive(pe uintptr, opt *QStyleOption) { +func (this *QStylePainter) DrawPrimitive(pe QStyle__PrimitiveElement, opt *QStyleOption) { C.QStylePainter_DrawPrimitive(this.h, (C.uintptr_t)(pe), opt.cPointer()) } -func (this *QStylePainter) DrawControl(ce uintptr, opt *QStyleOption) { +func (this *QStylePainter) DrawControl(ce QStyle__ControlElement, opt *QStyleOption) { C.QStylePainter_DrawControl(this.h, (C.uintptr_t)(ce), opt.cPointer()) } -func (this *QStylePainter) DrawComplexControl(cc uintptr, opt *QStyleOptionComplex) { +func (this *QStylePainter) DrawComplexControl(cc QStyle__ComplexControl, opt *QStyleOptionComplex) { C.QStylePainter_DrawComplexControl(this.h, (C.uintptr_t)(cc), opt.cPointer()) } @@ -90,7 +90,7 @@ func (this *QStylePainter) Style() *QStyle { return newQStyle_U(unsafe.Pointer(ret)) } -func (this *QStylePainter) DrawItemText6(r *QRect, flags int, pal *QPalette, enabled bool, text string, textRole uintptr) { +func (this *QStylePainter) DrawItemText6(r *QRect, flags int, pal *QPalette, enabled bool, text string, textRole QPalette__ColorRole) { text_Cstring := C.CString(text) defer C.free(unsafe.Pointer(text_Cstring)) C.QStylePainter_DrawItemText6(this.h, r.cPointer(), (C.int)(flags), pal.cPointer(), (C.bool)(enabled), text_Cstring, C.size_t(len(text)), (C.uintptr_t)(textRole)) diff --git a/qt/gen_qsurface.go b/qt/gen_qsurface.go index 3554538d..fe18f954 100644 --- a/qt/gen_qsurface.go +++ b/qt/gen_qsurface.go @@ -13,6 +13,24 @@ import ( "unsafe" ) +type QSurface__SurfaceClass int + +const ( + QSurface__SurfaceClass__Window QSurface__SurfaceClass = 0 + QSurface__SurfaceClass__Offscreen QSurface__SurfaceClass = 1 +) + +type QSurface__SurfaceType int + +const ( + QSurface__SurfaceType__RasterSurface QSurface__SurfaceType = 0 + QSurface__SurfaceType__OpenGLSurface QSurface__SurfaceType = 1 + QSurface__SurfaceType__RasterGLSurface QSurface__SurfaceType = 2 + QSurface__SurfaceType__OpenVGSurface QSurface__SurfaceType = 3 + QSurface__SurfaceType__VulkanSurface QSurface__SurfaceType = 4 + QSurface__SurfaceType__MetalSurface QSurface__SurfaceType = 5 +) + type QSurface struct { h *C.QSurface } @@ -35,9 +53,9 @@ func newQSurface_U(h unsafe.Pointer) *QSurface { return newQSurface((*C.QSurface)(h)) } -func (this *QSurface) SurfaceClass() uintptr { +func (this *QSurface) SurfaceClass() QSurface__SurfaceClass { ret := C.QSurface_SurfaceClass(this.h) - return (uintptr)(ret) + return (QSurface__SurfaceClass)(ret) } func (this *QSurface) Format() *QSurfaceFormat { @@ -51,9 +69,9 @@ func (this *QSurface) Format() *QSurfaceFormat { return ret1 } -func (this *QSurface) SurfaceType() uintptr { +func (this *QSurface) SurfaceType() QSurface__SurfaceType { ret := C.QSurface_SurfaceType(this.h) - return (uintptr)(ret) + return (QSurface__SurfaceType)(ret) } func (this *QSurface) SupportsOpenGL() bool { diff --git a/qt/gen_qsurfaceformat.go b/qt/gen_qsurfaceformat.go index 8cfb720f..e42416b9 100644 --- a/qt/gen_qsurfaceformat.go +++ b/qt/gen_qsurfaceformat.go @@ -13,6 +13,48 @@ import ( "unsafe" ) +type QSurfaceFormat__FormatOption int + +const ( + QSurfaceFormat__FormatOption__StereoBuffers QSurfaceFormat__FormatOption = 1 + QSurfaceFormat__FormatOption__DebugContext QSurfaceFormat__FormatOption = 2 + QSurfaceFormat__FormatOption__DeprecatedFunctions QSurfaceFormat__FormatOption = 4 + QSurfaceFormat__FormatOption__ResetNotification QSurfaceFormat__FormatOption = 8 +) + +type QSurfaceFormat__SwapBehavior int + +const ( + QSurfaceFormat__SwapBehavior__DefaultSwapBehavior QSurfaceFormat__SwapBehavior = 0 + QSurfaceFormat__SwapBehavior__SingleBuffer QSurfaceFormat__SwapBehavior = 1 + QSurfaceFormat__SwapBehavior__DoubleBuffer QSurfaceFormat__SwapBehavior = 2 + QSurfaceFormat__SwapBehavior__TripleBuffer QSurfaceFormat__SwapBehavior = 3 +) + +type QSurfaceFormat__RenderableType int + +const ( + QSurfaceFormat__RenderableType__DefaultRenderableType QSurfaceFormat__RenderableType = 0 + QSurfaceFormat__RenderableType__OpenGL QSurfaceFormat__RenderableType = 1 + QSurfaceFormat__RenderableType__OpenGLES QSurfaceFormat__RenderableType = 2 + QSurfaceFormat__RenderableType__OpenVG QSurfaceFormat__RenderableType = 4 +) + +type QSurfaceFormat__OpenGLContextProfile int + +const ( + QSurfaceFormat__OpenGLContextProfile__NoProfile QSurfaceFormat__OpenGLContextProfile = 0 + QSurfaceFormat__OpenGLContextProfile__CoreProfile QSurfaceFormat__OpenGLContextProfile = 1 + QSurfaceFormat__OpenGLContextProfile__CompatibilityProfile QSurfaceFormat__OpenGLContextProfile = 2 +) + +type QSurfaceFormat__ColorSpace int + +const ( + QSurfaceFormat__ColorSpace__DefaultColorSpace QSurfaceFormat__ColorSpace = 0 + QSurfaceFormat__ColorSpace__sRGBColorSpace QSurfaceFormat__ColorSpace = 1 +) + type QSurfaceFormat struct { h *C.QSurfaceFormat } @@ -120,13 +162,13 @@ func (this *QSurfaceFormat) Samples() int { return (int)(ret) } -func (this *QSurfaceFormat) SetSwapBehavior(behavior uintptr) { +func (this *QSurfaceFormat) SetSwapBehavior(behavior QSurfaceFormat__SwapBehavior) { C.QSurfaceFormat_SetSwapBehavior(this.h, (C.uintptr_t)(behavior)) } -func (this *QSurfaceFormat) SwapBehavior() uintptr { +func (this *QSurfaceFormat) SwapBehavior() QSurfaceFormat__SwapBehavior { ret := C.QSurfaceFormat_SwapBehavior(this.h) - return (uintptr)(ret) + return (QSurfaceFormat__SwapBehavior)(ret) } func (this *QSurfaceFormat) HasAlpha() bool { @@ -134,22 +176,22 @@ func (this *QSurfaceFormat) HasAlpha() bool { return (bool)(ret) } -func (this *QSurfaceFormat) SetProfile(profile uintptr) { +func (this *QSurfaceFormat) SetProfile(profile QSurfaceFormat__OpenGLContextProfile) { C.QSurfaceFormat_SetProfile(this.h, (C.uintptr_t)(profile)) } -func (this *QSurfaceFormat) Profile() uintptr { +func (this *QSurfaceFormat) Profile() QSurfaceFormat__OpenGLContextProfile { ret := C.QSurfaceFormat_Profile(this.h) - return (uintptr)(ret) + return (QSurfaceFormat__OpenGLContextProfile)(ret) } -func (this *QSurfaceFormat) SetRenderableType(typeVal uintptr) { +func (this *QSurfaceFormat) SetRenderableType(typeVal QSurfaceFormat__RenderableType) { C.QSurfaceFormat_SetRenderableType(this.h, (C.uintptr_t)(typeVal)) } -func (this *QSurfaceFormat) RenderableType() uintptr { +func (this *QSurfaceFormat) RenderableType() QSurfaceFormat__RenderableType { ret := C.QSurfaceFormat_RenderableType(this.h) - return (uintptr)(ret) + return (QSurfaceFormat__RenderableType)(ret) } func (this *QSurfaceFormat) SetMajorVersion(majorVersion int) { @@ -196,11 +238,11 @@ func (this *QSurfaceFormat) SetOptions(options int) { C.QSurfaceFormat_SetOptions(this.h, (C.int)(options)) } -func (this *QSurfaceFormat) SetOptionWithOption(option uintptr) { +func (this *QSurfaceFormat) SetOptionWithOption(option QSurfaceFormat__FormatOption) { C.QSurfaceFormat_SetOptionWithOption(this.h, (C.uintptr_t)(option)) } -func (this *QSurfaceFormat) TestOptionWithOption(option uintptr) bool { +func (this *QSurfaceFormat) TestOptionWithOption(option QSurfaceFormat__FormatOption) bool { ret := C.QSurfaceFormat_TestOptionWithOption(this.h, (C.uintptr_t)(option)) return (bool)(ret) } @@ -219,12 +261,12 @@ func (this *QSurfaceFormat) SetSwapInterval(interval int) { C.QSurfaceFormat_SetSwapInterval(this.h, (C.int)(interval)) } -func (this *QSurfaceFormat) ColorSpace() uintptr { +func (this *QSurfaceFormat) ColorSpace() QSurfaceFormat__ColorSpace { ret := C.QSurfaceFormat_ColorSpace(this.h) - return (uintptr)(ret) + return (QSurfaceFormat__ColorSpace)(ret) } -func (this *QSurfaceFormat) SetColorSpace(colorSpace uintptr) { +func (this *QSurfaceFormat) SetColorSpace(colorSpace QSurfaceFormat__ColorSpace) { C.QSurfaceFormat_SetColorSpace(this.h, (C.uintptr_t)(colorSpace)) } @@ -243,7 +285,7 @@ func QSurfaceFormat_DefaultFormat() *QSurfaceFormat { return ret1 } -func (this *QSurfaceFormat) SetOption2(option uintptr, on bool) { +func (this *QSurfaceFormat) SetOption2(option QSurfaceFormat__FormatOption, on bool) { C.QSurfaceFormat_SetOption2(this.h, (C.uintptr_t)(option), (C.bool)(on)) } diff --git a/qt/gen_qsystemsemaphore.go b/qt/gen_qsystemsemaphore.go index 8f480747..52c2ff81 100644 --- a/qt/gen_qsystemsemaphore.go +++ b/qt/gen_qsystemsemaphore.go @@ -12,6 +12,25 @@ import ( "unsafe" ) +type QSystemSemaphore__AccessMode int + +const ( + QSystemSemaphore__AccessMode__Open QSystemSemaphore__AccessMode = 0 + QSystemSemaphore__AccessMode__Create QSystemSemaphore__AccessMode = 1 +) + +type QSystemSemaphore__SystemSemaphoreError int + +const ( + QSystemSemaphore__SystemSemaphoreError__NoError QSystemSemaphore__SystemSemaphoreError = 0 + QSystemSemaphore__SystemSemaphoreError__PermissionDenied QSystemSemaphore__SystemSemaphoreError = 1 + QSystemSemaphore__SystemSemaphoreError__KeyError QSystemSemaphore__SystemSemaphoreError = 2 + QSystemSemaphore__SystemSemaphoreError__AlreadyExists QSystemSemaphore__SystemSemaphoreError = 3 + QSystemSemaphore__SystemSemaphoreError__NotFound QSystemSemaphore__SystemSemaphoreError = 4 + QSystemSemaphore__SystemSemaphoreError__OutOfResources QSystemSemaphore__SystemSemaphoreError = 5 + QSystemSemaphore__SystemSemaphoreError__UnknownError QSystemSemaphore__SystemSemaphoreError = 6 +) + type QSystemSemaphore struct { h *C.QSystemSemaphore } @@ -51,7 +70,7 @@ func NewQSystemSemaphore2(key string, initialValue int) *QSystemSemaphore { } // NewQSystemSemaphore3 constructs a new QSystemSemaphore object. -func NewQSystemSemaphore3(key string, initialValue int, mode uintptr) *QSystemSemaphore { +func NewQSystemSemaphore3(key string, initialValue int, mode QSystemSemaphore__AccessMode) *QSystemSemaphore { key_Cstring := C.CString(key) defer C.free(unsafe.Pointer(key_Cstring)) ret := C.QSystemSemaphore_new3(key_Cstring, C.size_t(len(key)), (C.int)(initialValue), (C.uintptr_t)(mode)) @@ -83,9 +102,9 @@ func (this *QSystemSemaphore) Release() bool { return (bool)(ret) } -func (this *QSystemSemaphore) Error() uintptr { +func (this *QSystemSemaphore) Error() QSystemSemaphore__SystemSemaphoreError { ret := C.QSystemSemaphore_Error(this.h) - return (uintptr)(ret) + return (QSystemSemaphore__SystemSemaphoreError)(ret) } func (this *QSystemSemaphore) ErrorString() string { @@ -103,7 +122,7 @@ func (this *QSystemSemaphore) SetKey2(key string, initialValue int) { C.QSystemSemaphore_SetKey2(this.h, key_Cstring, C.size_t(len(key)), (C.int)(initialValue)) } -func (this *QSystemSemaphore) SetKey3(key string, initialValue int, mode uintptr) { +func (this *QSystemSemaphore) SetKey3(key string, initialValue int, mode QSystemSemaphore__AccessMode) { key_Cstring := C.CString(key) defer C.free(unsafe.Pointer(key_Cstring)) C.QSystemSemaphore_SetKey3(this.h, key_Cstring, C.size_t(len(key)), (C.int)(initialValue), (C.uintptr_t)(mode)) diff --git a/qt/gen_qsystemtrayicon.go b/qt/gen_qsystemtrayicon.go index 09728f6b..b853ab25 100644 --- a/qt/gen_qsystemtrayicon.go +++ b/qt/gen_qsystemtrayicon.go @@ -14,6 +14,25 @@ import ( "unsafe" ) +type QSystemTrayIcon__ActivationReason int + +const ( + QSystemTrayIcon__ActivationReason__Unknown QSystemTrayIcon__ActivationReason = 0 + QSystemTrayIcon__ActivationReason__Context QSystemTrayIcon__ActivationReason = 1 + QSystemTrayIcon__ActivationReason__DoubleClick QSystemTrayIcon__ActivationReason = 2 + QSystemTrayIcon__ActivationReason__Trigger QSystemTrayIcon__ActivationReason = 3 + QSystemTrayIcon__ActivationReason__MiddleClick QSystemTrayIcon__ActivationReason = 4 +) + +type QSystemTrayIcon__MessageIcon int + +const ( + QSystemTrayIcon__MessageIcon__NoIcon QSystemTrayIcon__MessageIcon = 0 + QSystemTrayIcon__MessageIcon__Information QSystemTrayIcon__MessageIcon = 1 + QSystemTrayIcon__MessageIcon__Warning QSystemTrayIcon__MessageIcon = 2 + QSystemTrayIcon__MessageIcon__Critical QSystemTrayIcon__MessageIcon = 3 +) + type QSystemTrayIcon struct { h *C.QSystemTrayIcon *QObject @@ -181,7 +200,7 @@ func (this *QSystemTrayIcon) ShowMessage2(title string, msg string) { C.QSystemTrayIcon_ShowMessage2(this.h, title_Cstring, C.size_t(len(title)), msg_Cstring, C.size_t(len(msg))) } -func (this *QSystemTrayIcon) Activated(reason uintptr) { +func (this *QSystemTrayIcon) Activated(reason QSystemTrayIcon__ActivationReason) { C.QSystemTrayIcon_Activated(this.h, (C.uintptr_t)(reason)) } @@ -265,7 +284,7 @@ func (this *QSystemTrayIcon) ShowMessage4(title string, msg string, icon *QIcon, C.QSystemTrayIcon_ShowMessage4(this.h, title_Cstring, C.size_t(len(title)), msg_Cstring, C.size_t(len(msg)), icon.cPointer(), (C.int)(msecs)) } -func (this *QSystemTrayIcon) ShowMessage3(title string, msg string, icon uintptr) { +func (this *QSystemTrayIcon) ShowMessage3(title string, msg string, icon QSystemTrayIcon__MessageIcon) { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) msg_Cstring := C.CString(msg) @@ -273,7 +292,7 @@ func (this *QSystemTrayIcon) ShowMessage3(title string, msg string, icon uintptr C.QSystemTrayIcon_ShowMessage3(this.h, title_Cstring, C.size_t(len(title)), msg_Cstring, C.size_t(len(msg)), (C.uintptr_t)(icon)) } -func (this *QSystemTrayIcon) ShowMessage42(title string, msg string, icon uintptr, msecs int) { +func (this *QSystemTrayIcon) ShowMessage42(title string, msg string, icon QSystemTrayIcon__MessageIcon, msecs int) { title_Cstring := C.CString(title) defer C.free(unsafe.Pointer(title_Cstring)) msg_Cstring := C.CString(msg) diff --git a/qt/gen_qtabbar.go b/qt/gen_qtabbar.go index 6c83cb8d..7b6f2155 100644 --- a/qt/gen_qtabbar.go +++ b/qt/gen_qtabbar.go @@ -14,6 +14,34 @@ import ( "unsafe" ) +type QTabBar__Shape int + +const ( + QTabBar__Shape__RoundedNorth QTabBar__Shape = 0 + QTabBar__Shape__RoundedSouth QTabBar__Shape = 1 + QTabBar__Shape__RoundedWest QTabBar__Shape = 2 + QTabBar__Shape__RoundedEast QTabBar__Shape = 3 + QTabBar__Shape__TriangularNorth QTabBar__Shape = 4 + QTabBar__Shape__TriangularSouth QTabBar__Shape = 5 + QTabBar__Shape__TriangularWest QTabBar__Shape = 6 + QTabBar__Shape__TriangularEast QTabBar__Shape = 7 +) + +type QTabBar__ButtonPosition int + +const ( + QTabBar__ButtonPosition__LeftSide QTabBar__ButtonPosition = 0 + QTabBar__ButtonPosition__RightSide QTabBar__ButtonPosition = 1 +) + +type QTabBar__SelectionBehavior int + +const ( + QTabBar__SelectionBehavior__SelectLeftTab QTabBar__SelectionBehavior = 0 + QTabBar__SelectionBehavior__SelectRightTab QTabBar__SelectionBehavior = 1 + QTabBar__SelectionBehavior__SelectPreviousTab QTabBar__SelectionBehavior = 2 +) + type QTabBar struct { h *C.QTabBar *QWidget @@ -76,12 +104,12 @@ func QTabBar_TrUtf8(s string) string { return ret } -func (this *QTabBar) Shape() uintptr { +func (this *QTabBar) Shape() QTabBar__Shape { ret := C.QTabBar_Shape(this.h) - return (uintptr)(ret) + return (QTabBar__Shape)(ret) } -func (this *QTabBar) SetShape(shape uintptr) { +func (this *QTabBar) SetShape(shape QTabBar__Shape) { C.QTabBar_SetShape(this.h, (C.uintptr_t)(shape)) } @@ -184,12 +212,12 @@ func (this *QTabBar) SetTabIcon(index int, icon *QIcon) { C.QTabBar_SetTabIcon(this.h, (C.int)(index), icon.cPointer()) } -func (this *QTabBar) ElideMode() uintptr { +func (this *QTabBar) ElideMode() TextElideMode { ret := C.QTabBar_ElideMode(this.h) - return (uintptr)(ret) + return (TextElideMode)(ret) } -func (this *QTabBar) SetElideMode(mode uintptr) { +func (this *QTabBar) SetElideMode(mode TextElideMode) { C.QTabBar_SetElideMode(this.h, (C.uintptr_t)(mode)) } @@ -328,21 +356,21 @@ func (this *QTabBar) SetTabsClosable(closable bool) { C.QTabBar_SetTabsClosable(this.h, (C.bool)(closable)) } -func (this *QTabBar) SetTabButton(index int, position uintptr, widget *QWidget) { +func (this *QTabBar) SetTabButton(index int, position QTabBar__ButtonPosition, widget *QWidget) { C.QTabBar_SetTabButton(this.h, (C.int)(index), (C.uintptr_t)(position), widget.cPointer()) } -func (this *QTabBar) TabButton(index int, position uintptr) *QWidget { +func (this *QTabBar) TabButton(index int, position QTabBar__ButtonPosition) *QWidget { ret := C.QTabBar_TabButton(this.h, (C.int)(index), (C.uintptr_t)(position)) return newQWidget_U(unsafe.Pointer(ret)) } -func (this *QTabBar) SelectionBehaviorOnRemove() uintptr { +func (this *QTabBar) SelectionBehaviorOnRemove() QTabBar__SelectionBehavior { ret := C.QTabBar_SelectionBehaviorOnRemove(this.h) - return (uintptr)(ret) + return (QTabBar__SelectionBehavior)(ret) } -func (this *QTabBar) SetSelectionBehaviorOnRemove(behavior uintptr) { +func (this *QTabBar) SetSelectionBehaviorOnRemove(behavior QTabBar__SelectionBehavior) { C.QTabBar_SetSelectionBehaviorOnRemove(this.h, (C.uintptr_t)(behavior)) } diff --git a/qt/gen_qtableview.go b/qt/gen_qtableview.go index a7bf025d..7d4b113b 100644 --- a/qt/gen_qtableview.go +++ b/qt/gen_qtableview.go @@ -179,12 +179,12 @@ func (this *QTableView) ShowGrid() bool { return (bool)(ret) } -func (this *QTableView) GridStyle() uintptr { +func (this *QTableView) GridStyle() PenStyle { ret := C.QTableView_GridStyle(this.h) - return (uintptr)(ret) + return (PenStyle)(ret) } -func (this *QTableView) SetGridStyle(style uintptr) { +func (this *QTableView) SetGridStyle(style PenStyle) { C.QTableView_SetGridStyle(this.h, (C.uintptr_t)(style)) } @@ -294,7 +294,7 @@ func (this *QTableView) SortByColumn(column int) { C.QTableView_SortByColumn(this.h, (C.int)(column)) } -func (this *QTableView) SortByColumn2(column int, order uintptr) { +func (this *QTableView) SortByColumn2(column int, order SortOrder) { C.QTableView_SortByColumn2(this.h, (C.int)(column), (C.uintptr_t)(order)) } @@ -354,7 +354,7 @@ func QTableView_TrUtf83(s string, c string, n int) string { return ret } -func (this *QTableView) ScrollTo2(index *QModelIndex, hint uintptr) { +func (this *QTableView) ScrollTo2(index *QModelIndex, hint QAbstractItemView__ScrollHint) { C.QTableView_ScrollTo2(this.h, index.cPointer(), (C.uintptr_t)(hint)) } diff --git a/qt/gen_qtablewidget.go b/qt/gen_qtablewidget.go index 73af866f..aa5743a9 100644 --- a/qt/gen_qtablewidget.go +++ b/qt/gen_qtablewidget.go @@ -14,6 +14,13 @@ import ( "unsafe" ) +type QTableWidgetItem__ItemType int + +const ( + QTableWidgetItem__ItemType__Type QTableWidgetItem__ItemType = 0 + QTableWidgetItem__ItemType__UserType QTableWidgetItem__ItemType = 1000 +) + type QTableWidgetSelectionRange struct { h *C.QTableWidgetSelectionRange } @@ -361,12 +368,12 @@ func (this *QTableWidgetItem) SetForeground(brush *QBrush) { C.QTableWidgetItem_SetForeground(this.h, brush.cPointer()) } -func (this *QTableWidgetItem) CheckState() uintptr { +func (this *QTableWidgetItem) CheckState() CheckState { ret := C.QTableWidgetItem_CheckState(this.h) - return (uintptr)(ret) + return (CheckState)(ret) } -func (this *QTableWidgetItem) SetCheckState(state uintptr) { +func (this *QTableWidgetItem) SetCheckState(state CheckState) { C.QTableWidgetItem_SetCheckState(this.h, (C.uintptr_t)(state)) } @@ -1028,11 +1035,11 @@ func QTableWidget_TrUtf83(s string, c string, n int) string { return ret } -func (this *QTableWidget) SortItems2(column int, order uintptr) { +func (this *QTableWidget) SortItems2(column int, order SortOrder) { C.QTableWidget_SortItems2(this.h, (C.int)(column), (C.uintptr_t)(order)) } -func (this *QTableWidget) ScrollToItem2(item *QTableWidgetItem, hint uintptr) { +func (this *QTableWidget) ScrollToItem2(item *QTableWidgetItem, hint QAbstractItemView__ScrollHint) { C.QTableWidget_ScrollToItem2(this.h, item.cPointer(), (C.uintptr_t)(hint)) } diff --git a/qt/gen_qtabwidget.go b/qt/gen_qtabwidget.go index 260f499b..e0b43099 100644 --- a/qt/gen_qtabwidget.go +++ b/qt/gen_qtabwidget.go @@ -14,6 +14,22 @@ import ( "unsafe" ) +type QTabWidget__TabPosition int + +const ( + QTabWidget__TabPosition__North QTabWidget__TabPosition = 0 + QTabWidget__TabPosition__South QTabWidget__TabPosition = 1 + QTabWidget__TabPosition__West QTabWidget__TabPosition = 2 + QTabWidget__TabPosition__East QTabWidget__TabPosition = 3 +) + +type QTabWidget__TabShape int + +const ( + QTabWidget__TabShape__Rounded QTabWidget__TabShape = 0 + QTabWidget__TabShape__Triangular QTabWidget__TabShape = 1 +) + type QTabWidget struct { h *C.QTabWidget *QWidget @@ -211,12 +227,12 @@ func (this *QTabWidget) Count() int { return (int)(ret) } -func (this *QTabWidget) TabPosition() uintptr { +func (this *QTabWidget) TabPosition() QTabWidget__TabPosition { ret := C.QTabWidget_TabPosition(this.h) - return (uintptr)(ret) + return (QTabWidget__TabPosition)(ret) } -func (this *QTabWidget) SetTabPosition(position uintptr) { +func (this *QTabWidget) SetTabPosition(position QTabWidget__TabPosition) { C.QTabWidget_SetTabPosition(this.h, (C.uintptr_t)(position)) } @@ -238,12 +254,12 @@ func (this *QTabWidget) SetMovable(movable bool) { C.QTabWidget_SetMovable(this.h, (C.bool)(movable)) } -func (this *QTabWidget) TabShape() uintptr { +func (this *QTabWidget) TabShape() QTabWidget__TabShape { ret := C.QTabWidget_TabShape(this.h) - return (uintptr)(ret) + return (QTabWidget__TabShape)(ret) } -func (this *QTabWidget) SetTabShape(s uintptr) { +func (this *QTabWidget) SetTabShape(s QTabWidget__TabShape) { C.QTabWidget_SetTabShape(this.h, (C.uintptr_t)(s)) } @@ -288,12 +304,12 @@ func (this *QTabWidget) CornerWidget() *QWidget { return newQWidget_U(unsafe.Pointer(ret)) } -func (this *QTabWidget) ElideMode() uintptr { +func (this *QTabWidget) ElideMode() TextElideMode { ret := C.QTabWidget_ElideMode(this.h) - return (uintptr)(ret) + return (TextElideMode)(ret) } -func (this *QTabWidget) SetElideMode(mode uintptr) { +func (this *QTabWidget) SetElideMode(mode TextElideMode) { C.QTabWidget_SetElideMode(this.h, (C.uintptr_t)(mode)) } @@ -456,11 +472,11 @@ func QTabWidget_TrUtf83(s string, c string, n int) string { return ret } -func (this *QTabWidget) SetCornerWidget2(w *QWidget, corner uintptr) { +func (this *QTabWidget) SetCornerWidget2(w *QWidget, corner Corner) { C.QTabWidget_SetCornerWidget2(this.h, w.cPointer(), (C.uintptr_t)(corner)) } -func (this *QTabWidget) CornerWidget1(corner uintptr) *QWidget { +func (this *QTabWidget) CornerWidget1(corner Corner) *QWidget { ret := C.QTabWidget_CornerWidget1(this.h, (C.uintptr_t)(corner)) return newQWidget_U(unsafe.Pointer(ret)) } diff --git a/qt/gen_qtextboundaryfinder.go b/qt/gen_qtextboundaryfinder.go index 4af505ed..b055d4ae 100644 --- a/qt/gen_qtextboundaryfinder.go +++ b/qt/gen_qtextboundaryfinder.go @@ -12,6 +12,26 @@ import ( "unsafe" ) +type QTextBoundaryFinder__BoundaryType int + +const ( + QTextBoundaryFinder__BoundaryType__Grapheme QTextBoundaryFinder__BoundaryType = 0 + QTextBoundaryFinder__BoundaryType__Word QTextBoundaryFinder__BoundaryType = 1 + QTextBoundaryFinder__BoundaryType__Sentence QTextBoundaryFinder__BoundaryType = 2 + QTextBoundaryFinder__BoundaryType__Line QTextBoundaryFinder__BoundaryType = 3 +) + +type QTextBoundaryFinder__BoundaryReason int + +const ( + QTextBoundaryFinder__BoundaryReason__NotAtBoundary QTextBoundaryFinder__BoundaryReason = 0 + QTextBoundaryFinder__BoundaryReason__BreakOpportunity QTextBoundaryFinder__BoundaryReason = 31 + QTextBoundaryFinder__BoundaryReason__StartOfItem QTextBoundaryFinder__BoundaryReason = 32 + QTextBoundaryFinder__BoundaryReason__EndOfItem QTextBoundaryFinder__BoundaryReason = 64 + QTextBoundaryFinder__BoundaryReason__MandatoryBreak QTextBoundaryFinder__BoundaryReason = 128 + QTextBoundaryFinder__BoundaryReason__SoftHyphen QTextBoundaryFinder__BoundaryReason = 256 +) + type QTextBoundaryFinder struct { h *C.QTextBoundaryFinder } @@ -47,7 +67,7 @@ func NewQTextBoundaryFinder2(other *QTextBoundaryFinder) *QTextBoundaryFinder { } // NewQTextBoundaryFinder3 constructs a new QTextBoundaryFinder object. -func NewQTextBoundaryFinder3(typeVal uintptr, stringVal string) *QTextBoundaryFinder { +func NewQTextBoundaryFinder3(typeVal QTextBoundaryFinder__BoundaryType, stringVal string) *QTextBoundaryFinder { stringVal_Cstring := C.CString(stringVal) defer C.free(unsafe.Pointer(stringVal_Cstring)) ret := C.QTextBoundaryFinder_new3((C.uintptr_t)(typeVal), stringVal_Cstring, C.size_t(len(stringVal))) @@ -55,19 +75,19 @@ func NewQTextBoundaryFinder3(typeVal uintptr, stringVal string) *QTextBoundaryFi } // NewQTextBoundaryFinder4 constructs a new QTextBoundaryFinder object. -func NewQTextBoundaryFinder4(typeVal uintptr, chars *QChar, length int) *QTextBoundaryFinder { +func NewQTextBoundaryFinder4(typeVal QTextBoundaryFinder__BoundaryType, chars *QChar, length int) *QTextBoundaryFinder { ret := C.QTextBoundaryFinder_new4((C.uintptr_t)(typeVal), chars.cPointer(), (C.int)(length)) return newQTextBoundaryFinder(ret) } // NewQTextBoundaryFinder5 constructs a new QTextBoundaryFinder object. -func NewQTextBoundaryFinder5(typeVal uintptr, chars *QChar, length int, buffer *byte) *QTextBoundaryFinder { +func NewQTextBoundaryFinder5(typeVal QTextBoundaryFinder__BoundaryType, chars *QChar, length int, buffer *byte) *QTextBoundaryFinder { ret := C.QTextBoundaryFinder_new5((C.uintptr_t)(typeVal), chars.cPointer(), (C.int)(length), (*C.uchar)(unsafe.Pointer(buffer))) return newQTextBoundaryFinder(ret) } // NewQTextBoundaryFinder6 constructs a new QTextBoundaryFinder object. -func NewQTextBoundaryFinder6(typeVal uintptr, chars *QChar, length int, buffer *byte, bufferSize int) *QTextBoundaryFinder { +func NewQTextBoundaryFinder6(typeVal QTextBoundaryFinder__BoundaryType, chars *QChar, length int, buffer *byte, bufferSize int) *QTextBoundaryFinder { ret := C.QTextBoundaryFinder_new6((C.uintptr_t)(typeVal), chars.cPointer(), (C.int)(length), (*C.uchar)(unsafe.Pointer(buffer)), (C.int)(bufferSize)) return newQTextBoundaryFinder(ret) } @@ -81,9 +101,9 @@ func (this *QTextBoundaryFinder) IsValid() bool { return (bool)(ret) } -func (this *QTextBoundaryFinder) Type() uintptr { +func (this *QTextBoundaryFinder) Type() QTextBoundaryFinder__BoundaryType { ret := C.QTextBoundaryFinder_Type(this.h) - return (uintptr)(ret) + return (QTextBoundaryFinder__BoundaryType)(ret) } func (this *QTextBoundaryFinder) String() string { diff --git a/qt/gen_qtextbrowser.go b/qt/gen_qtextbrowser.go index 6b5472cf..305df631 100644 --- a/qt/gen_qtextbrowser.go +++ b/qt/gen_qtextbrowser.go @@ -87,9 +87,9 @@ func (this *QTextBrowser) Source() *QUrl { return ret1 } -func (this *QTextBrowser) SourceType() uintptr { +func (this *QTextBrowser) SourceType() QTextDocument__ResourceType { ret := C.QTextBrowser_SourceType(this.h) - return (uintptr)(ret) + return (QTextDocument__ResourceType)(ret) } func (this *QTextBrowser) SearchPaths() []string { @@ -199,7 +199,7 @@ func (this *QTextBrowser) SetSource(name *QUrl) { C.QTextBrowser_SetSource(this.h, name.cPointer()) } -func (this *QTextBrowser) SetSource2(name *QUrl, typeVal uintptr) { +func (this *QTextBrowser) SetSource2(name *QUrl, typeVal QTextDocument__ResourceType) { C.QTextBrowser_SetSource2(this.h, name.cPointer(), (C.uintptr_t)(typeVal)) } diff --git a/qt/gen_qtextcodec.go b/qt/gen_qtextcodec.go index b2457d49..e5d96296 100644 --- a/qt/gen_qtextcodec.go +++ b/qt/gen_qtextcodec.go @@ -13,6 +13,15 @@ import ( "unsafe" ) +type QTextCodec__ConversionFlag int + +const ( + QTextCodec__ConversionFlag__DefaultConversion QTextCodec__ConversionFlag = 0 + QTextCodec__ConversionFlag__ConvertInvalidToNull QTextCodec__ConversionFlag = 2147483648 + QTextCodec__ConversionFlag__IgnoreHeader QTextCodec__ConversionFlag = 1 + QTextCodec__ConversionFlag__FreeFunction QTextCodec__ConversionFlag = 2 +) + type QTextCodec struct { h *C.QTextCodec } diff --git a/qt/gen_qtextcursor.go b/qt/gen_qtextcursor.go index 28cb20f5..235dc368 100644 --- a/qt/gen_qtextcursor.go +++ b/qt/gen_qtextcursor.go @@ -13,6 +13,52 @@ import ( "unsafe" ) +type QTextCursor__MoveMode int + +const ( + QTextCursor__MoveMode__MoveAnchor QTextCursor__MoveMode = 0 + QTextCursor__MoveMode__KeepAnchor QTextCursor__MoveMode = 1 +) + +type QTextCursor__MoveOperation int + +const ( + QTextCursor__MoveOperation__NoMove QTextCursor__MoveOperation = 0 + QTextCursor__MoveOperation__Start QTextCursor__MoveOperation = 1 + QTextCursor__MoveOperation__Up QTextCursor__MoveOperation = 2 + QTextCursor__MoveOperation__StartOfLine QTextCursor__MoveOperation = 3 + QTextCursor__MoveOperation__StartOfBlock QTextCursor__MoveOperation = 4 + QTextCursor__MoveOperation__StartOfWord QTextCursor__MoveOperation = 5 + QTextCursor__MoveOperation__PreviousBlock QTextCursor__MoveOperation = 6 + QTextCursor__MoveOperation__PreviousCharacter QTextCursor__MoveOperation = 7 + QTextCursor__MoveOperation__PreviousWord QTextCursor__MoveOperation = 8 + QTextCursor__MoveOperation__Left QTextCursor__MoveOperation = 9 + QTextCursor__MoveOperation__WordLeft QTextCursor__MoveOperation = 10 + QTextCursor__MoveOperation__End QTextCursor__MoveOperation = 11 + QTextCursor__MoveOperation__Down QTextCursor__MoveOperation = 12 + QTextCursor__MoveOperation__EndOfLine QTextCursor__MoveOperation = 13 + QTextCursor__MoveOperation__EndOfWord QTextCursor__MoveOperation = 14 + QTextCursor__MoveOperation__EndOfBlock QTextCursor__MoveOperation = 15 + QTextCursor__MoveOperation__NextBlock QTextCursor__MoveOperation = 16 + QTextCursor__MoveOperation__NextCharacter QTextCursor__MoveOperation = 17 + QTextCursor__MoveOperation__NextWord QTextCursor__MoveOperation = 18 + QTextCursor__MoveOperation__Right QTextCursor__MoveOperation = 19 + QTextCursor__MoveOperation__WordRight QTextCursor__MoveOperation = 20 + QTextCursor__MoveOperation__NextCell QTextCursor__MoveOperation = 21 + QTextCursor__MoveOperation__PreviousCell QTextCursor__MoveOperation = 22 + QTextCursor__MoveOperation__NextRow QTextCursor__MoveOperation = 23 + QTextCursor__MoveOperation__PreviousRow QTextCursor__MoveOperation = 24 +) + +type QTextCursor__SelectionType int + +const ( + QTextCursor__SelectionType__WordUnderCursor QTextCursor__SelectionType = 0 + QTextCursor__SelectionType__LineUnderCursor QTextCursor__SelectionType = 1 + QTextCursor__SelectionType__BlockUnderCursor QTextCursor__SelectionType = 2 + QTextCursor__SelectionType__Document QTextCursor__SelectionType = 3 +) + type QTextCursor struct { h *C.QTextCursor } @@ -109,7 +155,7 @@ func (this *QTextCursor) InsertText2(text string, format *QTextCharFormat) { C.QTextCursor_InsertText2(this.h, text_Cstring, C.size_t(len(text)), format.cPointer()) } -func (this *QTextCursor) MovePosition(op uintptr) bool { +func (this *QTextCursor) MovePosition(op QTextCursor__MoveOperation) bool { ret := C.QTextCursor_MovePosition(this.h, (C.uintptr_t)(op)) return (bool)(ret) } @@ -149,7 +195,7 @@ func (this *QTextCursor) DeletePreviousChar() { C.QTextCursor_DeletePreviousChar(this.h) } -func (this *QTextCursor) Select(selection uintptr) { +func (this *QTextCursor) Select(selection QTextCursor__SelectionType) { C.QTextCursor_Select(this.h, (C.uintptr_t)(selection)) } @@ -310,7 +356,7 @@ func (this *QTextCursor) InsertList(format *QTextListFormat) *QTextList { return newQTextList_U(unsafe.Pointer(ret)) } -func (this *QTextCursor) InsertListWithStyle(style uintptr) *QTextList { +func (this *QTextCursor) InsertListWithStyle(style QTextListFormat__Style) *QTextList { ret := C.QTextCursor_InsertListWithStyle(this.h, (C.uintptr_t)(style)) return newQTextList_U(unsafe.Pointer(ret)) } @@ -320,7 +366,7 @@ func (this *QTextCursor) CreateList(format *QTextListFormat) *QTextList { return newQTextList_U(unsafe.Pointer(ret)) } -func (this *QTextCursor) CreateListWithStyle(style uintptr) *QTextList { +func (this *QTextCursor) CreateListWithStyle(style QTextListFormat__Style) *QTextList { ret := C.QTextCursor_CreateListWithStyle(this.h, (C.uintptr_t)(style)) return newQTextList_U(unsafe.Pointer(ret)) } @@ -365,7 +411,7 @@ func (this *QTextCursor) InsertHtml(html string) { C.QTextCursor_InsertHtml(this.h, html_Cstring, C.size_t(len(html))) } -func (this *QTextCursor) InsertImage(format *QTextImageFormat, alignment uintptr) { +func (this *QTextCursor) InsertImage(format *QTextImageFormat, alignment QTextFrameFormat__Position) { C.QTextCursor_InsertImage(this.h, format.cPointer(), (C.uintptr_t)(alignment)) } @@ -445,16 +491,16 @@ func (this *QTextCursor) Document() *QTextDocument { return newQTextDocument_U(unsafe.Pointer(ret)) } -func (this *QTextCursor) SetPosition2(pos int, mode uintptr) { +func (this *QTextCursor) SetPosition2(pos int, mode QTextCursor__MoveMode) { C.QTextCursor_SetPosition2(this.h, (C.int)(pos), (C.uintptr_t)(mode)) } -func (this *QTextCursor) MovePosition2(op uintptr, param2 uintptr) bool { +func (this *QTextCursor) MovePosition2(op QTextCursor__MoveOperation, param2 QTextCursor__MoveMode) bool { ret := C.QTextCursor_MovePosition2(this.h, (C.uintptr_t)(op), (C.uintptr_t)(param2)) return (bool)(ret) } -func (this *QTextCursor) MovePosition3(op uintptr, param2 uintptr, n int) bool { +func (this *QTextCursor) MovePosition3(op QTextCursor__MoveOperation, param2 QTextCursor__MoveMode, n int) bool { ret := C.QTextCursor_MovePosition3(this.h, (C.uintptr_t)(op), (C.uintptr_t)(param2), (C.int)(n)) return (bool)(ret) } diff --git a/qt/gen_qtextdocument.go b/qt/gen_qtextdocument.go index f24f58ac..9bf49072 100644 --- a/qt/gen_qtextdocument.go +++ b/qt/gen_qtextdocument.go @@ -14,6 +14,48 @@ import ( "unsafe" ) +type QTextDocument__MetaInformation int + +const ( + QTextDocument__MetaInformation__DocumentTitle QTextDocument__MetaInformation = 0 + QTextDocument__MetaInformation__DocumentUrl QTextDocument__MetaInformation = 1 +) + +type QTextDocument__MarkdownFeature int + +const ( + QTextDocument__MarkdownFeature__MarkdownNoHTML QTextDocument__MarkdownFeature = 96 + QTextDocument__MarkdownFeature__MarkdownDialectCommonMark QTextDocument__MarkdownFeature = 0 + QTextDocument__MarkdownFeature__MarkdownDialectGitHub QTextDocument__MarkdownFeature = 3852 +) + +type QTextDocument__FindFlag int + +const ( + QTextDocument__FindFlag__FindBackward QTextDocument__FindFlag = 1 + QTextDocument__FindFlag__FindCaseSensitively QTextDocument__FindFlag = 2 + QTextDocument__FindFlag__FindWholeWords QTextDocument__FindFlag = 4 +) + +type QTextDocument__ResourceType int + +const ( + QTextDocument__ResourceType__UnknownResource QTextDocument__ResourceType = 0 + QTextDocument__ResourceType__HtmlResource QTextDocument__ResourceType = 1 + QTextDocument__ResourceType__ImageResource QTextDocument__ResourceType = 2 + QTextDocument__ResourceType__StyleSheetResource QTextDocument__ResourceType = 3 + QTextDocument__ResourceType__MarkdownResource QTextDocument__ResourceType = 4 + QTextDocument__ResourceType__UserResource QTextDocument__ResourceType = 100 +) + +type QTextDocument__Stacks int + +const ( + QTextDocument__Stacks__UndoStack QTextDocument__Stacks = 1 + QTextDocument__Stacks__RedoStack QTextDocument__Stacks = 2 + QTextDocument__Stacks__UndoAndRedoStacks QTextDocument__Stacks = 3 +) + type QAbstractUndoItem struct { h *C.QAbstractUndoItem } @@ -183,13 +225,13 @@ func (this *QTextDocument) DocumentLayout() *QAbstractTextDocumentLayout { return newQAbstractTextDocumentLayout_U(unsafe.Pointer(ret)) } -func (this *QTextDocument) SetMetaInformation(info uintptr, param2 string) { +func (this *QTextDocument) SetMetaInformation(info QTextDocument__MetaInformation, param2 string) { param2_Cstring := C.CString(param2) defer C.free(unsafe.Pointer(param2_Cstring)) C.QTextDocument_SetMetaInformation(this.h, (C.uintptr_t)(info), param2_Cstring, C.size_t(len(param2))) } -func (this *QTextDocument) MetaInformation(info uintptr) string { +func (this *QTextDocument) MetaInformation(info QTextDocument__MetaInformation) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QTextDocument_MetaInformation(this.h, (C.uintptr_t)(info), &_out, &_out_Strlen) @@ -647,12 +689,12 @@ func (this *QTextDocument) SetBaseUrl(url *QUrl) { C.QTextDocument_SetBaseUrl(this.h, url.cPointer()) } -func (this *QTextDocument) DefaultCursorMoveStyle() uintptr { +func (this *QTextDocument) DefaultCursorMoveStyle() CursorMoveStyle { ret := C.QTextDocument_DefaultCursorMoveStyle(this.h) - return (uintptr)(ret) + return (CursorMoveStyle)(ret) } -func (this *QTextDocument) SetDefaultCursorMoveStyle(style uintptr) { +func (this *QTextDocument) SetDefaultCursorMoveStyle(style CursorMoveStyle) { C.QTextDocument_SetDefaultCursorMoveStyle(this.h, (C.uintptr_t)(style)) } @@ -978,7 +1020,7 @@ func (this *QTextDocument) DrawContents2(painter *QPainter, rect *QRectF) { C.QTextDocument_DrawContents2(this.h, painter.cPointer(), rect.cPointer()) } -func (this *QTextDocument) ClearUndoRedoStacks1(historyToClear uintptr) { +func (this *QTextDocument) ClearUndoRedoStacks1(historyToClear QTextDocument__Stacks) { C.QTextDocument_ClearUndoRedoStacks1(this.h, (C.uintptr_t)(historyToClear)) } diff --git a/qt/gen_qtextedit.go b/qt/gen_qtextedit.go index 3b9d617d..d2574e65 100644 --- a/qt/gen_qtextedit.go +++ b/qt/gen_qtextedit.go @@ -14,6 +14,23 @@ import ( "unsafe" ) +type QTextEdit__LineWrapMode int + +const ( + QTextEdit__LineWrapMode__NoWrap QTextEdit__LineWrapMode = 0 + QTextEdit__LineWrapMode__WidgetWidth QTextEdit__LineWrapMode = 1 + QTextEdit__LineWrapMode__FixedPixelWidth QTextEdit__LineWrapMode = 2 + QTextEdit__LineWrapMode__FixedColumnWidth QTextEdit__LineWrapMode = 3 +) + +type QTextEdit__AutoFormattingFlag int + +const ( + QTextEdit__AutoFormattingFlag__AutoNone QTextEdit__AutoFormattingFlag = 0 + QTextEdit__AutoFormattingFlag__AutoBulletList QTextEdit__AutoFormattingFlag = 1 + QTextEdit__AutoFormattingFlag__AutoAll QTextEdit__AutoFormattingFlag = 4294967295 +) + type QTextEdit struct { h *C.QTextEdit *QAbstractScrollArea @@ -277,12 +294,12 @@ func (this *QTextEdit) SetUndoRedoEnabled(enable bool) { C.QTextEdit_SetUndoRedoEnabled(this.h, (C.bool)(enable)) } -func (this *QTextEdit) LineWrapMode() uintptr { +func (this *QTextEdit) LineWrapMode() QTextEdit__LineWrapMode { ret := C.QTextEdit_LineWrapMode(this.h) - return (uintptr)(ret) + return (QTextEdit__LineWrapMode)(ret) } -func (this *QTextEdit) SetLineWrapMode(mode uintptr) { +func (this *QTextEdit) SetLineWrapMode(mode QTextEdit__LineWrapMode) { C.QTextEdit_SetLineWrapMode(this.h, (C.uintptr_t)(mode)) } @@ -295,12 +312,12 @@ func (this *QTextEdit) SetLineWrapColumnOrWidth(w int) { C.QTextEdit_SetLineWrapColumnOrWidth(this.h, (C.int)(w)) } -func (this *QTextEdit) WordWrapMode() uintptr { +func (this *QTextEdit) WordWrapMode() QTextOption__WrapMode { ret := C.QTextEdit_WordWrapMode(this.h) - return (uintptr)(ret) + return (QTextOption__WrapMode)(ret) } -func (this *QTextEdit) SetWordWrapMode(policy uintptr) { +func (this *QTextEdit) SetWordWrapMode(policy QTextOption__WrapMode) { C.QTextEdit_SetWordWrapMode(this.h, (C.uintptr_t)(policy)) } @@ -483,7 +500,7 @@ func (this *QTextEdit) ExtraSelections() []QTextEdit__ExtraSelection { return ret } -func (this *QTextEdit) MoveCursor(operation uintptr) { +func (this *QTextEdit) MoveCursor(operation QTextCursor__MoveOperation) { C.QTextEdit_MoveCursor(this.h, (C.uintptr_t)(operation)) } @@ -496,7 +513,7 @@ func (this *QTextEdit) Print(printer *QPagedPaintDevice) { C.QTextEdit_Print(this.h, printer.cPointer()) } -func (this *QTextEdit) InputMethodQuery(property uintptr) *QVariant { +func (this *QTextEdit) InputMethodQuery(property InputMethodQuery) *QVariant { ret := C.QTextEdit_InputMethodQuery(this.h, (C.uintptr_t)(property)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -507,7 +524,7 @@ func (this *QTextEdit) InputMethodQuery(property uintptr) *QVariant { return ret1 } -func (this *QTextEdit) InputMethodQuery2(query uintptr, argument QVariant) *QVariant { +func (this *QTextEdit) InputMethodQuery2(query InputMethodQuery, argument QVariant) *QVariant { ret := C.QTextEdit_InputMethodQuery2(this.h, (C.uintptr_t)(query), argument.cPointer()) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -802,7 +819,7 @@ func (this *QTextEdit) ToMarkdown1(features int) string { return ret } -func (this *QTextEdit) MoveCursor2(operation uintptr, mode uintptr) { +func (this *QTextEdit) MoveCursor2(operation QTextCursor__MoveOperation, mode QTextCursor__MoveMode) { C.QTextEdit_MoveCursor2(this.h, (C.uintptr_t)(operation), (C.uintptr_t)(mode)) } diff --git a/qt/gen_qtextformat.go b/qt/gen_qtextformat.go index 7232d615..300fbdee 100644 --- a/qt/gen_qtextformat.go +++ b/qt/gen_qtextformat.go @@ -13,6 +13,242 @@ import ( "unsafe" ) +type QTextLength__Type int + +const ( + QTextLength__Type__VariableLength QTextLength__Type = 0 + QTextLength__Type__FixedLength QTextLength__Type = 1 + QTextLength__Type__PercentageLength QTextLength__Type = 2 +) + +type QTextFormat__FormatType int + +const ( + QTextFormat__FormatType__InvalidFormat QTextFormat__FormatType = -1 + QTextFormat__FormatType__BlockFormat QTextFormat__FormatType = 1 + QTextFormat__FormatType__CharFormat QTextFormat__FormatType = 2 + QTextFormat__FormatType__ListFormat QTextFormat__FormatType = 3 + QTextFormat__FormatType__TableFormat QTextFormat__FormatType = 4 + QTextFormat__FormatType__FrameFormat QTextFormat__FormatType = 5 + QTextFormat__FormatType__UserFormat QTextFormat__FormatType = 100 +) + +type QTextFormat__Property int + +const ( + QTextFormat__Property__ObjectIndex QTextFormat__Property = 0 + QTextFormat__Property__CssFloat QTextFormat__Property = 2048 + QTextFormat__Property__LayoutDirection QTextFormat__Property = 2049 + QTextFormat__Property__OutlinePen QTextFormat__Property = 2064 + QTextFormat__Property__BackgroundBrush QTextFormat__Property = 2080 + QTextFormat__Property__ForegroundBrush QTextFormat__Property = 2081 + QTextFormat__Property__BackgroundImageUrl QTextFormat__Property = 2083 + QTextFormat__Property__BlockAlignment QTextFormat__Property = 4112 + QTextFormat__Property__BlockTopMargin QTextFormat__Property = 4144 + QTextFormat__Property__BlockBottomMargin QTextFormat__Property = 4145 + QTextFormat__Property__BlockLeftMargin QTextFormat__Property = 4146 + QTextFormat__Property__BlockRightMargin QTextFormat__Property = 4147 + QTextFormat__Property__TextIndent QTextFormat__Property = 4148 + QTextFormat__Property__TabPositions QTextFormat__Property = 4149 + QTextFormat__Property__BlockIndent QTextFormat__Property = 4160 + QTextFormat__Property__LineHeight QTextFormat__Property = 4168 + QTextFormat__Property__LineHeightType QTextFormat__Property = 4169 + QTextFormat__Property__BlockNonBreakableLines QTextFormat__Property = 4176 + QTextFormat__Property__BlockTrailingHorizontalRulerWidth QTextFormat__Property = 4192 + QTextFormat__Property__HeadingLevel QTextFormat__Property = 4208 + QTextFormat__Property__BlockQuoteLevel QTextFormat__Property = 4224 + QTextFormat__Property__BlockCodeLanguage QTextFormat__Property = 4240 + QTextFormat__Property__BlockCodeFence QTextFormat__Property = 4241 + QTextFormat__Property__BlockMarker QTextFormat__Property = 4256 + QTextFormat__Property__FirstFontProperty QTextFormat__Property = 8160 + QTextFormat__Property__FontCapitalization QTextFormat__Property = 8160 + QTextFormat__Property__FontLetterSpacingType QTextFormat__Property = 8243 + QTextFormat__Property__FontLetterSpacing QTextFormat__Property = 8161 + QTextFormat__Property__FontWordSpacing QTextFormat__Property = 8162 + QTextFormat__Property__FontStretch QTextFormat__Property = 8244 + QTextFormat__Property__FontStyleHint QTextFormat__Property = 8163 + QTextFormat__Property__FontStyleStrategy QTextFormat__Property = 8164 + QTextFormat__Property__FontKerning QTextFormat__Property = 8165 + QTextFormat__Property__FontHintingPreference QTextFormat__Property = 8166 + QTextFormat__Property__FontFamilies QTextFormat__Property = 8167 + QTextFormat__Property__FontStyleName QTextFormat__Property = 8168 + QTextFormat__Property__FontFamily QTextFormat__Property = 8192 + QTextFormat__Property__FontPointSize QTextFormat__Property = 8193 + QTextFormat__Property__FontSizeAdjustment QTextFormat__Property = 8194 + QTextFormat__Property__FontSizeIncrement QTextFormat__Property = 8194 + QTextFormat__Property__FontWeight QTextFormat__Property = 8195 + QTextFormat__Property__FontItalic QTextFormat__Property = 8196 + QTextFormat__Property__FontUnderline QTextFormat__Property = 8197 + QTextFormat__Property__FontOverline QTextFormat__Property = 8198 + QTextFormat__Property__FontStrikeOut QTextFormat__Property = 8199 + QTextFormat__Property__FontFixedPitch QTextFormat__Property = 8200 + QTextFormat__Property__FontPixelSize QTextFormat__Property = 8201 + QTextFormat__Property__LastFontProperty QTextFormat__Property = 8201 + QTextFormat__Property__TextUnderlineColor QTextFormat__Property = 8208 + QTextFormat__Property__TextVerticalAlignment QTextFormat__Property = 8225 + QTextFormat__Property__TextOutline QTextFormat__Property = 8226 + QTextFormat__Property__TextUnderlineStyle QTextFormat__Property = 8227 + QTextFormat__Property__TextToolTip QTextFormat__Property = 8228 + QTextFormat__Property__IsAnchor QTextFormat__Property = 8240 + QTextFormat__Property__AnchorHref QTextFormat__Property = 8241 + QTextFormat__Property__AnchorName QTextFormat__Property = 8242 + QTextFormat__Property__ObjectType QTextFormat__Property = 12032 + QTextFormat__Property__ListStyle QTextFormat__Property = 12288 + QTextFormat__Property__ListIndent QTextFormat__Property = 12289 + QTextFormat__Property__ListNumberPrefix QTextFormat__Property = 12290 + QTextFormat__Property__ListNumberSuffix QTextFormat__Property = 12291 + QTextFormat__Property__FrameBorder QTextFormat__Property = 16384 + QTextFormat__Property__FrameMargin QTextFormat__Property = 16385 + QTextFormat__Property__FramePadding QTextFormat__Property = 16386 + QTextFormat__Property__FrameWidth QTextFormat__Property = 16387 + QTextFormat__Property__FrameHeight QTextFormat__Property = 16388 + QTextFormat__Property__FrameTopMargin QTextFormat__Property = 16389 + QTextFormat__Property__FrameBottomMargin QTextFormat__Property = 16390 + QTextFormat__Property__FrameLeftMargin QTextFormat__Property = 16391 + QTextFormat__Property__FrameRightMargin QTextFormat__Property = 16392 + QTextFormat__Property__FrameBorderBrush QTextFormat__Property = 16393 + QTextFormat__Property__FrameBorderStyle QTextFormat__Property = 16400 + QTextFormat__Property__TableColumns QTextFormat__Property = 16640 + QTextFormat__Property__TableColumnWidthConstraints QTextFormat__Property = 16641 + QTextFormat__Property__TableCellSpacing QTextFormat__Property = 16642 + QTextFormat__Property__TableCellPadding QTextFormat__Property = 16643 + QTextFormat__Property__TableHeaderRowCount QTextFormat__Property = 16644 + QTextFormat__Property__TableBorderCollapse QTextFormat__Property = 16645 + QTextFormat__Property__TableCellRowSpan QTextFormat__Property = 18448 + QTextFormat__Property__TableCellColumnSpan QTextFormat__Property = 18449 + QTextFormat__Property__TableCellTopPadding QTextFormat__Property = 18450 + QTextFormat__Property__TableCellBottomPadding QTextFormat__Property = 18451 + QTextFormat__Property__TableCellLeftPadding QTextFormat__Property = 18452 + QTextFormat__Property__TableCellRightPadding QTextFormat__Property = 18453 + QTextFormat__Property__TableCellTopBorder QTextFormat__Property = 18454 + QTextFormat__Property__TableCellBottomBorder QTextFormat__Property = 18455 + QTextFormat__Property__TableCellLeftBorder QTextFormat__Property = 18456 + QTextFormat__Property__TableCellRightBorder QTextFormat__Property = 18457 + QTextFormat__Property__TableCellTopBorderStyle QTextFormat__Property = 18458 + QTextFormat__Property__TableCellBottomBorderStyle QTextFormat__Property = 18459 + QTextFormat__Property__TableCellLeftBorderStyle QTextFormat__Property = 18460 + QTextFormat__Property__TableCellRightBorderStyle QTextFormat__Property = 18461 + QTextFormat__Property__TableCellTopBorderBrush QTextFormat__Property = 18462 + QTextFormat__Property__TableCellBottomBorderBrush QTextFormat__Property = 18463 + QTextFormat__Property__TableCellLeftBorderBrush QTextFormat__Property = 18464 + QTextFormat__Property__TableCellRightBorderBrush QTextFormat__Property = 18465 + QTextFormat__Property__ImageName QTextFormat__Property = 20480 + QTextFormat__Property__ImageTitle QTextFormat__Property = 20481 + QTextFormat__Property__ImageAltText QTextFormat__Property = 20482 + QTextFormat__Property__ImageWidth QTextFormat__Property = 20496 + QTextFormat__Property__ImageHeight QTextFormat__Property = 20497 + QTextFormat__Property__ImageQuality QTextFormat__Property = 20500 + QTextFormat__Property__FullWidthSelection QTextFormat__Property = 24576 + QTextFormat__Property__PageBreakPolicy QTextFormat__Property = 28672 + QTextFormat__Property__UserProperty QTextFormat__Property = 1048576 +) + +type QTextFormat__ObjectTypes int + +const ( + QTextFormat__ObjectTypes__NoObject QTextFormat__ObjectTypes = 0 + QTextFormat__ObjectTypes__ImageObject QTextFormat__ObjectTypes = 1 + QTextFormat__ObjectTypes__TableObject QTextFormat__ObjectTypes = 2 + QTextFormat__ObjectTypes__TableCellObject QTextFormat__ObjectTypes = 3 + QTextFormat__ObjectTypes__UserObject QTextFormat__ObjectTypes = 4096 +) + +type QTextFormat__PageBreakFlag int + +const ( + QTextFormat__PageBreakFlag__PageBreak_Auto QTextFormat__PageBreakFlag = 0 + QTextFormat__PageBreakFlag__PageBreak_AlwaysBefore QTextFormat__PageBreakFlag = 1 + QTextFormat__PageBreakFlag__PageBreak_AlwaysAfter QTextFormat__PageBreakFlag = 16 +) + +type QTextCharFormat__VerticalAlignment int + +const ( + QTextCharFormat__VerticalAlignment__AlignNormal QTextCharFormat__VerticalAlignment = 0 + QTextCharFormat__VerticalAlignment__AlignSuperScript QTextCharFormat__VerticalAlignment = 1 + QTextCharFormat__VerticalAlignment__AlignSubScript QTextCharFormat__VerticalAlignment = 2 + QTextCharFormat__VerticalAlignment__AlignMiddle QTextCharFormat__VerticalAlignment = 3 + QTextCharFormat__VerticalAlignment__AlignTop QTextCharFormat__VerticalAlignment = 4 + QTextCharFormat__VerticalAlignment__AlignBottom QTextCharFormat__VerticalAlignment = 5 + QTextCharFormat__VerticalAlignment__AlignBaseline QTextCharFormat__VerticalAlignment = 6 +) + +type QTextCharFormat__UnderlineStyle int + +const ( + QTextCharFormat__UnderlineStyle__NoUnderline QTextCharFormat__UnderlineStyle = 0 + QTextCharFormat__UnderlineStyle__SingleUnderline QTextCharFormat__UnderlineStyle = 1 + QTextCharFormat__UnderlineStyle__DashUnderline QTextCharFormat__UnderlineStyle = 2 + QTextCharFormat__UnderlineStyle__DotLine QTextCharFormat__UnderlineStyle = 3 + QTextCharFormat__UnderlineStyle__DashDotLine QTextCharFormat__UnderlineStyle = 4 + QTextCharFormat__UnderlineStyle__DashDotDotLine QTextCharFormat__UnderlineStyle = 5 + QTextCharFormat__UnderlineStyle__WaveUnderline QTextCharFormat__UnderlineStyle = 6 + QTextCharFormat__UnderlineStyle__SpellCheckUnderline QTextCharFormat__UnderlineStyle = 7 +) + +type QTextCharFormat__FontPropertiesInheritanceBehavior int + +const ( + QTextCharFormat__FontPropertiesInheritanceBehavior__FontPropertiesSpecifiedOnly QTextCharFormat__FontPropertiesInheritanceBehavior = 0 + QTextCharFormat__FontPropertiesInheritanceBehavior__FontPropertiesAll QTextCharFormat__FontPropertiesInheritanceBehavior = 1 +) + +type QTextBlockFormat__LineHeightTypes int + +const ( + QTextBlockFormat__LineHeightTypes__SingleHeight QTextBlockFormat__LineHeightTypes = 0 + QTextBlockFormat__LineHeightTypes__ProportionalHeight QTextBlockFormat__LineHeightTypes = 1 + QTextBlockFormat__LineHeightTypes__FixedHeight QTextBlockFormat__LineHeightTypes = 2 + QTextBlockFormat__LineHeightTypes__MinimumHeight QTextBlockFormat__LineHeightTypes = 3 + QTextBlockFormat__LineHeightTypes__LineDistanceHeight QTextBlockFormat__LineHeightTypes = 4 +) + +type QTextBlockFormat__MarkerType int + +const ( + QTextBlockFormat__MarkerType__NoMarker QTextBlockFormat__MarkerType = 0 + QTextBlockFormat__MarkerType__Unchecked QTextBlockFormat__MarkerType = 1 + QTextBlockFormat__MarkerType__Checked QTextBlockFormat__MarkerType = 2 +) + +type QTextListFormat__Style int + +const ( + QTextListFormat__Style__ListDisc QTextListFormat__Style = -1 + QTextListFormat__Style__ListCircle QTextListFormat__Style = -2 + QTextListFormat__Style__ListSquare QTextListFormat__Style = -3 + QTextListFormat__Style__ListDecimal QTextListFormat__Style = -4 + QTextListFormat__Style__ListLowerAlpha QTextListFormat__Style = -5 + QTextListFormat__Style__ListUpperAlpha QTextListFormat__Style = -6 + QTextListFormat__Style__ListLowerRoman QTextListFormat__Style = -7 + QTextListFormat__Style__ListUpperRoman QTextListFormat__Style = -8 + QTextListFormat__Style__ListStyleUndefined QTextListFormat__Style = 0 +) + +type QTextFrameFormat__Position int + +const ( + QTextFrameFormat__Position__InFlow QTextFrameFormat__Position = 0 + QTextFrameFormat__Position__FloatLeft QTextFrameFormat__Position = 1 + QTextFrameFormat__Position__FloatRight QTextFrameFormat__Position = 2 +) + +type QTextFrameFormat__BorderStyle int + +const ( + QTextFrameFormat__BorderStyle__BorderStyle_None QTextFrameFormat__BorderStyle = 0 + QTextFrameFormat__BorderStyle__BorderStyle_Dotted QTextFrameFormat__BorderStyle = 1 + QTextFrameFormat__BorderStyle__BorderStyle_Dashed QTextFrameFormat__BorderStyle = 2 + QTextFrameFormat__BorderStyle__BorderStyle_Solid QTextFrameFormat__BorderStyle = 3 + QTextFrameFormat__BorderStyle__BorderStyle_Double QTextFrameFormat__BorderStyle = 4 + QTextFrameFormat__BorderStyle__BorderStyle_DotDash QTextFrameFormat__BorderStyle = 5 + QTextFrameFormat__BorderStyle__BorderStyle_DotDotDash QTextFrameFormat__BorderStyle = 6 + QTextFrameFormat__BorderStyle__BorderStyle_Groove QTextFrameFormat__BorderStyle = 7 + QTextFrameFormat__BorderStyle__BorderStyle_Ridge QTextFrameFormat__BorderStyle = 8 + QTextFrameFormat__BorderStyle__BorderStyle_Inset QTextFrameFormat__BorderStyle = 9 + QTextFrameFormat__BorderStyle__BorderStyle_Outset QTextFrameFormat__BorderStyle = 10 +) + type QTextLength struct { h *C.QTextLength } @@ -42,7 +278,7 @@ func NewQTextLength() *QTextLength { } // NewQTextLength2 constructs a new QTextLength object. -func NewQTextLength2(typeVal uintptr, value float64) *QTextLength { +func NewQTextLength2(typeVal QTextLength__Type, value float64) *QTextLength { ret := C.QTextLength_new2((C.uintptr_t)(typeVal), (C.double)(value)) return newQTextLength(ret) } @@ -53,9 +289,9 @@ func NewQTextLength3(param1 *QTextLength) *QTextLength { return newQTextLength(ret) } -func (this *QTextLength) Type() uintptr { +func (this *QTextLength) Type() QTextLength__Type { ret := C.QTextLength_Type(this.h) - return (uintptr)(ret) + return (QTextLength__Type)(ret) } func (this *QTextLength) Value(maximumLength float64) float64 { @@ -409,13 +645,13 @@ func (this *QTextFormat) OperatorNotEqual(rhs *QTextFormat) bool { return (bool)(ret) } -func (this *QTextFormat) SetLayoutDirection(direction uintptr) { +func (this *QTextFormat) SetLayoutDirection(direction LayoutDirection) { C.QTextFormat_SetLayoutDirection(this.h, (C.uintptr_t)(direction)) } -func (this *QTextFormat) LayoutDirection() uintptr { +func (this *QTextFormat) LayoutDirection() LayoutDirection { ret := C.QTextFormat_LayoutDirection(this.h) - return (uintptr)(ret) + return (LayoutDirection)(ret) } func (this *QTextFormat) SetBackground(brush *QBrush) { @@ -500,7 +736,7 @@ func (this *QTextCharFormat) IsValid() bool { return (bool)(ret) } -func (this *QTextCharFormat) SetFont(font *QFont, behavior uintptr) { +func (this *QTextCharFormat) SetFont(font *QFont, behavior QTextCharFormat__FontPropertiesInheritanceBehavior) { C.QTextCharFormat_SetFont(this.h, font.cPointer(), (C.uintptr_t)(behavior)) } @@ -604,22 +840,22 @@ func (this *QTextCharFormat) FontItalic() bool { return (bool)(ret) } -func (this *QTextCharFormat) SetFontCapitalization(capitalization uintptr) { +func (this *QTextCharFormat) SetFontCapitalization(capitalization QFont__Capitalization) { C.QTextCharFormat_SetFontCapitalization(this.h, (C.uintptr_t)(capitalization)) } -func (this *QTextCharFormat) FontCapitalization() uintptr { +func (this *QTextCharFormat) FontCapitalization() QFont__Capitalization { ret := C.QTextCharFormat_FontCapitalization(this.h) - return (uintptr)(ret) + return (QFont__Capitalization)(ret) } -func (this *QTextCharFormat) SetFontLetterSpacingType(letterSpacingType uintptr) { +func (this *QTextCharFormat) SetFontLetterSpacingType(letterSpacingType QFont__SpacingType) { C.QTextCharFormat_SetFontLetterSpacingType(this.h, (C.uintptr_t)(letterSpacingType)) } -func (this *QTextCharFormat) FontLetterSpacingType() uintptr { +func (this *QTextCharFormat) FontLetterSpacingType() QFont__SpacingType { ret := C.QTextCharFormat_FontLetterSpacingType(this.h) - return (uintptr)(ret) + return (QFont__SpacingType)(ret) } func (this *QTextCharFormat) SetFontLetterSpacing(spacing float64) { @@ -700,31 +936,31 @@ func (this *QTextCharFormat) FontStretch() int { return (int)(ret) } -func (this *QTextCharFormat) SetFontStyleHint(hint uintptr) { +func (this *QTextCharFormat) SetFontStyleHint(hint QFont__StyleHint) { C.QTextCharFormat_SetFontStyleHint(this.h, (C.uintptr_t)(hint)) } -func (this *QTextCharFormat) SetFontStyleStrategy(strategy uintptr) { +func (this *QTextCharFormat) SetFontStyleStrategy(strategy QFont__StyleStrategy) { C.QTextCharFormat_SetFontStyleStrategy(this.h, (C.uintptr_t)(strategy)) } -func (this *QTextCharFormat) FontStyleHint() uintptr { +func (this *QTextCharFormat) FontStyleHint() QFont__StyleHint { ret := C.QTextCharFormat_FontStyleHint(this.h) - return (uintptr)(ret) + return (QFont__StyleHint)(ret) } -func (this *QTextCharFormat) FontStyleStrategy() uintptr { +func (this *QTextCharFormat) FontStyleStrategy() QFont__StyleStrategy { ret := C.QTextCharFormat_FontStyleStrategy(this.h) - return (uintptr)(ret) + return (QFont__StyleStrategy)(ret) } -func (this *QTextCharFormat) SetFontHintingPreference(hintingPreference uintptr) { +func (this *QTextCharFormat) SetFontHintingPreference(hintingPreference QFont__HintingPreference) { C.QTextCharFormat_SetFontHintingPreference(this.h, (C.uintptr_t)(hintingPreference)) } -func (this *QTextCharFormat) FontHintingPreference() uintptr { +func (this *QTextCharFormat) FontHintingPreference() QFont__HintingPreference { ret := C.QTextCharFormat_FontHintingPreference(this.h) - return (uintptr)(ret) + return (QFont__HintingPreference)(ret) } func (this *QTextCharFormat) SetFontKerning(enable bool) { @@ -736,22 +972,22 @@ func (this *QTextCharFormat) FontKerning() bool { return (bool)(ret) } -func (this *QTextCharFormat) SetUnderlineStyle(style uintptr) { +func (this *QTextCharFormat) SetUnderlineStyle(style QTextCharFormat__UnderlineStyle) { C.QTextCharFormat_SetUnderlineStyle(this.h, (C.uintptr_t)(style)) } -func (this *QTextCharFormat) UnderlineStyle() uintptr { +func (this *QTextCharFormat) UnderlineStyle() QTextCharFormat__UnderlineStyle { ret := C.QTextCharFormat_UnderlineStyle(this.h) - return (uintptr)(ret) + return (QTextCharFormat__UnderlineStyle)(ret) } -func (this *QTextCharFormat) SetVerticalAlignment(alignment uintptr) { +func (this *QTextCharFormat) SetVerticalAlignment(alignment QTextCharFormat__VerticalAlignment) { C.QTextCharFormat_SetVerticalAlignment(this.h, (C.uintptr_t)(alignment)) } -func (this *QTextCharFormat) VerticalAlignment() uintptr { +func (this *QTextCharFormat) VerticalAlignment() QTextCharFormat__VerticalAlignment { ret := C.QTextCharFormat_VerticalAlignment(this.h) - return (uintptr)(ret) + return (QTextCharFormat__VerticalAlignment)(ret) } func (this *QTextCharFormat) SetTextOutline(pen *QPen) { @@ -871,7 +1107,7 @@ func (this *QTextCharFormat) TableCellColumnSpan() int { return (int)(ret) } -func (this *QTextCharFormat) SetFontStyleHint2(hint uintptr, strategy uintptr) { +func (this *QTextCharFormat) SetFontStyleHint2(hint QFont__StyleHint, strategy QFont__StyleStrategy) { C.QTextCharFormat_SetFontStyleHint2(this.h, (C.uintptr_t)(hint), (C.uintptr_t)(strategy)) } @@ -1051,13 +1287,13 @@ func (this *QTextBlockFormat) TabPositions() []QTextOption__Tab { return ret } -func (this *QTextBlockFormat) SetMarker(marker uintptr) { +func (this *QTextBlockFormat) SetMarker(marker QTextBlockFormat__MarkerType) { C.QTextBlockFormat_SetMarker(this.h, (C.uintptr_t)(marker)) } -func (this *QTextBlockFormat) Marker() uintptr { +func (this *QTextBlockFormat) Marker() QTextBlockFormat__MarkerType { ret := C.QTextBlockFormat_Marker(this.h) - return (uintptr)(ret) + return (QTextBlockFormat__MarkerType)(ret) } func (this *QTextBlockFormat) Delete() { @@ -1104,13 +1340,13 @@ func (this *QTextListFormat) IsValid() bool { return (bool)(ret) } -func (this *QTextListFormat) SetStyle(style uintptr) { +func (this *QTextListFormat) SetStyle(style QTextListFormat__Style) { C.QTextListFormat_SetStyle(this.h, (C.uintptr_t)(style)) } -func (this *QTextListFormat) Style() uintptr { +func (this *QTextListFormat) Style() QTextListFormat__Style { ret := C.QTextListFormat_Style(this.h) - return (uintptr)(ret) + return (QTextListFormat__Style)(ret) } func (this *QTextListFormat) SetIndent(indent int) { @@ -1280,13 +1516,13 @@ func (this *QTextFrameFormat) IsValid() bool { return (bool)(ret) } -func (this *QTextFrameFormat) SetPosition(f uintptr) { +func (this *QTextFrameFormat) SetPosition(f QTextFrameFormat__Position) { C.QTextFrameFormat_SetPosition(this.h, (C.uintptr_t)(f)) } -func (this *QTextFrameFormat) Position() uintptr { +func (this *QTextFrameFormat) Position() QTextFrameFormat__Position { ret := C.QTextFrameFormat_Position(this.h) - return (uintptr)(ret) + return (QTextFrameFormat__Position)(ret) } func (this *QTextFrameFormat) SetBorder(border float64) { @@ -1313,13 +1549,13 @@ func (this *QTextFrameFormat) BorderBrush() *QBrush { return ret1 } -func (this *QTextFrameFormat) SetBorderStyle(style uintptr) { +func (this *QTextFrameFormat) SetBorderStyle(style QTextFrameFormat__BorderStyle) { C.QTextFrameFormat_SetBorderStyle(this.h, (C.uintptr_t)(style)) } -func (this *QTextFrameFormat) BorderStyle() uintptr { +func (this *QTextFrameFormat) BorderStyle() QTextFrameFormat__BorderStyle { ret := C.QTextFrameFormat_BorderStyle(this.h) - return (uintptr)(ret) + return (QTextFrameFormat__BorderStyle)(ret) } func (this *QTextFrameFormat) SetMargin(margin float64) { @@ -1660,43 +1896,43 @@ func (this *QTextTableCellFormat) SetBorder(width float64) { C.QTextTableCellFormat_SetBorder(this.h, (C.double)(width)) } -func (this *QTextTableCellFormat) SetTopBorderStyle(style uintptr) { +func (this *QTextTableCellFormat) SetTopBorderStyle(style QTextFrameFormat__BorderStyle) { C.QTextTableCellFormat_SetTopBorderStyle(this.h, (C.uintptr_t)(style)) } -func (this *QTextTableCellFormat) TopBorderStyle() uintptr { +func (this *QTextTableCellFormat) TopBorderStyle() QTextFrameFormat__BorderStyle { ret := C.QTextTableCellFormat_TopBorderStyle(this.h) - return (uintptr)(ret) + return (QTextFrameFormat__BorderStyle)(ret) } -func (this *QTextTableCellFormat) SetBottomBorderStyle(style uintptr) { +func (this *QTextTableCellFormat) SetBottomBorderStyle(style QTextFrameFormat__BorderStyle) { C.QTextTableCellFormat_SetBottomBorderStyle(this.h, (C.uintptr_t)(style)) } -func (this *QTextTableCellFormat) BottomBorderStyle() uintptr { +func (this *QTextTableCellFormat) BottomBorderStyle() QTextFrameFormat__BorderStyle { ret := C.QTextTableCellFormat_BottomBorderStyle(this.h) - return (uintptr)(ret) + return (QTextFrameFormat__BorderStyle)(ret) } -func (this *QTextTableCellFormat) SetLeftBorderStyle(style uintptr) { +func (this *QTextTableCellFormat) SetLeftBorderStyle(style QTextFrameFormat__BorderStyle) { C.QTextTableCellFormat_SetLeftBorderStyle(this.h, (C.uintptr_t)(style)) } -func (this *QTextTableCellFormat) LeftBorderStyle() uintptr { +func (this *QTextTableCellFormat) LeftBorderStyle() QTextFrameFormat__BorderStyle { ret := C.QTextTableCellFormat_LeftBorderStyle(this.h) - return (uintptr)(ret) + return (QTextFrameFormat__BorderStyle)(ret) } -func (this *QTextTableCellFormat) SetRightBorderStyle(style uintptr) { +func (this *QTextTableCellFormat) SetRightBorderStyle(style QTextFrameFormat__BorderStyle) { C.QTextTableCellFormat_SetRightBorderStyle(this.h, (C.uintptr_t)(style)) } -func (this *QTextTableCellFormat) RightBorderStyle() uintptr { +func (this *QTextTableCellFormat) RightBorderStyle() QTextFrameFormat__BorderStyle { ret := C.QTextTableCellFormat_RightBorderStyle(this.h) - return (uintptr)(ret) + return (QTextFrameFormat__BorderStyle)(ret) } -func (this *QTextTableCellFormat) SetBorderStyle(style uintptr) { +func (this *QTextTableCellFormat) SetBorderStyle(style QTextFrameFormat__BorderStyle) { C.QTextTableCellFormat_SetBorderStyle(this.h, (C.uintptr_t)(style)) } diff --git a/qt/gen_qtextlayout.go b/qt/gen_qtextlayout.go index be4d6b65..85369303 100644 --- a/qt/gen_qtextlayout.go +++ b/qt/gen_qtextlayout.go @@ -13,6 +13,27 @@ import ( "unsafe" ) +type QTextLayout__CursorMode int + +const ( + QTextLayout__CursorMode__SkipCharacters QTextLayout__CursorMode = 0 + QTextLayout__CursorMode__SkipWords QTextLayout__CursorMode = 1 +) + +type QTextLine__Edge int + +const ( + QTextLine__Edge__Leading QTextLine__Edge = 0 + QTextLine__Edge__Trailing QTextLine__Edge = 1 +) + +type QTextLine__CursorPosition int + +const ( + QTextLine__CursorPosition__CursorBetweenCharacters QTextLine__CursorPosition = 0 + QTextLine__CursorPosition__CursorOnCharacter QTextLine__CursorPosition = 1 +) + type QTextInlineObject struct { h *C.QTextInlineObject } @@ -77,9 +98,9 @@ func (this *QTextInlineObject) Height() float64 { return (float64)(ret) } -func (this *QTextInlineObject) TextDirection() uintptr { +func (this *QTextInlineObject) TextDirection() LayoutDirection { ret := C.QTextInlineObject_TextDirection(this.h) - return (uintptr)(ret) + return (LayoutDirection)(ret) } func (this *QTextInlineObject) SetWidth(w float64) { @@ -303,13 +324,13 @@ func (this *QTextLayout) CacheEnabled() bool { return (bool)(ret) } -func (this *QTextLayout) SetCursorMoveStyle(style uintptr) { +func (this *QTextLayout) SetCursorMoveStyle(style CursorMoveStyle) { C.QTextLayout_SetCursorMoveStyle(this.h, (C.uintptr_t)(style)) } -func (this *QTextLayout) CursorMoveStyle() uintptr { +func (this *QTextLayout) CursorMoveStyle() CursorMoveStyle { ret := C.QTextLayout_CursorMoveStyle(this.h) - return (uintptr)(ret) + return (CursorMoveStyle)(ret) } func (this *QTextLayout) BeginLayout() { @@ -452,12 +473,12 @@ func (this *QTextLayout) SetFlags(flags int) { C.QTextLayout_SetFlags(this.h, (C.int)(flags)) } -func (this *QTextLayout) NextCursorPosition2(oldPos int, mode uintptr) int { +func (this *QTextLayout) NextCursorPosition2(oldPos int, mode QTextLayout__CursorMode) int { ret := C.QTextLayout_NextCursorPosition2(this.h, (C.int)(oldPos), (C.uintptr_t)(mode)) return (int)(ret) } -func (this *QTextLayout) PreviousCursorPosition2(oldPos int, mode uintptr) int { +func (this *QTextLayout) PreviousCursorPosition2(oldPos int, mode QTextLayout__CursorMode) int { ret := C.QTextLayout_PreviousCursorPosition2(this.h, (C.int)(oldPos), (C.uintptr_t)(mode)) return (int)(ret) } @@ -695,17 +716,17 @@ func (this *QTextLine) GlyphRuns() []QGlyphRun { return ret } -func (this *QTextLine) CursorToX2(cursorPos *int, edge uintptr) float64 { +func (this *QTextLine) CursorToX2(cursorPos *int, edge QTextLine__Edge) float64 { ret := C.QTextLine_CursorToX2(this.h, (*C.int)(unsafe.Pointer(cursorPos)), (C.uintptr_t)(edge)) return (float64)(ret) } -func (this *QTextLine) CursorToX22(cursorPos int, edge uintptr) float64 { +func (this *QTextLine) CursorToX22(cursorPos int, edge QTextLine__Edge) float64 { ret := C.QTextLine_CursorToX22(this.h, (C.int)(cursorPos), (C.uintptr_t)(edge)) return (float64)(ret) } -func (this *QTextLine) XToCursor2(x float64, param2 uintptr) int { +func (this *QTextLine) XToCursor2(x float64, param2 QTextLine__CursorPosition) int { ret := C.QTextLine_XToCursor2(this.h, (C.double)(x), (C.uintptr_t)(param2)) return (int)(ret) } diff --git a/qt/gen_qtextobject.go b/qt/gen_qtextobject.go index e317836a..c7044c3e 100644 --- a/qt/gen_qtextobject.go +++ b/qt/gen_qtextobject.go @@ -625,9 +625,9 @@ func (this *QTextBlock) CharFormatIndex() int { return (int)(ret) } -func (this *QTextBlock) TextDirection() uintptr { +func (this *QTextBlock) TextDirection() LayoutDirection { ret := C.QTextBlock_TextDirection(this.h) - return (uintptr)(ret) + return (LayoutDirection)(ret) } func (this *QTextBlock) Text() string { diff --git a/qt/gen_qtextoption.go b/qt/gen_qtextoption.go index 77543886..b1ed19fe 100644 --- a/qt/gen_qtextoption.go +++ b/qt/gen_qtextoption.go @@ -12,6 +12,36 @@ import ( "unsafe" ) +type QTextOption__TabType int + +const ( + QTextOption__TabType__LeftTab QTextOption__TabType = 0 + QTextOption__TabType__RightTab QTextOption__TabType = 1 + QTextOption__TabType__CenterTab QTextOption__TabType = 2 + QTextOption__TabType__DelimiterTab QTextOption__TabType = 3 +) + +type QTextOption__WrapMode int + +const ( + QTextOption__WrapMode__NoWrap QTextOption__WrapMode = 0 + QTextOption__WrapMode__WordWrap QTextOption__WrapMode = 1 + QTextOption__WrapMode__ManualWrap QTextOption__WrapMode = 2 + QTextOption__WrapMode__WrapAnywhere QTextOption__WrapMode = 3 + QTextOption__WrapMode__WrapAtWordBoundaryOrAnywhere QTextOption__WrapMode = 4 +) + +type QTextOption__Flag int + +const ( + QTextOption__Flag__ShowTabsAndSpaces QTextOption__Flag = 1 + QTextOption__Flag__ShowLineAndParagraphSeparators QTextOption__Flag = 2 + QTextOption__Flag__AddSpaceForLineAndParagraphSeparators QTextOption__Flag = 4 + QTextOption__Flag__SuppressColors QTextOption__Flag = 8 + QTextOption__Flag__ShowDocumentTerminator QTextOption__Flag = 16 + QTextOption__Flag__IncludeTrailingSpaces QTextOption__Flag = 2147483648 +) + type QTextOption struct { h *C.QTextOption } @@ -65,22 +95,22 @@ func (this *QTextOption) Alignment() int { return (int)(ret) } -func (this *QTextOption) SetTextDirection(aDirection uintptr) { +func (this *QTextOption) SetTextDirection(aDirection LayoutDirection) { C.QTextOption_SetTextDirection(this.h, (C.uintptr_t)(aDirection)) } -func (this *QTextOption) TextDirection() uintptr { +func (this *QTextOption) TextDirection() LayoutDirection { ret := C.QTextOption_TextDirection(this.h) - return (uintptr)(ret) + return (LayoutDirection)(ret) } -func (this *QTextOption) SetWrapMode(wrap uintptr) { +func (this *QTextOption) SetWrapMode(wrap QTextOption__WrapMode) { C.QTextOption_SetWrapMode(this.h, (C.uintptr_t)(wrap)) } -func (this *QTextOption) WrapMode() uintptr { +func (this *QTextOption) WrapMode() QTextOption__WrapMode { ret := C.QTextOption_WrapMode(this.h) - return (uintptr)(ret) + return (QTextOption__WrapMode)(ret) } func (this *QTextOption) SetFlags(flags int) { @@ -198,7 +228,7 @@ func NewQTextOption__Tab() *QTextOption__Tab { } // NewQTextOption__Tab2 constructs a new QTextOption::Tab object. -func NewQTextOption__Tab2(pos float64, tabType uintptr) *QTextOption__Tab { +func NewQTextOption__Tab2(pos float64, tabType QTextOption__TabType) *QTextOption__Tab { ret := C.QTextOption__Tab_new2((C.double)(pos), (C.uintptr_t)(tabType)) return newQTextOption__Tab(ret) } @@ -210,7 +240,7 @@ func NewQTextOption__Tab3(param1 *QTextOption__Tab) *QTextOption__Tab { } // NewQTextOption__Tab4 constructs a new QTextOption::Tab object. -func NewQTextOption__Tab4(pos float64, tabType uintptr, delim QChar) *QTextOption__Tab { +func NewQTextOption__Tab4(pos float64, tabType QTextOption__TabType, delim QChar) *QTextOption__Tab { ret := C.QTextOption__Tab_new4((C.double)(pos), (C.uintptr_t)(tabType), delim.cPointer()) return newQTextOption__Tab(ret) } diff --git a/qt/gen_qtextstream.go b/qt/gen_qtextstream.go index 8be4fee6..84c0c05f 100644 --- a/qt/gen_qtextstream.go +++ b/qt/gen_qtextstream.go @@ -13,6 +13,42 @@ import ( "unsafe" ) +type QTextStream__RealNumberNotation int + +const ( + QTextStream__RealNumberNotation__SmartNotation QTextStream__RealNumberNotation = 0 + QTextStream__RealNumberNotation__FixedNotation QTextStream__RealNumberNotation = 1 + QTextStream__RealNumberNotation__ScientificNotation QTextStream__RealNumberNotation = 2 +) + +type QTextStream__FieldAlignment int + +const ( + QTextStream__FieldAlignment__AlignLeft QTextStream__FieldAlignment = 0 + QTextStream__FieldAlignment__AlignRight QTextStream__FieldAlignment = 1 + QTextStream__FieldAlignment__AlignCenter QTextStream__FieldAlignment = 2 + QTextStream__FieldAlignment__AlignAccountingStyle QTextStream__FieldAlignment = 3 +) + +type QTextStream__Status int + +const ( + QTextStream__Status__Ok QTextStream__Status = 0 + QTextStream__Status__ReadPastEnd QTextStream__Status = 1 + QTextStream__Status__ReadCorruptData QTextStream__Status = 2 + QTextStream__Status__WriteFailed QTextStream__Status = 3 +) + +type QTextStream__NumberFlag int + +const ( + QTextStream__NumberFlag__ShowBase QTextStream__NumberFlag = 1 + QTextStream__NumberFlag__ForcePoint QTextStream__NumberFlag = 2 + QTextStream__NumberFlag__ForceSign QTextStream__NumberFlag = 4 + QTextStream__NumberFlag__UppercaseBase QTextStream__NumberFlag = 8 + QTextStream__NumberFlag__UppercaseDigits QTextStream__NumberFlag = 16 +) + type QTextStream struct { h *C.QTextStream } @@ -137,12 +173,12 @@ func (this *QTextStream) String() string { return ret } -func (this *QTextStream) Status() uintptr { +func (this *QTextStream) Status() QTextStream__Status { ret := C.QTextStream_Status(this.h) - return (uintptr)(ret) + return (QTextStream__Status)(ret) } -func (this *QTextStream) SetStatus(status uintptr) { +func (this *QTextStream) SetStatus(status QTextStream__Status) { C.QTextStream_SetStatus(this.h, (C.uintptr_t)(status)) } @@ -204,13 +240,13 @@ func (this *QTextStream) Read(maxlen int64) string { return ret } -func (this *QTextStream) SetFieldAlignment(alignment uintptr) { +func (this *QTextStream) SetFieldAlignment(alignment QTextStream__FieldAlignment) { C.QTextStream_SetFieldAlignment(this.h, (C.uintptr_t)(alignment)) } -func (this *QTextStream) FieldAlignment() uintptr { +func (this *QTextStream) FieldAlignment() QTextStream__FieldAlignment { ret := C.QTextStream_FieldAlignment(this.h) - return (uintptr)(ret) + return (QTextStream__FieldAlignment)(ret) } func (this *QTextStream) SetPadChar(ch QChar) { @@ -255,13 +291,13 @@ func (this *QTextStream) IntegerBase() int { return (int)(ret) } -func (this *QTextStream) SetRealNumberNotation(notation uintptr) { +func (this *QTextStream) SetRealNumberNotation(notation QTextStream__RealNumberNotation) { C.QTextStream_SetRealNumberNotation(this.h, (C.uintptr_t)(notation)) } -func (this *QTextStream) RealNumberNotation() uintptr { +func (this *QTextStream) RealNumberNotation() QTextStream__RealNumberNotation { ret := C.QTextStream_RealNumberNotation(this.h) - return (uintptr)(ret) + return (QTextStream__RealNumberNotation)(ret) } func (this *QTextStream) SetRealNumberPrecision(precision int) { diff --git a/qt/gen_qthread.go b/qt/gen_qthread.go index f6a504ab..72c9e8d4 100644 --- a/qt/gen_qthread.go +++ b/qt/gen_qthread.go @@ -12,6 +12,19 @@ import ( "unsafe" ) +type QThread__Priority int + +const ( + QThread__Priority__IdlePriority QThread__Priority = 0 + QThread__Priority__LowestPriority QThread__Priority = 1 + QThread__Priority__LowPriority QThread__Priority = 2 + QThread__Priority__NormalPriority QThread__Priority = 3 + QThread__Priority__HighPriority QThread__Priority = 4 + QThread__Priority__HighestPriority QThread__Priority = 5 + QThread__Priority__TimeCriticalPriority QThread__Priority = 6 + QThread__Priority__InheritPriority QThread__Priority = 7 +) + type QThread struct { h *C.QThread *QObject @@ -88,13 +101,13 @@ func QThread_YieldCurrentThread() { C.QThread_YieldCurrentThread() } -func (this *QThread) SetPriority(priority uintptr) { +func (this *QThread) SetPriority(priority QThread__Priority) { C.QThread_SetPriority(this.h, (C.uintptr_t)(priority)) } -func (this *QThread) Priority() uintptr { +func (this *QThread) Priority() QThread__Priority { ret := C.QThread_Priority(this.h) - return (uintptr)(ret) + return (QThread__Priority)(ret) } func (this *QThread) IsFinished() bool { @@ -238,7 +251,7 @@ func (this *QThread) Exit1(retcode int) { C.QThread_Exit1(this.h, (C.int)(retcode)) } -func (this *QThread) Start1(param1 uintptr) { +func (this *QThread) Start1(param1 QThread__Priority) { C.QThread_Start1(this.h, (C.uintptr_t)(param1)) } diff --git a/qt/gen_qtimeline.go b/qt/gen_qtimeline.go index df240442..74a44adf 100644 --- a/qt/gen_qtimeline.go +++ b/qt/gen_qtimeline.go @@ -13,6 +13,32 @@ import ( "unsafe" ) +type QTimeLine__State int + +const ( + QTimeLine__State__NotRunning QTimeLine__State = 0 + QTimeLine__State__Paused QTimeLine__State = 1 + QTimeLine__State__Running QTimeLine__State = 2 +) + +type QTimeLine__Direction int + +const ( + QTimeLine__Direction__Forward QTimeLine__Direction = 0 + QTimeLine__Direction__Backward QTimeLine__Direction = 1 +) + +type QTimeLine__CurveShape int + +const ( + QTimeLine__CurveShape__EaseInCurve QTimeLine__CurveShape = 0 + QTimeLine__CurveShape__EaseOutCurve QTimeLine__CurveShape = 1 + QTimeLine__CurveShape__EaseInOutCurve QTimeLine__CurveShape = 2 + QTimeLine__CurveShape__LinearCurve QTimeLine__CurveShape = 3 + QTimeLine__CurveShape__SineCurve QTimeLine__CurveShape = 4 + QTimeLine__CurveShape__CosineCurve QTimeLine__CurveShape = 5 +) + type QTimeLine struct { h *C.QTimeLine *QObject @@ -81,9 +107,9 @@ func QTimeLine_TrUtf8(s string) string { return ret } -func (this *QTimeLine) State() uintptr { +func (this *QTimeLine) State() QTimeLine__State { ret := C.QTimeLine_State(this.h) - return (uintptr)(ret) + return (QTimeLine__State)(ret) } func (this *QTimeLine) LoopCount() int { @@ -95,12 +121,12 @@ func (this *QTimeLine) SetLoopCount(count int) { C.QTimeLine_SetLoopCount(this.h, (C.int)(count)) } -func (this *QTimeLine) Direction() uintptr { +func (this *QTimeLine) Direction() QTimeLine__Direction { ret := C.QTimeLine_Direction(this.h) - return (uintptr)(ret) + return (QTimeLine__Direction)(ret) } -func (this *QTimeLine) SetDirection(direction uintptr) { +func (this *QTimeLine) SetDirection(direction QTimeLine__Direction) { C.QTimeLine_SetDirection(this.h, (C.uintptr_t)(direction)) } @@ -144,12 +170,12 @@ func (this *QTimeLine) SetUpdateInterval(interval int) { C.QTimeLine_SetUpdateInterval(this.h, (C.int)(interval)) } -func (this *QTimeLine) CurveShape() uintptr { +func (this *QTimeLine) CurveShape() QTimeLine__CurveShape { ret := C.QTimeLine_CurveShape(this.h) - return (uintptr)(ret) + return (QTimeLine__CurveShape)(ret) } -func (this *QTimeLine) SetCurveShape(shape uintptr) { +func (this *QTimeLine) SetCurveShape(shape QTimeLine__CurveShape) { C.QTimeLine_SetCurveShape(this.h, (C.uintptr_t)(shape)) } diff --git a/qt/gen_qtimer.go b/qt/gen_qtimer.go index 47f400f3..e9b27195 100644 --- a/qt/gen_qtimer.go +++ b/qt/gen_qtimer.go @@ -98,13 +98,13 @@ func (this *QTimer) RemainingTime() int { return (int)(ret) } -func (this *QTimer) SetTimerType(atype uintptr) { +func (this *QTimer) SetTimerType(atype TimerType) { C.QTimer_SetTimerType(this.h, (C.uintptr_t)(atype)) } -func (this *QTimer) TimerType() uintptr { +func (this *QTimer) TimerType() TimerType { ret := C.QTimer_TimerType(this.h) - return (uintptr)(ret) + return (TimerType)(ret) } func (this *QTimer) SetSingleShot(singleShot bool) { diff --git a/qt/gen_qtimezone.go b/qt/gen_qtimezone.go index cf9a24e0..63614542 100644 --- a/qt/gen_qtimezone.go +++ b/qt/gen_qtimezone.go @@ -13,6 +13,30 @@ import ( "unsafe" ) +type QTimeZone__ int + +const ( + QTimeZone____MinUtcOffsetSecs QTimeZone__ = -50400 + QTimeZone____MaxUtcOffsetSecs QTimeZone__ = 50400 +) + +type QTimeZone__TimeType int + +const ( + QTimeZone__TimeType__StandardTime QTimeZone__TimeType = 0 + QTimeZone__TimeType__DaylightTime QTimeZone__TimeType = 1 + QTimeZone__TimeType__GenericTime QTimeZone__TimeType = 2 +) + +type QTimeZone__NameType int + +const ( + QTimeZone__NameType__DefaultName QTimeZone__NameType = 0 + QTimeZone__NameType__LongName QTimeZone__NameType = 1 + QTimeZone__NameType__ShortName QTimeZone__NameType = 2 + QTimeZone__NameType__OffsetName QTimeZone__NameType = 3 +) + type QTimeZone struct { h *C.QTimeZone } @@ -70,7 +94,7 @@ func NewQTimeZone5(other *QTimeZone) *QTimeZone { } // NewQTimeZone6 constructs a new QTimeZone object. -func NewQTimeZone6(zoneId *QByteArray, offsetSeconds int, name string, abbreviation string, country uintptr) *QTimeZone { +func NewQTimeZone6(zoneId *QByteArray, offsetSeconds int, name string, abbreviation string, country QLocale__Country) *QTimeZone { name_Cstring := C.CString(name) defer C.free(unsafe.Pointer(name_Cstring)) abbreviation_Cstring := C.CString(abbreviation) @@ -80,7 +104,7 @@ func NewQTimeZone6(zoneId *QByteArray, offsetSeconds int, name string, abbreviat } // NewQTimeZone7 constructs a new QTimeZone object. -func NewQTimeZone7(zoneId *QByteArray, offsetSeconds int, name string, abbreviation string, country uintptr, comment string) *QTimeZone { +func NewQTimeZone7(zoneId *QByteArray, offsetSeconds int, name string, abbreviation string, country QLocale__Country, comment string) *QTimeZone { name_Cstring := C.CString(name) defer C.free(unsafe.Pointer(name_Cstring)) abbreviation_Cstring := C.CString(abbreviation) @@ -125,9 +149,9 @@ func (this *QTimeZone) Id() *QByteArray { return ret1 } -func (this *QTimeZone) Country() uintptr { +func (this *QTimeZone) Country() QLocale__Country { ret := C.QTimeZone_Country(this.h) - return (uintptr)(ret) + return (QLocale__Country)(ret) } func (this *QTimeZone) Comment() string { @@ -148,7 +172,7 @@ func (this *QTimeZone) DisplayName(atDateTime *QDateTime) string { return ret } -func (this *QTimeZone) DisplayNameWithTimeType(timeType uintptr) string { +func (this *QTimeZone) DisplayNameWithTimeType(timeType QTimeZone__TimeType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QTimeZone_DisplayNameWithTimeType(this.h, (C.uintptr_t)(timeType), &_out, &_out_Strlen) @@ -293,7 +317,7 @@ func QTimeZone_AvailableTimeZoneIds() []QByteArray { return ret } -func QTimeZone_AvailableTimeZoneIdsWithCountry(country uintptr) []QByteArray { +func QTimeZone_AvailableTimeZoneIdsWithCountry(country QLocale__Country) []QByteArray { var _out **C.QByteArray = nil var _out_len C.size_t = 0 C.QTimeZone_AvailableTimeZoneIdsWithCountry((C.uintptr_t)(country), &_out, &_out_len) @@ -341,7 +365,7 @@ func QTimeZone_WindowsIdToDefaultIanaId(windowsId *QByteArray) *QByteArray { return ret1 } -func QTimeZone_WindowsIdToDefaultIanaId2(windowsId *QByteArray, country uintptr) *QByteArray { +func QTimeZone_WindowsIdToDefaultIanaId2(windowsId *QByteArray, country QLocale__Country) *QByteArray { ret := C.QTimeZone_WindowsIdToDefaultIanaId2(windowsId.cPointer(), (C.uintptr_t)(country)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQByteArray(ret) @@ -365,7 +389,7 @@ func QTimeZone_WindowsIdToIanaIds(windowsId *QByteArray) []QByteArray { return ret } -func QTimeZone_WindowsIdToIanaIds2(windowsId *QByteArray, country uintptr) []QByteArray { +func QTimeZone_WindowsIdToIanaIds2(windowsId *QByteArray, country QLocale__Country) []QByteArray { var _out **C.QByteArray = nil var _out_len C.size_t = 0 C.QTimeZone_WindowsIdToIanaIds2(windowsId.cPointer(), (C.uintptr_t)(country), &_out, &_out_len) @@ -378,7 +402,7 @@ func QTimeZone_WindowsIdToIanaIds2(windowsId *QByteArray, country uintptr) []QBy return ret } -func (this *QTimeZone) DisplayName2(atDateTime *QDateTime, nameType uintptr) string { +func (this *QTimeZone) DisplayName2(atDateTime *QDateTime, nameType QTimeZone__NameType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QTimeZone_DisplayName2(this.h, atDateTime.cPointer(), (C.uintptr_t)(nameType), &_out, &_out_Strlen) @@ -387,7 +411,7 @@ func (this *QTimeZone) DisplayName2(atDateTime *QDateTime, nameType uintptr) str return ret } -func (this *QTimeZone) DisplayName3(atDateTime *QDateTime, nameType uintptr, locale *QLocale) string { +func (this *QTimeZone) DisplayName3(atDateTime *QDateTime, nameType QTimeZone__NameType, locale *QLocale) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QTimeZone_DisplayName3(this.h, atDateTime.cPointer(), (C.uintptr_t)(nameType), locale.cPointer(), &_out, &_out_Strlen) @@ -396,7 +420,7 @@ func (this *QTimeZone) DisplayName3(atDateTime *QDateTime, nameType uintptr, loc return ret } -func (this *QTimeZone) DisplayName22(timeType uintptr, nameType uintptr) string { +func (this *QTimeZone) DisplayName22(timeType QTimeZone__TimeType, nameType QTimeZone__NameType) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QTimeZone_DisplayName22(this.h, (C.uintptr_t)(timeType), (C.uintptr_t)(nameType), &_out, &_out_Strlen) @@ -405,7 +429,7 @@ func (this *QTimeZone) DisplayName22(timeType uintptr, nameType uintptr) string return ret } -func (this *QTimeZone) DisplayName32(timeType uintptr, nameType uintptr, locale *QLocale) string { +func (this *QTimeZone) DisplayName32(timeType QTimeZone__TimeType, nameType QTimeZone__NameType, locale *QLocale) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QTimeZone_DisplayName32(this.h, (C.uintptr_t)(timeType), (C.uintptr_t)(nameType), locale.cPointer(), &_out, &_out_Strlen) diff --git a/qt/gen_qtoolbar.go b/qt/gen_qtoolbar.go index 33d27edc..afbdc54b 100644 --- a/qt/gen_qtoolbar.go +++ b/qt/gen_qtoolbar.go @@ -110,18 +110,18 @@ func (this *QToolBar) AllowedAreas() int { return (int)(ret) } -func (this *QToolBar) IsAreaAllowed(area uintptr) bool { +func (this *QToolBar) IsAreaAllowed(area ToolBarArea) bool { ret := C.QToolBar_IsAreaAllowed(this.h, (C.uintptr_t)(area)) return (bool)(ret) } -func (this *QToolBar) SetOrientation(orientation uintptr) { +func (this *QToolBar) SetOrientation(orientation Orientation) { C.QToolBar_SetOrientation(this.h, (C.uintptr_t)(orientation)) } -func (this *QToolBar) Orientation() uintptr { +func (this *QToolBar) Orientation() Orientation { ret := C.QToolBar_Orientation(this.h) - return (uintptr)(ret) + return (Orientation)(ret) } func (this *QToolBar) Clear() { @@ -199,9 +199,9 @@ func (this *QToolBar) IconSize() *QSize { return ret1 } -func (this *QToolBar) ToolButtonStyle() uintptr { +func (this *QToolBar) ToolButtonStyle() ToolButtonStyle { ret := C.QToolBar_ToolButtonStyle(this.h) - return (uintptr)(ret) + return (ToolButtonStyle)(ret) } func (this *QToolBar) WidgetForAction(action *QAction) *QWidget { @@ -227,7 +227,7 @@ func (this *QToolBar) SetIconSize(iconSize *QSize) { C.QToolBar_SetIconSize(this.h, iconSize.cPointer()) } -func (this *QToolBar) SetToolButtonStyle(toolButtonStyle uintptr) { +func (this *QToolBar) SetToolButtonStyle(toolButtonStyle ToolButtonStyle) { C.QToolBar_SetToolButtonStyle(this.h, (C.uintptr_t)(toolButtonStyle)) } @@ -267,7 +267,7 @@ func (this *QToolBar) OnAllowedAreasChanged(slot func()) { C.QToolBar_connect_AllowedAreasChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QToolBar) OrientationChanged(orientation uintptr) { +func (this *QToolBar) OrientationChanged(orientation Orientation) { C.QToolBar_OrientationChanged(this.h, (C.uintptr_t)(orientation)) } @@ -291,7 +291,7 @@ func (this *QToolBar) OnIconSizeChanged(slot func()) { C.QToolBar_connect_IconSizeChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QToolBar) ToolButtonStyleChanged(toolButtonStyle uintptr) { +func (this *QToolBar) ToolButtonStyleChanged(toolButtonStyle ToolButtonStyle) { C.QToolBar_ToolButtonStyleChanged(this.h, (C.uintptr_t)(toolButtonStyle)) } diff --git a/qt/gen_qtoolbutton.go b/qt/gen_qtoolbutton.go index 1749a9de..99b8f74b 100644 --- a/qt/gen_qtoolbutton.go +++ b/qt/gen_qtoolbutton.go @@ -14,6 +14,14 @@ import ( "unsafe" ) +type QToolButton__ToolButtonPopupMode int + +const ( + QToolButton__ToolButtonPopupMode__DelayedPopup QToolButton__ToolButtonPopupMode = 0 + QToolButton__ToolButtonPopupMode__MenuButtonPopup QToolButton__ToolButtonPopupMode = 1 + QToolButton__ToolButtonPopupMode__InstantPopup QToolButton__ToolButtonPopupMode = 2 +) + type QToolButton struct { h *C.QToolButton *QAbstractButton @@ -98,17 +106,17 @@ func (this *QToolButton) MinimumSizeHint() *QSize { return ret1 } -func (this *QToolButton) ToolButtonStyle() uintptr { +func (this *QToolButton) ToolButtonStyle() ToolButtonStyle { ret := C.QToolButton_ToolButtonStyle(this.h) - return (uintptr)(ret) + return (ToolButtonStyle)(ret) } -func (this *QToolButton) ArrowType() uintptr { +func (this *QToolButton) ArrowType() ArrowType { ret := C.QToolButton_ArrowType(this.h) - return (uintptr)(ret) + return (ArrowType)(ret) } -func (this *QToolButton) SetArrowType(typeVal uintptr) { +func (this *QToolButton) SetArrowType(typeVal ArrowType) { C.QToolButton_SetArrowType(this.h, (C.uintptr_t)(typeVal)) } @@ -121,13 +129,13 @@ func (this *QToolButton) Menu() *QMenu { return newQMenu_U(unsafe.Pointer(ret)) } -func (this *QToolButton) SetPopupMode(mode uintptr) { +func (this *QToolButton) SetPopupMode(mode QToolButton__ToolButtonPopupMode) { C.QToolButton_SetPopupMode(this.h, (C.uintptr_t)(mode)) } -func (this *QToolButton) PopupMode() uintptr { +func (this *QToolButton) PopupMode() QToolButton__ToolButtonPopupMode { ret := C.QToolButton_PopupMode(this.h) - return (uintptr)(ret) + return (QToolButton__ToolButtonPopupMode)(ret) } func (this *QToolButton) DefaultAction() *QAction { @@ -148,7 +156,7 @@ func (this *QToolButton) ShowMenu() { C.QToolButton_ShowMenu(this.h) } -func (this *QToolButton) SetToolButtonStyle(style uintptr) { +func (this *QToolButton) SetToolButtonStyle(style ToolButtonStyle) { C.QToolButton_SetToolButtonStyle(this.h, (C.uintptr_t)(style)) } diff --git a/qt/gen_qtouchdevice.go b/qt/gen_qtouchdevice.go index 6dd9d2b0..f95617fd 100644 --- a/qt/gen_qtouchdevice.go +++ b/qt/gen_qtouchdevice.go @@ -12,6 +12,25 @@ import ( "unsafe" ) +type QTouchDevice__DeviceType int + +const ( + QTouchDevice__DeviceType__TouchScreen QTouchDevice__DeviceType = 0 + QTouchDevice__DeviceType__TouchPad QTouchDevice__DeviceType = 1 +) + +type QTouchDevice__CapabilityFlag int + +const ( + QTouchDevice__CapabilityFlag__Position QTouchDevice__CapabilityFlag = 1 + QTouchDevice__CapabilityFlag__Area QTouchDevice__CapabilityFlag = 2 + QTouchDevice__CapabilityFlag__Pressure QTouchDevice__CapabilityFlag = 4 + QTouchDevice__CapabilityFlag__Velocity QTouchDevice__CapabilityFlag = 8 + QTouchDevice__CapabilityFlag__RawPositions QTouchDevice__CapabilityFlag = 16 + QTouchDevice__CapabilityFlag__NormalizedPosition QTouchDevice__CapabilityFlag = 32 + QTouchDevice__CapabilityFlag__MouseEmulation QTouchDevice__CapabilityFlag = 64 +) + type QTouchDevice struct { h *C.QTouchDevice } @@ -62,9 +81,9 @@ func (this *QTouchDevice) Name() string { return ret } -func (this *QTouchDevice) Type() uintptr { +func (this *QTouchDevice) Type() QTouchDevice__DeviceType { ret := C.QTouchDevice_Type(this.h) - return (uintptr)(ret) + return (QTouchDevice__DeviceType)(ret) } func (this *QTouchDevice) Capabilities() int { @@ -83,7 +102,7 @@ func (this *QTouchDevice) SetName(name string) { C.QTouchDevice_SetName(this.h, name_Cstring, C.size_t(len(name))) } -func (this *QTouchDevice) SetType(devType uintptr) { +func (this *QTouchDevice) SetType(devType QTouchDevice__DeviceType) { C.QTouchDevice_SetType(this.h, (C.uintptr_t)(devType)) } diff --git a/qt/gen_qtransform.go b/qt/gen_qtransform.go index 2ce3267d..915718b9 100644 --- a/qt/gen_qtransform.go +++ b/qt/gen_qtransform.go @@ -13,6 +13,17 @@ import ( "unsafe" ) +type QTransform__TransformationType int + +const ( + QTransform__TransformationType__TxNone QTransform__TransformationType = 0 + QTransform__TransformationType__TxTranslate QTransform__TransformationType = 1 + QTransform__TransformationType__TxScale QTransform__TransformationType = 2 + QTransform__TransformationType__TxRotate QTransform__TransformationType = 4 + QTransform__TransformationType__TxShear QTransform__TransformationType = 8 + QTransform__TransformationType__TxProject QTransform__TransformationType = 16 +) + type QTransform struct { h *C.QTransform } @@ -36,7 +47,7 @@ func newQTransform_U(h unsafe.Pointer) *QTransform { } // NewQTransform constructs a new QTransform object. -func NewQTransform(param1 uintptr) *QTransform { +func NewQTransform(param1 Initialization) *QTransform { ret := C.QTransform_new((C.uintptr_t)(param1)) return newQTransform(ret) } @@ -111,9 +122,9 @@ func (this *QTransform) IsTranslating() bool { return (bool)(ret) } -func (this *QTransform) Type() uintptr { +func (this *QTransform) Type() QTransform__TransformationType { ret := C.QTransform_Type(this.h) - return (uintptr)(ret) + return (QTransform__TransformationType)(ret) } func (this *QTransform) Determinant() float64 { @@ -427,12 +438,12 @@ func (this *QTransform) Inverted1(invertible *bool) *QTransform { return ret1 } -func (this *QTransform) Rotate2(a float64, axis uintptr) *QTransform { +func (this *QTransform) Rotate2(a float64, axis Axis) *QTransform { ret := C.QTransform_Rotate2(this.h, (C.double)(a), (C.uintptr_t)(axis)) return newQTransform_U(unsafe.Pointer(ret)) } -func (this *QTransform) RotateRadians2(a float64, axis uintptr) *QTransform { +func (this *QTransform) RotateRadians2(a float64, axis Axis) *QTransform { ret := C.QTransform_RotateRadians2(this.h, (C.double)(a), (C.uintptr_t)(axis)) return newQTransform_U(unsafe.Pointer(ret)) } diff --git a/qt/gen_qtransposeproxymodel.go b/qt/gen_qtransposeproxymodel.go index 232a9a92..07a6c5d7 100644 --- a/qt/gen_qtransposeproxymodel.go +++ b/qt/gen_qtransposeproxymodel.go @@ -89,7 +89,7 @@ func (this *QTransposeProxyModel) ColumnCount() int { return (int)(ret) } -func (this *QTransposeProxyModel) HeaderData(section int, orientation uintptr) *QVariant { +func (this *QTransposeProxyModel) HeaderData(section int, orientation Orientation) *QVariant { ret := C.QTransposeProxyModel_HeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -100,7 +100,7 @@ func (this *QTransposeProxyModel) HeaderData(section int, orientation uintptr) * return ret1 } -func (this *QTransposeProxyModel) SetHeaderData(section int, orientation uintptr, value *QVariant) bool { +func (this *QTransposeProxyModel) SetHeaderData(section int, orientation Orientation, value *QVariant) bool { ret := C.QTransposeProxyModel_SetHeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer()) return (bool)(ret) } @@ -256,7 +256,7 @@ func (this *QTransposeProxyModel) ColumnCount1(parent *QModelIndex) int { return (int)(ret) } -func (this *QTransposeProxyModel) HeaderData3(section int, orientation uintptr, role int) *QVariant { +func (this *QTransposeProxyModel) HeaderData3(section int, orientation Orientation, role int) *QVariant { ret := C.QTransposeProxyModel_HeaderData3(this.h, (C.int)(section), (C.uintptr_t)(orientation), (C.int)(role)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -267,7 +267,7 @@ func (this *QTransposeProxyModel) HeaderData3(section int, orientation uintptr, return ret1 } -func (this *QTransposeProxyModel) SetHeaderData4(section int, orientation uintptr, value *QVariant, role int) bool { +func (this *QTransposeProxyModel) SetHeaderData4(section int, orientation Orientation, value *QVariant, role int) bool { ret := C.QTransposeProxyModel_SetHeaderData4(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer(), (C.int)(role)) return (bool)(ret) } @@ -303,7 +303,7 @@ func (this *QTransposeProxyModel) RemoveColumns3(column int, count int, parent * return (bool)(ret) } -func (this *QTransposeProxyModel) Sort2(column int, order uintptr) { +func (this *QTransposeProxyModel) Sort2(column int, order SortOrder) { C.QTransposeProxyModel_Sort2(this.h, (C.int)(column), (C.uintptr_t)(order)) } diff --git a/qt/gen_qtreeview.go b/qt/gen_qtreeview.go index 4f3c5380..34b5f416 100644 --- a/qt/gen_qtreeview.go +++ b/qt/gen_qtreeview.go @@ -382,7 +382,7 @@ func (this *QTreeView) SortByColumn(column int) { C.QTreeView_SortByColumn(this.h, (C.int)(column)) } -func (this *QTreeView) SortByColumn2(column int, order uintptr) { +func (this *QTreeView) SortByColumn2(column int, order SortOrder) { C.QTreeView_SortByColumn2(this.h, (C.int)(column), (C.uintptr_t)(order)) } @@ -454,7 +454,7 @@ func QTreeView_TrUtf83(s string, c string, n int) string { return ret } -func (this *QTreeView) ScrollTo2(index *QModelIndex, hint uintptr) { +func (this *QTreeView) ScrollTo2(index *QModelIndex, hint QAbstractItemView__ScrollHint) { C.QTreeView_ScrollTo2(this.h, index.cPointer(), (C.uintptr_t)(hint)) } diff --git a/qt/gen_qtreewidget.go b/qt/gen_qtreewidget.go index f26e7f03..e6bc01cc 100644 --- a/qt/gen_qtreewidget.go +++ b/qt/gen_qtreewidget.go @@ -14,6 +14,21 @@ import ( "unsafe" ) +type QTreeWidgetItem__ItemType int + +const ( + QTreeWidgetItem__ItemType__Type QTreeWidgetItem__ItemType = 0 + QTreeWidgetItem__ItemType__UserType QTreeWidgetItem__ItemType = 1000 +) + +type QTreeWidgetItem__ChildIndicatorPolicy int + +const ( + QTreeWidgetItem__ChildIndicatorPolicy__ShowIndicator QTreeWidgetItem__ChildIndicatorPolicy = 0 + QTreeWidgetItem__ChildIndicatorPolicy__DontShowIndicator QTreeWidgetItem__ChildIndicatorPolicy = 1 + QTreeWidgetItem__ChildIndicatorPolicy__DontShowIndicatorWhenChildless QTreeWidgetItem__ChildIndicatorPolicy = 2 +) + type QTreeWidgetItem struct { h *C.QTreeWidgetItem } @@ -259,13 +274,13 @@ func (this *QTreeWidgetItem) IsDisabled() bool { return (bool)(ret) } -func (this *QTreeWidgetItem) SetChildIndicatorPolicy(policy uintptr) { +func (this *QTreeWidgetItem) SetChildIndicatorPolicy(policy QTreeWidgetItem__ChildIndicatorPolicy) { C.QTreeWidgetItem_SetChildIndicatorPolicy(this.h, (C.uintptr_t)(policy)) } -func (this *QTreeWidgetItem) ChildIndicatorPolicy() uintptr { +func (this *QTreeWidgetItem) ChildIndicatorPolicy() QTreeWidgetItem__ChildIndicatorPolicy { ret := C.QTreeWidgetItem_ChildIndicatorPolicy(this.h) - return (uintptr)(ret) + return (QTreeWidgetItem__ChildIndicatorPolicy)(ret) } func (this *QTreeWidgetItem) Flags() int { @@ -436,12 +451,12 @@ func (this *QTreeWidgetItem) SetForeground(column int, brush *QBrush) { C.QTreeWidgetItem_SetForeground(this.h, (C.int)(column), brush.cPointer()) } -func (this *QTreeWidgetItem) CheckState(column int) uintptr { +func (this *QTreeWidgetItem) CheckState(column int) CheckState { ret := C.QTreeWidgetItem_CheckState(this.h, (C.int)(column)) - return (uintptr)(ret) + return (CheckState)(ret) } -func (this *QTreeWidgetItem) SetCheckState(column int, state uintptr) { +func (this *QTreeWidgetItem) SetCheckState(column int, state CheckState) { C.QTreeWidgetItem_SetCheckState(this.h, (C.int)(column), (C.uintptr_t)(state)) } @@ -572,7 +587,7 @@ func (this *QTreeWidgetItem) Type() int { return (int)(ret) } -func (this *QTreeWidgetItem) SortChildren(column int, order uintptr) { +func (this *QTreeWidgetItem) SortChildren(column int, order SortOrder) { C.QTreeWidgetItem_SortChildren(this.h, (C.int)(column), (C.uintptr_t)(order)) } @@ -782,7 +797,7 @@ func (this *QTreeWidget) SortColumn() int { return (int)(ret) } -func (this *QTreeWidget) SortItems(column int, order uintptr) { +func (this *QTreeWidget) SortItems(column int, order SortOrder) { C.QTreeWidget_SortItems(this.h, (C.int)(column), (C.uintptr_t)(order)) } @@ -1114,7 +1129,7 @@ func (this *QTreeWidget) FindItems3(text string, flags int, column int) []*QTree return ret } -func (this *QTreeWidget) ScrollToItem2(item *QTreeWidgetItem, hint uintptr) { +func (this *QTreeWidget) ScrollToItem2(item *QTreeWidgetItem, hint QAbstractItemView__ScrollHint) { C.QTreeWidget_ScrollToItem2(this.h, item.cPointer(), (C.uintptr_t)(hint)) } diff --git a/qt/gen_qtreewidgetitemiterator.go b/qt/gen_qtreewidgetitemiterator.go index fc8ebe34..7ba2e8de 100644 --- a/qt/gen_qtreewidgetitemiterator.go +++ b/qt/gen_qtreewidgetitemiterator.go @@ -13,6 +13,31 @@ import ( "unsafe" ) +type QTreeWidgetItemIterator__IteratorFlag int + +const ( + QTreeWidgetItemIterator__IteratorFlag__All QTreeWidgetItemIterator__IteratorFlag = 0 + QTreeWidgetItemIterator__IteratorFlag__Hidden QTreeWidgetItemIterator__IteratorFlag = 1 + QTreeWidgetItemIterator__IteratorFlag__NotHidden QTreeWidgetItemIterator__IteratorFlag = 2 + QTreeWidgetItemIterator__IteratorFlag__Selected QTreeWidgetItemIterator__IteratorFlag = 4 + QTreeWidgetItemIterator__IteratorFlag__Unselected QTreeWidgetItemIterator__IteratorFlag = 8 + QTreeWidgetItemIterator__IteratorFlag__Selectable QTreeWidgetItemIterator__IteratorFlag = 16 + QTreeWidgetItemIterator__IteratorFlag__NotSelectable QTreeWidgetItemIterator__IteratorFlag = 32 + QTreeWidgetItemIterator__IteratorFlag__DragEnabled QTreeWidgetItemIterator__IteratorFlag = 64 + QTreeWidgetItemIterator__IteratorFlag__DragDisabled QTreeWidgetItemIterator__IteratorFlag = 128 + QTreeWidgetItemIterator__IteratorFlag__DropEnabled QTreeWidgetItemIterator__IteratorFlag = 256 + QTreeWidgetItemIterator__IteratorFlag__DropDisabled QTreeWidgetItemIterator__IteratorFlag = 512 + QTreeWidgetItemIterator__IteratorFlag__HasChildren QTreeWidgetItemIterator__IteratorFlag = 1024 + QTreeWidgetItemIterator__IteratorFlag__NoChildren QTreeWidgetItemIterator__IteratorFlag = 2048 + QTreeWidgetItemIterator__IteratorFlag__Checked QTreeWidgetItemIterator__IteratorFlag = 4096 + QTreeWidgetItemIterator__IteratorFlag__NotChecked QTreeWidgetItemIterator__IteratorFlag = 8192 + QTreeWidgetItemIterator__IteratorFlag__Enabled QTreeWidgetItemIterator__IteratorFlag = 16384 + QTreeWidgetItemIterator__IteratorFlag__Disabled QTreeWidgetItemIterator__IteratorFlag = 32768 + QTreeWidgetItemIterator__IteratorFlag__Editable QTreeWidgetItemIterator__IteratorFlag = 65536 + QTreeWidgetItemIterator__IteratorFlag__NotEditable QTreeWidgetItemIterator__IteratorFlag = 131072 + QTreeWidgetItemIterator__IteratorFlag__UserFlag QTreeWidgetItemIterator__IteratorFlag = 16777216 +) + type QTreeWidgetItemIterator struct { h *C.QTreeWidgetItemIterator } diff --git a/qt/gen_qurl.go b/qt/gen_qurl.go index 24027c44..052fd498 100644 --- a/qt/gen_qurl.go +++ b/qt/gen_qurl.go @@ -13,6 +13,52 @@ import ( "unsafe" ) +type QUrl__ParsingMode int + +const ( + QUrl__ParsingMode__TolerantMode QUrl__ParsingMode = 0 + QUrl__ParsingMode__StrictMode QUrl__ParsingMode = 1 + QUrl__ParsingMode__DecodedMode QUrl__ParsingMode = 2 +) + +type QUrl__UrlFormattingOption int + +const ( + QUrl__UrlFormattingOption__None QUrl__UrlFormattingOption = 0 + QUrl__UrlFormattingOption__RemoveScheme QUrl__UrlFormattingOption = 1 + QUrl__UrlFormattingOption__RemovePassword QUrl__UrlFormattingOption = 2 + QUrl__UrlFormattingOption__RemoveUserInfo QUrl__UrlFormattingOption = 6 + QUrl__UrlFormattingOption__RemovePort QUrl__UrlFormattingOption = 8 + QUrl__UrlFormattingOption__RemoveAuthority QUrl__UrlFormattingOption = 30 + QUrl__UrlFormattingOption__RemovePath QUrl__UrlFormattingOption = 32 + QUrl__UrlFormattingOption__RemoveQuery QUrl__UrlFormattingOption = 64 + QUrl__UrlFormattingOption__RemoveFragment QUrl__UrlFormattingOption = 128 + QUrl__UrlFormattingOption__PreferLocalFile QUrl__UrlFormattingOption = 512 + QUrl__UrlFormattingOption__StripTrailingSlash QUrl__UrlFormattingOption = 1024 + QUrl__UrlFormattingOption__RemoveFilename QUrl__UrlFormattingOption = 2048 + QUrl__UrlFormattingOption__NormalizePathSegments QUrl__UrlFormattingOption = 4096 +) + +type QUrl__ComponentFormattingOption int + +const ( + QUrl__ComponentFormattingOption__PrettyDecoded QUrl__ComponentFormattingOption = 0 + QUrl__ComponentFormattingOption__EncodeSpaces QUrl__ComponentFormattingOption = 1048576 + QUrl__ComponentFormattingOption__EncodeUnicode QUrl__ComponentFormattingOption = 2097152 + QUrl__ComponentFormattingOption__EncodeDelimiters QUrl__ComponentFormattingOption = 12582912 + QUrl__ComponentFormattingOption__EncodeReserved QUrl__ComponentFormattingOption = 16777216 + QUrl__ComponentFormattingOption__DecodeReserved QUrl__ComponentFormattingOption = 33554432 + QUrl__ComponentFormattingOption__FullyEncoded QUrl__ComponentFormattingOption = 32505856 + QUrl__ComponentFormattingOption__FullyDecoded QUrl__ComponentFormattingOption = 133169152 +) + +type QUrl__UserInputResolutionOption int + +const ( + QUrl__UserInputResolutionOption__DefaultResolution QUrl__UserInputResolutionOption = 0 + QUrl__UserInputResolutionOption__AssumeLocalFile QUrl__UserInputResolutionOption = 1 +) + type QUrl struct { h *C.QUrl } @@ -56,7 +102,7 @@ func NewQUrl3(url string) *QUrl { } // NewQUrl4 constructs a new QUrl object. -func NewQUrl4(url string, mode uintptr) *QUrl { +func NewQUrl4(url string, mode QUrl__ParsingMode) *QUrl { url_Cstring := C.CString(url) defer C.free(unsafe.Pointer(url_Cstring)) ret := C.QUrl_new4(url_Cstring, C.size_t(len(url)), (C.uintptr_t)(mode)) @@ -550,13 +596,13 @@ func QUrl_SetIdnWhitelist(idnWhitelist []string) { C.QUrl_SetIdnWhitelist(&idnWhitelist_CArray[0], &idnWhitelist_Lengths[0], C.size_t(len(idnWhitelist))) } -func (this *QUrl) SetUrl2(url string, mode uintptr) { +func (this *QUrl) SetUrl2(url string, mode QUrl__ParsingMode) { url_Cstring := C.CString(url) defer C.free(unsafe.Pointer(url_Cstring)) C.QUrl_SetUrl2(this.h, url_Cstring, C.size_t(len(url)), (C.uintptr_t)(mode)) } -func QUrl_FromEncoded2(url *QByteArray, mode uintptr) *QUrl { +func QUrl_FromEncoded2(url *QByteArray, mode QUrl__ParsingMode) *QUrl { ret := C.QUrl_FromEncoded2(url.cPointer(), (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQUrl(ret) @@ -582,7 +628,7 @@ func QUrl_FromUserInput3(userInput string, workingDirectory string, options int) return ret1 } -func (this *QUrl) SetAuthority2(authority string, mode uintptr) { +func (this *QUrl) SetAuthority2(authority string, mode QUrl__ParsingMode) { authority_Cstring := C.CString(authority) defer C.free(unsafe.Pointer(authority_Cstring)) C.QUrl_SetAuthority2(this.h, authority_Cstring, C.size_t(len(authority)), (C.uintptr_t)(mode)) @@ -597,7 +643,7 @@ func (this *QUrl) Authority1(options int) string { return ret } -func (this *QUrl) SetUserInfo2(userInfo string, mode uintptr) { +func (this *QUrl) SetUserInfo2(userInfo string, mode QUrl__ParsingMode) { userInfo_Cstring := C.CString(userInfo) defer C.free(unsafe.Pointer(userInfo_Cstring)) C.QUrl_SetUserInfo2(this.h, userInfo_Cstring, C.size_t(len(userInfo)), (C.uintptr_t)(mode)) @@ -612,7 +658,7 @@ func (this *QUrl) UserInfo1(options int) string { return ret } -func (this *QUrl) SetUserName2(userName string, mode uintptr) { +func (this *QUrl) SetUserName2(userName string, mode QUrl__ParsingMode) { userName_Cstring := C.CString(userName) defer C.free(unsafe.Pointer(userName_Cstring)) C.QUrl_SetUserName2(this.h, userName_Cstring, C.size_t(len(userName)), (C.uintptr_t)(mode)) @@ -627,7 +673,7 @@ func (this *QUrl) UserName1(options int) string { return ret } -func (this *QUrl) SetPassword2(password string, mode uintptr) { +func (this *QUrl) SetPassword2(password string, mode QUrl__ParsingMode) { password_Cstring := C.CString(password) defer C.free(unsafe.Pointer(password_Cstring)) C.QUrl_SetPassword2(this.h, password_Cstring, C.size_t(len(password)), (C.uintptr_t)(mode)) @@ -642,7 +688,7 @@ func (this *QUrl) Password1(param1 int) string { return ret } -func (this *QUrl) SetHost2(host string, mode uintptr) { +func (this *QUrl) SetHost2(host string, mode QUrl__ParsingMode) { host_Cstring := C.CString(host) defer C.free(unsafe.Pointer(host_Cstring)) C.QUrl_SetHost2(this.h, host_Cstring, C.size_t(len(host)), (C.uintptr_t)(mode)) @@ -671,7 +717,7 @@ func (this *QUrl) Port1(defaultPort int) int { return (int)(ret) } -func (this *QUrl) SetPath2(path string, mode uintptr) { +func (this *QUrl) SetPath2(path string, mode QUrl__ParsingMode) { path_Cstring := C.CString(path) defer C.free(unsafe.Pointer(path_Cstring)) C.QUrl_SetPath2(this.h, path_Cstring, C.size_t(len(path)), (C.uintptr_t)(mode)) @@ -695,7 +741,7 @@ func (this *QUrl) FileName1(options int) string { return ret } -func (this *QUrl) SetQuery2(query string, mode uintptr) { +func (this *QUrl) SetQuery2(query string, mode QUrl__ParsingMode) { query_Cstring := C.CString(query) defer C.free(unsafe.Pointer(query_Cstring)) C.QUrl_SetQuery2(this.h, query_Cstring, C.size_t(len(query)), (C.uintptr_t)(mode)) @@ -719,7 +765,7 @@ func (this *QUrl) Fragment1(options int) string { return ret } -func (this *QUrl) SetFragment2(fragment string, mode uintptr) { +func (this *QUrl) SetFragment2(fragment string, mode QUrl__ParsingMode) { fragment_Cstring := C.CString(fragment) defer C.free(unsafe.Pointer(fragment_Cstring)) C.QUrl_SetFragment2(this.h, fragment_Cstring, C.size_t(len(fragment)), (C.uintptr_t)(mode)) @@ -751,7 +797,7 @@ func QUrl_ToPercentEncoding3(param1 string, exclude *QByteArray, include *QByteA return ret1 } -func QUrl_FromStringList2(uris []string, mode uintptr) []QUrl { +func QUrl_FromStringList2(uris []string, mode QUrl__ParsingMode) []QUrl { // For the C ABI, malloc two C arrays; raw char* pointers and their lengths uris_CArray := (*[0xffff]*C.char)(C.malloc(C.size_t(8 * len(uris)))) uris_Lengths := (*[0xffff]C.uint64_t)(C.malloc(C.size_t(8 * len(uris)))) diff --git a/qt/gen_quuid.go b/qt/gen_quuid.go index 4aa4684e..5641f267 100644 --- a/qt/gen_quuid.go +++ b/qt/gen_quuid.go @@ -13,6 +13,36 @@ import ( "unsafe" ) +type QUuid__Variant int + +const ( + QUuid__Variant__VarUnknown QUuid__Variant = -1 + QUuid__Variant__NCS QUuid__Variant = 0 + QUuid__Variant__DCE QUuid__Variant = 2 + QUuid__Variant__Microsoft QUuid__Variant = 6 + QUuid__Variant__Reserved QUuid__Variant = 7 +) + +type QUuid__Version int + +const ( + QUuid__Version__VerUnknown QUuid__Version = -1 + QUuid__Version__Time QUuid__Version = 1 + QUuid__Version__EmbeddedPOSIX QUuid__Version = 2 + QUuid__Version__Md5 QUuid__Version = 3 + QUuid__Version__Name QUuid__Version = 3 + QUuid__Version__Random QUuid__Version = 4 + QUuid__Version__Sha1 QUuid__Version = 5 +) + +type QUuid__StringFormat int + +const ( + QUuid__StringFormat__WithBraces QUuid__StringFormat = 0 + QUuid__StringFormat__WithoutBraces QUuid__StringFormat = 1 + QUuid__StringFormat__Id128 QUuid__StringFormat = 3 +) + type QUuid struct { h *C.QUuid } @@ -84,7 +114,7 @@ func (this *QUuid) ToString() string { return ret } -func (this *QUuid) ToStringWithMode(mode uintptr) string { +func (this *QUuid) ToStringWithMode(mode QUuid__StringFormat) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QUuid_ToStringWithMode(this.h, (C.uintptr_t)(mode), &_out, &_out_Strlen) @@ -104,7 +134,7 @@ func (this *QUuid) ToByteArray() *QByteArray { return ret1 } -func (this *QUuid) ToByteArrayWithMode(mode uintptr) *QByteArray { +func (this *QUuid) ToByteArrayWithMode(mode QUuid__StringFormat) *QByteArray { ret := C.QUuid_ToByteArrayWithMode(this.h, (C.uintptr_t)(mode)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQByteArray(ret) @@ -221,14 +251,14 @@ func QUuid_CreateUuidV52(ns *QUuid, baseData string) *QUuid { return ret1 } -func (this *QUuid) Variant() uintptr { +func (this *QUuid) Variant() QUuid__Variant { ret := C.QUuid_Variant(this.h) - return (uintptr)(ret) + return (QUuid__Variant)(ret) } -func (this *QUuid) Version() uintptr { +func (this *QUuid) Version() QUuid__Version { ret := C.QUuid_Version(this.h) - return (uintptr)(ret) + return (QUuid__Version)(ret) } func (this *QUuid) Delete() { diff --git a/qt/gen_qvalidator.go b/qt/gen_qvalidator.go index 6ef22f6e..e304b528 100644 --- a/qt/gen_qvalidator.go +++ b/qt/gen_qvalidator.go @@ -14,6 +14,21 @@ import ( "unsafe" ) +type QValidator__State int + +const ( + QValidator__State__Invalid QValidator__State = 0 + QValidator__State__Intermediate QValidator__State = 1 + QValidator__State__Acceptable QValidator__State = 2 +) + +type QDoubleValidator__Notation int + +const ( + QDoubleValidator__Notation__StandardNotation QDoubleValidator__Notation = 0 + QDoubleValidator__Notation__ScientificNotation QDoubleValidator__Notation = 1 +) + type QValidator struct { h *C.QValidator *QObject @@ -79,11 +94,11 @@ func (this *QValidator) Locale() *QLocale { return ret1 } -func (this *QValidator) Validate(param1 string, param2 *int) uintptr { +func (this *QValidator) Validate(param1 string, param2 *int) QValidator__State { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) ret := C.QValidator_Validate(this.h, param1_Cstring, C.size_t(len(param1)), (*C.int)(unsafe.Pointer(param2))) - return (uintptr)(ret) + return (QValidator__State)(ret) } func (this *QValidator) Fixup(param1 string) { @@ -234,11 +249,11 @@ func QIntValidator_TrUtf8(s string) string { return ret } -func (this *QIntValidator) Validate(param1 string, param2 *int) uintptr { +func (this *QIntValidator) Validate(param1 string, param2 *int) QValidator__State { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) ret := C.QIntValidator_Validate(this.h, param1_Cstring, C.size_t(len(param1)), (*C.int)(unsafe.Pointer(param2))) - return (uintptr)(ret) + return (QValidator__State)(ret) } func (this *QIntValidator) Fixup(input string) { @@ -423,11 +438,11 @@ func QDoubleValidator_TrUtf8(s string) string { return ret } -func (this *QDoubleValidator) Validate(param1 string, param2 *int) uintptr { +func (this *QDoubleValidator) Validate(param1 string, param2 *int) QValidator__State { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) ret := C.QDoubleValidator_Validate(this.h, param1_Cstring, C.size_t(len(param1)), (*C.int)(unsafe.Pointer(param2))) - return (uintptr)(ret) + return (QValidator__State)(ret) } func (this *QDoubleValidator) SetRange(bottom float64, top float64) { @@ -446,7 +461,7 @@ func (this *QDoubleValidator) SetDecimals(decimals int) { C.QDoubleValidator_SetDecimals(this.h, (C.int)(decimals)) } -func (this *QDoubleValidator) SetNotation(notation uintptr) { +func (this *QDoubleValidator) SetNotation(notation QDoubleValidator__Notation) { C.QDoubleValidator_SetNotation(this.h, (C.uintptr_t)(notation)) } @@ -465,9 +480,9 @@ func (this *QDoubleValidator) Decimals() int { return (int)(ret) } -func (this *QDoubleValidator) Notation() uintptr { +func (this *QDoubleValidator) Notation() QDoubleValidator__Notation { ret := C.QDoubleValidator_Notation(this.h) - return (uintptr)(ret) + return (QDoubleValidator__Notation)(ret) } func (this *QDoubleValidator) BottomChanged(bottom float64) { @@ -506,7 +521,7 @@ func (this *QDoubleValidator) OnDecimalsChanged(slot func()) { C.QDoubleValidator_connect_DecimalsChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QDoubleValidator) NotationChanged(notation uintptr) { +func (this *QDoubleValidator) NotationChanged(notation QDoubleValidator__Notation) { C.QDoubleValidator_NotationChanged(this.h, (C.uintptr_t)(notation)) } @@ -652,11 +667,11 @@ func QRegExpValidator_TrUtf8(s string) string { return ret } -func (this *QRegExpValidator) Validate(input string, pos *int) uintptr { +func (this *QRegExpValidator) Validate(input string, pos *int) QValidator__State { input_Cstring := C.CString(input) defer C.free(unsafe.Pointer(input_Cstring)) ret := C.QRegExpValidator_Validate(this.h, input_Cstring, C.size_t(len(input)), (*C.int)(unsafe.Pointer(pos))) - return (uintptr)(ret) + return (QValidator__State)(ret) } func (this *QRegExpValidator) SetRegExp(rx *QRegExp) { @@ -810,11 +825,11 @@ func QRegularExpressionValidator_TrUtf8(s string) string { return ret } -func (this *QRegularExpressionValidator) Validate(input string, pos *int) uintptr { +func (this *QRegularExpressionValidator) Validate(input string, pos *int) QValidator__State { input_Cstring := C.CString(input) defer C.free(unsafe.Pointer(input_Cstring)) ret := C.QRegularExpressionValidator_Validate(this.h, input_Cstring, C.size_t(len(input)), (*C.int)(unsafe.Pointer(pos))) - return (uintptr)(ret) + return (QValidator__State)(ret) } func (this *QRegularExpressionValidator) RegularExpression() *QRegularExpression { diff --git a/qt/gen_qvariant.go b/qt/gen_qvariant.go index 06ee5751..2af4f2bd 100644 --- a/qt/gen_qvariant.go +++ b/qt/gen_qvariant.go @@ -13,6 +13,73 @@ import ( "unsafe" ) +type QVariant__Type int + +const ( + QVariant__Type__Invalid QVariant__Type = 0 + QVariant__Type__Bool QVariant__Type = 1 + QVariant__Type__Int QVariant__Type = 2 + QVariant__Type__UInt QVariant__Type = 3 + QVariant__Type__LongLong QVariant__Type = 4 + QVariant__Type__ULongLong QVariant__Type = 5 + QVariant__Type__Double QVariant__Type = 6 + QVariant__Type__Char QVariant__Type = 7 + QVariant__Type__Map QVariant__Type = 8 + QVariant__Type__List QVariant__Type = 9 + QVariant__Type__String QVariant__Type = 10 + QVariant__Type__StringList QVariant__Type = 11 + QVariant__Type__ByteArray QVariant__Type = 12 + QVariant__Type__BitArray QVariant__Type = 13 + QVariant__Type__Date QVariant__Type = 14 + QVariant__Type__Time QVariant__Type = 15 + QVariant__Type__DateTime QVariant__Type = 16 + QVariant__Type__Url QVariant__Type = 17 + QVariant__Type__Locale QVariant__Type = 18 + QVariant__Type__Rect QVariant__Type = 19 + QVariant__Type__RectF QVariant__Type = 20 + QVariant__Type__Size QVariant__Type = 21 + QVariant__Type__SizeF QVariant__Type = 22 + QVariant__Type__Line QVariant__Type = 23 + QVariant__Type__LineF QVariant__Type = 24 + QVariant__Type__Point QVariant__Type = 25 + QVariant__Type__PointF QVariant__Type = 26 + QVariant__Type__RegExp QVariant__Type = 27 + QVariant__Type__RegularExpression QVariant__Type = 44 + QVariant__Type__Hash QVariant__Type = 28 + QVariant__Type__EasingCurve QVariant__Type = 29 + QVariant__Type__Uuid QVariant__Type = 30 + QVariant__Type__ModelIndex QVariant__Type = 42 + QVariant__Type__PersistentModelIndex QVariant__Type = 50 + QVariant__Type__LastCoreType QVariant__Type = 55 + QVariant__Type__Font QVariant__Type = 64 + QVariant__Type__Pixmap QVariant__Type = 65 + QVariant__Type__Brush QVariant__Type = 66 + QVariant__Type__Color QVariant__Type = 67 + QVariant__Type__Palette QVariant__Type = 68 + QVariant__Type__Image QVariant__Type = 70 + QVariant__Type__Polygon QVariant__Type = 71 + QVariant__Type__Region QVariant__Type = 72 + QVariant__Type__Bitmap QVariant__Type = 73 + QVariant__Type__Cursor QVariant__Type = 74 + QVariant__Type__KeySequence QVariant__Type = 75 + QVariant__Type__Pen QVariant__Type = 76 + QVariant__Type__TextLength QVariant__Type = 77 + QVariant__Type__TextFormat QVariant__Type = 78 + QVariant__Type__Matrix QVariant__Type = 79 + QVariant__Type__Transform QVariant__Type = 80 + QVariant__Type__Matrix4x4 QVariant__Type = 81 + QVariant__Type__Vector2D QVariant__Type = 82 + QVariant__Type__Vector3D QVariant__Type = 83 + QVariant__Type__Vector4D QVariant__Type = 84 + QVariant__Type__Quaternion QVariant__Type = 85 + QVariant__Type__PolygonF QVariant__Type = 86 + QVariant__Type__Icon QVariant__Type = 69 + QVariant__Type__LastGuiType QVariant__Type = 87 + QVariant__Type__SizePolicy QVariant__Type = 121 + QVariant__Type__UserType QVariant__Type = 1024 + QVariant__Type__LastType QVariant__Type = 4294967295 +) + type QVariant struct { h *C.QVariant } @@ -42,7 +109,7 @@ func NewQVariant() *QVariant { } // NewQVariant2 constructs a new QVariant object. -func NewQVariant2(typeVal uintptr) *QVariant { +func NewQVariant2(typeVal QVariant__Type) *QVariant { ret := C.QVariant_new2((C.uintptr_t)(typeVal)) return newQVariant(ret) } @@ -298,9 +365,9 @@ func (this *QVariant) Swap(other *QVariant) { C.QVariant_Swap(this.h, other.cPointer()) } -func (this *QVariant) Type() uintptr { +func (this *QVariant) Type() QVariant__Type { ret := C.QVariant_Type(this.h) - return (uintptr)(ret) + return (QVariant__Type)(ret) } func (this *QVariant) UserType() int { @@ -709,11 +776,11 @@ func QVariant_TypeToName(typeId int) unsafe.Pointer { return (unsafe.Pointer)(ret) } -func QVariant_NameToType(name string) uintptr { +func QVariant_NameToType(name string) QVariant__Type { name_Cstring := C.CString(name) defer C.free(unsafe.Pointer(name_Cstring)) ret := C.QVariant_NameToType(name_Cstring) - return (uintptr)(ret) + return (QVariant__Type)(ret) } func (this *QVariant) OperatorEqual(v *QVariant) bool { diff --git a/qt/gen_qvector2d.go b/qt/gen_qvector2d.go index 25450282..cd24d983 100644 --- a/qt/gen_qvector2d.go +++ b/qt/gen_qvector2d.go @@ -42,7 +42,7 @@ func NewQVector2D() *QVector2D { } // NewQVector2D2 constructs a new QVector2D object. -func NewQVector2D2(param1 uintptr) *QVector2D { +func NewQVector2D2(param1 Initialization) *QVector2D { ret := C.QVector2D_new2((C.uintptr_t)(param1)) return newQVector2D(ret) } diff --git a/qt/gen_qvector3d.go b/qt/gen_qvector3d.go index e06ba8e5..d530216d 100644 --- a/qt/gen_qvector3d.go +++ b/qt/gen_qvector3d.go @@ -42,7 +42,7 @@ func NewQVector3D() *QVector3D { } // NewQVector3D2 constructs a new QVector3D object. -func NewQVector3D2(param1 uintptr) *QVector3D { +func NewQVector3D2(param1 Initialization) *QVector3D { ret := C.QVector3D_new2((C.uintptr_t)(param1)) return newQVector3D(ret) } diff --git a/qt/gen_qvector4d.go b/qt/gen_qvector4d.go index f932bb11..c27ef3f6 100644 --- a/qt/gen_qvector4d.go +++ b/qt/gen_qvector4d.go @@ -42,7 +42,7 @@ func NewQVector4D() *QVector4D { } // NewQVector4D2 constructs a new QVector4D object. -func NewQVector4D2(param1 uintptr) *QVector4D { +func NewQVector4D2(param1 Initialization) *QVector4D { ret := C.QVector4D_new2((C.uintptr_t)(param1)) return newQVector4D(ret) } diff --git a/qt/gen_qwidget.go b/qt/gen_qwidget.go index a172aab9..b1a7fb62 100644 --- a/qt/gen_qwidget.go +++ b/qt/gen_qwidget.go @@ -14,6 +14,14 @@ import ( "unsafe" ) +type QWidget__RenderFlag int + +const ( + QWidget__RenderFlag__DrawWindowBackground QWidget__RenderFlag = 1 + QWidget__RenderFlag__DrawChildren QWidget__RenderFlag = 2 + QWidget__RenderFlag__IgnoreMask QWidget__RenderFlag = 4 +) + type QWidgetData struct { h *C.QWidgetData } @@ -167,12 +175,12 @@ func (this *QWidget) IsModal() bool { return (bool)(ret) } -func (this *QWidget) WindowModality() uintptr { +func (this *QWidget) WindowModality() WindowModality { ret := C.QWidget_WindowModality(this.h) - return (uintptr)(ret) + return (WindowModality)(ret) } -func (this *QWidget) SetWindowModality(windowModality uintptr) { +func (this *QWidget) SetWindowModality(windowModality WindowModality) { C.QWidget_SetWindowModality(this.h, (C.uintptr_t)(windowModality)) } @@ -534,22 +542,22 @@ func (this *QWidget) SetPalette(palette *QPalette) { C.QWidget_SetPalette(this.h, palette.cPointer()) } -func (this *QWidget) SetBackgroundRole(backgroundRole uintptr) { +func (this *QWidget) SetBackgroundRole(backgroundRole QPalette__ColorRole) { C.QWidget_SetBackgroundRole(this.h, (C.uintptr_t)(backgroundRole)) } -func (this *QWidget) BackgroundRole() uintptr { +func (this *QWidget) BackgroundRole() QPalette__ColorRole { ret := C.QWidget_BackgroundRole(this.h) - return (uintptr)(ret) + return (QPalette__ColorRole)(ret) } -func (this *QWidget) SetForegroundRole(foregroundRole uintptr) { +func (this *QWidget) SetForegroundRole(foregroundRole QPalette__ColorRole) { C.QWidget_SetForegroundRole(this.h, (C.uintptr_t)(foregroundRole)) } -func (this *QWidget) ForegroundRole() uintptr { +func (this *QWidget) ForegroundRole() QPalette__ColorRole { ret := C.QWidget_ForegroundRole(this.h) - return (uintptr)(ret) + return (QPalette__ColorRole)(ret) } func (this *QWidget) Font() *QFont { @@ -676,11 +684,11 @@ func (this *QWidget) SetGraphicsEffect(effect *QGraphicsEffect) { C.QWidget_SetGraphicsEffect(this.h, effect.cPointer()) } -func (this *QWidget) GrabGesture(typeVal uintptr) { +func (this *QWidget) GrabGesture(typeVal GestureType) { C.QWidget_GrabGesture(this.h, (C.uintptr_t)(typeVal)) } -func (this *QWidget) UngrabGesture(typeVal uintptr) { +func (this *QWidget) UngrabGesture(typeVal GestureType) { C.QWidget_UngrabGesture(this.h, (C.uintptr_t)(typeVal)) } @@ -872,13 +880,13 @@ func (this *QWidget) SetAccessibleDescription(description string) { C.QWidget_SetAccessibleDescription(this.h, description_Cstring, C.size_t(len(description))) } -func (this *QWidget) SetLayoutDirection(direction uintptr) { +func (this *QWidget) SetLayoutDirection(direction LayoutDirection) { C.QWidget_SetLayoutDirection(this.h, (C.uintptr_t)(direction)) } -func (this *QWidget) LayoutDirection() uintptr { +func (this *QWidget) LayoutDirection() LayoutDirection { ret := C.QWidget_LayoutDirection(this.h) - return (uintptr)(ret) + return (LayoutDirection)(ret) } func (this *QWidget) UnsetLayoutDirection() { @@ -931,16 +939,16 @@ func (this *QWidget) ClearFocus() { C.QWidget_ClearFocus(this.h) } -func (this *QWidget) SetFocusWithReason(reason uintptr) { +func (this *QWidget) SetFocusWithReason(reason FocusReason) { C.QWidget_SetFocusWithReason(this.h, (C.uintptr_t)(reason)) } -func (this *QWidget) FocusPolicy() uintptr { +func (this *QWidget) FocusPolicy() FocusPolicy { ret := C.QWidget_FocusPolicy(this.h) - return (uintptr)(ret) + return (FocusPolicy)(ret) } -func (this *QWidget) SetFocusPolicy(policy uintptr) { +func (this *QWidget) SetFocusPolicy(policy FocusPolicy) { C.QWidget_SetFocusPolicy(this.h, (C.uintptr_t)(policy)) } @@ -962,12 +970,12 @@ func (this *QWidget) FocusProxy() *QWidget { return newQWidget_U(unsafe.Pointer(ret)) } -func (this *QWidget) ContextMenuPolicy() uintptr { +func (this *QWidget) ContextMenuPolicy() ContextMenuPolicy { ret := C.QWidget_ContextMenuPolicy(this.h) - return (uintptr)(ret) + return (ContextMenuPolicy)(ret) } -func (this *QWidget) SetContextMenuPolicy(policy uintptr) { +func (this *QWidget) SetContextMenuPolicy(policy ContextMenuPolicy) { C.QWidget_SetContextMenuPolicy(this.h, (C.uintptr_t)(policy)) } @@ -1237,7 +1245,7 @@ func (this *QWidget) SetSizePolicy(sizePolicy QSizePolicy) { C.QWidget_SetSizePolicy(this.h, sizePolicy.cPointer()) } -func (this *QWidget) SetSizePolicy2(horizontal uintptr, vertical uintptr) { +func (this *QWidget) SetSizePolicy2(horizontal QSizePolicy__Policy, vertical QSizePolicy__Policy) { C.QWidget_SetSizePolicy2(this.h, (C.uintptr_t)(horizontal), (C.uintptr_t)(vertical)) } @@ -1408,7 +1416,7 @@ func (this *QWidget) WindowFlags() int { return (int)(ret) } -func (this *QWidget) SetWindowFlag(param1 uintptr) { +func (this *QWidget) SetWindowFlag(param1 WindowType) { C.QWidget_SetWindowFlag(this.h, (C.uintptr_t)(param1)) } @@ -1416,9 +1424,9 @@ func (this *QWidget) OverrideWindowFlags(typeVal int) { C.QWidget_OverrideWindowFlags(this.h, (C.int)(typeVal)) } -func (this *QWidget) WindowType() uintptr { +func (this *QWidget) WindowType() WindowType { ret := C.QWidget_WindowType(this.h) - return (uintptr)(ret) + return (WindowType)(ret) } func QWidget_Find(param1 uintptr) *QWidget { @@ -1436,11 +1444,11 @@ func (this *QWidget) ChildAtWithQPoint(p *QPoint) *QWidget { return newQWidget_U(unsafe.Pointer(ret)) } -func (this *QWidget) SetAttribute(param1 uintptr) { +func (this *QWidget) SetAttribute(param1 WidgetAttribute) { C.QWidget_SetAttribute(this.h, (C.uintptr_t)(param1)) } -func (this *QWidget) TestAttribute(param1 uintptr) bool { +func (this *QWidget) TestAttribute(param1 WidgetAttribute) bool { ret := C.QWidget_TestAttribute(this.h, (C.uintptr_t)(param1)) return (bool)(ret) } @@ -1540,7 +1548,7 @@ func (this *QWidget) OnCustomContextMenuRequested(slot func()) { C.QWidget_connect_CustomContextMenuRequested(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QWidget) InputMethodQuery(param1 uintptr) *QVariant { +func (this *QWidget) InputMethodQuery(param1 InputMethodQuery) *QVariant { ret := C.QWidget_InputMethodQuery(this.h, (C.uintptr_t)(param1)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQVariant(ret) @@ -1647,11 +1655,11 @@ func (this *QWidget) Grab1(rectangle *QRect) *QPixmap { return ret1 } -func (this *QWidget) GrabGesture2(typeVal uintptr, flags int) { +func (this *QWidget) GrabGesture2(typeVal GestureType, flags int) { C.QWidget_GrabGesture2(this.h, (C.uintptr_t)(typeVal), (C.int)(flags)) } -func (this *QWidget) GrabShortcut2(key *QKeySequence, context uintptr) int { +func (this *QWidget) GrabShortcut2(key *QKeySequence, context ShortcutContext) int { ret := C.QWidget_GrabShortcut2(this.h, key.cPointer(), (C.uintptr_t)(context)) return (int)(ret) } @@ -1664,11 +1672,11 @@ func (this *QWidget) SetShortcutAutoRepeat2(id int, enable bool) { C.QWidget_SetShortcutAutoRepeat2(this.h, (C.int)(id), (C.bool)(enable)) } -func (this *QWidget) SetWindowFlag2(param1 uintptr, on bool) { +func (this *QWidget) SetWindowFlag2(param1 WindowType, on bool) { C.QWidget_SetWindowFlag2(this.h, (C.uintptr_t)(param1), (C.bool)(on)) } -func (this *QWidget) SetAttribute2(param1 uintptr, on bool) { +func (this *QWidget) SetAttribute2(param1 WidgetAttribute, on bool) { C.QWidget_SetAttribute2(this.h, (C.uintptr_t)(param1), (C.bool)(on)) } diff --git a/qt/gen_qwindow.go b/qt/gen_qwindow.go index 6f62f8c6..e53a0f09 100644 --- a/qt/gen_qwindow.go +++ b/qt/gen_qwindow.go @@ -14,6 +14,24 @@ import ( "unsafe" ) +type QWindow__Visibility int + +const ( + QWindow__Visibility__Hidden QWindow__Visibility = 0 + QWindow__Visibility__AutomaticVisibility QWindow__Visibility = 1 + QWindow__Visibility__Windowed QWindow__Visibility = 2 + QWindow__Visibility__Minimized QWindow__Visibility = 3 + QWindow__Visibility__Maximized QWindow__Visibility = 4 + QWindow__Visibility__FullScreen QWindow__Visibility = 5 +) + +type QWindow__AncestorMode int + +const ( + QWindow__AncestorMode__ExcludeTransients QWindow__AncestorMode = 0 + QWindow__AncestorMode__IncludeTransients QWindow__AncestorMode = 1 +) + type QWindow struct { h *C.QWindow *QObject @@ -83,13 +101,13 @@ func QWindow_TrUtf8(s string) string { return ret } -func (this *QWindow) SetSurfaceType(surfaceType uintptr) { +func (this *QWindow) SetSurfaceType(surfaceType QSurface__SurfaceType) { C.QWindow_SetSurfaceType(this.h, (C.uintptr_t)(surfaceType)) } -func (this *QWindow) SurfaceType() uintptr { +func (this *QWindow) SurfaceType() QSurface__SurfaceType { ret := C.QWindow_SurfaceType(this.h) - return (uintptr)(ret) + return (QSurface__SurfaceType)(ret) } func (this *QWindow) IsVisible() bool { @@ -97,12 +115,12 @@ func (this *QWindow) IsVisible() bool { return (bool)(ret) } -func (this *QWindow) Visibility() uintptr { +func (this *QWindow) Visibility() QWindow__Visibility { ret := C.QWindow_Visibility(this.h) - return (uintptr)(ret) + return (QWindow__Visibility)(ret) } -func (this *QWindow) SetVisibility(v uintptr) { +func (this *QWindow) SetVisibility(v QWindow__Visibility) { C.QWindow_SetVisibility(this.h, (C.uintptr_t)(v)) } @@ -115,7 +133,7 @@ func (this *QWindow) WinId() uintptr { return (uintptr)(ret) } -func (this *QWindow) Parent(mode uintptr) *QWindow { +func (this *QWindow) Parent(mode QWindow__AncestorMode) *QWindow { ret := C.QWindow_Parent(this.h, (C.uintptr_t)(mode)) return newQWindow_U(unsafe.Pointer(ret)) } @@ -139,12 +157,12 @@ func (this *QWindow) IsModal() bool { return (bool)(ret) } -func (this *QWindow) Modality() uintptr { +func (this *QWindow) Modality() WindowModality { ret := C.QWindow_Modality(this.h) - return (uintptr)(ret) + return (WindowModality)(ret) } -func (this *QWindow) SetModality(modality uintptr) { +func (this *QWindow) SetModality(modality WindowModality) { C.QWindow_SetModality(this.h, (C.uintptr_t)(modality)) } @@ -183,13 +201,13 @@ func (this *QWindow) Flags() int { return (int)(ret) } -func (this *QWindow) SetFlag(param1 uintptr) { +func (this *QWindow) SetFlag(param1 WindowType) { C.QWindow_SetFlag(this.h, (C.uintptr_t)(param1)) } -func (this *QWindow) Type() uintptr { +func (this *QWindow) Type() WindowType { ret := C.QWindow_Type(this.h) - return (uintptr)(ret) + return (WindowType)(ret) } func (this *QWindow) Title() string { @@ -230,13 +248,13 @@ func (this *QWindow) IsActive() bool { return (bool)(ret) } -func (this *QWindow) ReportContentOrientationChange(orientation uintptr) { +func (this *QWindow) ReportContentOrientationChange(orientation ScreenOrientation) { C.QWindow_ReportContentOrientationChange(this.h, (C.uintptr_t)(orientation)) } -func (this *QWindow) ContentOrientation() uintptr { +func (this *QWindow) ContentOrientation() ScreenOrientation { ret := C.QWindow_ContentOrientation(this.h) - return (uintptr)(ret) + return (ScreenOrientation)(ret) } func (this *QWindow) DevicePixelRatio() float64 { @@ -244,9 +262,9 @@ func (this *QWindow) DevicePixelRatio() float64 { return (float64)(ret) } -func (this *QWindow) WindowState() uintptr { +func (this *QWindow) WindowState() WindowState { ret := C.QWindow_WindowState(this.h) - return (uintptr)(ret) + return (WindowState)(ret) } func (this *QWindow) WindowStates() int { @@ -254,7 +272,7 @@ func (this *QWindow) WindowStates() int { return (int)(ret) } -func (this *QWindow) SetWindowState(state uintptr) { +func (this *QWindow) SetWindowState(state WindowState) { C.QWindow_SetWindowState(this.h, (C.uintptr_t)(state)) } @@ -697,7 +715,7 @@ func (this *QWindow) OnScreenChanged(slot func()) { C.QWindow_connect_ScreenChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QWindow) ModalityChanged(modality uintptr) { +func (this *QWindow) ModalityChanged(modality WindowModality) { C.QWindow_ModalityChanged(this.h, (C.uintptr_t)(modality)) } @@ -709,7 +727,7 @@ func (this *QWindow) OnModalityChanged(slot func()) { C.QWindow_connect_ModalityChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QWindow) WindowStateChanged(windowState uintptr) { +func (this *QWindow) WindowStateChanged(windowState WindowState) { C.QWindow_WindowStateChanged(this.h, (C.uintptr_t)(windowState)) } @@ -843,7 +861,7 @@ func (this *QWindow) OnVisibleChanged(slot func()) { C.QWindow_connect_VisibleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QWindow) VisibilityChanged(visibility uintptr) { +func (this *QWindow) VisibilityChanged(visibility QWindow__Visibility) { C.QWindow_VisibilityChanged(this.h, (C.uintptr_t)(visibility)) } @@ -867,7 +885,7 @@ func (this *QWindow) OnActiveChanged(slot func()) { C.QWindow_connect_ActiveChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slotWrapper)))) } -func (this *QWindow) ContentOrientationChanged(orientation uintptr) { +func (this *QWindow) ContentOrientationChanged(orientation ScreenOrientation) { C.QWindow_ContentOrientationChanged(this.h, (C.uintptr_t)(orientation)) } @@ -967,11 +985,11 @@ func QWindow_TrUtf83(s string, c string, n int) string { return ret } -func (this *QWindow) SetFlag2(param1 uintptr, on bool) { +func (this *QWindow) SetFlag2(param1 WindowType, on bool) { C.QWindow_SetFlag2(this.h, (C.uintptr_t)(param1), (C.bool)(on)) } -func (this *QWindow) IsAncestorOf2(child *QWindow, mode uintptr) bool { +func (this *QWindow) IsAncestorOf2(child *QWindow, mode QWindow__AncestorMode) bool { ret := C.QWindow_IsAncestorOf2(this.h, child.cPointer(), (C.uintptr_t)(mode)) return (bool)(ret) } diff --git a/qt/gen_qwizard.go b/qt/gen_qwizard.go index 47781657..c99273aa 100644 --- a/qt/gen_qwizard.go +++ b/qt/gen_qwizard.go @@ -14,6 +14,66 @@ import ( "unsafe" ) +type QWizard__WizardButton int + +const ( + QWizard__WizardButton__BackButton QWizard__WizardButton = 0 + QWizard__WizardButton__NextButton QWizard__WizardButton = 1 + QWizard__WizardButton__CommitButton QWizard__WizardButton = 2 + QWizard__WizardButton__FinishButton QWizard__WizardButton = 3 + QWizard__WizardButton__CancelButton QWizard__WizardButton = 4 + QWizard__WizardButton__HelpButton QWizard__WizardButton = 5 + QWizard__WizardButton__CustomButton1 QWizard__WizardButton = 6 + QWizard__WizardButton__CustomButton2 QWizard__WizardButton = 7 + QWizard__WizardButton__CustomButton3 QWizard__WizardButton = 8 + QWizard__WizardButton__Stretch QWizard__WizardButton = 9 + QWizard__WizardButton__NoButton QWizard__WizardButton = -1 + QWizard__WizardButton__NStandardButtons QWizard__WizardButton = 6 + QWizard__WizardButton__NButtons QWizard__WizardButton = 9 +) + +type QWizard__WizardPixmap int + +const ( + QWizard__WizardPixmap__WatermarkPixmap QWizard__WizardPixmap = 0 + QWizard__WizardPixmap__LogoPixmap QWizard__WizardPixmap = 1 + QWizard__WizardPixmap__BannerPixmap QWizard__WizardPixmap = 2 + QWizard__WizardPixmap__BackgroundPixmap QWizard__WizardPixmap = 3 + QWizard__WizardPixmap__NPixmaps QWizard__WizardPixmap = 4 +) + +type QWizard__WizardStyle int + +const ( + QWizard__WizardStyle__ClassicStyle QWizard__WizardStyle = 0 + QWizard__WizardStyle__ModernStyle QWizard__WizardStyle = 1 + QWizard__WizardStyle__MacStyle QWizard__WizardStyle = 2 + QWizard__WizardStyle__AeroStyle QWizard__WizardStyle = 3 + QWizard__WizardStyle__NStyles QWizard__WizardStyle = 4 +) + +type QWizard__WizardOption int + +const ( + QWizard__WizardOption__IndependentPages QWizard__WizardOption = 1 + QWizard__WizardOption__IgnoreSubTitles QWizard__WizardOption = 2 + QWizard__WizardOption__ExtendedWatermarkPixmap QWizard__WizardOption = 4 + QWizard__WizardOption__NoDefaultButton QWizard__WizardOption = 8 + QWizard__WizardOption__NoBackButtonOnStartPage QWizard__WizardOption = 16 + QWizard__WizardOption__NoBackButtonOnLastPage QWizard__WizardOption = 32 + QWizard__WizardOption__DisabledBackButtonOnLastPage QWizard__WizardOption = 64 + QWizard__WizardOption__HaveNextButtonOnLastPage QWizard__WizardOption = 128 + QWizard__WizardOption__HaveFinishButtonOnEarlyPages QWizard__WizardOption = 256 + QWizard__WizardOption__NoCancelButton QWizard__WizardOption = 512 + QWizard__WizardOption__CancelButtonOnLeft QWizard__WizardOption = 1024 + QWizard__WizardOption__HaveHelpButton QWizard__WizardOption = 2048 + QWizard__WizardOption__HelpButtonOnRight QWizard__WizardOption = 4096 + QWizard__WizardOption__HaveCustomButton1 QWizard__WizardOption = 8192 + QWizard__WizardOption__HaveCustomButton2 QWizard__WizardOption = 16384 + QWizard__WizardOption__HaveCustomButton3 QWizard__WizardOption = 32768 + QWizard__WizardOption__NoCancelButtonOnLastPage QWizard__WizardOption = 65536 +) + type QWizard struct { h *C.QWizard *QDialog @@ -192,20 +252,20 @@ func (this *QWizard) Field(name string) *QVariant { return ret1 } -func (this *QWizard) SetWizardStyle(style uintptr) { +func (this *QWizard) SetWizardStyle(style QWizard__WizardStyle) { C.QWizard_SetWizardStyle(this.h, (C.uintptr_t)(style)) } -func (this *QWizard) WizardStyle() uintptr { +func (this *QWizard) WizardStyle() QWizard__WizardStyle { ret := C.QWizard_WizardStyle(this.h) - return (uintptr)(ret) + return (QWizard__WizardStyle)(ret) } -func (this *QWizard) SetOption(option uintptr) { +func (this *QWizard) SetOption(option QWizard__WizardOption) { C.QWizard_SetOption(this.h, (C.uintptr_t)(option)) } -func (this *QWizard) TestOption(option uintptr) bool { +func (this *QWizard) TestOption(option QWizard__WizardOption) bool { ret := C.QWizard_TestOption(this.h, (C.uintptr_t)(option)) return (bool)(ret) } @@ -253,29 +313,29 @@ func (this *QWizard) Button(which int) *QAbstractButton { return newQAbstractButton_U(unsafe.Pointer(ret)) } -func (this *QWizard) SetTitleFormat(format uintptr) { +func (this *QWizard) SetTitleFormat(format TextFormat) { C.QWizard_SetTitleFormat(this.h, (C.uintptr_t)(format)) } -func (this *QWizard) TitleFormat() uintptr { +func (this *QWizard) TitleFormat() TextFormat { ret := C.QWizard_TitleFormat(this.h) - return (uintptr)(ret) + return (TextFormat)(ret) } -func (this *QWizard) SetSubTitleFormat(format uintptr) { +func (this *QWizard) SetSubTitleFormat(format TextFormat) { C.QWizard_SetSubTitleFormat(this.h, (C.uintptr_t)(format)) } -func (this *QWizard) SubTitleFormat() uintptr { +func (this *QWizard) SubTitleFormat() TextFormat { ret := C.QWizard_SubTitleFormat(this.h) - return (uintptr)(ret) + return (TextFormat)(ret) } -func (this *QWizard) SetPixmap(which uintptr, pixmap *QPixmap) { +func (this *QWizard) SetPixmap(which QWizard__WizardPixmap, pixmap *QPixmap) { C.QWizard_SetPixmap(this.h, (C.uintptr_t)(which), pixmap.cPointer()) } -func (this *QWizard) Pixmap(which uintptr) *QPixmap { +func (this *QWizard) Pixmap(which QWizard__WizardPixmap) *QPixmap { ret := C.QWizard_Pixmap(this.h, (C.uintptr_t)(which)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) @@ -444,7 +504,7 @@ func QWizard_TrUtf83(s string, c string, n int) string { return ret } -func (this *QWizard) SetOption2(option uintptr, on bool) { +func (this *QWizard) SetOption2(option QWizard__WizardOption, on bool) { C.QWizard_SetOption2(this.h, (C.uintptr_t)(option), (C.bool)(on)) } @@ -544,11 +604,11 @@ func (this *QWizardPage) SubTitle() string { return ret } -func (this *QWizardPage) SetPixmap(which uintptr, pixmap *QPixmap) { +func (this *QWizardPage) SetPixmap(which QWizard__WizardPixmap, pixmap *QPixmap) { C.QWizardPage_SetPixmap(this.h, (C.uintptr_t)(which), pixmap.cPointer()) } -func (this *QWizardPage) Pixmap(which uintptr) *QPixmap { +func (this *QWizardPage) Pixmap(which QWizard__WizardPixmap) *QPixmap { ret := C.QWizardPage_Pixmap(this.h, (C.uintptr_t)(which)) // Qt uses pass-by-value semantics for this type. Mimic with finalizer ret1 := newQPixmap(ret) diff --git a/qt/gen_qxmlstream.go b/qt/gen_qxmlstream.go index d8ce4a32..ee422103 100644 --- a/qt/gen_qxmlstream.go +++ b/qt/gen_qxmlstream.go @@ -12,6 +12,40 @@ import ( "unsafe" ) +type QXmlStreamReader__TokenType int + +const ( + QXmlStreamReader__TokenType__NoToken QXmlStreamReader__TokenType = 0 + QXmlStreamReader__TokenType__Invalid QXmlStreamReader__TokenType = 1 + QXmlStreamReader__TokenType__StartDocument QXmlStreamReader__TokenType = 2 + QXmlStreamReader__TokenType__EndDocument QXmlStreamReader__TokenType = 3 + QXmlStreamReader__TokenType__StartElement QXmlStreamReader__TokenType = 4 + QXmlStreamReader__TokenType__EndElement QXmlStreamReader__TokenType = 5 + QXmlStreamReader__TokenType__Characters QXmlStreamReader__TokenType = 6 + QXmlStreamReader__TokenType__Comment QXmlStreamReader__TokenType = 7 + QXmlStreamReader__TokenType__DTD QXmlStreamReader__TokenType = 8 + QXmlStreamReader__TokenType__EntityReference QXmlStreamReader__TokenType = 9 + QXmlStreamReader__TokenType__ProcessingInstruction QXmlStreamReader__TokenType = 10 +) + +type QXmlStreamReader__ReadElementTextBehaviour int + +const ( + QXmlStreamReader__ReadElementTextBehaviour__ErrorOnUnexpectedElement QXmlStreamReader__ReadElementTextBehaviour = 0 + QXmlStreamReader__ReadElementTextBehaviour__IncludeChildElements QXmlStreamReader__ReadElementTextBehaviour = 1 + QXmlStreamReader__ReadElementTextBehaviour__SkipChildElements QXmlStreamReader__ReadElementTextBehaviour = 2 +) + +type QXmlStreamReader__Error int + +const ( + QXmlStreamReader__Error__NoError QXmlStreamReader__Error = 0 + QXmlStreamReader__Error__UnexpectedElementError QXmlStreamReader__Error = 1 + QXmlStreamReader__Error__CustomError QXmlStreamReader__Error = 2 + QXmlStreamReader__Error__NotWellFormedError QXmlStreamReader__Error = 3 + QXmlStreamReader__Error__PrematureEndOfDocumentError QXmlStreamReader__Error = 4 +) + type QXmlStreamStringRef struct { h *C.QXmlStreamStringRef } @@ -478,9 +512,9 @@ func (this *QXmlStreamReader) AtEnd() bool { return (bool)(ret) } -func (this *QXmlStreamReader) ReadNext() uintptr { +func (this *QXmlStreamReader) ReadNext() QXmlStreamReader__TokenType { ret := C.QXmlStreamReader_ReadNext(this.h) - return (uintptr)(ret) + return (QXmlStreamReader__TokenType)(ret) } func (this *QXmlStreamReader) ReadNextStartElement() bool { @@ -492,9 +526,9 @@ func (this *QXmlStreamReader) SkipCurrentElement() { C.QXmlStreamReader_SkipCurrentElement(this.h) } -func (this *QXmlStreamReader) TokenType() uintptr { +func (this *QXmlStreamReader) TokenType() QXmlStreamReader__TokenType { ret := C.QXmlStreamReader_TokenType(this.h) - return (uintptr)(ret) + return (QXmlStreamReader__TokenType)(ret) } func (this *QXmlStreamReader) TokenString() string { @@ -674,9 +708,9 @@ func (this *QXmlStreamReader) ErrorString() string { return ret } -func (this *QXmlStreamReader) Error() uintptr { +func (this *QXmlStreamReader) Error() QXmlStreamReader__Error { ret := C.QXmlStreamReader_Error(this.h) - return (uintptr)(ret) + return (QXmlStreamReader__Error)(ret) } func (this *QXmlStreamReader) HasError() bool { @@ -693,7 +727,7 @@ func (this *QXmlStreamReader) EntityResolver() *QXmlStreamEntityResolver { return newQXmlStreamEntityResolver_U(unsafe.Pointer(ret)) } -func (this *QXmlStreamReader) ReadElementText1(behaviour uintptr) string { +func (this *QXmlStreamReader) ReadElementText1(behaviour QXmlStreamReader__ReadElementTextBehaviour) string { var _out *C.char = nil var _out_Strlen C.int = 0 C.QXmlStreamReader_ReadElementText1(this.h, (C.uintptr_t)(behaviour), &_out, &_out_Strlen)