qt: rebuild (type QFlag types as their inner type)

This commit is contained in:
mappu 2024-09-20 18:40:03 +12:00
parent 869e316715
commit 664df77359
122 changed files with 771 additions and 744 deletions

View File

@ -63,7 +63,7 @@ func QAbstractEventDispatcher_Instance() *QAbstractEventDispatcher {
return newQAbstractEventDispatcher_U(unsafe.Pointer(C.QAbstractEventDispatcher_Instance()))
}
func (this *QAbstractEventDispatcher) ProcessEvents(flags int) bool {
func (this *QAbstractEventDispatcher) ProcessEvents(flags QEventLoop__ProcessEventsFlag) bool {
return (bool)(C.QAbstractEventDispatcher_ProcessEvents(this.h, (C.int)(flags)))
}

View File

@ -119,8 +119,8 @@ func (this *QModelIndex) Data() *QVariant {
return _goptr
}
func (this *QModelIndex) Flags() int {
return (int)(C.QModelIndex_Flags(this.h))
func (this *QModelIndex) Flags() ItemFlag {
return (ItemFlag)(C.QModelIndex_Flags(this.h))
}
func (this *QModelIndex) Model() *QAbstractItemModel {
@ -276,8 +276,8 @@ func (this *QPersistentModelIndex) Data() *QVariant {
return _goptr
}
func (this *QPersistentModelIndex) Flags() int {
return (int)(C.QPersistentModelIndex_Flags(this.h))
func (this *QPersistentModelIndex) Flags() ItemFlag {
return (ItemFlag)(C.QPersistentModelIndex_Flags(this.h))
}
func (this *QPersistentModelIndex) Model() *QAbstractItemModel {
@ -447,12 +447,12 @@ func (this *QAbstractItemModel) DropMimeData(data *QMimeData, action DropAction,
return (bool)(C.QAbstractItemModel_DropMimeData(this.h, data.cPointer(), (C.int)(action), (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QAbstractItemModel) SupportedDropActions() int {
return (int)(C.QAbstractItemModel_SupportedDropActions(this.h))
func (this *QAbstractItemModel) SupportedDropActions() DropAction {
return (DropAction)(C.QAbstractItemModel_SupportedDropActions(this.h))
}
func (this *QAbstractItemModel) SupportedDragActions() int {
return (int)(C.QAbstractItemModel_SupportedDragActions(this.h))
func (this *QAbstractItemModel) SupportedDragActions() DropAction {
return (DropAction)(C.QAbstractItemModel_SupportedDragActions(this.h))
}
func (this *QAbstractItemModel) InsertRows(row int, count int) bool {
@ -511,8 +511,8 @@ func (this *QAbstractItemModel) CanFetchMore(parent *QModelIndex) bool {
return (bool)(C.QAbstractItemModel_CanFetchMore(this.h, parent.cPointer()))
}
func (this *QAbstractItemModel) Flags(index *QModelIndex) int {
return (int)(C.QAbstractItemModel_Flags(this.h, index.cPointer()))
func (this *QAbstractItemModel) Flags(index *QModelIndex) ItemFlag {
return (ItemFlag)(C.QAbstractItemModel_Flags(this.h, index.cPointer()))
}
func (this *QAbstractItemModel) Sort(column int) {
@ -777,7 +777,7 @@ func (this *QAbstractItemModel) Match4(start *QModelIndex, role int, value *QVar
return _ret
}
func (this *QAbstractItemModel) Match5(start *QModelIndex, role int, value *QVariant, hits int, flags int) []QModelIndex {
func (this *QAbstractItemModel) Match5(start *QModelIndex, role int, value *QVariant, hits int, flags MatchFlag) []QModelIndex {
var _ma *C.struct_miqt_array = C.QAbstractItemModel_Match5(this.h, start.cPointer(), (C.int)(role), value.cPointer(), (C.int)(hits), (C.int)(flags))
_ret := make([]QModelIndex, int(_ma.len))
_outCast := (*[0xffff]*C.QModelIndex)(unsafe.Pointer(_ma.data)) // hey ya
@ -791,7 +791,7 @@ func (this *QAbstractItemModel) Match5(start *QModelIndex, role int, value *QVar
return _ret
}
func (this *QAbstractItemModel) CheckIndex2(index *QModelIndex, options int) bool {
func (this *QAbstractItemModel) CheckIndex2(index *QModelIndex, options QAbstractItemModel__CheckIndexOption) bool {
return (bool)(C.QAbstractItemModel_CheckIndex2(this.h, index.cPointer(), (C.int)(options)))
}
@ -1065,8 +1065,8 @@ func (this *QAbstractTableModel) DropMimeData(data *QMimeData, action DropAction
return (bool)(C.QAbstractTableModel_DropMimeData(this.h, data.cPointer(), (C.int)(action), (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QAbstractTableModel) Flags(index *QModelIndex) int {
return (int)(C.QAbstractTableModel_Flags(this.h, index.cPointer()))
func (this *QAbstractTableModel) Flags(index *QModelIndex) ItemFlag {
return (ItemFlag)(C.QAbstractTableModel_Flags(this.h, index.cPointer()))
}
func QAbstractTableModel_Tr2(s string, c string) string {
@ -1197,8 +1197,8 @@ func (this *QAbstractListModel) DropMimeData(data *QMimeData, action DropAction,
return (bool)(C.QAbstractListModel_DropMimeData(this.h, data.cPointer(), (C.int)(action), (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QAbstractListModel) Flags(index *QModelIndex) int {
return (int)(C.QAbstractListModel_Flags(this.h, index.cPointer()))
func (this *QAbstractListModel) Flags(index *QModelIndex) ItemFlag {
return (ItemFlag)(C.QAbstractListModel_Flags(this.h, index.cPointer()))
}
func QAbstractListModel_Tr2(s string, c string) string {

View File

@ -169,12 +169,12 @@ func (this *QAbstractItemView) RootIndex() *QModelIndex {
return _goptr
}
func (this *QAbstractItemView) SetEditTriggers(triggers int) {
func (this *QAbstractItemView) SetEditTriggers(triggers QAbstractItemView__EditTrigger) {
C.QAbstractItemView_SetEditTriggers(this.h, (C.int)(triggers))
}
func (this *QAbstractItemView) EditTriggers() int {
return (int)(C.QAbstractItemView_EditTriggers(this.h))
func (this *QAbstractItemView) EditTriggers() QAbstractItemView__EditTrigger {
return (QAbstractItemView__EditTrigger)(C.QAbstractItemView_EditTriggers(this.h))
}
func (this *QAbstractItemView) SetVerticalScrollMode(mode QAbstractItemView__ScrollMode) {

View File

@ -102,8 +102,8 @@ func (this *QAbstractProxyModel) HeaderData(section int, orientation Orientation
return _goptr
}
func (this *QAbstractProxyModel) Flags(index *QModelIndex) int {
return (int)(C.QAbstractProxyModel_Flags(this.h, index.cPointer()))
func (this *QAbstractProxyModel) Flags(index *QModelIndex) ItemFlag {
return (ItemFlag)(C.QAbstractProxyModel_Flags(this.h, index.cPointer()))
}
func (this *QAbstractProxyModel) SetData(index *QModelIndex, value *QVariant) bool {
@ -185,12 +185,12 @@ func (this *QAbstractProxyModel) MimeTypes() []string {
return _ret
}
func (this *QAbstractProxyModel) SupportedDragActions() int {
return (int)(C.QAbstractProxyModel_SupportedDragActions(this.h))
func (this *QAbstractProxyModel) SupportedDragActions() DropAction {
return (DropAction)(C.QAbstractProxyModel_SupportedDragActions(this.h))
}
func (this *QAbstractProxyModel) SupportedDropActions() int {
return (int)(C.QAbstractProxyModel_SupportedDropActions(this.h))
func (this *QAbstractProxyModel) SupportedDropActions() DropAction {
return (DropAction)(C.QAbstractProxyModel_SupportedDropActions(this.h))
}
func QAbstractProxyModel_Tr2(s string, c string) string {

View File

@ -118,11 +118,11 @@ func (this *QAbstractScrollArea) SetCornerWidget(widget *QWidget) {
C.QAbstractScrollArea_SetCornerWidget(this.h, widget.cPointer())
}
func (this *QAbstractScrollArea) AddScrollBarWidget(widget *QWidget, alignment int) {
func (this *QAbstractScrollArea) AddScrollBarWidget(widget *QWidget, alignment AlignmentFlag) {
C.QAbstractScrollArea_AddScrollBarWidget(this.h, widget.cPointer(), (C.int)(alignment))
}
func (this *QAbstractScrollArea) ScrollBarWidgets(alignment int) []*QWidget {
func (this *QAbstractScrollArea) ScrollBarWidgets(alignment AlignmentFlag) []*QWidget {
var _ma *C.struct_miqt_array = C.QAbstractScrollArea_ScrollBarWidgets(this.h, (C.int)(alignment))
_ret := make([]*QWidget, int(_ma.len))
_outCast := (*[0xffff]*C.QWidget)(unsafe.Pointer(_ma.data)) // hey ya

View File

@ -165,12 +165,12 @@ func (this *QAbstractSpinBox) KeyboardTracking() bool {
return (bool)(C.QAbstractSpinBox_KeyboardTracking(this.h))
}
func (this *QAbstractSpinBox) SetAlignment(flag int) {
func (this *QAbstractSpinBox) SetAlignment(flag AlignmentFlag) {
C.QAbstractSpinBox_SetAlignment(this.h, (C.int)(flag))
}
func (this *QAbstractSpinBox) Alignment() int {
return (int)(C.QAbstractSpinBox_Alignment(this.h))
func (this *QAbstractSpinBox) Alignment() AlignmentFlag {
return (AlignmentFlag)(C.QAbstractSpinBox_Alignment(this.h))
}
func (this *QAbstractSpinBox) SetFrame(frame bool) {

View File

@ -62,12 +62,12 @@ func (this *QArrayData) DetachCapacity(newSize uint64) uint64 {
return (uint64)(C.QArrayData_DetachCapacity(this.h, (C.size_t)(newSize)))
}
func (this *QArrayData) DetachFlags() int {
return (int)(C.QArrayData_DetachFlags(this.h))
func (this *QArrayData) DetachFlags() QArrayData__AllocationOption {
return (QArrayData__AllocationOption)(C.QArrayData_DetachFlags(this.h))
}
func (this *QArrayData) CloneFlags() int {
return (int)(C.QArrayData_CloneFlags(this.h))
func (this *QArrayData) CloneFlags() QArrayData__AllocationOption {
return (QArrayData__AllocationOption)(C.QArrayData_CloneFlags(this.h))
}
func QArrayData_Allocate(objectSize uint64, alignment uint64, capacity uint64) *QArrayData {
@ -86,11 +86,11 @@ func QArrayData_SharedNull() *QArrayData {
return newQArrayData_U(unsafe.Pointer(C.QArrayData_SharedNull()))
}
func QArrayData_Allocate4(objectSize uint64, alignment uint64, capacity uint64, options int) *QArrayData {
func QArrayData_Allocate4(objectSize uint64, alignment uint64, capacity uint64, options QArrayData__AllocationOption) *QArrayData {
return newQArrayData_U(unsafe.Pointer(C.QArrayData_Allocate4((C.size_t)(objectSize), (C.size_t)(alignment), (C.size_t)(capacity), (C.int)(options))))
}
func QArrayData_ReallocateUnaligned4(data *QArrayData, objectSize uint64, newCapacity uint64, newOptions int) *QArrayData {
func QArrayData_ReallocateUnaligned4(data *QArrayData, objectSize uint64, newCapacity uint64, newOptions QArrayData__AllocationOption) *QArrayData {
return newQArrayData_U(unsafe.Pointer(C.QArrayData_ReallocateUnaligned4(data.cPointer(), (C.size_t)(objectSize), (C.size_t)(newCapacity), (C.int)(newOptions))))
}

View File

@ -128,7 +128,7 @@ func (this *QBitmap) TransformedWithMatrix(matrix *QTransform) *QBitmap {
return _goptr
}
func QBitmap_FromImage2(image *QImage, flags int) *QBitmap {
func QBitmap_FromImage2(image *QImage, flags ImageConversionFlag) *QBitmap {
_ret := C.QBitmap_FromImage2(image.cPointer(), (C.int)(flags))
_goptr := newQBitmap(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer

View File

@ -198,8 +198,8 @@ func (this *QBoxLayout) MinimumHeightForWidth(param1 int) int {
return (int)(C.QBoxLayout_MinimumHeightForWidth(this.h, (C.int)(param1)))
}
func (this *QBoxLayout) ExpandingDirections() int {
return (int)(C.QBoxLayout_ExpandingDirections(this.h))
func (this *QBoxLayout) ExpandingDirections() Orientation {
return (Orientation)(C.QBoxLayout_ExpandingDirections(this.h))
}
func (this *QBoxLayout) Invalidate() {
@ -274,7 +274,7 @@ func (this *QBoxLayout) AddWidget2(param1 *QWidget, stretch int) {
C.QBoxLayout_AddWidget2(this.h, param1.cPointer(), (C.int)(stretch))
}
func (this *QBoxLayout) AddWidget3(param1 *QWidget, stretch int, alignment int) {
func (this *QBoxLayout) AddWidget3(param1 *QWidget, stretch int, alignment AlignmentFlag) {
C.QBoxLayout_AddWidget3(this.h, param1.cPointer(), (C.int)(stretch), (C.int)(alignment))
}
@ -290,7 +290,7 @@ func (this *QBoxLayout) InsertWidget3(index int, widget *QWidget, stretch int) {
C.QBoxLayout_InsertWidget3(this.h, (C.int)(index), widget.cPointer(), (C.int)(stretch))
}
func (this *QBoxLayout) InsertWidget4(index int, widget *QWidget, stretch int, alignment int) {
func (this *QBoxLayout) InsertWidget4(index int, widget *QWidget, stretch int, alignment AlignmentFlag) {
C.QBoxLayout_InsertWidget4(this.h, (C.int)(index), widget.cPointer(), (C.int)(stretch), (C.int)(alignment))
}

View File

@ -108,7 +108,7 @@ func (this *QBuffer) Data() *QByteArray {
return newQByteArray_U(unsafe.Pointer(C.QBuffer_Data(this.h)))
}
func (this *QBuffer) Open(openMode int) bool {
func (this *QBuffer) Open(openMode QIODevice__OpenModeFlag) bool {
return (bool)(C.QBuffer_Open(this.h, (C.int)(openMode)))
}

View File

@ -763,7 +763,7 @@ func (this *QByteArray) ToDouble() float64 {
return (float64)(C.QByteArray_ToDouble(this.h))
}
func (this *QByteArray) ToBase64(options int) *QByteArray {
func (this *QByteArray) ToBase64(options QByteArray__Base64Option) *QByteArray {
_ret := C.QByteArray_ToBase64(this.h, (C.int)(options))
_goptr := newQByteArray(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
@ -887,7 +887,7 @@ func QByteArray_FromBase64Encoding(base64 *QByteArray) *QByteArray__FromBase64Re
return _goptr
}
func QByteArray_FromBase64(base64 *QByteArray, options int) *QByteArray {
func QByteArray_FromBase64(base64 *QByteArray, options QByteArray__Base64Option) *QByteArray {
_ret := C.QByteArray_FromBase64(base64.cPointer(), (C.int)(options))
_goptr := newQByteArray(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
@ -1263,7 +1263,7 @@ func QByteArray_Number3(param1 float64, f byte, prec int) *QByteArray {
return _goptr
}
func QByteArray_FromBase64Encoding2(base64 *QByteArray, options int) *QByteArray__FromBase64Result {
func QByteArray_FromBase64Encoding2(base64 *QByteArray, options QByteArray__Base64Option) *QByteArray__FromBase64Result {
_ret := C.QByteArray_FromBase64Encoding2(base64.cPointer(), (C.int)(options))
_goptr := newQByteArray__FromBase64Result(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer

View File

@ -661,18 +661,18 @@ func QCborValue_FromCbor33(data *byte, lenVal uint64, error *QCborParserError) *
return _goptr
}
func (this *QCborValue) ToCbor1(opt int) *QByteArray {
func (this *QCborValue) ToCbor1(opt QCborValue__EncodingOption) *QByteArray {
_ret := C.QCborValue_ToCbor1(this.h, (C.int)(opt))
_goptr := newQByteArray(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QCborValue) ToCbor2(writer *QCborStreamWriter, opt int) {
func (this *QCborValue) ToCbor2(writer *QCborStreamWriter, opt QCborValue__EncodingOption) {
C.QCborValue_ToCbor2(this.h, writer.cPointer(), (C.int)(opt))
}
func (this *QCborValue) ToDiagnosticNotation1(opts int) string {
func (this *QCborValue) ToDiagnosticNotation1(opts QCborValue__DiagnosticNotationOption) string {
var _ms *C.struct_miqt_string = C.QCborValue_ToDiagnosticNotation1(this.h, (C.int)(opts))
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
@ -1053,18 +1053,18 @@ func (this *QCborValueRef) ToUuid1(defaultValue *QUuid) *QUuid {
return _goptr
}
func (this *QCborValueRef) ToCbor1(opt int) *QByteArray {
func (this *QCborValueRef) ToCbor1(opt QCborValue__EncodingOption) *QByteArray {
_ret := C.QCborValueRef_ToCbor1(this.h, (C.int)(opt))
_goptr := newQByteArray(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QCborValueRef) ToCbor2(writer *QCborStreamWriter, opt int) {
func (this *QCborValueRef) ToCbor2(writer *QCborStreamWriter, opt QCborValue__EncodingOption) {
C.QCborValueRef_ToCbor2(this.h, writer.cPointer(), (C.int)(opt))
}
func (this *QCborValueRef) ToDiagnosticNotation1(opt int) string {
func (this *QCborValueRef) ToDiagnosticNotation1(opt QCborValue__DiagnosticNotationOption) string {
var _ms *C.struct_miqt_string = C.QCborValueRef_ToDiagnosticNotation1(this.h, (C.int)(opt))
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))

View File

@ -117,12 +117,12 @@ func (this *QColorDialog) TestOption(option QColorDialog__ColorDialogOption) boo
return (bool)(C.QColorDialog_TestOption(this.h, (C.int)(option)))
}
func (this *QColorDialog) SetOptions(options int) {
func (this *QColorDialog) SetOptions(options QColorDialog__ColorDialogOption) {
C.QColorDialog_SetOptions(this.h, (C.int)(options))
}
func (this *QColorDialog) Options() int {
return (int)(C.QColorDialog_Options(this.h))
func (this *QColorDialog) Options() QColorDialog__ColorDialogOption {
return (QColorDialog__ColorDialogOption)(C.QColorDialog_Options(this.h))
}
func (this *QColorDialog) SetVisible(visible bool) {
@ -277,7 +277,7 @@ func QColorDialog_GetColor3(initial *QColor, parent *QWidget, title string) *QCo
return _goptr
}
func QColorDialog_GetColor4(initial *QColor, parent *QWidget, title string, options int) *QColor {
func QColorDialog_GetColor4(initial *QColor, parent *QWidget, title string, options QColorDialog__ColorDialogOption) *QColor {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
_ret := C.QColorDialog_GetColor4(initial.cPointer(), parent.cPointer(), (*C.struct_miqt_string)(title_ms), (C.int)(options))

View File

@ -733,7 +733,7 @@ func QComboBox_TrUtf83(s string, c string, n int) string {
return _ret
}
func (this *QComboBox) FindText2(text string, flags int) int {
func (this *QComboBox) FindText2(text string, flags MatchFlag) int {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
return (int)(C.QComboBox_FindText2(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags)))
@ -743,7 +743,7 @@ func (this *QComboBox) FindData2(data *QVariant, role int) int {
return (int)(C.QComboBox_FindData2(this.h, data.cPointer(), (C.int)(role)))
}
func (this *QComboBox) FindData3(data *QVariant, role int, flags int) int {
func (this *QComboBox) FindData3(data *QVariant, role int, flags MatchFlag) int {
return (int)(C.QComboBox_FindData3(this.h, data.cPointer(), (C.int)(role), (C.int)(flags)))
}

View File

@ -250,11 +250,11 @@ func (this *QCommandLineOption) DefaultValues() []string {
return _ret
}
func (this *QCommandLineOption) Flags() int {
return (int)(C.QCommandLineOption_Flags(this.h))
func (this *QCommandLineOption) Flags() QCommandLineOption__Flag {
return (QCommandLineOption__Flag)(C.QCommandLineOption_Flags(this.h))
}
func (this *QCommandLineOption) SetFlags(aflags int) {
func (this *QCommandLineOption) SetFlags(aflags QCommandLineOption__Flag) {
C.QCommandLineOption_SetFlags(this.h, (C.int)(aflags))
}

View File

@ -155,12 +155,12 @@ func (this *QCompleter) CompletionMode() QCompleter__CompletionMode {
return (QCompleter__CompletionMode)(C.QCompleter_CompletionMode(this.h))
}
func (this *QCompleter) SetFilterMode(filterMode int) {
func (this *QCompleter) SetFilterMode(filterMode MatchFlag) {
C.QCompleter_SetFilterMode(this.h, (C.int)(filterMode))
}
func (this *QCompleter) FilterMode() int {
return (int)(C.QCompleter_FilterMode(this.h))
func (this *QCompleter) FilterMode() MatchFlag {
return (MatchFlag)(C.QCompleter_FilterMode(this.h))
}
func (this *QCompleter) Popup() *QAbstractItemView {

View File

@ -114,8 +114,8 @@ func (this *QConcatenateTablesProxyModel) SetData(index *QModelIndex, value *QVa
return (bool)(C.QConcatenateTablesProxyModel_SetData(this.h, index.cPointer(), value.cPointer()))
}
func (this *QConcatenateTablesProxyModel) Flags(index *QModelIndex) int {
return (int)(C.QConcatenateTablesProxyModel_Flags(this.h, index.cPointer()))
func (this *QConcatenateTablesProxyModel) Flags(index *QModelIndex) ItemFlag {
return (ItemFlag)(C.QConcatenateTablesProxyModel_Flags(this.h, index.cPointer()))
}
func (this *QConcatenateTablesProxyModel) Index(row int, column int) *QModelIndex {

View File

@ -185,7 +185,7 @@ func QCoreApplication_ProcessEvents() {
C.QCoreApplication_ProcessEvents()
}
func QCoreApplication_ProcessEvents2(flags int, maxtime int) {
func QCoreApplication_ProcessEvents2(flags QEventLoop__ProcessEventsFlag, maxtime int) {
C.QCoreApplication_ProcessEvents2((C.int)(flags), (C.int)(maxtime))
}
@ -450,7 +450,7 @@ func QCoreApplication_SetAttribute2(attribute ApplicationAttribute, on bool) {
C.QCoreApplication_SetAttribute2((C.int)(attribute), (C.bool)(on))
}
func QCoreApplication_ProcessEvents1(flags int) {
func QCoreApplication_ProcessEvents1(flags QEventLoop__ProcessEventsFlag) {
C.QCoreApplication_ProcessEvents1((C.int)(flags))
}

View File

@ -109,7 +109,7 @@ func NewQDataStream2(param1 *QIODevice) *QDataStream {
}
// NewQDataStream3 constructs a new QDataStream object.
func NewQDataStream3(param1 *QByteArray, flags int) *QDataStream {
func NewQDataStream3(param1 *QByteArray, flags QIODevice__OpenModeFlag) *QDataStream {
ret := C.QDataStream_new3(param1.cPointer(), (C.int)(flags))
return newQDataStream(ret)
}

View File

@ -257,8 +257,8 @@ func (this *QDateTimeEdit) SetTimeRange(min *QTime, max *QTime) {
C.QDateTimeEdit_SetTimeRange(this.h, min.cPointer(), max.cPointer())
}
func (this *QDateTimeEdit) DisplayedSections() int {
return (int)(C.QDateTimeEdit_DisplayedSections(this.h))
func (this *QDateTimeEdit) DisplayedSections() QDateTimeEdit__Section {
return (QDateTimeEdit__Section)(C.QDateTimeEdit_DisplayedSections(this.h))
}
func (this *QDateTimeEdit) CurrentSection() QDateTimeEdit__Section {

View File

@ -57,7 +57,7 @@ func NewQDialog2(parent *QWidget) *QDialog {
}
// NewQDialog3 constructs a new QDialog object.
func NewQDialog3(parent *QWidget, f int) *QDialog {
func NewQDialog3(parent *QWidget, f WindowType) *QDialog {
ret := C.QDialog_new3(parent.cPointer(), (C.int)(f))
return newQDialog(ret)
}

View File

@ -102,13 +102,13 @@ func NewQDialogButtonBox2(orientation Orientation) *QDialogButtonBox {
}
// NewQDialogButtonBox3 constructs a new QDialogButtonBox object.
func NewQDialogButtonBox3(buttons int) *QDialogButtonBox {
func NewQDialogButtonBox3(buttons QDialogButtonBox__StandardButton) *QDialogButtonBox {
ret := C.QDialogButtonBox_new3((C.int)(buttons))
return newQDialogButtonBox(ret)
}
// NewQDialogButtonBox4 constructs a new QDialogButtonBox object.
func NewQDialogButtonBox4(buttons int, orientation Orientation) *QDialogButtonBox {
func NewQDialogButtonBox4(buttons QDialogButtonBox__StandardButton, orientation Orientation) *QDialogButtonBox {
ret := C.QDialogButtonBox_new4((C.int)(buttons), (C.int)(orientation))
return newQDialogButtonBox(ret)
}
@ -126,13 +126,13 @@ func NewQDialogButtonBox6(orientation Orientation, parent *QWidget) *QDialogButt
}
// NewQDialogButtonBox7 constructs a new QDialogButtonBox object.
func NewQDialogButtonBox7(buttons int, parent *QWidget) *QDialogButtonBox {
func NewQDialogButtonBox7(buttons QDialogButtonBox__StandardButton, parent *QWidget) *QDialogButtonBox {
ret := C.QDialogButtonBox_new7((C.int)(buttons), parent.cPointer())
return newQDialogButtonBox(ret)
}
// NewQDialogButtonBox8 constructs a new QDialogButtonBox object.
func NewQDialogButtonBox8(buttons int, orientation Orientation, parent *QWidget) *QDialogButtonBox {
func NewQDialogButtonBox8(buttons QDialogButtonBox__StandardButton, orientation Orientation, parent *QWidget) *QDialogButtonBox {
ret := C.QDialogButtonBox_new8((C.int)(buttons), (C.int)(orientation), parent.cPointer())
return newQDialogButtonBox(ret)
}
@ -204,12 +204,12 @@ func (this *QDialogButtonBox) ButtonRole(button *QAbstractButton) QDialogButtonB
return (QDialogButtonBox__ButtonRole)(C.QDialogButtonBox_ButtonRole(this.h, button.cPointer()))
}
func (this *QDialogButtonBox) SetStandardButtons(buttons int) {
func (this *QDialogButtonBox) SetStandardButtons(buttons QDialogButtonBox__StandardButton) {
C.QDialogButtonBox_SetStandardButtons(this.h, (C.int)(buttons))
}
func (this *QDialogButtonBox) StandardButtons() int {
return (int)(C.QDialogButtonBox_StandardButtons(this.h))
func (this *QDialogButtonBox) StandardButtons() QDialogButtonBox__StandardButton {
return (QDialogButtonBox__StandardButton)(C.QDialogButtonBox_StandardButtons(this.h))
}
func (this *QDialogButtonBox) StandardButton(button *QAbstractButton) QDialogButtonBox__StandardButton {

View File

@ -108,7 +108,7 @@ func NewQDir4(path string) *QDir {
}
// NewQDir5 constructs a new QDir object.
func NewQDir5(path string, nameFilter string, sort int) *QDir {
func NewQDir5(path string, nameFilter string, sort QDir__SortFlag) *QDir {
path_ms := miqt_strdupg(path)
defer C.free(path_ms)
nameFilter_ms := miqt_strdupg(nameFilter)
@ -118,7 +118,7 @@ func NewQDir5(path string, nameFilter string, sort int) *QDir {
}
// NewQDir6 constructs a new QDir object.
func NewQDir6(path string, nameFilter string, sort int, filter int) *QDir {
func NewQDir6(path string, nameFilter string, sort QDir__SortFlag, filter QDir__Filter) *QDir {
path_ms := miqt_strdupg(path)
defer C.free(path_ms)
nameFilter_ms := miqt_strdupg(nameFilter)
@ -304,19 +304,19 @@ func (this *QDir) SetNameFilters(nameFilters []string) {
C.QDir_SetNameFilters(this.h, nameFilters_ma)
}
func (this *QDir) Filter() int {
return (int)(C.QDir_Filter(this.h))
func (this *QDir) Filter() QDir__Filter {
return (QDir__Filter)(C.QDir_Filter(this.h))
}
func (this *QDir) SetFilter(filter int) {
func (this *QDir) SetFilter(filter QDir__Filter) {
C.QDir_SetFilter(this.h, (C.int)(filter))
}
func (this *QDir) Sorting() int {
return (int)(C.QDir_Sorting(this.h))
func (this *QDir) Sorting() QDir__SortFlag {
return (QDir__SortFlag)(C.QDir_Sorting(this.h))
}
func (this *QDir) SetSorting(sort int) {
func (this *QDir) SetSorting(sort QDir__SortFlag) {
C.QDir_SetSorting(this.h, (C.int)(sort))
}
@ -646,11 +646,11 @@ func (this *QDir) Refresh() {
C.QDir_Refresh(this.h)
}
func (this *QDir) IsEmpty1(filters int) bool {
func (this *QDir) IsEmpty1(filters QDir__Filter) bool {
return (bool)(C.QDir_IsEmpty1(this.h, (C.int)(filters)))
}
func (this *QDir) EntryList1(filters int) []string {
func (this *QDir) EntryList1(filters QDir__Filter) []string {
var _ma *C.struct_miqt_array = C.QDir_EntryList1(this.h, (C.int)(filters))
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
@ -664,7 +664,7 @@ func (this *QDir) EntryList1(filters int) []string {
return _ret
}
func (this *QDir) EntryList2(filters int, sort int) []string {
func (this *QDir) EntryList2(filters QDir__Filter, sort QDir__SortFlag) []string {
var _ma *C.struct_miqt_array = C.QDir_EntryList2(this.h, (C.int)(filters), (C.int)(sort))
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
@ -678,7 +678,7 @@ func (this *QDir) EntryList2(filters int, sort int) []string {
return _ret
}
func (this *QDir) EntryList22(nameFilters []string, filters int) []string {
func (this *QDir) EntryList22(nameFilters []string, filters QDir__Filter) []string {
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
@ -702,7 +702,7 @@ func (this *QDir) EntryList22(nameFilters []string, filters int) []string {
return _ret
}
func (this *QDir) EntryList3(nameFilters []string, filters int, sort int) []string {
func (this *QDir) EntryList3(nameFilters []string, filters QDir__Filter, sort QDir__SortFlag) []string {
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
@ -726,7 +726,7 @@ func (this *QDir) EntryList3(nameFilters []string, filters int, sort int) []stri
return _ret
}
func (this *QDir) EntryInfoList1(filters int) []QFileInfo {
func (this *QDir) EntryInfoList1(filters QDir__Filter) []QFileInfo {
var _ma *C.struct_miqt_array = C.QDir_EntryInfoList1(this.h, (C.int)(filters))
_ret := make([]QFileInfo, int(_ma.len))
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // hey ya
@ -740,7 +740,7 @@ func (this *QDir) EntryInfoList1(filters int) []QFileInfo {
return _ret
}
func (this *QDir) EntryInfoList2(filters int, sort int) []QFileInfo {
func (this *QDir) EntryInfoList2(filters QDir__Filter, sort QDir__SortFlag) []QFileInfo {
var _ma *C.struct_miqt_array = C.QDir_EntryInfoList2(this.h, (C.int)(filters), (C.int)(sort))
_ret := make([]QFileInfo, int(_ma.len))
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // hey ya
@ -754,7 +754,7 @@ func (this *QDir) EntryInfoList2(filters int, sort int) []QFileInfo {
return _ret
}
func (this *QDir) EntryInfoList22(nameFilters []string, filters int) []QFileInfo {
func (this *QDir) EntryInfoList22(nameFilters []string, filters QDir__Filter) []QFileInfo {
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
@ -778,7 +778,7 @@ func (this *QDir) EntryInfoList22(nameFilters []string, filters int) []QFileInfo
return _ret
}
func (this *QDir) EntryInfoList3(nameFilters []string, filters int, sort int) []QFileInfo {
func (this *QDir) EntryInfoList3(nameFilters []string, filters QDir__Filter, sort QDir__SortFlag) []QFileInfo {
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))

View File

@ -58,7 +58,7 @@ func NewQDirIterator2(path string) *QDirIterator {
}
// NewQDirIterator3 constructs a new QDirIterator object.
func NewQDirIterator3(path string, filter int) *QDirIterator {
func NewQDirIterator3(path string, filter QDir__Filter) *QDirIterator {
path_ms := miqt_strdupg(path)
defer C.free(path_ms)
ret := C.QDirIterator_new3((*C.struct_miqt_string)(path_ms), (C.int)(filter))
@ -84,13 +84,13 @@ func NewQDirIterator4(path string, nameFilters []string) *QDirIterator {
}
// NewQDirIterator5 constructs a new QDirIterator object.
func NewQDirIterator5(dir *QDir, flags int) *QDirIterator {
func NewQDirIterator5(dir *QDir, flags QDirIterator__IteratorFlag) *QDirIterator {
ret := C.QDirIterator_new5(dir.cPointer(), (C.int)(flags))
return newQDirIterator(ret)
}
// NewQDirIterator6 constructs a new QDirIterator object.
func NewQDirIterator6(path string, flags int) *QDirIterator {
func NewQDirIterator6(path string, flags QDirIterator__IteratorFlag) *QDirIterator {
path_ms := miqt_strdupg(path)
defer C.free(path_ms)
ret := C.QDirIterator_new6((*C.struct_miqt_string)(path_ms), (C.int)(flags))
@ -98,7 +98,7 @@ func NewQDirIterator6(path string, flags int) *QDirIterator {
}
// NewQDirIterator7 constructs a new QDirIterator object.
func NewQDirIterator7(path string, filter int, flags int) *QDirIterator {
func NewQDirIterator7(path string, filter QDir__Filter, flags QDirIterator__IteratorFlag) *QDirIterator {
path_ms := miqt_strdupg(path)
defer C.free(path_ms)
ret := C.QDirIterator_new7((*C.struct_miqt_string)(path_ms), (C.int)(filter), (C.int)(flags))
@ -106,7 +106,7 @@ func NewQDirIterator7(path string, filter int, flags int) *QDirIterator {
}
// NewQDirIterator8 constructs a new QDirIterator object.
func NewQDirIterator8(path string, nameFilters []string, filters int) *QDirIterator {
func NewQDirIterator8(path string, nameFilters []string, filters QDir__Filter) *QDirIterator {
path_ms := miqt_strdupg(path)
defer C.free(path_ms)
// For the C ABI, malloc a C array of raw pointers
@ -124,7 +124,7 @@ func NewQDirIterator8(path string, nameFilters []string, filters int) *QDirItera
}
// NewQDirIterator9 constructs a new QDirIterator object.
func NewQDirIterator9(path string, nameFilters []string, filters int, flags int) *QDirIterator {
func NewQDirIterator9(path string, nameFilters []string, filters QDir__Filter, flags QDirIterator__IteratorFlag) *QDirIterator {
path_ms := miqt_strdupg(path)
defer C.free(path_ms)
// For the C ABI, malloc a C array of raw pointers

View File

@ -45,7 +45,7 @@ func newQDirModel_U(h unsafe.Pointer) *QDirModel {
}
// NewQDirModel constructs a new QDirModel object.
func NewQDirModel(nameFilters []string, filters int, sort int) *QDirModel {
func NewQDirModel(nameFilters []string, filters QDir__Filter, sort QDir__SortFlag) *QDirModel {
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
@ -67,7 +67,7 @@ func NewQDirModel2() *QDirModel {
}
// NewQDirModel3 constructs a new QDirModel object.
func NewQDirModel3(nameFilters []string, filters int, sort int, parent *QObject) *QDirModel {
func NewQDirModel3(nameFilters []string, filters QDir__Filter, sort QDir__SortFlag, parent *QObject) *QDirModel {
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
@ -154,8 +154,8 @@ func (this *QDirModel) HasChildren() bool {
return (bool)(C.QDirModel_HasChildren(this.h))
}
func (this *QDirModel) Flags(index *QModelIndex) int {
return (int)(C.QDirModel_Flags(this.h, index.cPointer()))
func (this *QDirModel) Flags(index *QModelIndex) ItemFlag {
return (ItemFlag)(C.QDirModel_Flags(this.h, index.cPointer()))
}
func (this *QDirModel) Sort(column int) {
@ -192,8 +192,8 @@ func (this *QDirModel) DropMimeData(data *QMimeData, action DropAction, row int,
return (bool)(C.QDirModel_DropMimeData(this.h, data.cPointer(), (C.int)(action), (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QDirModel) SupportedDropActions() int {
return (int)(C.QDirModel_SupportedDropActions(this.h))
func (this *QDirModel) SupportedDropActions() DropAction {
return (DropAction)(C.QDirModel_SupportedDropActions(this.h))
}
func (this *QDirModel) SetIconProvider(provider *QFileIconProvider) {
@ -232,20 +232,20 @@ func (this *QDirModel) NameFilters() []string {
return _ret
}
func (this *QDirModel) SetFilter(filters int) {
func (this *QDirModel) SetFilter(filters QDir__Filter) {
C.QDirModel_SetFilter(this.h, (C.int)(filters))
}
func (this *QDirModel) Filter() int {
return (int)(C.QDirModel_Filter(this.h))
func (this *QDirModel) Filter() QDir__Filter {
return (QDir__Filter)(C.QDirModel_Filter(this.h))
}
func (this *QDirModel) SetSorting(sort int) {
func (this *QDirModel) SetSorting(sort QDir__SortFlag) {
C.QDirModel_SetSorting(this.h, (C.int)(sort))
}
func (this *QDirModel) Sorting() int {
return (int)(C.QDirModel_Sorting(this.h))
func (this *QDirModel) Sorting() QDir__SortFlag {
return (QDir__SortFlag)(C.QDirModel_Sorting(this.h))
}
func (this *QDirModel) SetResolveSymlinks(enable bool) {

View File

@ -73,7 +73,7 @@ func NewQDockWidget3(title string, parent *QWidget) *QDockWidget {
}
// NewQDockWidget4 constructs a new QDockWidget object.
func NewQDockWidget4(title string, parent *QWidget, flags int) *QDockWidget {
func NewQDockWidget4(title string, parent *QWidget, flags WindowType) *QDockWidget {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
ret := C.QDockWidget_new4((*C.struct_miqt_string)(title_ms), parent.cPointer(), (C.int)(flags))
@ -87,7 +87,7 @@ func NewQDockWidget5(parent *QWidget) *QDockWidget {
}
// NewQDockWidget6 constructs a new QDockWidget object.
func NewQDockWidget6(parent *QWidget, flags int) *QDockWidget {
func NewQDockWidget6(parent *QWidget, flags WindowType) *QDockWidget {
ret := C.QDockWidget_new6(parent.cPointer(), (C.int)(flags))
return newQDockWidget(ret)
}
@ -122,12 +122,12 @@ func (this *QDockWidget) SetWidget(widget *QWidget) {
C.QDockWidget_SetWidget(this.h, widget.cPointer())
}
func (this *QDockWidget) SetFeatures(features int) {
func (this *QDockWidget) SetFeatures(features QDockWidget__DockWidgetFeature) {
C.QDockWidget_SetFeatures(this.h, (C.int)(features))
}
func (this *QDockWidget) Features() int {
return (int)(C.QDockWidget_Features(this.h))
func (this *QDockWidget) Features() QDockWidget__DockWidgetFeature {
return (QDockWidget__DockWidgetFeature)(C.QDockWidget_Features(this.h))
}
func (this *QDockWidget) SetFloating(floating bool) {
@ -138,12 +138,12 @@ func (this *QDockWidget) IsFloating() bool {
return (bool)(C.QDockWidget_IsFloating(this.h))
}
func (this *QDockWidget) SetAllowedAreas(areas int) {
func (this *QDockWidget) SetAllowedAreas(areas DockWidgetArea) {
C.QDockWidget_SetAllowedAreas(this.h, (C.int)(areas))
}
func (this *QDockWidget) AllowedAreas() int {
return (int)(C.QDockWidget_AllowedAreas(this.h))
func (this *QDockWidget) AllowedAreas() DockWidgetArea {
return (DockWidgetArea)(C.QDockWidget_AllowedAreas(this.h))
}
func (this *QDockWidget) SetTitleBarWidget(widget *QWidget) {
@ -162,22 +162,22 @@ func (this *QDockWidget) ToggleViewAction() *QAction {
return newQAction_U(unsafe.Pointer(C.QDockWidget_ToggleViewAction(this.h)))
}
func (this *QDockWidget) FeaturesChanged(features int) {
func (this *QDockWidget) FeaturesChanged(features QDockWidget__DockWidgetFeature) {
C.QDockWidget_FeaturesChanged(this.h, (C.int)(features))
}
func (this *QDockWidget) OnFeaturesChanged(slot func(features int)) {
func (this *QDockWidget) OnFeaturesChanged(slot func(features QDockWidget__DockWidgetFeature)) {
C.QDockWidget_connect_FeaturesChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
}
//export miqt_exec_callback_QDockWidget_FeaturesChanged
func miqt_exec_callback_QDockWidget_FeaturesChanged(cb *C.void, features C.int) {
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(features int))
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(features QDockWidget__DockWidgetFeature))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(features)
slotval1 := (QDockWidget__DockWidgetFeature)(features)
gofunc(slotval1)
}
@ -202,22 +202,22 @@ func miqt_exec_callback_QDockWidget_TopLevelChanged(cb *C.void, topLevel C.bool)
gofunc(slotval1)
}
func (this *QDockWidget) AllowedAreasChanged(allowedAreas int) {
func (this *QDockWidget) AllowedAreasChanged(allowedAreas DockWidgetArea) {
C.QDockWidget_AllowedAreasChanged(this.h, (C.int)(allowedAreas))
}
func (this *QDockWidget) OnAllowedAreasChanged(slot func(allowedAreas int)) {
func (this *QDockWidget) OnAllowedAreasChanged(slot func(allowedAreas DockWidgetArea)) {
C.QDockWidget_connect_AllowedAreasChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
}
//export miqt_exec_callback_QDockWidget_AllowedAreasChanged
func miqt_exec_callback_QDockWidget_AllowedAreasChanged(cb *C.void, allowedAreas C.int) {
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(allowedAreas int))
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(allowedAreas DockWidgetArea))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(allowedAreas)
slotval1 := (DockWidgetArea)(allowedAreas)
gofunc(slotval1)
}

View File

@ -111,7 +111,7 @@ func (this *QDrag) Exec() DropAction {
return (DropAction)(C.QDrag_Exec(this.h))
}
func (this *QDrag) Exec2(supportedActions int, defaultAction DropAction) DropAction {
func (this *QDrag) Exec2(supportedActions DropAction, defaultAction DropAction) DropAction {
return (DropAction)(C.QDrag_Exec2(this.h, (C.int)(supportedActions), (C.int)(defaultAction)))
}
@ -126,8 +126,8 @@ func (this *QDrag) DragCursor(action DropAction) *QPixmap {
return _goptr
}
func (this *QDrag) SupportedActions() int {
return (int)(C.QDrag_SupportedActions(this.h))
func (this *QDrag) SupportedActions() DropAction {
return (DropAction)(C.QDrag_SupportedActions(this.h))
}
func (this *QDrag) DefaultAction() DropAction {
@ -222,11 +222,11 @@ func QDrag_TrUtf83(s string, c string, n int) string {
return _ret
}
func (this *QDrag) Start1(supportedActions int) DropAction {
func (this *QDrag) Start1(supportedActions DropAction) DropAction {
return (DropAction)(C.QDrag_Start1(this.h, (C.int)(supportedActions)))
}
func (this *QDrag) Exec1(supportedActions int) DropAction {
func (this *QDrag) Exec1(supportedActions DropAction) DropAction {
return (DropAction)(C.QDrag_Exec1(this.h, (C.int)(supportedActions)))
}

View File

@ -109,16 +109,16 @@ func NewQInputEvent2(param1 *QInputEvent) *QInputEvent {
}
// NewQInputEvent3 constructs a new QInputEvent object.
func NewQInputEvent3(typeVal QEvent__Type, modifiers int) *QInputEvent {
func NewQInputEvent3(typeVal QEvent__Type, modifiers KeyboardModifier) *QInputEvent {
ret := C.QInputEvent_new3((C.int)(typeVal), (C.int)(modifiers))
return newQInputEvent(ret)
}
func (this *QInputEvent) Modifiers() int {
return (int)(C.QInputEvent_Modifiers(this.h))
func (this *QInputEvent) Modifiers() KeyboardModifier {
return (KeyboardModifier)(C.QInputEvent_Modifiers(this.h))
}
func (this *QInputEvent) SetModifiers(amodifiers int) {
func (this *QInputEvent) SetModifiers(amodifiers KeyboardModifier) {
C.QInputEvent_SetModifiers(this.h, (C.int)(amodifiers))
}
@ -259,25 +259,25 @@ func newQMouseEvent_U(h unsafe.Pointer) *QMouseEvent {
}
// NewQMouseEvent constructs a new QMouseEvent object.
func NewQMouseEvent(typeVal QEvent__Type, localPos *QPointF, button MouseButton, buttons int, modifiers int) *QMouseEvent {
func NewQMouseEvent(typeVal QEvent__Type, localPos *QPointF, button MouseButton, buttons MouseButton, modifiers KeyboardModifier) *QMouseEvent {
ret := C.QMouseEvent_new((C.int)(typeVal), localPos.cPointer(), (C.int)(button), (C.int)(buttons), (C.int)(modifiers))
return newQMouseEvent(ret)
}
// NewQMouseEvent2 constructs a new QMouseEvent object.
func NewQMouseEvent2(typeVal QEvent__Type, localPos *QPointF, screenPos *QPointF, button MouseButton, buttons int, modifiers int) *QMouseEvent {
func NewQMouseEvent2(typeVal QEvent__Type, localPos *QPointF, screenPos *QPointF, button MouseButton, buttons MouseButton, modifiers KeyboardModifier) *QMouseEvent {
ret := C.QMouseEvent_new2((C.int)(typeVal), localPos.cPointer(), screenPos.cPointer(), (C.int)(button), (C.int)(buttons), (C.int)(modifiers))
return newQMouseEvent(ret)
}
// NewQMouseEvent3 constructs a new QMouseEvent object.
func NewQMouseEvent3(typeVal QEvent__Type, localPos *QPointF, windowPos *QPointF, screenPos *QPointF, button MouseButton, buttons int, modifiers int) *QMouseEvent {
func NewQMouseEvent3(typeVal QEvent__Type, localPos *QPointF, windowPos *QPointF, screenPos *QPointF, button MouseButton, buttons MouseButton, modifiers KeyboardModifier) *QMouseEvent {
ret := C.QMouseEvent_new3((C.int)(typeVal), localPos.cPointer(), windowPos.cPointer(), screenPos.cPointer(), (C.int)(button), (C.int)(buttons), (C.int)(modifiers))
return newQMouseEvent(ret)
}
// NewQMouseEvent4 constructs a new QMouseEvent object.
func NewQMouseEvent4(typeVal QEvent__Type, localPos *QPointF, windowPos *QPointF, screenPos *QPointF, button MouseButton, buttons int, modifiers int, source MouseEventSource) *QMouseEvent {
func NewQMouseEvent4(typeVal QEvent__Type, localPos *QPointF, windowPos *QPointF, screenPos *QPointF, button MouseButton, buttons MouseButton, modifiers KeyboardModifier, source MouseEventSource) *QMouseEvent {
ret := C.QMouseEvent_new4((C.int)(typeVal), localPos.cPointer(), windowPos.cPointer(), screenPos.cPointer(), (C.int)(button), (C.int)(buttons), (C.int)(modifiers), (C.int)(source))
return newQMouseEvent(ret)
}
@ -334,8 +334,8 @@ func (this *QMouseEvent) Button() MouseButton {
return (MouseButton)(C.QMouseEvent_Button(this.h))
}
func (this *QMouseEvent) Buttons() int {
return (int)(C.QMouseEvent_Buttons(this.h))
func (this *QMouseEvent) Buttons() MouseButton {
return (MouseButton)(C.QMouseEvent_Buttons(this.h))
}
func (this *QMouseEvent) SetLocalPos(localPosition *QPointF) {
@ -346,8 +346,8 @@ func (this *QMouseEvent) Source() MouseEventSource {
return (MouseEventSource)(C.QMouseEvent_Source(this.h))
}
func (this *QMouseEvent) Flags() int {
return (int)(C.QMouseEvent_Flags(this.h))
func (this *QMouseEvent) Flags() MouseEventFlag {
return (MouseEventFlag)(C.QMouseEvent_Flags(this.h))
}
// Delete this object from C++ memory.
@ -400,7 +400,7 @@ func NewQHoverEvent2(param1 *QHoverEvent) *QHoverEvent {
}
// NewQHoverEvent3 constructs a new QHoverEvent object.
func NewQHoverEvent3(typeVal QEvent__Type, pos *QPointF, oldPos *QPointF, modifiers int) *QHoverEvent {
func NewQHoverEvent3(typeVal QEvent__Type, pos *QPointF, oldPos *QPointF, modifiers KeyboardModifier) *QHoverEvent {
ret := C.QHoverEvent_new3((C.int)(typeVal), pos.cPointer(), oldPos.cPointer(), (C.int)(modifiers))
return newQHoverEvent(ret)
}
@ -465,43 +465,43 @@ func newQWheelEvent_U(h unsafe.Pointer) *QWheelEvent {
}
// NewQWheelEvent constructs a new QWheelEvent object.
func NewQWheelEvent(pos *QPointF, delta int, buttons int, modifiers int) *QWheelEvent {
func NewQWheelEvent(pos *QPointF, delta int, buttons MouseButton, modifiers KeyboardModifier) *QWheelEvent {
ret := C.QWheelEvent_new(pos.cPointer(), (C.int)(delta), (C.int)(buttons), (C.int)(modifiers))
return newQWheelEvent(ret)
}
// NewQWheelEvent2 constructs a new QWheelEvent object.
func NewQWheelEvent2(pos *QPointF, globalPos *QPointF, delta int, buttons int, modifiers int) *QWheelEvent {
func NewQWheelEvent2(pos *QPointF, globalPos *QPointF, delta int, buttons MouseButton, modifiers KeyboardModifier) *QWheelEvent {
ret := C.QWheelEvent_new2(pos.cPointer(), globalPos.cPointer(), (C.int)(delta), (C.int)(buttons), (C.int)(modifiers))
return newQWheelEvent(ret)
}
// NewQWheelEvent3 constructs a new QWheelEvent object.
func NewQWheelEvent3(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation Orientation, buttons int, modifiers int) *QWheelEvent {
func NewQWheelEvent3(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation Orientation, buttons MouseButton, modifiers KeyboardModifier) *QWheelEvent {
ret := C.QWheelEvent_new3(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(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 Orientation, buttons int, modifiers int, phase ScrollPhase) *QWheelEvent {
func NewQWheelEvent4(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation Orientation, buttons MouseButton, modifiers KeyboardModifier, phase ScrollPhase) *QWheelEvent {
ret := C.QWheelEvent_new4(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(qt4Orientation), (C.int)(buttons), (C.int)(modifiers), (C.int)(phase))
return newQWheelEvent(ret)
}
// NewQWheelEvent5 constructs a new QWheelEvent object.
func NewQWheelEvent5(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation Orientation, buttons int, modifiers int, phase ScrollPhase, source MouseEventSource) *QWheelEvent {
func NewQWheelEvent5(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation Orientation, buttons MouseButton, modifiers KeyboardModifier, phase ScrollPhase, source MouseEventSource) *QWheelEvent {
ret := C.QWheelEvent_new5(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(qt4Orientation), (C.int)(buttons), (C.int)(modifiers), (C.int)(phase), (C.int)(source))
return newQWheelEvent(ret)
}
// NewQWheelEvent6 constructs a new QWheelEvent object.
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 {
func NewQWheelEvent6(pos *QPointF, globalPos *QPointF, pixelDelta QPoint, angleDelta QPoint, qt4Delta int, qt4Orientation Orientation, buttons MouseButton, modifiers KeyboardModifier, phase ScrollPhase, source MouseEventSource, inverted bool) *QWheelEvent {
ret := C.QWheelEvent_new6(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(qt4Orientation), (C.int)(buttons), (C.int)(modifiers), (C.int)(phase), (C.int)(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 ScrollPhase, inverted bool) *QWheelEvent {
func NewQWheelEvent7(pos QPointF, globalPos QPointF, pixelDelta QPoint, angleDelta QPoint, buttons MouseButton, modifiers KeyboardModifier, phase ScrollPhase, inverted bool) *QWheelEvent {
ret := C.QWheelEvent_new7(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(buttons), (C.int)(modifiers), (C.int)(phase), (C.bool)(inverted))
return newQWheelEvent(ret)
}
@ -513,19 +513,19 @@ func NewQWheelEvent8(param1 *QWheelEvent) *QWheelEvent {
}
// NewQWheelEvent9 constructs a new QWheelEvent object.
func NewQWheelEvent9(pos *QPointF, delta int, buttons int, modifiers int, orient Orientation) *QWheelEvent {
func NewQWheelEvent9(pos *QPointF, delta int, buttons MouseButton, modifiers KeyboardModifier, orient Orientation) *QWheelEvent {
ret := C.QWheelEvent_new9(pos.cPointer(), (C.int)(delta), (C.int)(buttons), (C.int)(modifiers), (C.int)(orient))
return newQWheelEvent(ret)
}
// NewQWheelEvent10 constructs a new QWheelEvent object.
func NewQWheelEvent10(pos *QPointF, globalPos *QPointF, delta int, buttons int, modifiers int, orient Orientation) *QWheelEvent {
func NewQWheelEvent10(pos *QPointF, globalPos *QPointF, delta int, buttons MouseButton, modifiers KeyboardModifier, orient Orientation) *QWheelEvent {
ret := C.QWheelEvent_new10(pos.cPointer(), globalPos.cPointer(), (C.int)(delta), (C.int)(buttons), (C.int)(modifiers), (C.int)(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 ScrollPhase, inverted bool, source MouseEventSource) *QWheelEvent {
func NewQWheelEvent11(pos QPointF, globalPos QPointF, pixelDelta QPoint, angleDelta QPoint, buttons MouseButton, modifiers KeyboardModifier, 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.int)(phase), (C.bool)(inverted), (C.int)(source))
return newQWheelEvent(ret)
}
@ -604,8 +604,8 @@ func (this *QWheelEvent) GlobalPosition() *QPointF {
return _goptr
}
func (this *QWheelEvent) Buttons() int {
return (int)(C.QWheelEvent_Buttons(this.h))
func (this *QWheelEvent) Buttons() MouseButton {
return (MouseButton)(C.QWheelEvent_Buttons(this.h))
}
func (this *QWheelEvent) Phase() ScrollPhase {
@ -658,13 +658,13 @@ func newQTabletEvent_U(h unsafe.Pointer) *QTabletEvent {
}
// NewQTabletEvent constructs a new QTabletEvent object.
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 {
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 KeyboardModifier, uniqueID int64) *QTabletEvent {
ret := C.QTabletEvent_new((C.int)(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 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 {
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 KeyboardModifier, uniqueID int64, button MouseButton, buttons MouseButton) *QTabletEvent {
ret := C.QTabletEvent_new2((C.int)(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.int)(button), (C.int)(buttons))
return newQTabletEvent(ret)
}
@ -765,8 +765,8 @@ func (this *QTabletEvent) Button() MouseButton {
return (MouseButton)(C.QTabletEvent_Button(this.h))
}
func (this *QTabletEvent) Buttons() int {
return (int)(C.QTabletEvent_Buttons(this.h))
func (this *QTabletEvent) Buttons() MouseButton {
return (MouseButton)(C.QTabletEvent_Buttons(this.h))
}
// Delete this object from C++ memory.
@ -900,13 +900,13 @@ func newQKeyEvent_U(h unsafe.Pointer) *QKeyEvent {
}
// NewQKeyEvent constructs a new QKeyEvent object.
func NewQKeyEvent(typeVal QEvent__Type, key int, modifiers int) *QKeyEvent {
func NewQKeyEvent(typeVal QEvent__Type, key int, modifiers KeyboardModifier) *QKeyEvent {
ret := C.QKeyEvent_new((C.int)(typeVal), (C.int)(key), (C.int)(modifiers))
return newQKeyEvent(ret)
}
// NewQKeyEvent2 constructs a new QKeyEvent object.
func NewQKeyEvent2(typeVal QEvent__Type, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint) *QKeyEvent {
func NewQKeyEvent2(typeVal QEvent__Type, key int, modifiers KeyboardModifier, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint) *QKeyEvent {
ret := C.QKeyEvent_new2((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers))
return newQKeyEvent(ret)
}
@ -918,7 +918,7 @@ func NewQKeyEvent3(param1 *QKeyEvent) *QKeyEvent {
}
// NewQKeyEvent4 constructs a new QKeyEvent object.
func NewQKeyEvent4(typeVal QEvent__Type, key int, modifiers int, text string) *QKeyEvent {
func NewQKeyEvent4(typeVal QEvent__Type, key int, modifiers KeyboardModifier, text string) *QKeyEvent {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
ret := C.QKeyEvent_new4((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (*C.struct_miqt_string)(text_ms))
@ -926,7 +926,7 @@ func NewQKeyEvent4(typeVal QEvent__Type, key int, modifiers int, text string) *Q
}
// NewQKeyEvent5 constructs a new QKeyEvent object.
func NewQKeyEvent5(typeVal QEvent__Type, key int, modifiers int, text string, autorep bool) *QKeyEvent {
func NewQKeyEvent5(typeVal QEvent__Type, key int, modifiers KeyboardModifier, text string, autorep bool) *QKeyEvent {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
ret := C.QKeyEvent_new5((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (*C.struct_miqt_string)(text_ms), (C.bool)(autorep))
@ -934,7 +934,7 @@ func NewQKeyEvent5(typeVal QEvent__Type, key int, modifiers int, text string, au
}
// NewQKeyEvent6 constructs a new QKeyEvent object.
func NewQKeyEvent6(typeVal QEvent__Type, key int, modifiers int, text string, autorep bool, count uint16) *QKeyEvent {
func NewQKeyEvent6(typeVal QEvent__Type, key int, modifiers KeyboardModifier, text string, autorep bool, count uint16) *QKeyEvent {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
ret := C.QKeyEvent_new6((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (*C.struct_miqt_string)(text_ms), (C.bool)(autorep), (C.uint16_t)(count))
@ -942,7 +942,7 @@ func NewQKeyEvent6(typeVal QEvent__Type, key int, modifiers int, text string, au
}
// NewQKeyEvent7 constructs a new QKeyEvent object.
func NewQKeyEvent7(typeVal QEvent__Type, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string) *QKeyEvent {
func NewQKeyEvent7(typeVal QEvent__Type, key int, modifiers KeyboardModifier, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string) *QKeyEvent {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
ret := C.QKeyEvent_new7((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers), (*C.struct_miqt_string)(text_ms))
@ -950,7 +950,7 @@ func NewQKeyEvent7(typeVal QEvent__Type, key int, modifiers int, nativeScanCode
}
// NewQKeyEvent8 constructs a new QKeyEvent object.
func NewQKeyEvent8(typeVal QEvent__Type, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string, autorep bool) *QKeyEvent {
func NewQKeyEvent8(typeVal QEvent__Type, key int, modifiers KeyboardModifier, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string, autorep bool) *QKeyEvent {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
ret := C.QKeyEvent_new8((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers), (*C.struct_miqt_string)(text_ms), (C.bool)(autorep))
@ -958,7 +958,7 @@ func NewQKeyEvent8(typeVal QEvent__Type, key int, modifiers int, nativeScanCode
}
// NewQKeyEvent9 constructs a new QKeyEvent object.
func NewQKeyEvent9(typeVal QEvent__Type, 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 KeyboardModifier, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string, autorep bool, count uint16) *QKeyEvent {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
ret := C.QKeyEvent_new9((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers), (*C.struct_miqt_string)(text_ms), (C.bool)(autorep), (C.uint16_t)(count))
@ -973,8 +973,8 @@ func (this *QKeyEvent) Matches(key QKeySequence__StandardKey) bool {
return (bool)(C.QKeyEvent_Matches(this.h, (C.int)(key)))
}
func (this *QKeyEvent) Modifiers() int {
return (int)(C.QKeyEvent_Modifiers(this.h))
func (this *QKeyEvent) Modifiers() KeyboardModifier {
return (KeyboardModifier)(C.QKeyEvent_Modifiers(this.h))
}
func (this *QKeyEvent) Text() string {
@ -1604,7 +1604,7 @@ func newQContextMenuEvent_U(h unsafe.Pointer) *QContextMenuEvent {
}
// NewQContextMenuEvent constructs a new QContextMenuEvent object.
func NewQContextMenuEvent(reason QContextMenuEvent__Reason, pos *QPoint, globalPos *QPoint, modifiers int) *QContextMenuEvent {
func NewQContextMenuEvent(reason QContextMenuEvent__Reason, pos *QPoint, globalPos *QPoint, modifiers KeyboardModifier) *QContextMenuEvent {
ret := C.QContextMenuEvent_new((C.int)(reason), pos.cPointer(), globalPos.cPointer(), (C.int)(modifiers))
return newQContextMenuEvent(ret)
}
@ -1812,7 +1812,7 @@ func newQInputMethodQueryEvent_U(h unsafe.Pointer) *QInputMethodQueryEvent {
}
// NewQInputMethodQueryEvent constructs a new QInputMethodQueryEvent object.
func NewQInputMethodQueryEvent(queries int) *QInputMethodQueryEvent {
func NewQInputMethodQueryEvent(queries InputMethodQuery) *QInputMethodQueryEvent {
ret := C.QInputMethodQueryEvent_new((C.int)(queries))
return newQInputMethodQueryEvent(ret)
}
@ -1823,8 +1823,8 @@ func NewQInputMethodQueryEvent2(param1 *QInputMethodQueryEvent) *QInputMethodQue
return newQInputMethodQueryEvent(ret)
}
func (this *QInputMethodQueryEvent) Queries() int {
return (int)(C.QInputMethodQueryEvent_Queries(this.h))
func (this *QInputMethodQueryEvent) Queries() InputMethodQuery {
return (InputMethodQuery)(C.QInputMethodQueryEvent_Queries(this.h))
}
func (this *QInputMethodQueryEvent) SetValue(query InputMethodQuery, value *QVariant) {
@ -1876,7 +1876,7 @@ func newQDropEvent_U(h unsafe.Pointer) *QDropEvent {
}
// NewQDropEvent constructs a new QDropEvent object.
func NewQDropEvent(pos *QPointF, actions int, data *QMimeData, buttons int, modifiers int) *QDropEvent {
func NewQDropEvent(pos *QPointF, actions DropAction, data *QMimeData, buttons MouseButton, modifiers KeyboardModifier) *QDropEvent {
ret := C.QDropEvent_new(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers))
return newQDropEvent(ret)
}
@ -1888,7 +1888,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 QEvent__Type) *QDropEvent {
func NewQDropEvent3(pos *QPointF, actions DropAction, data *QMimeData, buttons MouseButton, modifiers KeyboardModifier, typeVal QEvent__Type) *QDropEvent {
ret := C.QDropEvent_new3(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers), (C.int)(typeVal))
return newQDropEvent(ret)
}
@ -1904,16 +1904,16 @@ func (this *QDropEvent) PosF() *QPointF {
return newQPointF_U(unsafe.Pointer(C.QDropEvent_PosF(this.h)))
}
func (this *QDropEvent) MouseButtons() int {
return (int)(C.QDropEvent_MouseButtons(this.h))
func (this *QDropEvent) MouseButtons() MouseButton {
return (MouseButton)(C.QDropEvent_MouseButtons(this.h))
}
func (this *QDropEvent) KeyboardModifiers() int {
return (int)(C.QDropEvent_KeyboardModifiers(this.h))
func (this *QDropEvent) KeyboardModifiers() KeyboardModifier {
return (KeyboardModifier)(C.QDropEvent_KeyboardModifiers(this.h))
}
func (this *QDropEvent) PossibleActions() int {
return (int)(C.QDropEvent_PossibleActions(this.h))
func (this *QDropEvent) PossibleActions() DropAction {
return (DropAction)(C.QDropEvent_PossibleActions(this.h))
}
func (this *QDropEvent) ProposedAction() DropAction {
@ -1978,7 +1978,7 @@ func newQDragMoveEvent_U(h unsafe.Pointer) *QDragMoveEvent {
}
// NewQDragMoveEvent constructs a new QDragMoveEvent object.
func NewQDragMoveEvent(pos *QPoint, actions int, data *QMimeData, buttons int, modifiers int) *QDragMoveEvent {
func NewQDragMoveEvent(pos *QPoint, actions DropAction, data *QMimeData, buttons MouseButton, modifiers KeyboardModifier) *QDragMoveEvent {
ret := C.QDragMoveEvent_new(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers))
return newQDragMoveEvent(ret)
}
@ -1990,7 +1990,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 QEvent__Type) *QDragMoveEvent {
func NewQDragMoveEvent3(pos *QPoint, actions DropAction, data *QMimeData, buttons MouseButton, modifiers KeyboardModifier, typeVal QEvent__Type) *QDragMoveEvent {
ret := C.QDragMoveEvent_new3(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers), (C.int)(typeVal))
return newQDragMoveEvent(ret)
}
@ -2056,7 +2056,7 @@ func newQDragEnterEvent_U(h unsafe.Pointer) *QDragEnterEvent {
}
// NewQDragEnterEvent constructs a new QDragEnterEvent object.
func NewQDragEnterEvent(pos *QPoint, actions int, data *QMimeData, buttons int, modifiers int) *QDragEnterEvent {
func NewQDragEnterEvent(pos *QPoint, actions DropAction, data *QMimeData, buttons MouseButton, modifiers KeyboardModifier) *QDragEnterEvent {
ret := C.QDragEnterEvent_new(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers))
return newQDragEnterEvent(ret)
}
@ -2451,7 +2451,7 @@ func (this *QFileOpenEvent) Url() *QUrl {
return _goptr
}
func (this *QFileOpenEvent) OpenFile(file *QFile, flags int) bool {
func (this *QFileOpenEvent) OpenFile(file *QFile, flags QIODevice__OpenModeFlag) bool {
return (bool)(C.QFileOpenEvent_OpenFile(this.h, file.cPointer(), (C.int)(flags)))
}
@ -2613,7 +2613,7 @@ func newQWindowStateChangeEvent_U(h unsafe.Pointer) *QWindowStateChangeEvent {
}
// NewQWindowStateChangeEvent constructs a new QWindowStateChangeEvent object.
func NewQWindowStateChangeEvent(aOldState int) *QWindowStateChangeEvent {
func NewQWindowStateChangeEvent(aOldState WindowState) *QWindowStateChangeEvent {
ret := C.QWindowStateChangeEvent_new((C.int)(aOldState))
return newQWindowStateChangeEvent(ret)
}
@ -2625,13 +2625,13 @@ func NewQWindowStateChangeEvent2(param1 *QWindowStateChangeEvent) *QWindowStateC
}
// NewQWindowStateChangeEvent3 constructs a new QWindowStateChangeEvent object.
func NewQWindowStateChangeEvent3(aOldState int, isOverride bool) *QWindowStateChangeEvent {
func NewQWindowStateChangeEvent3(aOldState WindowState, isOverride bool) *QWindowStateChangeEvent {
ret := C.QWindowStateChangeEvent_new3((C.int)(aOldState), (C.bool)(isOverride))
return newQWindowStateChangeEvent(ret)
}
func (this *QWindowStateChangeEvent) OldState() int {
return (int)(C.QWindowStateChangeEvent_OldState(this.h))
func (this *QWindowStateChangeEvent) OldState() WindowState {
return (WindowState)(C.QWindowStateChangeEvent_OldState(this.h))
}
func (this *QWindowStateChangeEvent) IsOverride() bool {
@ -2757,19 +2757,19 @@ func NewQTouchEvent3(eventType QEvent__Type, device *QTouchDevice) *QTouchEvent
}
// NewQTouchEvent4 constructs a new QTouchEvent object.
func NewQTouchEvent4(eventType QEvent__Type, device *QTouchDevice, modifiers int) *QTouchEvent {
func NewQTouchEvent4(eventType QEvent__Type, device *QTouchDevice, modifiers KeyboardModifier) *QTouchEvent {
ret := C.QTouchEvent_new4((C.int)(eventType), device.cPointer(), (C.int)(modifiers))
return newQTouchEvent(ret)
}
// NewQTouchEvent5 constructs a new QTouchEvent object.
func NewQTouchEvent5(eventType QEvent__Type, device *QTouchDevice, modifiers int, touchPointStates int) *QTouchEvent {
func NewQTouchEvent5(eventType QEvent__Type, device *QTouchDevice, modifiers KeyboardModifier, touchPointStates TouchPointState) *QTouchEvent {
ret := C.QTouchEvent_new5((C.int)(eventType), device.cPointer(), (C.int)(modifiers), (C.int)(touchPointStates))
return newQTouchEvent(ret)
}
// NewQTouchEvent6 constructs a new QTouchEvent object.
func NewQTouchEvent6(eventType QEvent__Type, device *QTouchDevice, modifiers int, touchPointStates int, touchPoints []QTouchEvent__TouchPoint) *QTouchEvent {
func NewQTouchEvent6(eventType QEvent__Type, device *QTouchDevice, modifiers KeyboardModifier, touchPointStates TouchPointState, 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))
@ -2790,8 +2790,8 @@ func (this *QTouchEvent) Target() *QObject {
return newQObject_U(unsafe.Pointer(C.QTouchEvent_Target(this.h)))
}
func (this *QTouchEvent) TouchPointStates() int {
return (int)(C.QTouchEvent_TouchPointStates(this.h))
func (this *QTouchEvent) TouchPointStates() TouchPointState {
return (TouchPointState)(C.QTouchEvent_TouchPointStates(this.h))
}
func (this *QTouchEvent) TouchPoints() []QTouchEvent__TouchPoint {
@ -2820,7 +2820,7 @@ func (this *QTouchEvent) SetTarget(atarget *QObject) {
C.QTouchEvent_SetTarget(this.h, atarget.cPointer())
}
func (this *QTouchEvent) SetTouchPointStates(aTouchPointStates int) {
func (this *QTouchEvent) SetTouchPointStates(aTouchPointStates TouchPointState) {
C.QTouchEvent_SetTouchPointStates(this.h, (C.int)(aTouchPointStates))
}
@ -3380,8 +3380,8 @@ func (this *QTouchEvent__TouchPoint) Velocity() *QVector2D {
return _goptr
}
func (this *QTouchEvent__TouchPoint) Flags() int {
return (int)(C.QTouchEvent__TouchPoint_Flags(this.h))
func (this *QTouchEvent__TouchPoint) Flags() QTouchEvent__TouchPoint__InfoFlag {
return (QTouchEvent__TouchPoint__InfoFlag)(C.QTouchEvent__TouchPoint_Flags(this.h))
}
func (this *QTouchEvent__TouchPoint) RawScreenPositions() []QPointF {
@ -3406,7 +3406,7 @@ func (this *QTouchEvent__TouchPoint) SetUniqueId(uid int64) {
C.QTouchEvent__TouchPoint_SetUniqueId(this.h, (C.longlong)(uid))
}
func (this *QTouchEvent__TouchPoint) SetState(state int) {
func (this *QTouchEvent__TouchPoint) SetState(state TouchPointState) {
C.QTouchEvent__TouchPoint_SetState(this.h, (C.int)(state))
}
@ -3474,7 +3474,7 @@ func (this *QTouchEvent__TouchPoint) SetVelocity(v *QVector2D) {
C.QTouchEvent__TouchPoint_SetVelocity(this.h, v.cPointer())
}
func (this *QTouchEvent__TouchPoint) SetFlags(flags int) {
func (this *QTouchEvent__TouchPoint) SetFlags(flags QTouchEvent__TouchPoint__InfoFlag) {
C.QTouchEvent__TouchPoint_SetFlags(this.h, (C.int)(flags))
}

View File

@ -86,7 +86,7 @@ func (this *QEventLoop) ProcessEvents() bool {
return (bool)(C.QEventLoop_ProcessEvents(this.h))
}
func (this *QEventLoop) ProcessEvents2(flags int, maximumTime int) {
func (this *QEventLoop) ProcessEvents2(flags QEventLoop__ProcessEventsFlag, maximumTime int) {
C.QEventLoop_ProcessEvents2(this.h, (C.int)(flags), (C.int)(maximumTime))
}
@ -158,11 +158,11 @@ func QEventLoop_TrUtf83(s string, c string, n int) string {
return _ret
}
func (this *QEventLoop) ProcessEvents1(flags int) bool {
func (this *QEventLoop) ProcessEvents1(flags QEventLoop__ProcessEventsFlag) bool {
return (bool)(C.QEventLoop_ProcessEvents1(this.h, (C.int)(flags)))
}
func (this *QEventLoop) Exec1(flags int) int {
func (this *QEventLoop) Exec1(flags QEventLoop__ProcessEventsFlag) int {
return (int)(C.QEventLoop_Exec1(this.h, (C.int)(flags)))
}

View File

@ -228,11 +228,11 @@ func QFile_Copy2(fileName string, newName string) bool {
return (bool)(C.QFile_Copy2((*C.struct_miqt_string)(fileName_ms), (*C.struct_miqt_string)(newName_ms)))
}
func (this *QFile) Open(flags int) bool {
func (this *QFile) Open(flags QIODevice__OpenModeFlag) bool {
return (bool)(C.QFile_Open(this.h, (C.int)(flags)))
}
func (this *QFile) Open3(fd int, ioFlags int) bool {
func (this *QFile) Open3(fd int, ioFlags QIODevice__OpenModeFlag) bool {
return (bool)(C.QFile_Open3(this.h, (C.int)(fd), (C.int)(ioFlags)))
}
@ -250,21 +250,21 @@ func QFile_Resize2(filename string, sz int64) bool {
return (bool)(C.QFile_Resize2((*C.struct_miqt_string)(filename_ms), (C.longlong)(sz)))
}
func (this *QFile) Permissions() int {
return (int)(C.QFile_Permissions(this.h))
func (this *QFile) Permissions() QFileDevice__Permission {
return (QFileDevice__Permission)(C.QFile_Permissions(this.h))
}
func QFile_PermissionsWithFilename(filename string) int {
func QFile_PermissionsWithFilename(filename string) QFileDevice__Permission {
filename_ms := miqt_strdupg(filename)
defer C.free(filename_ms)
return (int)(C.QFile_PermissionsWithFilename((*C.struct_miqt_string)(filename_ms)))
return (QFileDevice__Permission)(C.QFile_PermissionsWithFilename((*C.struct_miqt_string)(filename_ms)))
}
func (this *QFile) SetPermissions(permissionSpec int) bool {
func (this *QFile) SetPermissions(permissionSpec QFileDevice__Permission) bool {
return (bool)(C.QFile_SetPermissions(this.h, (C.int)(permissionSpec)))
}
func QFile_SetPermissions2(filename string, permissionSpec int) bool {
func QFile_SetPermissions2(filename string, permissionSpec QFileDevice__Permission) bool {
filename_ms := miqt_strdupg(filename)
defer C.free(filename_ms)
return (bool)(C.QFile_SetPermissions2((*C.struct_miqt_string)(filename_ms), (C.int)(permissionSpec)))
@ -314,7 +314,7 @@ func QFile_TrUtf83(s string, c string, n int) string {
return _ret
}
func (this *QFile) Open33(fd int, ioFlags int, handleFlags int) bool {
func (this *QFile) Open33(fd int, ioFlags QIODevice__OpenModeFlag, handleFlags QFileDevice__FileHandleFlag) bool {
return (bool)(C.QFile_Open33(this.h, (C.int)(fd), (C.int)(ioFlags), (C.int)(handleFlags)))
}

View File

@ -169,11 +169,11 @@ func (this *QFileDevice) Resize(sz int64) bool {
return (bool)(C.QFileDevice_Resize(this.h, (C.longlong)(sz)))
}
func (this *QFileDevice) Permissions() int {
return (int)(C.QFileDevice_Permissions(this.h))
func (this *QFileDevice) Permissions() QFileDevice__Permission {
return (QFileDevice__Permission)(C.QFileDevice_Permissions(this.h))
}
func (this *QFileDevice) SetPermissions(permissionSpec int) bool {
func (this *QFileDevice) SetPermissions(permissionSpec QFileDevice__Permission) bool {
return (bool)(C.QFileDevice_SetPermissions(this.h, (C.int)(permissionSpec)))
}

View File

@ -85,7 +85,7 @@ func newQFileDialog_U(h unsafe.Pointer) *QFileDialog {
}
// NewQFileDialog constructs a new QFileDialog object.
func NewQFileDialog(parent *QWidget, f int) *QFileDialog {
func NewQFileDialog(parent *QWidget, f WindowType) *QFileDialog {
ret := C.QFileDialog_new(parent.cPointer(), (C.int)(f))
return newQFileDialog(ret)
}
@ -316,11 +316,11 @@ func (this *QFileDialog) SelectMimeTypeFilter(filter string) {
C.QFileDialog_SelectMimeTypeFilter(this.h, (*C.struct_miqt_string)(filter_ms))
}
func (this *QFileDialog) Filter() int {
return (int)(C.QFileDialog_Filter(this.h))
func (this *QFileDialog) Filter() QDir__Filter {
return (QDir__Filter)(C.QFileDialog_Filter(this.h))
}
func (this *QFileDialog) SetFilter(filters int) {
func (this *QFileDialog) SetFilter(filters QDir__Filter) {
C.QFileDialog_SetFilter(this.h, (C.int)(filters))
}
@ -523,12 +523,12 @@ func (this *QFileDialog) TestOption(option QFileDialog__Option) bool {
return (bool)(C.QFileDialog_TestOption(this.h, (C.int)(option)))
}
func (this *QFileDialog) SetOptions(options int) {
func (this *QFileDialog) SetOptions(options QFileDialog__Option) {
C.QFileDialog_SetOptions(this.h, (C.int)(options))
}
func (this *QFileDialog) Options() int {
return (int)(C.QFileDialog_Options(this.h))
func (this *QFileDialog) Options() QFileDialog__Option {
return (QFileDialog__Option)(C.QFileDialog_Options(this.h))
}
func (this *QFileDialog) SetVisible(visible bool) {
@ -1074,7 +1074,7 @@ func QFileDialog_GetExistingDirectory3(parent *QWidget, caption string, dir stri
return _ret
}
func QFileDialog_GetExistingDirectory4(parent *QWidget, caption string, dir string, options int) string {
func QFileDialog_GetExistingDirectory4(parent *QWidget, caption string, dir string, options QFileDialog__Option) string {
caption_ms := miqt_strdupg(caption)
defer C.free(caption_ms)
dir_ms := miqt_strdupg(dir)
@ -1110,7 +1110,7 @@ func QFileDialog_GetExistingDirectoryUrl3(parent *QWidget, caption string, dir *
return _goptr
}
func QFileDialog_GetExistingDirectoryUrl4(parent *QWidget, caption string, dir *QUrl, options int) *QUrl {
func QFileDialog_GetExistingDirectoryUrl4(parent *QWidget, caption string, dir *QUrl, options QFileDialog__Option) *QUrl {
caption_ms := miqt_strdupg(caption)
defer C.free(caption_ms)
_ret := C.QFileDialog_GetExistingDirectoryUrl4(parent.cPointer(), (*C.struct_miqt_string)(caption_ms), dir.cPointer(), (C.int)(options))
@ -1119,7 +1119,7 @@ func QFileDialog_GetExistingDirectoryUrl4(parent *QWidget, caption string, dir *
return _goptr
}
func QFileDialog_GetExistingDirectoryUrl5(parent *QWidget, caption string, dir *QUrl, options int, supportedSchemes []string) *QUrl {
func QFileDialog_GetExistingDirectoryUrl5(parent *QWidget, caption string, dir *QUrl, options QFileDialog__Option, supportedSchemes []string) *QUrl {
caption_ms := miqt_strdupg(caption)
defer C.free(caption_ms)
// For the C ABI, malloc a C array of raw pointers

View File

@ -80,12 +80,12 @@ func (this *QFileIconProvider) Type(info *QFileInfo) string {
return _ret
}
func (this *QFileIconProvider) SetOptions(options int) {
func (this *QFileIconProvider) SetOptions(options QFileIconProvider__Option) {
C.QFileIconProvider_SetOptions(this.h, (C.int)(options))
}
func (this *QFileIconProvider) Options() int {
return (int)(C.QFileIconProvider_Options(this.h))
func (this *QFileIconProvider) Options() QFileIconProvider__Option {
return (QFileIconProvider__Option)(C.QFileIconProvider_Options(this.h))
}
// Delete this object from C++ memory.

View File

@ -313,12 +313,12 @@ func (this *QFileInfo) GroupId() uint {
return (uint)(C.QFileInfo_GroupId(this.h))
}
func (this *QFileInfo) Permission(permissions int) bool {
func (this *QFileInfo) Permission(permissions QFileDevice__Permission) bool {
return (bool)(C.QFileInfo_Permission(this.h, (C.int)(permissions)))
}
func (this *QFileInfo) Permissions() int {
return (int)(C.QFileInfo_Permissions(this.h))
func (this *QFileInfo) Permissions() QFileDevice__Permission {
return (QFileDevice__Permission)(C.QFileInfo_Permissions(this.h))
}
func (this *QFileInfo) Size() int64 {

View File

@ -250,8 +250,8 @@ func (this *QFileSystemModel) HeaderData(section int, orientation Orientation) *
return _goptr
}
func (this *QFileSystemModel) Flags(index *QModelIndex) int {
return (int)(C.QFileSystemModel_Flags(this.h, index.cPointer()))
func (this *QFileSystemModel) Flags(index *QModelIndex) ItemFlag {
return (ItemFlag)(C.QFileSystemModel_Flags(this.h, index.cPointer()))
}
func (this *QFileSystemModel) Sort(column int) {
@ -288,8 +288,8 @@ func (this *QFileSystemModel) DropMimeData(data *QMimeData, action DropAction, r
return (bool)(C.QFileSystemModel_DropMimeData(this.h, data.cPointer(), (C.int)(action), (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QFileSystemModel) SupportedDropActions() int {
return (int)(C.QFileSystemModel_SupportedDropActions(this.h))
func (this *QFileSystemModel) SupportedDropActions() DropAction {
return (DropAction)(C.QFileSystemModel_SupportedDropActions(this.h))
}
func (this *QFileSystemModel) SetRootPath(path string) *QModelIndex {
@ -323,12 +323,12 @@ func (this *QFileSystemModel) IconProvider() *QFileIconProvider {
return newQFileIconProvider_U(unsafe.Pointer(C.QFileSystemModel_IconProvider(this.h)))
}
func (this *QFileSystemModel) SetFilter(filters int) {
func (this *QFileSystemModel) SetFilter(filters QDir__Filter) {
C.QFileSystemModel_SetFilter(this.h, (C.int)(filters))
}
func (this *QFileSystemModel) Filter() int {
return (int)(C.QFileSystemModel_Filter(this.h))
func (this *QFileSystemModel) Filter() QDir__Filter {
return (QDir__Filter)(C.QFileSystemModel_Filter(this.h))
}
func (this *QFileSystemModel) SetResolveSymlinks(enable bool) {
@ -391,12 +391,12 @@ func (this *QFileSystemModel) TestOption(option QFileSystemModel__Option) bool {
return (bool)(C.QFileSystemModel_TestOption(this.h, (C.int)(option)))
}
func (this *QFileSystemModel) SetOptions(options int) {
func (this *QFileSystemModel) SetOptions(options QFileSystemModel__Option) {
C.QFileSystemModel_SetOptions(this.h, (C.int)(options))
}
func (this *QFileSystemModel) Options() int {
return (int)(C.QFileSystemModel_Options(this.h))
func (this *QFileSystemModel) Options() QFileSystemModel__Option {
return (QFileSystemModel__Option)(C.QFileSystemModel_Options(this.h))
}
func (this *QFileSystemModel) FilePath(index *QModelIndex) string {
@ -455,8 +455,8 @@ func (this *QFileSystemModel) FileIcon(index *QModelIndex) *QIcon {
return _goptr
}
func (this *QFileSystemModel) Permissions(index *QModelIndex) int {
return (int)(C.QFileSystemModel_Permissions(this.h, index.cPointer()))
func (this *QFileSystemModel) Permissions(index *QModelIndex) QFileDevice__Permission {
return (QFileDevice__Permission)(C.QFileSystemModel_Permissions(this.h, index.cPointer()))
}
func (this *QFileSystemModel) FileInfo(index *QModelIndex) *QFileInfo {

View File

@ -89,12 +89,12 @@ func (this *QFontComboBox) WritingSystem() QFontDatabase__WritingSystem {
return (QFontDatabase__WritingSystem)(C.QFontComboBox_WritingSystem(this.h))
}
func (this *QFontComboBox) SetFontFilters(filters int) {
func (this *QFontComboBox) SetFontFilters(filters QFontComboBox__FontFilter) {
C.QFontComboBox_SetFontFilters(this.h, (C.int)(filters))
}
func (this *QFontComboBox) FontFilters() int {
return (int)(C.QFontComboBox_FontFilters(this.h))
func (this *QFontComboBox) FontFilters() QFontComboBox__FontFilter {
return (QFontComboBox__FontFilter)(C.QFontComboBox_FontFilters(this.h))
}
func (this *QFontComboBox) CurrentFont() *QFont {

View File

@ -120,12 +120,12 @@ func (this *QFontDialog) TestOption(option QFontDialog__FontDialogOption) bool {
return (bool)(C.QFontDialog_TestOption(this.h, (C.int)(option)))
}
func (this *QFontDialog) SetOptions(options int) {
func (this *QFontDialog) SetOptions(options QFontDialog__FontDialogOption) {
C.QFontDialog_SetOptions(this.h, (C.int)(options))
}
func (this *QFontDialog) Options() int {
return (int)(C.QFontDialog_Options(this.h))
func (this *QFontDialog) Options() QFontDialog__FontDialogOption {
return (QFontDialog__FontDialogOption)(C.QFontDialog_Options(this.h))
}
func (this *QFontDialog) SetVisible(visible bool) {
@ -257,7 +257,7 @@ func QFontDialog_GetFont4(ok *bool, initial *QFont, parent *QWidget, title strin
return _goptr
}
func QFontDialog_GetFont5(ok *bool, initial *QFont, parent *QWidget, title string, options int) *QFont {
func QFontDialog_GetFont5(ok *bool, initial *QFont, parent *QWidget, title string, options QFontDialog__FontDialogOption) *QFont {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
_ret := C.QFontDialog_GetFont5((*C.bool)(unsafe.Pointer(ok)), initial.cPointer(), parent.cPointer(), (*C.struct_miqt_string)(title_ms), (C.int)(options))

View File

@ -191,6 +191,18 @@ QLayoutItem* QFormLayout_ItemAt(const QFormLayout* self, int row, int role) {
return self->itemAt(static_cast<int>(row), static_cast<QFormLayout::ItemRole>(role));
}
void QFormLayout_GetItemPosition(const QFormLayout* self, int index, int* rowPtr, int* rolePtr) {
self->getItemPosition(static_cast<int>(index), static_cast<int*>(rowPtr), static_cast<QFormLayout::ItemRole*>(rolePtr));
}
void QFormLayout_GetWidgetPosition(const QFormLayout* self, QWidget* widget, int* rowPtr, int* rolePtr) {
self->getWidgetPosition(widget, static_cast<int*>(rowPtr), static_cast<QFormLayout::ItemRole*>(rolePtr));
}
void QFormLayout_GetLayoutPosition(const QFormLayout* self, QLayout* layout, int* rowPtr, int* rolePtr) {
self->getLayoutPosition(layout, static_cast<int*>(rowPtr), static_cast<QFormLayout::ItemRole*>(rolePtr));
}
QWidget* QFormLayout_LabelForField(const QFormLayout* self, QWidget* field) {
return self->labelForField(field);
}

View File

@ -102,28 +102,28 @@ func (this *QFormLayout) FieldGrowthPolicy() QFormLayout__FieldGrowthPolicy {
return (QFormLayout__FieldGrowthPolicy)(C.QFormLayout_FieldGrowthPolicy(this.h))
}
func (this *QFormLayout) SetRowWrapPolicy(policy int) {
func (this *QFormLayout) SetRowWrapPolicy(policy QFormLayout__RowWrapPolicy) {
C.QFormLayout_SetRowWrapPolicy(this.h, (C.int)(policy))
}
func (this *QFormLayout) RowWrapPolicy() int {
return (int)(C.QFormLayout_RowWrapPolicy(this.h))
func (this *QFormLayout) RowWrapPolicy() QFormLayout__RowWrapPolicy {
return (QFormLayout__RowWrapPolicy)(C.QFormLayout_RowWrapPolicy(this.h))
}
func (this *QFormLayout) SetLabelAlignment(alignment int) {
func (this *QFormLayout) SetLabelAlignment(alignment AlignmentFlag) {
C.QFormLayout_SetLabelAlignment(this.h, (C.int)(alignment))
}
func (this *QFormLayout) LabelAlignment() int {
return (int)(C.QFormLayout_LabelAlignment(this.h))
func (this *QFormLayout) LabelAlignment() AlignmentFlag {
return (AlignmentFlag)(C.QFormLayout_LabelAlignment(this.h))
}
func (this *QFormLayout) SetFormAlignment(alignment int) {
func (this *QFormLayout) SetFormAlignment(alignment AlignmentFlag) {
C.QFormLayout_SetFormAlignment(this.h, (C.int)(alignment))
}
func (this *QFormLayout) FormAlignment() int {
return (int)(C.QFormLayout_FormAlignment(this.h))
func (this *QFormLayout) FormAlignment() AlignmentFlag {
return (AlignmentFlag)(C.QFormLayout_FormAlignment(this.h))
}
func (this *QFormLayout) SetHorizontalSpacing(spacing int) {
@ -239,22 +239,34 @@ func (this *QFormLayout) TakeRowWithLayout(layout *QLayout) *QFormLayout__TakeRo
return _goptr
}
func (this *QFormLayout) SetItem(row int, role int, item *QLayoutItem) {
func (this *QFormLayout) SetItem(row int, role QFormLayout__ItemRole, item *QLayoutItem) {
C.QFormLayout_SetItem(this.h, (C.int)(row), (C.int)(role), item.cPointer())
}
func (this *QFormLayout) SetWidget(row int, role int, widget *QWidget) {
func (this *QFormLayout) SetWidget(row int, role QFormLayout__ItemRole, widget *QWidget) {
C.QFormLayout_SetWidget(this.h, (C.int)(row), (C.int)(role), widget.cPointer())
}
func (this *QFormLayout) SetLayout(row int, role int, layout *QLayout) {
func (this *QFormLayout) SetLayout(row int, role QFormLayout__ItemRole, layout *QLayout) {
C.QFormLayout_SetLayout(this.h, (C.int)(row), (C.int)(role), layout.cPointer())
}
func (this *QFormLayout) ItemAt(row int, role int) *QLayoutItem {
func (this *QFormLayout) ItemAt(row int, role QFormLayout__ItemRole) *QLayoutItem {
return newQLayoutItem_U(unsafe.Pointer(C.QFormLayout_ItemAt(this.h, (C.int)(row), (C.int)(role))))
}
func (this *QFormLayout) GetItemPosition(index int, rowPtr *int, rolePtr *QFormLayout__ItemRole) {
C.QFormLayout_GetItemPosition(this.h, (C.int)(index), (*C.int)(unsafe.Pointer(rowPtr)), (*C.int)(unsafe.Pointer(rolePtr)))
}
func (this *QFormLayout) GetWidgetPosition(widget *QWidget, rowPtr *int, rolePtr *QFormLayout__ItemRole) {
C.QFormLayout_GetWidgetPosition(this.h, widget.cPointer(), (*C.int)(unsafe.Pointer(rowPtr)), (*C.int)(unsafe.Pointer(rolePtr)))
}
func (this *QFormLayout) GetLayoutPosition(layout *QLayout, rowPtr *int, rolePtr *QFormLayout__ItemRole) {
C.QFormLayout_GetLayoutPosition(this.h, layout.cPointer(), (*C.int)(unsafe.Pointer(rowPtr)), (*C.int)(unsafe.Pointer(rolePtr)))
}
func (this *QFormLayout) LabelForField(field *QWidget) *QWidget {
return newQWidget_U(unsafe.Pointer(C.QFormLayout_LabelForField(this.h, field.cPointer())))
}
@ -305,8 +317,8 @@ func (this *QFormLayout) HeightForWidth(width int) int {
return (int)(C.QFormLayout_HeightForWidth(this.h, (C.int)(width)))
}
func (this *QFormLayout) ExpandingDirections() int {
return (int)(C.QFormLayout_ExpandingDirections(this.h))
func (this *QFormLayout) ExpandingDirections() Orientation {
return (Orientation)(C.QFormLayout_ExpandingDirections(this.h))
}
func (this *QFormLayout) Count() int {

View File

@ -78,6 +78,9 @@ void QFormLayout_SetItem(QFormLayout* self, int row, int role, QLayoutItem* item
void QFormLayout_SetWidget(QFormLayout* self, int row, int role, QWidget* widget);
void QFormLayout_SetLayout(QFormLayout* self, int row, int role, QLayout* layout);
QLayoutItem* QFormLayout_ItemAt(const QFormLayout* self, int row, int role);
void QFormLayout_GetItemPosition(const QFormLayout* self, int index, int* rowPtr, int* rolePtr);
void QFormLayout_GetWidgetPosition(const QFormLayout* self, QWidget* widget, int* rowPtr, int* rolePtr);
void QFormLayout_GetLayoutPosition(const QFormLayout* self, QLayout* layout, int* rowPtr, int* rolePtr);
QWidget* QFormLayout_LabelForField(const QFormLayout* self, QWidget* field);
QWidget* QFormLayout_LabelForFieldWithField(const QFormLayout* self, QLayout* field);
void QFormLayout_AddItem(QFormLayout* self, QLayoutItem* item);

View File

@ -76,7 +76,7 @@ func NewQFrame2(parent *QWidget) *QFrame {
}
// NewQFrame3 constructs a new QFrame object.
func NewQFrame3(parent *QWidget, f int) *QFrame {
func NewQFrame3(parent *QWidget, f WindowType) *QFrame {
ret := C.QFrame_new3(parent.cPointer(), (C.int)(f))
return newQFrame(ret)
}

View File

@ -397,19 +397,19 @@ func QPinchGesture_TrUtf8(s string) string {
return _ret
}
func (this *QPinchGesture) TotalChangeFlags() int {
return (int)(C.QPinchGesture_TotalChangeFlags(this.h))
func (this *QPinchGesture) TotalChangeFlags() QPinchGesture__ChangeFlag {
return (QPinchGesture__ChangeFlag)(C.QPinchGesture_TotalChangeFlags(this.h))
}
func (this *QPinchGesture) SetTotalChangeFlags(value int) {
func (this *QPinchGesture) SetTotalChangeFlags(value QPinchGesture__ChangeFlag) {
C.QPinchGesture_SetTotalChangeFlags(this.h, (C.int)(value))
}
func (this *QPinchGesture) ChangeFlags() int {
return (int)(C.QPinchGesture_ChangeFlags(this.h))
func (this *QPinchGesture) ChangeFlags() QPinchGesture__ChangeFlag {
return (QPinchGesture__ChangeFlag)(C.QPinchGesture_ChangeFlags(this.h))
}
func (this *QPinchGesture) SetChangeFlags(value int) {
func (this *QPinchGesture) SetChangeFlags(value QPinchGesture__ChangeFlag) {
C.QPinchGesture_SetChangeFlags(this.h, (C.int)(value))
}

View File

@ -52,8 +52,8 @@ func (this *QGestureRecognizer) Create(target *QObject) *QGesture {
return newQGesture_U(unsafe.Pointer(C.QGestureRecognizer_Create(this.h, target.cPointer())))
}
func (this *QGestureRecognizer) Recognize(state *QGesture, watched *QObject, event *QEvent) int {
return (int)(C.QGestureRecognizer_Recognize(this.h, state.cPointer(), watched.cPointer(), event.cPointer()))
func (this *QGestureRecognizer) Recognize(state *QGesture, watched *QObject, event *QEvent) QGestureRecognizer__ResultFlag {
return (QGestureRecognizer__ResultFlag)(C.QGestureRecognizer_Recognize(this.h, state.cPointer(), watched.cPointer(), event.cPointer()))
}
func (this *QGestureRecognizer) Reset(state *QGesture) {

View File

@ -177,12 +177,12 @@ func (this *QGlyphRun) SetFlag(flag QGlyphRun__GlyphRunFlag) {
C.QGlyphRun_SetFlag(this.h, (C.int)(flag))
}
func (this *QGlyphRun) SetFlags(flags int) {
func (this *QGlyphRun) SetFlags(flags QGlyphRun__GlyphRunFlag) {
C.QGlyphRun_SetFlags(this.h, (C.int)(flags))
}
func (this *QGlyphRun) Flags() int {
return (int)(C.QGlyphRun_Flags(this.h))
func (this *QGlyphRun) Flags() QGlyphRun__GlyphRunFlag {
return (QGlyphRun__GlyphRunFlag)(C.QGlyphRun_Flags(this.h))
}
func (this *QGlyphRun) SetBoundingRect(boundingRect *QRectF) {

View File

@ -227,7 +227,7 @@ func (this *QGraphicsAnchorLayout) Invalidate() {
C.QGraphicsAnchorLayout_Invalidate(this.h)
}
func (this *QGraphicsAnchorLayout) AddAnchors3(firstItem *QGraphicsLayoutItem, secondItem *QGraphicsLayoutItem, orientations int) {
func (this *QGraphicsAnchorLayout) AddAnchors3(firstItem *QGraphicsLayoutItem, secondItem *QGraphicsLayoutItem, orientations Orientation) {
C.QGraphicsAnchorLayout_AddAnchors3(this.h, firstItem.cPointer(), secondItem.cPointer(), (C.int)(orientations))
}

View File

@ -430,15 +430,15 @@ func (this *QGraphicsBlurEffect) BlurRadius() float64 {
return (float64)(C.QGraphicsBlurEffect_BlurRadius(this.h))
}
func (this *QGraphicsBlurEffect) BlurHints() int {
return (int)(C.QGraphicsBlurEffect_BlurHints(this.h))
func (this *QGraphicsBlurEffect) BlurHints() QGraphicsBlurEffect__BlurHint {
return (QGraphicsBlurEffect__BlurHint)(C.QGraphicsBlurEffect_BlurHints(this.h))
}
func (this *QGraphicsBlurEffect) SetBlurRadius(blurRadius float64) {
C.QGraphicsBlurEffect_SetBlurRadius(this.h, (C.double)(blurRadius))
}
func (this *QGraphicsBlurEffect) SetBlurHints(hints int) {
func (this *QGraphicsBlurEffect) SetBlurHints(hints QGraphicsBlurEffect__BlurHint) {
C.QGraphicsBlurEffect_SetBlurHints(this.h, (C.int)(hints))
}
@ -462,22 +462,22 @@ func miqt_exec_callback_QGraphicsBlurEffect_BlurRadiusChanged(cb *C.void, blurRa
gofunc(slotval1)
}
func (this *QGraphicsBlurEffect) BlurHintsChanged(hints int) {
func (this *QGraphicsBlurEffect) BlurHintsChanged(hints QGraphicsBlurEffect__BlurHint) {
C.QGraphicsBlurEffect_BlurHintsChanged(this.h, (C.int)(hints))
}
func (this *QGraphicsBlurEffect) OnBlurHintsChanged(slot func(hints int)) {
func (this *QGraphicsBlurEffect) OnBlurHintsChanged(slot func(hints QGraphicsBlurEffect__BlurHint)) {
C.QGraphicsBlurEffect_connect_BlurHintsChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
}
//export miqt_exec_callback_QGraphicsBlurEffect_BlurHintsChanged
func miqt_exec_callback_QGraphicsBlurEffect_BlurHintsChanged(cb *C.void, hints C.int) {
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(hints int))
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(hints QGraphicsBlurEffect__BlurHint))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(hints)
slotval1 := (QGraphicsBlurEffect__BlurHint)(hints)
gofunc(slotval1)
}

View File

@ -164,28 +164,28 @@ func (this *QGraphicsGridLayout) SetColumnFixedWidth(column int, width float64)
C.QGraphicsGridLayout_SetColumnFixedWidth(this.h, (C.int)(column), (C.double)(width))
}
func (this *QGraphicsGridLayout) SetRowAlignment(row int, alignment int) {
func (this *QGraphicsGridLayout) SetRowAlignment(row int, alignment AlignmentFlag) {
C.QGraphicsGridLayout_SetRowAlignment(this.h, (C.int)(row), (C.int)(alignment))
}
func (this *QGraphicsGridLayout) RowAlignment(row int) int {
return (int)(C.QGraphicsGridLayout_RowAlignment(this.h, (C.int)(row)))
func (this *QGraphicsGridLayout) RowAlignment(row int) AlignmentFlag {
return (AlignmentFlag)(C.QGraphicsGridLayout_RowAlignment(this.h, (C.int)(row)))
}
func (this *QGraphicsGridLayout) SetColumnAlignment(column int, alignment int) {
func (this *QGraphicsGridLayout) SetColumnAlignment(column int, alignment AlignmentFlag) {
C.QGraphicsGridLayout_SetColumnAlignment(this.h, (C.int)(column), (C.int)(alignment))
}
func (this *QGraphicsGridLayout) ColumnAlignment(column int) int {
return (int)(C.QGraphicsGridLayout_ColumnAlignment(this.h, (C.int)(column)))
func (this *QGraphicsGridLayout) ColumnAlignment(column int) AlignmentFlag {
return (AlignmentFlag)(C.QGraphicsGridLayout_ColumnAlignment(this.h, (C.int)(column)))
}
func (this *QGraphicsGridLayout) SetAlignment(item *QGraphicsLayoutItem, alignment int) {
func (this *QGraphicsGridLayout) SetAlignment(item *QGraphicsLayoutItem, alignment AlignmentFlag) {
C.QGraphicsGridLayout_SetAlignment(this.h, item.cPointer(), (C.int)(alignment))
}
func (this *QGraphicsGridLayout) Alignment(item *QGraphicsLayoutItem) int {
return (int)(C.QGraphicsGridLayout_Alignment(this.h, item.cPointer()))
func (this *QGraphicsGridLayout) Alignment(item *QGraphicsLayoutItem) AlignmentFlag {
return (AlignmentFlag)(C.QGraphicsGridLayout_Alignment(this.h, item.cPointer()))
}
func (this *QGraphicsGridLayout) RowCount() int {
@ -231,11 +231,11 @@ func (this *QGraphicsGridLayout) SizeHint(which SizeHint) *QSizeF {
return _goptr
}
func (this *QGraphicsGridLayout) AddItem6(item *QGraphicsLayoutItem, row int, column int, rowSpan int, columnSpan int, alignment int) {
func (this *QGraphicsGridLayout) AddItem6(item *QGraphicsLayoutItem, row int, column int, rowSpan int, columnSpan int, alignment AlignmentFlag) {
C.QGraphicsGridLayout_AddItem6(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), (C.int)(alignment))
}
func (this *QGraphicsGridLayout) AddItem4(item *QGraphicsLayoutItem, row int, column int, alignment int) {
func (this *QGraphicsGridLayout) AddItem4(item *QGraphicsLayoutItem, row int, column int, alignment AlignmentFlag) {
C.QGraphicsGridLayout_AddItem4(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(alignment))
}

View File

@ -260,15 +260,15 @@ func (this *QGraphicsItem) SetGroup(group *QGraphicsItemGroup) {
C.QGraphicsItem_SetGroup(this.h, group.cPointer())
}
func (this *QGraphicsItem) Flags() int {
return (int)(C.QGraphicsItem_Flags(this.h))
func (this *QGraphicsItem) Flags() QGraphicsItem__GraphicsItemFlag {
return (QGraphicsItem__GraphicsItemFlag)(C.QGraphicsItem_Flags(this.h))
}
func (this *QGraphicsItem) SetFlag(flag QGraphicsItem__GraphicsItemFlag) {
C.QGraphicsItem_SetFlag(this.h, (C.int)(flag))
}
func (this *QGraphicsItem) SetFlags(flags int) {
func (this *QGraphicsItem) SetFlags(flags QGraphicsItem__GraphicsItemFlag) {
C.QGraphicsItem_SetFlags(this.h, (C.int)(flags))
}
@ -388,11 +388,11 @@ func (this *QGraphicsItem) SetGraphicsEffect(effect *QGraphicsEffect) {
C.QGraphicsItem_SetGraphicsEffect(this.h, effect.cPointer())
}
func (this *QGraphicsItem) AcceptedMouseButtons() int {
return (int)(C.QGraphicsItem_AcceptedMouseButtons(this.h))
func (this *QGraphicsItem) AcceptedMouseButtons() MouseButton {
return (MouseButton)(C.QGraphicsItem_AcceptedMouseButtons(this.h))
}
func (this *QGraphicsItem) SetAcceptedMouseButtons(buttons int) {
func (this *QGraphicsItem) SetAcceptedMouseButtons(buttons MouseButton) {
C.QGraphicsItem_SetAcceptedMouseButtons(this.h, (C.int)(buttons))
}
@ -1003,11 +1003,11 @@ func (this *QGraphicsItem) SetData(key int, value *QVariant) {
C.QGraphicsItem_SetData(this.h, (C.int)(key), value.cPointer())
}
func (this *QGraphicsItem) InputMethodHints() int {
return (int)(C.QGraphicsItem_InputMethodHints(this.h))
func (this *QGraphicsItem) InputMethodHints() InputMethodHint {
return (InputMethodHint)(C.QGraphicsItem_InputMethodHints(this.h))
}
func (this *QGraphicsItem) SetInputMethodHints(hints int) {
func (this *QGraphicsItem) SetInputMethodHints(hints InputMethodHint) {
C.QGraphicsItem_SetInputMethodHints(this.h, (C.int)(hints))
}
@ -1421,7 +1421,7 @@ func QGraphicsObject_TrUtf83(s string, c string, n int) string {
return _ret
}
func (this *QGraphicsObject) GrabGesture2(typeVal GestureType, flags int) {
func (this *QGraphicsObject) GrabGesture2(typeVal GestureType, flags GestureFlag) {
C.QGraphicsObject_GrabGesture2(this.h, (C.int)(typeVal), (C.int)(flags))
}
@ -2452,12 +2452,12 @@ func (this *QGraphicsTextItem) Document() *QTextDocument {
return newQTextDocument_U(unsafe.Pointer(C.QGraphicsTextItem_Document(this.h)))
}
func (this *QGraphicsTextItem) SetTextInteractionFlags(flags int) {
func (this *QGraphicsTextItem) SetTextInteractionFlags(flags TextInteractionFlag) {
C.QGraphicsTextItem_SetTextInteractionFlags(this.h, (C.int)(flags))
}
func (this *QGraphicsTextItem) TextInteractionFlags() int {
return (int)(C.QGraphicsTextItem_TextInteractionFlags(this.h))
func (this *QGraphicsTextItem) TextInteractionFlags() TextInteractionFlag {
return (TextInteractionFlag)(C.QGraphicsTextItem_TextInteractionFlags(this.h))
}
func (this *QGraphicsTextItem) SetTabChangesFocus(b bool) {

View File

@ -116,12 +116,12 @@ func (this *QGraphicsLinearLayout) StretchFactor(item *QGraphicsLayoutItem) int
return (int)(C.QGraphicsLinearLayout_StretchFactor(this.h, item.cPointer()))
}
func (this *QGraphicsLinearLayout) SetAlignment(item *QGraphicsLayoutItem, alignment int) {
func (this *QGraphicsLinearLayout) SetAlignment(item *QGraphicsLayoutItem, alignment AlignmentFlag) {
C.QGraphicsLinearLayout_SetAlignment(this.h, item.cPointer(), (C.int)(alignment))
}
func (this *QGraphicsLinearLayout) Alignment(item *QGraphicsLayoutItem) int {
return (int)(C.QGraphicsLinearLayout_Alignment(this.h, item.cPointer()))
func (this *QGraphicsLinearLayout) Alignment(item *QGraphicsLayoutItem) AlignmentFlag {
return (AlignmentFlag)(C.QGraphicsLinearLayout_Alignment(this.h, item.cPointer()))
}
func (this *QGraphicsLinearLayout) SetGeometry(rect *QRectF) {

View File

@ -55,7 +55,7 @@ func NewQGraphicsProxyWidget2(parent *QGraphicsItem) *QGraphicsProxyWidget {
}
// NewQGraphicsProxyWidget3 constructs a new QGraphicsProxyWidget object.
func NewQGraphicsProxyWidget3(parent *QGraphicsItem, wFlags int) *QGraphicsProxyWidget {
func NewQGraphicsProxyWidget3(parent *QGraphicsItem, wFlags WindowType) *QGraphicsProxyWidget {
ret := C.QGraphicsProxyWidget_new3(parent.cPointer(), (C.int)(wFlags))
return newQGraphicsProxyWidget(ret)
}

View File

@ -856,7 +856,7 @@ func (this *QGraphicsScene) AddSimpleText2(text string, font *QFont) *QGraphicsS
return newQGraphicsSimpleTextItem_U(unsafe.Pointer(C.QGraphicsScene_AddSimpleText2(this.h, (*C.struct_miqt_string)(text_ms), font.cPointer())))
}
func (this *QGraphicsScene) AddWidget2(widget *QWidget, wFlags int) *QGraphicsProxyWidget {
func (this *QGraphicsScene) AddWidget2(widget *QWidget, wFlags WindowType) *QGraphicsProxyWidget {
return newQGraphicsProxyWidget_U(unsafe.Pointer(C.QGraphicsScene_AddWidget2(this.h, widget.cPointer(), (C.int)(wFlags))))
}
@ -888,7 +888,7 @@ func (this *QGraphicsScene) SetFocus1(focusReason FocusReason) {
C.QGraphicsScene_SetFocus1(this.h, (C.int)(focusReason))
}
func (this *QGraphicsScene) Invalidate5(x float64, y float64, w float64, h float64, layers int) {
func (this *QGraphicsScene) Invalidate5(x float64, y float64, w float64, h float64, layers QGraphicsScene__SceneLayer) {
C.QGraphicsScene_Invalidate5(this.h, (C.double)(x), (C.double)(y), (C.double)(w), (C.double)(h), (C.int)(layers))
}
@ -900,7 +900,7 @@ func (this *QGraphicsScene) Invalidate1(rect *QRectF) {
C.QGraphicsScene_Invalidate1(this.h, rect.cPointer())
}
func (this *QGraphicsScene) Invalidate22(rect *QRectF, layers int) {
func (this *QGraphicsScene) Invalidate22(rect *QRectF, layers QGraphicsScene__SceneLayer) {
C.QGraphicsScene_Invalidate22(this.h, rect.cPointer(), (C.int)(layers))
}

View File

@ -206,11 +206,11 @@ func (this *QGraphicsSceneMouseEvent) SetLastScreenPos(pos *QPoint) {
C.QGraphicsSceneMouseEvent_SetLastScreenPos(this.h, pos.cPointer())
}
func (this *QGraphicsSceneMouseEvent) Buttons() int {
return (int)(C.QGraphicsSceneMouseEvent_Buttons(this.h))
func (this *QGraphicsSceneMouseEvent) Buttons() MouseButton {
return (MouseButton)(C.QGraphicsSceneMouseEvent_Buttons(this.h))
}
func (this *QGraphicsSceneMouseEvent) SetButtons(buttons int) {
func (this *QGraphicsSceneMouseEvent) SetButtons(buttons MouseButton) {
C.QGraphicsSceneMouseEvent_SetButtons(this.h, (C.int)(buttons))
}
@ -222,11 +222,11 @@ func (this *QGraphicsSceneMouseEvent) SetButton(button MouseButton) {
C.QGraphicsSceneMouseEvent_SetButton(this.h, (C.int)(button))
}
func (this *QGraphicsSceneMouseEvent) Modifiers() int {
return (int)(C.QGraphicsSceneMouseEvent_Modifiers(this.h))
func (this *QGraphicsSceneMouseEvent) Modifiers() KeyboardModifier {
return (KeyboardModifier)(C.QGraphicsSceneMouseEvent_Modifiers(this.h))
}
func (this *QGraphicsSceneMouseEvent) SetModifiers(modifiers int) {
func (this *QGraphicsSceneMouseEvent) SetModifiers(modifiers KeyboardModifier) {
C.QGraphicsSceneMouseEvent_SetModifiers(this.h, (C.int)(modifiers))
}
@ -238,11 +238,11 @@ func (this *QGraphicsSceneMouseEvent) SetSource(source MouseEventSource) {
C.QGraphicsSceneMouseEvent_SetSource(this.h, (C.int)(source))
}
func (this *QGraphicsSceneMouseEvent) Flags() int {
return (int)(C.QGraphicsSceneMouseEvent_Flags(this.h))
func (this *QGraphicsSceneMouseEvent) Flags() MouseEventFlag {
return (MouseEventFlag)(C.QGraphicsSceneMouseEvent_Flags(this.h))
}
func (this *QGraphicsSceneMouseEvent) SetFlags(flags int) {
func (this *QGraphicsSceneMouseEvent) SetFlags(flags MouseEventFlag) {
C.QGraphicsSceneMouseEvent_SetFlags(this.h, (C.int)(flags))
}
@ -328,19 +328,19 @@ func (this *QGraphicsSceneWheelEvent) SetScreenPos(pos *QPoint) {
C.QGraphicsSceneWheelEvent_SetScreenPos(this.h, pos.cPointer())
}
func (this *QGraphicsSceneWheelEvent) Buttons() int {
return (int)(C.QGraphicsSceneWheelEvent_Buttons(this.h))
func (this *QGraphicsSceneWheelEvent) Buttons() MouseButton {
return (MouseButton)(C.QGraphicsSceneWheelEvent_Buttons(this.h))
}
func (this *QGraphicsSceneWheelEvent) SetButtons(buttons int) {
func (this *QGraphicsSceneWheelEvent) SetButtons(buttons MouseButton) {
C.QGraphicsSceneWheelEvent_SetButtons(this.h, (C.int)(buttons))
}
func (this *QGraphicsSceneWheelEvent) Modifiers() int {
return (int)(C.QGraphicsSceneWheelEvent_Modifiers(this.h))
func (this *QGraphicsSceneWheelEvent) Modifiers() KeyboardModifier {
return (KeyboardModifier)(C.QGraphicsSceneWheelEvent_Modifiers(this.h))
}
func (this *QGraphicsSceneWheelEvent) SetModifiers(modifiers int) {
func (this *QGraphicsSceneWheelEvent) SetModifiers(modifiers KeyboardModifier) {
C.QGraphicsSceneWheelEvent_SetModifiers(this.h, (C.int)(modifiers))
}
@ -442,11 +442,11 @@ func (this *QGraphicsSceneContextMenuEvent) SetScreenPos(pos *QPoint) {
C.QGraphicsSceneContextMenuEvent_SetScreenPos(this.h, pos.cPointer())
}
func (this *QGraphicsSceneContextMenuEvent) Modifiers() int {
return (int)(C.QGraphicsSceneContextMenuEvent_Modifiers(this.h))
func (this *QGraphicsSceneContextMenuEvent) Modifiers() KeyboardModifier {
return (KeyboardModifier)(C.QGraphicsSceneContextMenuEvent_Modifiers(this.h))
}
func (this *QGraphicsSceneContextMenuEvent) SetModifiers(modifiers int) {
func (this *QGraphicsSceneContextMenuEvent) SetModifiers(modifiers KeyboardModifier) {
C.QGraphicsSceneContextMenuEvent_SetModifiers(this.h, (C.int)(modifiers))
}
@ -573,11 +573,11 @@ func (this *QGraphicsSceneHoverEvent) SetLastScreenPos(pos *QPoint) {
C.QGraphicsSceneHoverEvent_SetLastScreenPos(this.h, pos.cPointer())
}
func (this *QGraphicsSceneHoverEvent) Modifiers() int {
return (int)(C.QGraphicsSceneHoverEvent_Modifiers(this.h))
func (this *QGraphicsSceneHoverEvent) Modifiers() KeyboardModifier {
return (KeyboardModifier)(C.QGraphicsSceneHoverEvent_Modifiers(this.h))
}
func (this *QGraphicsSceneHoverEvent) SetModifiers(modifiers int) {
func (this *QGraphicsSceneHoverEvent) SetModifiers(modifiers KeyboardModifier) {
C.QGraphicsSceneHoverEvent_SetModifiers(this.h, (C.int)(modifiers))
}
@ -734,27 +734,27 @@ func (this *QGraphicsSceneDragDropEvent) SetScreenPos(pos *QPoint) {
C.QGraphicsSceneDragDropEvent_SetScreenPos(this.h, pos.cPointer())
}
func (this *QGraphicsSceneDragDropEvent) Buttons() int {
return (int)(C.QGraphicsSceneDragDropEvent_Buttons(this.h))
func (this *QGraphicsSceneDragDropEvent) Buttons() MouseButton {
return (MouseButton)(C.QGraphicsSceneDragDropEvent_Buttons(this.h))
}
func (this *QGraphicsSceneDragDropEvent) SetButtons(buttons int) {
func (this *QGraphicsSceneDragDropEvent) SetButtons(buttons MouseButton) {
C.QGraphicsSceneDragDropEvent_SetButtons(this.h, (C.int)(buttons))
}
func (this *QGraphicsSceneDragDropEvent) Modifiers() int {
return (int)(C.QGraphicsSceneDragDropEvent_Modifiers(this.h))
func (this *QGraphicsSceneDragDropEvent) Modifiers() KeyboardModifier {
return (KeyboardModifier)(C.QGraphicsSceneDragDropEvent_Modifiers(this.h))
}
func (this *QGraphicsSceneDragDropEvent) SetModifiers(modifiers int) {
func (this *QGraphicsSceneDragDropEvent) SetModifiers(modifiers KeyboardModifier) {
C.QGraphicsSceneDragDropEvent_SetModifiers(this.h, (C.int)(modifiers))
}
func (this *QGraphicsSceneDragDropEvent) PossibleActions() int {
return (int)(C.QGraphicsSceneDragDropEvent_PossibleActions(this.h))
func (this *QGraphicsSceneDragDropEvent) PossibleActions() DropAction {
return (DropAction)(C.QGraphicsSceneDragDropEvent_PossibleActions(this.h))
}
func (this *QGraphicsSceneDragDropEvent) SetPossibleActions(actions int) {
func (this *QGraphicsSceneDragDropEvent) SetPossibleActions(actions DropAction) {
C.QGraphicsSceneDragDropEvent_SetPossibleActions(this.h, (C.int)(actions))
}

View File

@ -132,23 +132,23 @@ func (this *QGraphicsView) SizeHint() *QSize {
return _goptr
}
func (this *QGraphicsView) RenderHints() int {
return (int)(C.QGraphicsView_RenderHints(this.h))
func (this *QGraphicsView) RenderHints() QPainter__RenderHint {
return (QPainter__RenderHint)(C.QGraphicsView_RenderHints(this.h))
}
func (this *QGraphicsView) SetRenderHint(hint QPainter__RenderHint) {
C.QGraphicsView_SetRenderHint(this.h, (C.int)(hint))
}
func (this *QGraphicsView) SetRenderHints(hints int) {
func (this *QGraphicsView) SetRenderHints(hints QPainter__RenderHint) {
C.QGraphicsView_SetRenderHints(this.h, (C.int)(hints))
}
func (this *QGraphicsView) Alignment() int {
return (int)(C.QGraphicsView_Alignment(this.h))
func (this *QGraphicsView) Alignment() AlignmentFlag {
return (AlignmentFlag)(C.QGraphicsView_Alignment(this.h))
}
func (this *QGraphicsView) SetAlignment(alignment int) {
func (this *QGraphicsView) SetAlignment(alignment AlignmentFlag) {
C.QGraphicsView_SetAlignment(this.h, (C.int)(alignment))
}
@ -176,15 +176,15 @@ func (this *QGraphicsView) SetViewportUpdateMode(mode QGraphicsView__ViewportUpd
C.QGraphicsView_SetViewportUpdateMode(this.h, (C.int)(mode))
}
func (this *QGraphicsView) OptimizationFlags() int {
return (int)(C.QGraphicsView_OptimizationFlags(this.h))
func (this *QGraphicsView) OptimizationFlags() QGraphicsView__OptimizationFlag {
return (QGraphicsView__OptimizationFlag)(C.QGraphicsView_OptimizationFlags(this.h))
}
func (this *QGraphicsView) SetOptimizationFlag(flag QGraphicsView__OptimizationFlag) {
C.QGraphicsView_SetOptimizationFlag(this.h, (C.int)(flag))
}
func (this *QGraphicsView) SetOptimizationFlags(flags int) {
func (this *QGraphicsView) SetOptimizationFlags(flags QGraphicsView__OptimizationFlag) {
C.QGraphicsView_SetOptimizationFlags(this.h, (C.int)(flags))
}
@ -211,11 +211,11 @@ func (this *QGraphicsView) RubberBandRect() *QRect {
return _goptr
}
func (this *QGraphicsView) CacheMode() int {
return (int)(C.QGraphicsView_CacheMode(this.h))
func (this *QGraphicsView) CacheMode() QGraphicsView__CacheModeFlag {
return (QGraphicsView__CacheModeFlag)(C.QGraphicsView_CacheMode(this.h))
}
func (this *QGraphicsView) SetCacheMode(mode int) {
func (this *QGraphicsView) SetCacheMode(mode QGraphicsView__CacheModeFlag) {
C.QGraphicsView_SetCacheMode(this.h, (C.int)(mode))
}
@ -694,7 +694,7 @@ func (this *QGraphicsView) InvalidateScene1(rect *QRectF) {
C.QGraphicsView_InvalidateScene1(this.h, rect.cPointer())
}
func (this *QGraphicsView) InvalidateScene2(rect *QRectF, layers int) {
func (this *QGraphicsView) InvalidateScene2(rect *QRectF, layers QGraphicsScene__SceneLayer) {
C.QGraphicsView_InvalidateScene2(this.h, rect.cPointer(), (C.int)(layers))
}

View File

@ -57,7 +57,7 @@ func NewQGraphicsWidget2(parent *QGraphicsItem) *QGraphicsWidget {
}
// NewQGraphicsWidget3 constructs a new QGraphicsWidget object.
func NewQGraphicsWidget3(parent *QGraphicsItem, wFlags int) *QGraphicsWidget {
func NewQGraphicsWidget3(parent *QGraphicsItem, wFlags WindowType) *QGraphicsWidget {
ret := C.QGraphicsWidget_new3(parent.cPointer(), (C.int)(wFlags))
return newQGraphicsWidget(ret)
}
@ -218,15 +218,15 @@ func (this *QGraphicsWidget) WindowFrameRect() *QRectF {
return _goptr
}
func (this *QGraphicsWidget) WindowFlags() int {
return (int)(C.QGraphicsWidget_WindowFlags(this.h))
func (this *QGraphicsWidget) WindowFlags() WindowType {
return (WindowType)(C.QGraphicsWidget_WindowFlags(this.h))
}
func (this *QGraphicsWidget) WindowType() WindowType {
return (WindowType)(C.QGraphicsWidget_WindowType(this.h))
}
func (this *QGraphicsWidget) SetWindowFlags(wFlags int) {
func (this *QGraphicsWidget) SetWindowFlags(wFlags WindowType) {
C.QGraphicsWidget_SetWindowFlags(this.h, (C.int)(wFlags))
}

View File

@ -174,8 +174,8 @@ func (this *QGridLayout) MinimumHeightForWidth(param1 int) int {
return (int)(C.QGridLayout_MinimumHeightForWidth(this.h, (C.int)(param1)))
}
func (this *QGridLayout) ExpandingDirections() int {
return (int)(C.QGridLayout_ExpandingDirections(this.h))
func (this *QGridLayout) ExpandingDirections() Orientation {
return (Orientation)(C.QGridLayout_ExpandingDirections(this.h))
}
func (this *QGridLayout) Invalidate() {
@ -286,19 +286,19 @@ func QGridLayout_TrUtf83(s string, c string, n int) string {
return _ret
}
func (this *QGridLayout) AddWidget4(param1 *QWidget, row int, column int, param4 int) {
func (this *QGridLayout) AddWidget4(param1 *QWidget, row int, column int, param4 AlignmentFlag) {
C.QGridLayout_AddWidget4(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(param4))
}
func (this *QGridLayout) AddWidget6(param1 *QWidget, row int, column int, rowSpan int, columnSpan int, param6 int) {
func (this *QGridLayout) AddWidget6(param1 *QWidget, row int, column int, rowSpan int, columnSpan int, param6 AlignmentFlag) {
C.QGridLayout_AddWidget6(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), (C.int)(param6))
}
func (this *QGridLayout) AddLayout4(param1 *QLayout, row int, column int, param4 int) {
func (this *QGridLayout) AddLayout4(param1 *QLayout, row int, column int, param4 AlignmentFlag) {
C.QGridLayout_AddLayout4(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(param4))
}
func (this *QGridLayout) AddLayout6(param1 *QLayout, row int, column int, rowSpan int, columnSpan int, param6 int) {
func (this *QGridLayout) AddLayout6(param1 *QLayout, row int, column int, rowSpan int, columnSpan int, param6 AlignmentFlag) {
C.QGridLayout_AddLayout6(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), (C.int)(param6))
}
@ -310,7 +310,7 @@ func (this *QGridLayout) AddItem5(item *QLayoutItem, row int, column int, rowSpa
C.QGridLayout_AddItem5(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan))
}
func (this *QGridLayout) AddItem6(item *QLayoutItem, row int, column int, rowSpan int, columnSpan int, param6 int) {
func (this *QGridLayout) AddItem6(item *QLayoutItem, row int, column int, rowSpan int, columnSpan int, param6 AlignmentFlag) {
C.QGridLayout_AddItem6(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), (C.int)(param6))
}

View File

@ -100,8 +100,8 @@ func (this *QGroupBox) SetTitle(title string) {
C.QGroupBox_SetTitle(this.h, (*C.struct_miqt_string)(title_ms))
}
func (this *QGroupBox) Alignment() int {
return (int)(C.QGroupBox_Alignment(this.h))
func (this *QGroupBox) Alignment() AlignmentFlag {
return (AlignmentFlag)(C.QGroupBox_Alignment(this.h))
}
func (this *QGroupBox) SetAlignment(alignment int) {

View File

@ -232,16 +232,16 @@ func QGuiApplication_SetPalette(pal *QPalette) {
C.QGuiApplication_SetPalette(pal.cPointer())
}
func QGuiApplication_KeyboardModifiers() int {
return (int)(C.QGuiApplication_KeyboardModifiers())
func QGuiApplication_KeyboardModifiers() KeyboardModifier {
return (KeyboardModifier)(C.QGuiApplication_KeyboardModifiers())
}
func QGuiApplication_QueryKeyboardModifiers() int {
return (int)(C.QGuiApplication_QueryKeyboardModifiers())
func QGuiApplication_QueryKeyboardModifiers() KeyboardModifier {
return (KeyboardModifier)(C.QGuiApplication_QueryKeyboardModifiers())
}
func QGuiApplication_MouseButtons() int {
return (int)(C.QGuiApplication_MouseButtons())
func QGuiApplication_MouseButtons() MouseButton {
return (MouseButton)(C.QGuiApplication_MouseButtons())
}
func QGuiApplication_SetLayoutDirection(direction LayoutDirection) {

View File

@ -308,11 +308,11 @@ func (this *QHeaderView) SetMaximumSectionSize(size int) {
C.QHeaderView_SetMaximumSectionSize(this.h, (C.int)(size))
}
func (this *QHeaderView) DefaultAlignment() int {
return (int)(C.QHeaderView_DefaultAlignment(this.h))
func (this *QHeaderView) DefaultAlignment() AlignmentFlag {
return (AlignmentFlag)(C.QHeaderView_DefaultAlignment(this.h))
}
func (this *QHeaderView) SetDefaultAlignment(alignment int) {
func (this *QHeaderView) SetDefaultAlignment(alignment AlignmentFlag) {
C.QHeaderView_SetDefaultAlignment(this.h, (C.int)(alignment))
}

View File

@ -386,27 +386,27 @@ func (this *QIcon) ActualSize4(window *QWindow, size *QSize, mode QIcon__Mode, s
return _goptr
}
func (this *QIcon) Paint3(painter *QPainter, rect *QRect, alignment int) {
func (this *QIcon) Paint3(painter *QPainter, rect *QRect, alignment AlignmentFlag) {
C.QIcon_Paint3(this.h, painter.cPointer(), rect.cPointer(), (C.int)(alignment))
}
func (this *QIcon) Paint4(painter *QPainter, rect *QRect, alignment int, mode QIcon__Mode) {
func (this *QIcon) Paint4(painter *QPainter, rect *QRect, alignment AlignmentFlag, mode QIcon__Mode) {
C.QIcon_Paint4(this.h, painter.cPointer(), rect.cPointer(), (C.int)(alignment), (C.int)(mode))
}
func (this *QIcon) Paint5(painter *QPainter, rect *QRect, alignment int, mode QIcon__Mode, state QIcon__State) {
func (this *QIcon) Paint5(painter *QPainter, rect *QRect, alignment AlignmentFlag, mode QIcon__Mode, state QIcon__State) {
C.QIcon_Paint5(this.h, painter.cPointer(), rect.cPointer(), (C.int)(alignment), (C.int)(mode), (C.int)(state))
}
func (this *QIcon) Paint6(painter *QPainter, x int, y int, w int, h int, alignment int) {
func (this *QIcon) Paint6(painter *QPainter, x int, y int, w int, h int, alignment AlignmentFlag) {
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 QIcon__Mode) {
func (this *QIcon) Paint7(painter *QPainter, x int, y int, w int, h int, alignment AlignmentFlag, 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.int)(mode))
}
func (this *QIcon) Paint8(painter *QPainter, x int, y int, w int, h int, alignment int, mode QIcon__Mode, state QIcon__State) {
func (this *QIcon) Paint8(painter *QPainter, x int, y int, w int, h int, alignment AlignmentFlag, 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.int)(mode), (C.int)(state))
}

View File

@ -246,7 +246,7 @@ func (this *QIdentityProxyModel) Match4(start *QModelIndex, role int, value *QVa
return _ret
}
func (this *QIdentityProxyModel) Match5(start *QModelIndex, role int, value *QVariant, hits int, flags int) []QModelIndex {
func (this *QIdentityProxyModel) Match5(start *QModelIndex, role int, value *QVariant, hits int, flags MatchFlag) []QModelIndex {
var _ma *C.struct_miqt_array = C.QIdentityProxyModel_Match5(this.h, start.cPointer(), (C.int)(role), value.cPointer(), (C.int)(hits), (C.int)(flags))
_ret := make([]QModelIndex, int(_ma.len))
_outCast := (*[0xffff]*C.QModelIndex)(unsafe.Pointer(_ma.data)) // hey ya

View File

@ -681,14 +681,14 @@ func (this *QImage) Copy1(rect *QRect) *QImage {
return _goptr
}
func (this *QImage) ConvertToFormat22(f QImage__Format, flags int) *QImage {
func (this *QImage) ConvertToFormat22(f QImage__Format, flags ImageConversionFlag) *QImage {
_ret := C.QImage_ConvertToFormat22(this.h, (C.int)(f), (C.int)(flags))
_goptr := newQImage(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QImage) ConvertToFormat3(f QImage__Format, colorTable []uint, flags int) *QImage {
func (this *QImage) ConvertToFormat3(f QImage__Format, colorTable []uint, flags ImageConversionFlag) *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))
@ -703,11 +703,11 @@ func (this *QImage) ConvertToFormat3(f QImage__Format, colorTable []uint, flags
return _goptr
}
func (this *QImage) ConvertTo2(f QImage__Format, flags int) {
func (this *QImage) ConvertTo2(f QImage__Format, flags ImageConversionFlag) {
C.QImage_ConvertTo2(this.h, (C.int)(f), (C.int)(flags))
}
func (this *QImage) CreateAlphaMask1(flags int) *QImage {
func (this *QImage) CreateAlphaMask1(flags ImageConversionFlag) *QImage {
_ret := C.QImage_CreateAlphaMask1(this.h, (C.int)(flags))
_goptr := newQImage(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer

View File

@ -228,8 +228,8 @@ func QImageIOPlugin_TrUtf8(s string) string {
return _ret
}
func (this *QImageIOPlugin) Capabilities(device *QIODevice, format *QByteArray) int {
return (int)(C.QImageIOPlugin_Capabilities(this.h, device.cPointer(), format.cPointer()))
func (this *QImageIOPlugin) Capabilities(device *QIODevice, format *QByteArray) QImageIOPlugin__Capability {
return (QImageIOPlugin__Capability)(C.QImageIOPlugin_Capabilities(this.h, device.cPointer(), format.cPointer()))
}
func (this *QImageIOPlugin) Create(device *QIODevice) *QImageIOHandler {

View File

@ -235,8 +235,8 @@ func (this *QImageReader) SupportsAnimation() bool {
return (bool)(C.QImageReader_SupportsAnimation(this.h))
}
func (this *QImageReader) Transformation() int {
return (int)(C.QImageReader_Transformation(this.h))
func (this *QImageReader) Transformation() QImageIOHandler__Transformation {
return (QImageIOHandler__Transformation)(C.QImageReader_Transformation(this.h))
}
func (this *QImageReader) SetAutoTransform(enabled bool) {

View File

@ -187,11 +187,11 @@ func (this *QImageWriter) ProgressiveScanWrite() bool {
return (bool)(C.QImageWriter_ProgressiveScanWrite(this.h))
}
func (this *QImageWriter) Transformation() int {
return (int)(C.QImageWriter_Transformation(this.h))
func (this *QImageWriter) Transformation() QImageIOHandler__Transformation {
return (QImageIOHandler__Transformation)(C.QImageWriter_Transformation(this.h))
}
func (this *QImageWriter) SetTransformation(orientation int) {
func (this *QImageWriter) SetTransformation(orientation QImageIOHandler__Transformation) {
C.QImageWriter_SetTransformation(this.h, (C.int)(orientation))
}

View File

@ -66,7 +66,7 @@ func NewQInputDialog2(parent *QWidget) *QInputDialog {
}
// NewQInputDialog3 constructs a new QInputDialog object.
func NewQInputDialog3(parent *QWidget, flags int) *QInputDialog {
func NewQInputDialog3(parent *QWidget, flags WindowType) *QInputDialog {
ret := C.QInputDialog_new3(parent.cPointer(), (C.int)(flags))
return newQInputDialog(ret)
}
@ -122,12 +122,12 @@ func (this *QInputDialog) TestOption(option QInputDialog__InputDialogOption) boo
return (bool)(C.QInputDialog_TestOption(this.h, (C.int)(option)))
}
func (this *QInputDialog) SetOptions(options int) {
func (this *QInputDialog) SetOptions(options QInputDialog__InputDialogOption) {
C.QInputDialog_SetOptions(this.h, (C.int)(options))
}
func (this *QInputDialog) Options() int {
return (int)(C.QInputDialog_Options(this.h))
func (this *QInputDialog) Options() QInputDialog__InputDialogOption {
return (QInputDialog__InputDialogOption)(C.QInputDialog_Options(this.h))
}
func (this *QInputDialog) SetTextValue(text string) {
@ -362,7 +362,7 @@ func QInputDialog_GetDouble(parent *QWidget, title string, label string) float64
return (float64)(C.QInputDialog_GetDouble(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms)))
}
func QInputDialog_GetDouble2(parent *QWidget, title string, label string, value float64, minValue float64, maxValue float64, decimals int, ok *bool, flags int, step float64) float64 {
func QInputDialog_GetDouble2(parent *QWidget, title string, label string, value float64, minValue float64, maxValue float64, decimals int, ok *bool, flags WindowType, step float64) float64 {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
label_ms := miqt_strdupg(label)
@ -597,7 +597,7 @@ func QInputDialog_GetText6(parent *QWidget, title string, label string, echo QLi
return _ret
}
func QInputDialog_GetText7(parent *QWidget, title string, label string, echo QLineEdit__EchoMode, text string, ok *bool, flags int) string {
func QInputDialog_GetText7(parent *QWidget, title string, label string, echo QLineEdit__EchoMode, text string, ok *bool, flags WindowType) string {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
label_ms := miqt_strdupg(label)
@ -610,7 +610,7 @@ func QInputDialog_GetText7(parent *QWidget, title string, label string, echo QLi
return _ret
}
func QInputDialog_GetText8(parent *QWidget, title string, label string, echo QLineEdit__EchoMode, 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 WindowType, inputMethodHints InputMethodHint) string {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
label_ms := miqt_strdupg(label)
@ -649,7 +649,7 @@ func QInputDialog_GetMultiLineText5(parent *QWidget, title string, label string,
return _ret
}
func QInputDialog_GetMultiLineText6(parent *QWidget, title string, label string, text string, ok *bool, flags int) string {
func QInputDialog_GetMultiLineText6(parent *QWidget, title string, label string, text string, ok *bool, flags WindowType) string {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
label_ms := miqt_strdupg(label)
@ -662,7 +662,7 @@ func QInputDialog_GetMultiLineText6(parent *QWidget, title string, label string,
return _ret
}
func QInputDialog_GetMultiLineText7(parent *QWidget, title string, label string, text string, ok *bool, flags int, inputMethodHints int) string {
func QInputDialog_GetMultiLineText7(parent *QWidget, title string, label string, text string, ok *bool, flags WindowType, inputMethodHints InputMethodHint) string {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
label_ms := miqt_strdupg(label)
@ -738,7 +738,7 @@ func QInputDialog_GetItem7(parent *QWidget, title string, label string, items []
return _ret
}
func QInputDialog_GetItem8(parent *QWidget, title string, label string, items []string, current int, editable bool, ok *bool, flags int) string {
func QInputDialog_GetItem8(parent *QWidget, title string, label string, items []string, current int, editable bool, ok *bool, flags WindowType) string {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
label_ms := miqt_strdupg(label)
@ -759,7 +759,7 @@ func QInputDialog_GetItem8(parent *QWidget, title string, label string, items []
return _ret
}
func QInputDialog_GetItem9(parent *QWidget, title string, label string, items []string, current int, editable bool, ok *bool, flags int, inputMethodHints int) string {
func QInputDialog_GetItem9(parent *QWidget, title string, label string, items []string, current int, editable bool, ok *bool, flags WindowType, inputMethodHints InputMethodHint) string {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
label_ms := miqt_strdupg(label)
@ -820,7 +820,7 @@ func QInputDialog_GetInt8(parent *QWidget, title string, label string, value int
return (int)(C.QInputDialog_GetInt8(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.int)(value), (C.int)(minValue), (C.int)(maxValue), (C.int)(step), (*C.bool)(unsafe.Pointer(ok))))
}
func QInputDialog_GetInt9(parent *QWidget, title string, label string, value int, minValue int, maxValue int, step int, ok *bool, flags int) int {
func QInputDialog_GetInt9(parent *QWidget, title string, label string, value int, minValue int, maxValue int, step int, ok *bool, flags WindowType) int {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
label_ms := miqt_strdupg(label)
@ -868,7 +868,7 @@ func QInputDialog_GetDouble8(parent *QWidget, title string, label string, value
return (float64)(C.QInputDialog_GetDouble8(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.double)(value), (C.double)(minValue), (C.double)(maxValue), (C.int)(decimals), (*C.bool)(unsafe.Pointer(ok))))
}
func QInputDialog_GetDouble9(parent *QWidget, title string, label string, value float64, minValue float64, maxValue float64, decimals int, ok *bool, flags int) float64 {
func QInputDialog_GetDouble9(parent *QWidget, title string, label string, value float64, minValue float64, maxValue float64, decimals int, ok *bool, flags WindowType) float64 {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
label_ms := miqt_strdupg(label)

View File

@ -153,7 +153,7 @@ func (this *QInputMethod) Hide() {
C.QInputMethod_Hide(this.h)
}
func (this *QInputMethod) Update(queries int) {
func (this *QInputMethod) Update(queries InputMethodQuery) {
C.QInputMethod_Update(this.h, (C.int)(queries))
}

View File

@ -74,8 +74,8 @@ func QIODevice_TrUtf8(s string) string {
return _ret
}
func (this *QIODevice) OpenMode() int {
return (int)(C.QIODevice_OpenMode(this.h))
func (this *QIODevice) OpenMode() QIODevice__OpenModeFlag {
return (QIODevice__OpenModeFlag)(C.QIODevice_OpenMode(this.h))
}
func (this *QIODevice) SetTextModeEnabled(enabled bool) {
@ -126,7 +126,7 @@ func (this *QIODevice) SetCurrentWriteChannel(channel int) {
C.QIODevice_SetCurrentWriteChannel(this.h, (C.int)(channel))
}
func (this *QIODevice) Open(mode int) bool {
func (this *QIODevice) Open(mode QIODevice__OpenModeFlag) bool {
return (bool)(C.QIODevice_Open(this.h, (C.int)(mode)))
}

View File

@ -342,11 +342,11 @@ func (this *QItemSelectionModel) SetModel(model *QAbstractItemModel) {
C.QItemSelectionModel_SetModel(this.h, model.cPointer())
}
func (this *QItemSelectionModel) SetCurrentIndex(index *QModelIndex, command int) {
func (this *QItemSelectionModel) SetCurrentIndex(index *QModelIndex, command QItemSelectionModel__SelectionFlag) {
C.QItemSelectionModel_SetCurrentIndex(this.h, index.cPointer(), (C.int)(command))
}
func (this *QItemSelectionModel) Select(index *QModelIndex, command int) {
func (this *QItemSelectionModel) Select(index *QModelIndex, command QItemSelectionModel__SelectionFlag) {
C.QItemSelectionModel_Select(this.h, index.cPointer(), (C.int)(command))
}

View File

@ -90,11 +90,11 @@ func (this *QKeyEventTransition) SetKey(key int) {
C.QKeyEventTransition_SetKey(this.h, (C.int)(key))
}
func (this *QKeyEventTransition) ModifierMask() int {
return (int)(C.QKeyEventTransition_ModifierMask(this.h))
func (this *QKeyEventTransition) ModifierMask() KeyboardModifier {
return (KeyboardModifier)(C.QKeyEventTransition_ModifierMask(this.h))
}
func (this *QKeyEventTransition) SetModifierMask(modifiers int) {
func (this *QKeyEventTransition) SetModifierMask(modifiers KeyboardModifier) {
C.QKeyEventTransition_SetModifierMask(this.h, (C.int)(modifiers))
}

View File

@ -58,7 +58,7 @@ func NewQLabel3(parent *QWidget) *QLabel {
}
// NewQLabel4 constructs a new QLabel object.
func NewQLabel4(parent *QWidget, f int) *QLabel {
func NewQLabel4(parent *QWidget, f WindowType) *QLabel {
ret := C.QLabel_new4(parent.cPointer(), (C.int)(f))
return newQLabel(ret)
}
@ -72,7 +72,7 @@ func NewQLabel5(text string, parent *QWidget) *QLabel {
}
// NewQLabel6 constructs a new QLabel object.
func NewQLabel6(text string, parent *QWidget, f int) *QLabel {
func NewQLabel6(text string, parent *QWidget, f WindowType) *QLabel {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
ret := C.QLabel_new6((*C.struct_miqt_string)(text_ms), parent.cPointer(), (C.int)(f))
@ -142,11 +142,11 @@ func (this *QLabel) SetTextFormat(textFormat TextFormat) {
C.QLabel_SetTextFormat(this.h, (C.int)(textFormat))
}
func (this *QLabel) Alignment() int {
return (int)(C.QLabel_Alignment(this.h))
func (this *QLabel) Alignment() AlignmentFlag {
return (AlignmentFlag)(C.QLabel_Alignment(this.h))
}
func (this *QLabel) SetAlignment(alignment int) {
func (this *QLabel) SetAlignment(alignment AlignmentFlag) {
C.QLabel_SetAlignment(this.h, (C.int)(alignment))
}
@ -216,12 +216,12 @@ func (this *QLabel) SetOpenExternalLinks(open bool) {
C.QLabel_SetOpenExternalLinks(this.h, (C.bool)(open))
}
func (this *QLabel) SetTextInteractionFlags(flags int) {
func (this *QLabel) SetTextInteractionFlags(flags TextInteractionFlag) {
C.QLabel_SetTextInteractionFlags(this.h, (C.int)(flags))
}
func (this *QLabel) TextInteractionFlags() int {
return (int)(C.QLabel_TextInteractionFlags(this.h))
func (this *QLabel) TextInteractionFlags() TextInteractionFlag {
return (TextInteractionFlag)(C.QLabel_TextInteractionFlags(this.h))
}
func (this *QLabel) SetSelection(param1 int, param2 int) {

View File

@ -112,11 +112,11 @@ func (this *QLayout) ContentsRect() *QRect {
return _goptr
}
func (this *QLayout) SetAlignment(w *QWidget, alignment int) bool {
func (this *QLayout) SetAlignment(w *QWidget, alignment AlignmentFlag) bool {
return (bool)(C.QLayout_SetAlignment(this.h, w.cPointer(), (C.int)(alignment)))
}
func (this *QLayout) SetAlignment2(l *QLayout, alignment int) bool {
func (this *QLayout) SetAlignment2(l *QLayout, alignment AlignmentFlag) bool {
return (bool)(C.QLayout_SetAlignment2(this.h, l.cPointer(), (C.int)(alignment)))
}
@ -175,8 +175,8 @@ func (this *QLayout) RemoveItem(param1 *QLayoutItem) {
C.QLayout_RemoveItem(this.h, param1.cPointer())
}
func (this *QLayout) ExpandingDirections() int {
return (int)(C.QLayout_ExpandingDirections(this.h))
func (this *QLayout) ExpandingDirections() Orientation {
return (Orientation)(C.QLayout_ExpandingDirections(this.h))
}
func (this *QLayout) MinimumSize() *QSize {
@ -221,8 +221,8 @@ func (this *QLayout) IsEmpty() bool {
return (bool)(C.QLayout_IsEmpty(this.h))
}
func (this *QLayout) ControlTypes() int {
return (int)(C.QLayout_ControlTypes(this.h))
func (this *QLayout) ControlTypes() QSizePolicy__ControlType {
return (QSizePolicy__ControlType)(C.QLayout_ControlTypes(this.h))
}
func (this *QLayout) ReplaceWidget(from *QWidget, to *QWidget) *QLayoutItem {
@ -317,7 +317,7 @@ func QLayout_TrUtf83(s string, c string, n int) string {
return _ret
}
func (this *QLayout) ReplaceWidget3(from *QWidget, to *QWidget, options int) *QLayoutItem {
func (this *QLayout) ReplaceWidget3(from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem {
return newQLayoutItem_U(unsafe.Pointer(C.QLayout_ReplaceWidget3(this.h, from.cPointer(), to.cPointer(), (C.int)(options))))
}

View File

@ -56,8 +56,8 @@ func (this *QLayoutItem) MaximumSize() *QSize {
return _goptr
}
func (this *QLayoutItem) ExpandingDirections() int {
return (int)(C.QLayoutItem_ExpandingDirections(this.h))
func (this *QLayoutItem) ExpandingDirections() Orientation {
return (Orientation)(C.QLayoutItem_ExpandingDirections(this.h))
}
func (this *QLayoutItem) SetGeometry(geometry *QRect) {
@ -103,16 +103,16 @@ func (this *QLayoutItem) SpacerItem() *QSpacerItem {
return newQSpacerItem_U(unsafe.Pointer(C.QLayoutItem_SpacerItem(this.h)))
}
func (this *QLayoutItem) Alignment() int {
return (int)(C.QLayoutItem_Alignment(this.h))
func (this *QLayoutItem) Alignment() AlignmentFlag {
return (AlignmentFlag)(C.QLayoutItem_Alignment(this.h))
}
func (this *QLayoutItem) SetAlignment(a int) {
func (this *QLayoutItem) SetAlignment(a AlignmentFlag) {
C.QLayoutItem_SetAlignment(this.h, (C.int)(a))
}
func (this *QLayoutItem) ControlTypes() int {
return (int)(C.QLayoutItem_ControlTypes(this.h))
func (this *QLayoutItem) ControlTypes() QSizePolicy__ControlType {
return (QSizePolicy__ControlType)(C.QLayoutItem_ControlTypes(this.h))
}
// Delete this object from C++ memory.
@ -201,8 +201,8 @@ func (this *QSpacerItem) MaximumSize() *QSize {
return _goptr
}
func (this *QSpacerItem) ExpandingDirections() int {
return (int)(C.QSpacerItem_ExpandingDirections(this.h))
func (this *QSpacerItem) ExpandingDirections() Orientation {
return (Orientation)(C.QSpacerItem_ExpandingDirections(this.h))
}
func (this *QSpacerItem) IsEmpty() bool {
@ -303,8 +303,8 @@ func (this *QWidgetItem) MaximumSize() *QSize {
return _goptr
}
func (this *QWidgetItem) ExpandingDirections() int {
return (int)(C.QWidgetItem_ExpandingDirections(this.h))
func (this *QWidgetItem) ExpandingDirections() Orientation {
return (Orientation)(C.QWidgetItem_ExpandingDirections(this.h))
}
func (this *QWidgetItem) IsEmpty() bool {
@ -334,8 +334,8 @@ func (this *QWidgetItem) HeightForWidth(param1 int) int {
return (int)(C.QWidgetItem_HeightForWidth(this.h, (C.int)(param1)))
}
func (this *QWidgetItem) ControlTypes() int {
return (int)(C.QWidgetItem_ControlTypes(this.h))
func (this *QWidgetItem) ControlTypes() QSizePolicy__ControlType {
return (QSizePolicy__ControlType)(C.QWidgetItem_ControlTypes(this.h))
}
// Delete this object from C++ memory.

View File

@ -184,12 +184,12 @@ func (this *QLibrary) ErrorString() string {
return _ret
}
func (this *QLibrary) SetLoadHints(hints int) {
func (this *QLibrary) SetLoadHints(hints QLibrary__LoadHint) {
C.QLibrary_SetLoadHints(this.h, (C.int)(hints))
}
func (this *QLibrary) LoadHints() int {
return (int)(C.QLibrary_LoadHints(this.h))
func (this *QLibrary) LoadHints() QLibrary__LoadHint {
return (QLibrary__LoadHint)(C.QLibrary_LoadHints(this.h))
}
func QLibrary_Tr2(s string, c string) string {

View File

@ -212,12 +212,12 @@ func (this *QLineEdit) CursorPositionAt(pos *QPoint) int {
return (int)(C.QLineEdit_CursorPositionAt(this.h, pos.cPointer()))
}
func (this *QLineEdit) SetAlignment(flag int) {
func (this *QLineEdit) SetAlignment(flag AlignmentFlag) {
C.QLineEdit_SetAlignment(this.h, (C.int)(flag))
}
func (this *QLineEdit) Alignment() int {
return (int)(C.QLineEdit_Alignment(this.h))
func (this *QLineEdit) Alignment() AlignmentFlag {
return (AlignmentFlag)(C.QLineEdit_Alignment(this.h))
}
func (this *QLineEdit) CursorForward(mark bool) {

View File

@ -226,12 +226,12 @@ func (this *QListView) IsSelectionRectVisible() bool {
return (bool)(C.QListView_IsSelectionRectVisible(this.h))
}
func (this *QListView) SetItemAlignment(alignment int) {
func (this *QListView) SetItemAlignment(alignment AlignmentFlag) {
C.QListView_SetItemAlignment(this.h, (C.int)(alignment))
}
func (this *QListView) ItemAlignment() int {
return (int)(C.QListView_ItemAlignment(this.h))
func (this *QListView) ItemAlignment() AlignmentFlag {
return (AlignmentFlag)(C.QListView_ItemAlignment(this.h))
}
func (this *QListView) VisualRect(index *QModelIndex) *QRect {

View File

@ -139,11 +139,11 @@ func (this *QListWidgetItem) IsHidden() bool {
return (bool)(C.QListWidgetItem_IsHidden(this.h))
}
func (this *QListWidgetItem) Flags() int {
return (int)(C.QListWidgetItem_Flags(this.h))
func (this *QListWidgetItem) Flags() ItemFlag {
return (ItemFlag)(C.QListWidgetItem_Flags(this.h))
}
func (this *QListWidgetItem) SetFlags(flags int) {
func (this *QListWidgetItem) SetFlags(flags ItemFlag) {
C.QListWidgetItem_SetFlags(this.h, (C.int)(flags))
}
@ -470,7 +470,7 @@ func (this *QListWidget) SetCurrentItem(item *QListWidgetItem) {
C.QListWidget_SetCurrentItem(this.h, item.cPointer())
}
func (this *QListWidget) SetCurrentItem2(item *QListWidgetItem, command int) {
func (this *QListWidget) SetCurrentItem2(item *QListWidgetItem, command QItemSelectionModel__SelectionFlag) {
C.QListWidget_SetCurrentItem2(this.h, item.cPointer(), (C.int)(command))
}
@ -482,7 +482,7 @@ func (this *QListWidget) SetCurrentRow(row int) {
C.QListWidget_SetCurrentRow(this.h, (C.int)(row))
}
func (this *QListWidget) SetCurrentRow2(row int, command int) {
func (this *QListWidget) SetCurrentRow2(row int, command QItemSelectionModel__SelectionFlag) {
C.QListWidget_SetCurrentRow2(this.h, (C.int)(row), (C.int)(command))
}
@ -560,7 +560,7 @@ func (this *QListWidget) SelectedItems() []*QListWidgetItem {
return _ret
}
func (this *QListWidget) FindItems(text string, flags int) []*QListWidgetItem {
func (this *QListWidget) FindItems(text string, flags MatchFlag) []*QListWidgetItem {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
var _ma *C.struct_miqt_array = C.QListWidget_FindItems(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags))

View File

@ -1652,12 +1652,12 @@ func QLocale_CountriesForLanguage(lang QLocale__Language) []QLocale__Country {
return _ret
}
func (this *QLocale) SetNumberOptions(options int) {
func (this *QLocale) SetNumberOptions(options QLocale__NumberOption) {
C.QLocale_SetNumberOptions(this.h, (C.int)(options))
}
func (this *QLocale) NumberOptions() int {
return (int)(C.QLocale_NumberOptions(this.h))
func (this *QLocale) NumberOptions() QLocale__NumberOption {
return (QLocale__NumberOption)(C.QLocale_NumberOptions(this.h))
}
func (this *QLocale) QuoteString(str string) string {
@ -1957,7 +1957,7 @@ func (this *QLocale) FormattedDataSize2(bytes int64, precision int) string {
return _ret
}
func (this *QLocale) FormattedDataSize3(bytes int64, precision int, format int) string {
func (this *QLocale) FormattedDataSize3(bytes int64, precision int, format QLocale__DataSizeFormat) string {
var _ms *C.struct_miqt_string = C.QLocale_FormattedDataSize3(this.h, (C.longlong)(bytes), (C.int)(precision), (C.int)(format))
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
@ -1971,7 +1971,7 @@ func (this *QLocale) FormattedDataSize22(bytes int64, precision int) string {
return _ret
}
func (this *QLocale) FormattedDataSize32(bytes int64, precision int, format int) string {
func (this *QLocale) FormattedDataSize32(bytes int64, precision int, format QLocale__DataSizeFormat) string {
var _ms *C.struct_miqt_string = C.QLocale_FormattedDataSize32(this.h, (C.longlong)(bytes), (C.int)(precision), (C.int)(format))
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))

View File

@ -61,7 +61,7 @@ func NewQMainWindow2(parent *QWidget) *QMainWindow {
}
// NewQMainWindow3 constructs a new QMainWindow object.
func NewQMainWindow3(parent *QWidget, flags int) *QMainWindow {
func NewQMainWindow3(parent *QWidget, flags WindowType) *QMainWindow {
ret := C.QMainWindow_new3(parent.cPointer(), (C.int)(flags))
return newQMainWindow(ret)
}
@ -135,16 +135,16 @@ func (this *QMainWindow) TabPosition(area DockWidgetArea) QTabWidget__TabPositio
return (QTabWidget__TabPosition)(C.QMainWindow_TabPosition(this.h, (C.int)(area)))
}
func (this *QMainWindow) SetTabPosition(areas int, tabPosition QTabWidget__TabPosition) {
func (this *QMainWindow) SetTabPosition(areas DockWidgetArea, tabPosition QTabWidget__TabPosition) {
C.QMainWindow_SetTabPosition(this.h, (C.int)(areas), (C.int)(tabPosition))
}
func (this *QMainWindow) SetDockOptions(options int) {
func (this *QMainWindow) SetDockOptions(options QMainWindow__DockOption) {
C.QMainWindow_SetDockOptions(this.h, (C.int)(options))
}
func (this *QMainWindow) DockOptions() int {
return (int)(C.QMainWindow_DockOptions(this.h))
func (this *QMainWindow) DockOptions() QMainWindow__DockOption {
return (QMainWindow__DockOption)(C.QMainWindow_DockOptions(this.h))
}
func (this *QMainWindow) IsSeparator(pos *QPoint) bool {

View File

@ -311,7 +311,7 @@ func (this *QMdiArea) SubWindowList1(order QMdiArea__WindowOrder) []*QMdiSubWind
return _ret
}
func (this *QMdiArea) AddSubWindow2(widget *QWidget, flags int) *QMdiSubWindow {
func (this *QMdiArea) AddSubWindow2(widget *QWidget, flags WindowType) *QMdiSubWindow {
return newQMdiSubWindow_U(unsafe.Pointer(C.QMdiArea_AddSubWindow2(this.h, widget.cPointer(), (C.int)(flags))))
}

View File

@ -59,7 +59,7 @@ func NewQMdiSubWindow2(parent *QWidget) *QMdiSubWindow {
}
// NewQMdiSubWindow3 constructs a new QMdiSubWindow object.
func NewQMdiSubWindow3(parent *QWidget, flags int) *QMdiSubWindow {
func NewQMdiSubWindow3(parent *QWidget, flags WindowType) *QMdiSubWindow {
ret := C.QMdiSubWindow_new3(parent.cPointer(), (C.int)(flags))
return newQMdiSubWindow(ret)
}
@ -156,24 +156,24 @@ func (this *QMdiSubWindow) MdiArea() *QMdiArea {
return newQMdiArea_U(unsafe.Pointer(C.QMdiSubWindow_MdiArea(this.h)))
}
func (this *QMdiSubWindow) WindowStateChanged(oldState int, newState int) {
func (this *QMdiSubWindow) WindowStateChanged(oldState WindowState, newState WindowState) {
C.QMdiSubWindow_WindowStateChanged(this.h, (C.int)(oldState), (C.int)(newState))
}
func (this *QMdiSubWindow) OnWindowStateChanged(slot func(oldState int, newState int)) {
func (this *QMdiSubWindow) OnWindowStateChanged(slot func(oldState WindowState, newState WindowState)) {
C.QMdiSubWindow_connect_WindowStateChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
}
//export miqt_exec_callback_QMdiSubWindow_WindowStateChanged
func miqt_exec_callback_QMdiSubWindow_WindowStateChanged(cb *C.void, oldState C.int, newState C.int) {
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(oldState int, newState int))
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(oldState WindowState, newState WindowState))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(oldState)
slotval1 := (WindowState)(oldState)
slotval2 := (int)(newState)
slotval2 := (WindowState)(newState)
gofunc(slotval1, slotval2)
}

View File

@ -128,7 +128,7 @@ func NewQMessageBox4(parent *QWidget) *QMessageBox {
}
// NewQMessageBox5 constructs a new QMessageBox object.
func NewQMessageBox5(icon QMessageBox__Icon, title string, text string, buttons int) *QMessageBox {
func NewQMessageBox5(icon QMessageBox__Icon, title string, text string, buttons QMessageBox__StandardButton) *QMessageBox {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
text_ms := miqt_strdupg(text)
@ -138,7 +138,7 @@ func NewQMessageBox5(icon QMessageBox__Icon, title string, text string, buttons
}
// NewQMessageBox6 constructs a new QMessageBox object.
func NewQMessageBox6(icon QMessageBox__Icon, title string, text string, buttons int, parent *QWidget) *QMessageBox {
func NewQMessageBox6(icon QMessageBox__Icon, title string, text string, buttons QMessageBox__StandardButton, parent *QWidget) *QMessageBox {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
text_ms := miqt_strdupg(text)
@ -148,7 +148,7 @@ func NewQMessageBox6(icon QMessageBox__Icon, title string, text string, buttons
}
// NewQMessageBox7 constructs a new QMessageBox object.
func NewQMessageBox7(icon QMessageBox__Icon, title string, text string, buttons int, parent *QWidget, flags int) *QMessageBox {
func NewQMessageBox7(icon QMessageBox__Icon, title string, text string, buttons QMessageBox__StandardButton, parent *QWidget, flags WindowType) *QMessageBox {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
text_ms := miqt_strdupg(text)
@ -168,7 +168,7 @@ func NewQMessageBox8(title string, text string, icon QMessageBox__Icon, button0
}
// NewQMessageBox9 constructs a new QMessageBox object.
func NewQMessageBox9(title string, text string, icon QMessageBox__Icon, 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 WindowType) *QMessageBox {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
text_ms := miqt_strdupg(text)
@ -232,12 +232,12 @@ func (this *QMessageBox) ButtonRole(button *QAbstractButton) QMessageBox__Button
return (QMessageBox__ButtonRole)(C.QMessageBox_ButtonRole(this.h, button.cPointer()))
}
func (this *QMessageBox) SetStandardButtons(buttons int) {
func (this *QMessageBox) SetStandardButtons(buttons QMessageBox__StandardButton) {
C.QMessageBox_SetStandardButtons(this.h, (C.int)(buttons))
}
func (this *QMessageBox) StandardButtons() int {
return (int)(C.QMessageBox_StandardButtons(this.h))
func (this *QMessageBox) StandardButtons() QMessageBox__StandardButton {
return (QMessageBox__StandardButton)(C.QMessageBox_StandardButtons(this.h))
}
func (this *QMessageBox) StandardButton(button *QAbstractButton) QMessageBox__StandardButton {
@ -316,12 +316,12 @@ func (this *QMessageBox) SetTextFormat(format TextFormat) {
C.QMessageBox_SetTextFormat(this.h, (C.int)(format))
}
func (this *QMessageBox) SetTextInteractionFlags(flags int) {
func (this *QMessageBox) SetTextInteractionFlags(flags TextInteractionFlag) {
C.QMessageBox_SetTextInteractionFlags(this.h, (C.int)(flags))
}
func (this *QMessageBox) TextInteractionFlags() int {
return (int)(C.QMessageBox_TextInteractionFlags(this.h))
func (this *QMessageBox) TextInteractionFlags() TextInteractionFlag {
return (TextInteractionFlag)(C.QMessageBox_TextInteractionFlags(this.h))
}
func (this *QMessageBox) SetCheckBox(cb *QCheckBox) {
@ -600,7 +600,7 @@ func QMessageBox_TrUtf83(s string, c string, n int) string {
return _ret
}
func QMessageBox_Information42(parent *QWidget, title string, text string, buttons int) QMessageBox__StandardButton {
func QMessageBox_Information42(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton) QMessageBox__StandardButton {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
text_ms := miqt_strdupg(text)
@ -608,7 +608,7 @@ func QMessageBox_Information42(parent *QWidget, title string, text string, butto
return (QMessageBox__StandardButton)(C.QMessageBox_Information42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons)))
}
func QMessageBox_Information5(parent *QWidget, title string, text string, buttons int, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
func QMessageBox_Information5(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
text_ms := miqt_strdupg(text)
@ -616,7 +616,7 @@ func QMessageBox_Information5(parent *QWidget, title string, text string, button
return (QMessageBox__StandardButton)(C.QMessageBox_Information5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons), (C.int)(defaultButton)))
}
func QMessageBox_Question42(parent *QWidget, title string, text string, buttons int) QMessageBox__StandardButton {
func QMessageBox_Question42(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton) QMessageBox__StandardButton {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
text_ms := miqt_strdupg(text)
@ -624,7 +624,7 @@ func QMessageBox_Question42(parent *QWidget, title string, text string, buttons
return (QMessageBox__StandardButton)(C.QMessageBox_Question42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons)))
}
func QMessageBox_Question5(parent *QWidget, title string, text string, buttons int, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
func QMessageBox_Question5(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
text_ms := miqt_strdupg(text)
@ -632,7 +632,7 @@ func QMessageBox_Question5(parent *QWidget, title string, text string, buttons i
return (QMessageBox__StandardButton)(C.QMessageBox_Question5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons), (C.int)(defaultButton)))
}
func QMessageBox_Warning42(parent *QWidget, title string, text string, buttons int) QMessageBox__StandardButton {
func QMessageBox_Warning42(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton) QMessageBox__StandardButton {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
text_ms := miqt_strdupg(text)
@ -640,7 +640,7 @@ func QMessageBox_Warning42(parent *QWidget, title string, text string, buttons i
return (QMessageBox__StandardButton)(C.QMessageBox_Warning42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons)))
}
func QMessageBox_Warning5(parent *QWidget, title string, text string, buttons int, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
func QMessageBox_Warning5(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
text_ms := miqt_strdupg(text)
@ -648,7 +648,7 @@ func QMessageBox_Warning5(parent *QWidget, title string, text string, buttons in
return (QMessageBox__StandardButton)(C.QMessageBox_Warning5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons), (C.int)(defaultButton)))
}
func QMessageBox_Critical42(parent *QWidget, title string, text string, buttons int) QMessageBox__StandardButton {
func QMessageBox_Critical42(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton) QMessageBox__StandardButton {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
text_ms := miqt_strdupg(text)
@ -656,7 +656,7 @@ func QMessageBox_Critical42(parent *QWidget, title string, text string, buttons
return (QMessageBox__StandardButton)(C.QMessageBox_Critical42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons)))
}
func QMessageBox_Critical5(parent *QWidget, title string, text string, buttons int, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
func QMessageBox_Critical5(parent *QWidget, title string, text string, buttons QMessageBox__StandardButton, defaultButton QMessageBox__StandardButton) QMessageBox__StandardButton {
title_ms := miqt_strdupg(title)
defer C.free(title_ms)
text_ms := miqt_strdupg(text)

View File

@ -338,8 +338,8 @@ func QMetaType_SizeOf(typeVal int) int {
return (int)(C.QMetaType_SizeOf((C.int)(typeVal)))
}
func QMetaType_TypeFlags(typeVal int) int {
return (int)(C.QMetaType_TypeFlags((C.int)(typeVal)))
func QMetaType_TypeFlags(typeVal int) QMetaType__TypeFlag {
return (QMetaType__TypeFlag)(C.QMetaType_TypeFlags((C.int)(typeVal)))
}
func QMetaType_MetaObjectForType(typeVal int) *QMetaObject {
@ -366,8 +366,8 @@ func (this *QMetaType) SizeOf2() int {
return (int)(C.QMetaType_SizeOf2(this.h))
}
func (this *QMetaType) Flags() int {
return (int)(C.QMetaType_Flags(this.h))
func (this *QMetaType) Flags() QMetaType__TypeFlag {
return (QMetaType__TypeFlag)(C.QMetaType_Flags(this.h))
}
func (this *QMetaType) MetaObject() *QMetaObject {

View File

@ -90,11 +90,11 @@ func (this *QMouseEventTransition) SetButton(button MouseButton) {
C.QMouseEventTransition_SetButton(this.h, (C.int)(button))
}
func (this *QMouseEventTransition) ModifierMask() int {
return (int)(C.QMouseEventTransition_ModifierMask(this.h))
func (this *QMouseEventTransition) ModifierMask() KeyboardModifier {
return (KeyboardModifier)(C.QMouseEventTransition_ModifierMask(this.h))
}
func (this *QMouseEventTransition) SetModifierMask(modifiers int) {
func (this *QMouseEventTransition) SetModifierMask(modifiers KeyboardModifier) {
C.QMouseEventTransition_SetModifierMask(this.h, (C.int)(modifiers))
}

View File

@ -135,8 +135,8 @@ func (this *QTextItem) Width() float64 {
return (float64)(C.QTextItem_Width(this.h))
}
func (this *QTextItem) RenderFlags() int {
return (int)(C.QTextItem_RenderFlags(this.h))
func (this *QTextItem) RenderFlags() QTextItem__RenderFlag {
return (QTextItem__RenderFlag)(C.QTextItem_RenderFlags(this.h))
}
func (this *QTextItem) Text() string {
@ -314,19 +314,19 @@ func (this *QPaintEngine) FixNegRect(x *int, y *int, w *int, h *int) {
C.QPaintEngine_FixNegRect(this.h, (*C.int)(unsafe.Pointer(x)), (*C.int)(unsafe.Pointer(y)), (*C.int)(unsafe.Pointer(w)), (*C.int)(unsafe.Pointer(h)))
}
func (this *QPaintEngine) TestDirty(df int) bool {
func (this *QPaintEngine) TestDirty(df QPaintEngine__DirtyFlag) bool {
return (bool)(C.QPaintEngine_TestDirty(this.h, (C.int)(df)))
}
func (this *QPaintEngine) SetDirty(df int) {
func (this *QPaintEngine) SetDirty(df QPaintEngine__DirtyFlag) {
C.QPaintEngine_SetDirty(this.h, (C.int)(df))
}
func (this *QPaintEngine) ClearDirty(df int) {
func (this *QPaintEngine) ClearDirty(df QPaintEngine__DirtyFlag) {
C.QPaintEngine_ClearDirty(this.h, (C.int)(df))
}
func (this *QPaintEngine) HasFeature(feature int) bool {
func (this *QPaintEngine) HasFeature(feature QPaintEngine__PaintEngineFeature) bool {
return (bool)(C.QPaintEngine_HasFeature(this.h, (C.int)(feature)))
}
@ -342,7 +342,7 @@ func (this *QPaintEngine) IsExtended() bool {
return (bool)(C.QPaintEngine_IsExtended(this.h))
}
func (this *QPaintEngine) DrawImage4(r *QRectF, pm *QImage, sr *QRectF, flags int) {
func (this *QPaintEngine) DrawImage4(r *QRectF, pm *QImage, sr *QRectF, flags ImageConversionFlag) {
C.QPaintEngine_DrawImage4(this.h, r.cPointer(), pm.cPointer(), sr.cPointer(), (C.int)(flags))
}
@ -382,8 +382,8 @@ func newQPaintEngineState_U(h unsafe.Pointer) *QPaintEngineState {
return newQPaintEngineState((*C.QPaintEngineState)(h))
}
func (this *QPaintEngineState) State() int {
return (int)(C.QPaintEngineState_State(this.h))
func (this *QPaintEngineState) State() QPaintEngine__DirtyFlag {
return (QPaintEngine__DirtyFlag)(C.QPaintEngineState_State(this.h))
}
func (this *QPaintEngineState) Pen() *QPen {
@ -461,8 +461,8 @@ func (this *QPaintEngineState) IsClipEnabled() bool {
return (bool)(C.QPaintEngineState_IsClipEnabled(this.h))
}
func (this *QPaintEngineState) RenderHints() int {
return (int)(C.QPaintEngineState_RenderHints(this.h))
func (this *QPaintEngineState) RenderHints() QPainter__RenderHint {
return (QPainter__RenderHint)(C.QPaintEngineState_RenderHints(this.h))
}
func (this *QPaintEngineState) CompositionMode() QPainter__CompositionMode {

View File

@ -994,12 +994,12 @@ func (this *QPainter) SetRenderHint(hint QPainter__RenderHint) {
C.QPainter_SetRenderHint(this.h, (C.int)(hint))
}
func (this *QPainter) SetRenderHints(hints int) {
func (this *QPainter) SetRenderHints(hints QPainter__RenderHint) {
C.QPainter_SetRenderHints(this.h, (C.int)(hints))
}
func (this *QPainter) RenderHints() int {
return (int)(C.QPainter_RenderHints(this.h))
func (this *QPainter) RenderHints() QPainter__RenderHint {
return (QPainter__RenderHint)(C.QPainter_RenderHints(this.h))
}
func (this *QPainter) TestRenderHint(hint QPainter__RenderHint) bool {
@ -1126,23 +1126,23 @@ func (this *QPainter) DrawTiledPixmap33(param1 *QRect, param2 *QPixmap, param3 *
C.QPainter_DrawTiledPixmap33(this.h, param1.cPointer(), param2.cPointer(), param3.cPointer())
}
func (this *QPainter) DrawPixmapFragments4(fragments *QPainter__PixmapFragment, fragmentCount int, pixmap *QPixmap, hints int) {
func (this *QPainter) DrawPixmapFragments4(fragments *QPainter__PixmapFragment, fragmentCount int, pixmap *QPixmap, hints QPainter__PixmapFragmentHint) {
C.QPainter_DrawPixmapFragments4(this.h, fragments.cPointer(), (C.int)(fragmentCount), pixmap.cPointer(), (C.int)(hints))
}
func (this *QPainter) DrawImage42(targetRect *QRectF, image *QImage, sourceRect *QRectF, flags int) {
func (this *QPainter) DrawImage42(targetRect *QRectF, image *QImage, sourceRect *QRectF, flags ImageConversionFlag) {
C.QPainter_DrawImage42(this.h, targetRect.cPointer(), image.cPointer(), sourceRect.cPointer(), (C.int)(flags))
}
func (this *QPainter) DrawImage43(targetRect *QRect, image *QImage, sourceRect *QRect, flags int) {
func (this *QPainter) DrawImage43(targetRect *QRect, image *QImage, sourceRect *QRect, flags ImageConversionFlag) {
C.QPainter_DrawImage43(this.h, targetRect.cPointer(), image.cPointer(), sourceRect.cPointer(), (C.int)(flags))
}
func (this *QPainter) DrawImage44(p *QPointF, image *QImage, sr *QRectF, flags int) {
func (this *QPainter) DrawImage44(p *QPointF, image *QImage, sr *QRectF, flags ImageConversionFlag) {
C.QPainter_DrawImage44(this.h, p.cPointer(), image.cPointer(), sr.cPointer(), (C.int)(flags))
}
func (this *QPainter) DrawImage45(p *QPoint, image *QImage, sr *QRect, flags int) {
func (this *QPainter) DrawImage45(p *QPoint, image *QImage, sr *QRect, flags ImageConversionFlag) {
C.QPainter_DrawImage45(this.h, p.cPointer(), image.cPointer(), sr.cPointer(), (C.int)(flags))
}
@ -1162,7 +1162,7 @@ func (this *QPainter) DrawImage72(x int, y int, image *QImage, sx int, sy int, s
C.QPainter_DrawImage72(this.h, (C.int)(x), (C.int)(y), image.cPointer(), (C.int)(sx), (C.int)(sy), (C.int)(sw), (C.int)(sh))
}
func (this *QPainter) DrawImage82(x int, y int, image *QImage, sx int, sy int, sw int, sh int, flags int) {
func (this *QPainter) DrawImage82(x int, y int, image *QImage, sx int, sy int, sw int, sh int, flags ImageConversionFlag) {
C.QPainter_DrawImage82(this.h, (C.int)(x), (C.int)(y), image.cPointer(), (C.int)(sx), (C.int)(sy), (C.int)(sw), (C.int)(sh), (C.int)(flags))
}
@ -1203,7 +1203,7 @@ func (this *QPainter) SetRenderHint2(hint QPainter__RenderHint, on bool) {
C.QPainter_SetRenderHint2(this.h, (C.int)(hint), (C.bool)(on))
}
func (this *QPainter) SetRenderHints2(hints int, on bool) {
func (this *QPainter) SetRenderHints2(hints QPainter__RenderHint, on bool) {
C.QPainter_SetRenderHints2(this.h, (C.int)(hints), (C.bool)(on))
}

View File

@ -79,7 +79,7 @@ func NewQPixmap6(fileName string, format string) *QPixmap {
}
// NewQPixmap7 constructs a new QPixmap object.
func NewQPixmap7(fileName string, format string, flags int) *QPixmap {
func NewQPixmap7(fileName string, format string, flags ImageConversionFlag) *QPixmap {
fileName_ms := miqt_strdupg(fileName)
defer C.free(fileName_ms)
format_Cstring := C.CString(format)
@ -489,14 +489,14 @@ func (this *QPixmap) Transformed22(param1 *QTransform, mode TransformationMode)
return _goptr
}
func QPixmap_FromImage2(image *QImage, flags int) *QPixmap {
func QPixmap_FromImage2(image *QImage, flags ImageConversionFlag) *QPixmap {
_ret := C.QPixmap_FromImage2(image.cPointer(), (C.int)(flags))
_goptr := newQPixmap(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func QPixmap_FromImageReader2(imageReader *QImageReader, flags int) *QPixmap {
func QPixmap_FromImageReader2(imageReader *QImageReader, flags ImageConversionFlag) *QPixmap {
_ret := C.QPixmap_FromImageReader2(imageReader.cPointer(), (C.int)(flags))
_goptr := newQPixmap(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
@ -511,7 +511,7 @@ func (this *QPixmap) Load2(fileName string, format string) bool {
return (bool)(C.QPixmap_Load2(this.h, (*C.struct_miqt_string)(fileName_ms), format_Cstring))
}
func (this *QPixmap) Load3(fileName string, format string, flags int) bool {
func (this *QPixmap) Load3(fileName string, format string, flags ImageConversionFlag) bool {
fileName_ms := miqt_strdupg(fileName)
defer C.free(fileName_ms)
format_Cstring := C.CString(format)
@ -525,7 +525,7 @@ func (this *QPixmap) LoadFromData3(buf *byte, lenVal uint, format string) bool {
return (bool)(C.QPixmap_LoadFromData3(this.h, (*C.uchar)(unsafe.Pointer(buf)), (C.uint)(lenVal), format_Cstring))
}
func (this *QPixmap) LoadFromData4(buf *byte, lenVal uint, format string, flags int) bool {
func (this *QPixmap) LoadFromData4(buf *byte, lenVal uint, format string, flags ImageConversionFlag) bool {
format_Cstring := C.CString(format)
defer C.free(unsafe.Pointer(format_Cstring))
return (bool)(C.QPixmap_LoadFromData4(this.h, (*C.uchar)(unsafe.Pointer(buf)), (C.uint)(lenVal), format_Cstring, (C.int)(flags)))
@ -537,7 +537,7 @@ func (this *QPixmap) LoadFromData2(data *QByteArray, format string) bool {
return (bool)(C.QPixmap_LoadFromData2(this.h, data.cPointer(), format_Cstring))
}
func (this *QPixmap) LoadFromData32(data *QByteArray, format string, flags int) bool {
func (this *QPixmap) LoadFromData32(data *QByteArray, format string, flags ImageConversionFlag) bool {
format_Cstring := C.CString(format)
defer C.free(unsafe.Pointer(format_Cstring))
return (bool)(C.QPixmap_LoadFromData32(this.h, data.cPointer(), format_Cstring, (C.int)(flags)))
@ -571,7 +571,7 @@ func (this *QPixmap) Save32(device *QIODevice, format string, quality int) bool
return (bool)(C.QPixmap_Save32(this.h, device.cPointer(), format_Cstring, (C.int)(quality)))
}
func (this *QPixmap) ConvertFromImage2(img *QImage, flags int) bool {
func (this *QPixmap) ConvertFromImage2(img *QImage, flags ImageConversionFlag) bool {
return (bool)(C.QPixmap_ConvertFromImage2(this.h, img.cPointer(), (C.int)(flags)))
}

View File

@ -134,12 +134,12 @@ func (this *QPlainTextEdit) SetReadOnly(ro bool) {
C.QPlainTextEdit_SetReadOnly(this.h, (C.bool)(ro))
}
func (this *QPlainTextEdit) SetTextInteractionFlags(flags int) {
func (this *QPlainTextEdit) SetTextInteractionFlags(flags TextInteractionFlag) {
C.QPlainTextEdit_SetTextInteractionFlags(this.h, (C.int)(flags))
}
func (this *QPlainTextEdit) TextInteractionFlags() int {
return (int)(C.QPlainTextEdit_TextInteractionFlags(this.h))
func (this *QPlainTextEdit) TextInteractionFlags() TextInteractionFlag {
return (TextInteractionFlag)(C.QPlainTextEdit_TextInteractionFlags(this.h))
}
func (this *QPlainTextEdit) MergeCurrentCharFormat(modifier *QTextCharFormat) {
@ -662,17 +662,17 @@ func QPlainTextEdit_TrUtf83(s string, c string, n int) string {
return _ret
}
func (this *QPlainTextEdit) Find22(exp string, options int) bool {
func (this *QPlainTextEdit) Find22(exp string, options QTextDocument__FindFlag) bool {
exp_ms := miqt_strdupg(exp)
defer C.free(exp_ms)
return (bool)(C.QPlainTextEdit_Find22(this.h, (*C.struct_miqt_string)(exp_ms), (C.int)(options)))
}
func (this *QPlainTextEdit) Find23(exp *QRegExp, options int) bool {
func (this *QPlainTextEdit) Find23(exp *QRegExp, options QTextDocument__FindFlag) bool {
return (bool)(C.QPlainTextEdit_Find23(this.h, exp.cPointer(), (C.int)(options)))
}
func (this *QPlainTextEdit) Find24(exp *QRegularExpression, options int) bool {
func (this *QPlainTextEdit) Find24(exp *QRegularExpression, options QTextDocument__FindFlag) bool {
return (bool)(C.QPlainTextEdit_Find24(this.h, exp.cPointer(), (C.int)(options)))
}

View File

@ -154,12 +154,12 @@ func (this *QPluginLoader) ErrorString() string {
return _ret
}
func (this *QPluginLoader) SetLoadHints(loadHints int) {
func (this *QPluginLoader) SetLoadHints(loadHints QLibrary__LoadHint) {
C.QPluginLoader_SetLoadHints(this.h, (C.int)(loadHints))
}
func (this *QPluginLoader) LoadHints() int {
return (int)(C.QPluginLoader_LoadHints(this.h))
func (this *QPluginLoader) LoadHints() QLibrary__LoadHint {
return (QLibrary__LoadHint)(C.QPluginLoader_LoadHints(this.h))
}
func QPluginLoader_Tr2(s string, c string) string {

View File

@ -760,7 +760,7 @@ func QProcess_TrUtf83(s string, c string, n int) string {
return _ret
}
func (this *QProcess) Start3(program string, arguments []string, mode int) {
func (this *QProcess) Start3(program string, arguments []string, mode QIODevice__OpenModeFlag) {
program_ms := miqt_strdupg(program)
defer C.free(program_ms)
// For the C ABI, malloc a C array of raw pointers
@ -776,13 +776,13 @@ func (this *QProcess) Start3(program string, arguments []string, mode int) {
C.QProcess_Start3(this.h, (*C.struct_miqt_string)(program_ms), arguments_ma, (C.int)(mode))
}
func (this *QProcess) Start22(command string, mode int) {
func (this *QProcess) Start22(command string, mode QIODevice__OpenModeFlag) {
command_ms := miqt_strdupg(command)
defer C.free(command_ms)
C.QProcess_Start22(this.h, (*C.struct_miqt_string)(command_ms), (C.int)(mode))
}
func (this *QProcess) Start1(mode int) {
func (this *QProcess) Start1(mode QIODevice__OpenModeFlag) {
C.QProcess_Start1(this.h, (C.int)(mode))
}
@ -790,17 +790,17 @@ func (this *QProcess) StartDetached1(pid *int64) bool {
return (bool)(C.QProcess_StartDetached1(this.h, (*C.longlong)(unsafe.Pointer(pid))))
}
func (this *QProcess) Open1(mode int) bool {
func (this *QProcess) Open1(mode QIODevice__OpenModeFlag) bool {
return (bool)(C.QProcess_Open1(this.h, (C.int)(mode)))
}
func (this *QProcess) SetStandardOutputFile2(fileName string, mode int) {
func (this *QProcess) SetStandardOutputFile2(fileName string, mode QIODevice__OpenModeFlag) {
fileName_ms := miqt_strdupg(fileName)
defer C.free(fileName_ms)
C.QProcess_SetStandardOutputFile2(this.h, (*C.struct_miqt_string)(fileName_ms), (C.int)(mode))
}
func (this *QProcess) SetStandardErrorFile2(fileName string, mode int) {
func (this *QProcess) SetStandardErrorFile2(fileName string, mode QIODevice__OpenModeFlag) {
fileName_ms := miqt_strdupg(fileName)
defer C.free(fileName_ms)
C.QProcess_SetStandardErrorFile2(this.h, (*C.struct_miqt_string)(fileName_ms), (C.int)(mode))

View File

@ -105,11 +105,11 @@ func (this *QProgressBar) IsTextVisible() bool {
return (bool)(C.QProgressBar_IsTextVisible(this.h))
}
func (this *QProgressBar) Alignment() int {
return (int)(C.QProgressBar_Alignment(this.h))
func (this *QProgressBar) Alignment() AlignmentFlag {
return (AlignmentFlag)(C.QProgressBar_Alignment(this.h))
}
func (this *QProgressBar) SetAlignment(alignment int) {
func (this *QProgressBar) SetAlignment(alignment AlignmentFlag) {
C.QProgressBar_SetAlignment(this.h, (C.int)(alignment))
}

View File

@ -60,7 +60,7 @@ func NewQProgressDialog3(parent *QWidget) *QProgressDialog {
}
// NewQProgressDialog4 constructs a new QProgressDialog object.
func NewQProgressDialog4(parent *QWidget, flags int) *QProgressDialog {
func NewQProgressDialog4(parent *QWidget, flags WindowType) *QProgressDialog {
ret := C.QProgressDialog_new4(parent.cPointer(), (C.int)(flags))
return newQProgressDialog(ret)
}
@ -76,7 +76,7 @@ func NewQProgressDialog5(labelText string, cancelButtonText string, minimum int,
}
// NewQProgressDialog6 constructs a new QProgressDialog object.
func NewQProgressDialog6(labelText string, cancelButtonText string, minimum int, maximum int, parent *QWidget, flags int) *QProgressDialog {
func NewQProgressDialog6(labelText string, cancelButtonText string, minimum int, maximum int, parent *QWidget, flags WindowType) *QProgressDialog {
labelText_ms := miqt_strdupg(labelText)
defer C.free(labelText_ms)
cancelButtonText_ms := miqt_strdupg(cancelButtonText)

View File

@ -167,7 +167,7 @@ func (this *QRawFont) AdvancesForGlyphIndexes(glyphIndexes []uint) []QPointF {
return _ret
}
func (this *QRawFont) AdvancesForGlyphIndexes2(glyphIndexes []uint, layoutFlags int) []QPointF {
func (this *QRawFont) AdvancesForGlyphIndexes2(glyphIndexes []uint, layoutFlags QRawFont__LayoutFlag) []QPointF {
// For the C ABI, malloc a C array of raw pointers
glyphIndexes_CArray := (*[0xffff]C.uint)(C.malloc(C.size_t(8 * len(glyphIndexes))))
defer C.free(unsafe.Pointer(glyphIndexes_CArray))
@ -197,7 +197,7 @@ func (this *QRawFont) AdvancesForGlyphIndexes3(glyphIndexes *uint, advances *QPo
return (bool)(C.QRawFont_AdvancesForGlyphIndexes3(this.h, (*C.uint)(unsafe.Pointer(glyphIndexes)), advances.cPointer(), (C.int)(numGlyphs)))
}
func (this *QRawFont) AdvancesForGlyphIndexes4(glyphIndexes *uint, advances *QPointF, numGlyphs int, layoutFlags int) bool {
func (this *QRawFont) AdvancesForGlyphIndexes4(glyphIndexes *uint, advances *QPointF, numGlyphs int, layoutFlags QRawFont__LayoutFlag) bool {
return (bool)(C.QRawFont_AdvancesForGlyphIndexes4(this.h, (*C.uint)(unsafe.Pointer(glyphIndexes)), advances.cPointer(), (C.int)(numGlyphs), (C.int)(layoutFlags)))
}

View File

@ -88,18 +88,18 @@ func NewQRegularExpression3(re *QRegularExpression) *QRegularExpression {
}
// NewQRegularExpression4 constructs a new QRegularExpression object.
func NewQRegularExpression4(pattern string, options int) *QRegularExpression {
func NewQRegularExpression4(pattern string, options QRegularExpression__PatternOption) *QRegularExpression {
pattern_ms := miqt_strdupg(pattern)
defer C.free(pattern_ms)
ret := C.QRegularExpression_new4((*C.struct_miqt_string)(pattern_ms), (C.int)(options))
return newQRegularExpression(ret)
}
func (this *QRegularExpression) PatternOptions() int {
return (int)(C.QRegularExpression_PatternOptions(this.h))
func (this *QRegularExpression) PatternOptions() QRegularExpression__PatternOption {
return (QRegularExpression__PatternOption)(C.QRegularExpression_PatternOptions(this.h))
}
func (this *QRegularExpression) SetPatternOptions(options int) {
func (this *QRegularExpression) SetPatternOptions(options QRegularExpression__PatternOption) {
C.QRegularExpression_SetPatternOptions(this.h, (C.int)(options))
}
@ -232,7 +232,7 @@ func (this *QRegularExpression) Match3(subject string, offset int, matchType QRe
return _goptr
}
func (this *QRegularExpression) Match4(subject string, offset int, matchType QRegularExpression__MatchType, matchOptions int) *QRegularExpressionMatch {
func (this *QRegularExpression) Match4(subject string, offset int, matchType QRegularExpression__MatchType, matchOptions QRegularExpression__MatchOption) *QRegularExpressionMatch {
subject_ms := miqt_strdupg(subject)
defer C.free(subject_ms)
_ret := C.QRegularExpression_Match4(this.h, (*C.struct_miqt_string)(subject_ms), (C.int)(offset), (C.int)(matchType), (C.int)(matchOptions))
@ -259,7 +259,7 @@ func (this *QRegularExpression) GlobalMatch3(subject string, offset int, matchTy
return _goptr
}
func (this *QRegularExpression) GlobalMatch4(subject string, offset int, matchType QRegularExpression__MatchType, matchOptions int) *QRegularExpressionMatchIterator {
func (this *QRegularExpression) GlobalMatch4(subject string, offset int, matchType QRegularExpression__MatchType, matchOptions QRegularExpression__MatchOption) *QRegularExpressionMatchIterator {
subject_ms := miqt_strdupg(subject)
defer C.free(subject_ms)
_ret := C.QRegularExpression_GlobalMatch4(this.h, (*C.struct_miqt_string)(subject_ms), (C.int)(offset), (C.int)(matchType), (C.int)(matchOptions))
@ -335,8 +335,8 @@ func (this *QRegularExpressionMatch) MatchType() QRegularExpression__MatchType {
return (QRegularExpression__MatchType)(C.QRegularExpressionMatch_MatchType(this.h))
}
func (this *QRegularExpressionMatch) MatchOptions() int {
return (int)(C.QRegularExpressionMatch_MatchOptions(this.h))
func (this *QRegularExpressionMatch) MatchOptions() QRegularExpression__MatchOption {
return (QRegularExpression__MatchOption)(C.QRegularExpressionMatch_MatchOptions(this.h))
}
func (this *QRegularExpressionMatch) HasMatch() bool {
@ -523,8 +523,8 @@ func (this *QRegularExpressionMatchIterator) MatchType() QRegularExpression__Mat
return (QRegularExpression__MatchType)(C.QRegularExpressionMatchIterator_MatchType(this.h))
}
func (this *QRegularExpressionMatchIterator) MatchOptions() int {
return (int)(C.QRegularExpressionMatchIterator_MatchOptions(this.h))
func (this *QRegularExpressionMatchIterator) MatchOptions() QRegularExpression__MatchOption {
return (QRegularExpression__MatchOption)(C.QRegularExpressionMatchIterator_MatchOptions(this.h))
}
// Delete this object from C++ memory.

View File

@ -99,7 +99,7 @@ func (this *QSaveFile) SetFileName(name string) {
C.QSaveFile_SetFileName(this.h, (*C.struct_miqt_string)(name_ms))
}
func (this *QSaveFile) Open(flags int) bool {
func (this *QSaveFile) Open(flags QIODevice__OpenModeFlag) bool {
return (bool)(C.QSaveFile_Open(this.h, (C.int)(flags)))
}

View File

@ -209,11 +209,11 @@ func (this *QScreen) NativeOrientation() ScreenOrientation {
return (ScreenOrientation)(C.QScreen_NativeOrientation(this.h))
}
func (this *QScreen) OrientationUpdateMask() int {
return (int)(C.QScreen_OrientationUpdateMask(this.h))
func (this *QScreen) OrientationUpdateMask() ScreenOrientation {
return (ScreenOrientation)(C.QScreen_OrientationUpdateMask(this.h))
}
func (this *QScreen) SetOrientationUpdateMask(mask int) {
func (this *QScreen) SetOrientationUpdateMask(mask ScreenOrientation) {
C.QScreen_SetOrientationUpdateMask(this.h, (C.int)(mask))
}

View File

@ -101,11 +101,11 @@ func (this *QScrollArea) FocusNextPrevChild(next bool) bool {
return (bool)(C.QScrollArea_FocusNextPrevChild(this.h, (C.bool)(next)))
}
func (this *QScrollArea) Alignment() int {
return (int)(C.QScrollArea_Alignment(this.h))
func (this *QScrollArea) Alignment() AlignmentFlag {
return (AlignmentFlag)(C.QScrollArea_Alignment(this.h))
}
func (this *QScrollArea) SetAlignment(alignment int) {
func (this *QScrollArea) SetAlignment(alignment AlignmentFlag) {
C.QScrollArea_SetAlignment(this.h, (C.int)(alignment))
}

View File

@ -124,8 +124,8 @@ func (this *QSizePolicy) SetControlType(typeVal QSizePolicy__ControlType) {
C.QSizePolicy_SetControlType(this.h, (C.int)(typeVal))
}
func (this *QSizePolicy) ExpandingDirections() int {
return (int)(C.QSizePolicy_ExpandingDirections(this.h))
func (this *QSizePolicy) ExpandingDirections() Orientation {
return (Orientation)(C.QSizePolicy_ExpandingDirections(this.h))
}
func (this *QSizePolicy) SetHeightForWidth(b bool) {

View File

@ -310,8 +310,8 @@ func (this *QSortFilterProxyModel) CanFetchMore(parent *QModelIndex) bool {
return (bool)(C.QSortFilterProxyModel_CanFetchMore(this.h, parent.cPointer()))
}
func (this *QSortFilterProxyModel) Flags(index *QModelIndex) int {
return (int)(C.QSortFilterProxyModel_Flags(this.h, index.cPointer()))
func (this *QSortFilterProxyModel) Flags(index *QModelIndex) ItemFlag {
return (ItemFlag)(C.QSortFilterProxyModel_Flags(this.h, index.cPointer()))
}
func (this *QSortFilterProxyModel) Buddy(index *QModelIndex) *QModelIndex {
@ -360,8 +360,8 @@ func (this *QSortFilterProxyModel) MimeTypes() []string {
return _ret
}
func (this *QSortFilterProxyModel) SupportedDropActions() int {
return (int)(C.QSortFilterProxyModel_SupportedDropActions(this.h))
func (this *QSortFilterProxyModel) SupportedDropActions() DropAction {
return (DropAction)(C.QSortFilterProxyModel_SupportedDropActions(this.h))
}
func (this *QSortFilterProxyModel) DynamicSortFilterChanged(dynamicSortFilter bool) {
@ -619,7 +619,7 @@ func (this *QSortFilterProxyModel) Match4(start *QModelIndex, role int, value *Q
return _ret
}
func (this *QSortFilterProxyModel) Match5(start *QModelIndex, role int, value *QVariant, hits int, flags int) []QModelIndex {
func (this *QSortFilterProxyModel) Match5(start *QModelIndex, role int, value *QVariant, hits int, flags MatchFlag) []QModelIndex {
var _ma *C.struct_miqt_array = C.QSortFilterProxyModel_Match5(this.h, start.cPointer(), (C.int)(role), value.cPointer(), (C.int)(hits), (C.int)(flags))
_ret := make([]QModelIndex, int(_ma.len))
_outCast := (*[0xffff]*C.QModelIndex)(unsafe.Pointer(_ma.data)) // hey ya

View File

@ -62,7 +62,7 @@ func NewQSplashScreen4(pixmap *QPixmap) *QSplashScreen {
}
// NewQSplashScreen5 constructs a new QSplashScreen object.
func NewQSplashScreen5(pixmap *QPixmap, f int) *QSplashScreen {
func NewQSplashScreen5(pixmap *QPixmap, f WindowType) *QSplashScreen {
ret := C.QSplashScreen_new5(pixmap.cPointer(), (C.int)(f))
return newQSplashScreen(ret)
}
@ -74,7 +74,7 @@ func NewQSplashScreen6(screen *QScreen, pixmap *QPixmap) *QSplashScreen {
}
// NewQSplashScreen7 constructs a new QSplashScreen object.
func NewQSplashScreen7(screen *QScreen, pixmap *QPixmap, f int) *QSplashScreen {
func NewQSplashScreen7(screen *QScreen, pixmap *QPixmap, f WindowType) *QSplashScreen {
ret := C.QSplashScreen_new7(screen.cPointer(), pixmap.cPointer(), (C.int)(f))
return newQSplashScreen(ret)
}
@ -86,7 +86,7 @@ func NewQSplashScreen8(parent *QWidget, pixmap *QPixmap) *QSplashScreen {
}
// NewQSplashScreen9 constructs a new QSplashScreen object.
func NewQSplashScreen9(parent *QWidget, pixmap *QPixmap, f int) *QSplashScreen {
func NewQSplashScreen9(parent *QWidget, pixmap *QPixmap, f WindowType) *QSplashScreen {
ret := C.QSplashScreen_new9(parent.cPointer(), pixmap.cPointer(), (C.int)(f))
return newQSplashScreen(ret)
}

View File

@ -177,11 +177,11 @@ func (this *QStandardItem) SetFont(font *QFont) {
C.QStandardItem_SetFont(this.h, font.cPointer())
}
func (this *QStandardItem) TextAlignment() int {
return (int)(C.QStandardItem_TextAlignment(this.h))
func (this *QStandardItem) TextAlignment() AlignmentFlag {
return (AlignmentFlag)(C.QStandardItem_TextAlignment(this.h))
}
func (this *QStandardItem) SetTextAlignment(textAlignment int) {
func (this *QStandardItem) SetTextAlignment(textAlignment AlignmentFlag) {
C.QStandardItem_SetTextAlignment(this.h, (C.int)(textAlignment))
}
@ -241,11 +241,11 @@ func (this *QStandardItem) SetAccessibleDescription(accessibleDescription string
C.QStandardItem_SetAccessibleDescription(this.h, (*C.struct_miqt_string)(accessibleDescription_ms))
}
func (this *QStandardItem) Flags() int {
return (int)(C.QStandardItem_Flags(this.h))
func (this *QStandardItem) Flags() ItemFlag {
return (ItemFlag)(C.QStandardItem_Flags(this.h))
}
func (this *QStandardItem) SetFlags(flags int) {
func (this *QStandardItem) SetFlags(flags ItemFlag) {
C.QStandardItem_SetFlags(this.h, (C.int)(flags))
}
@ -711,12 +711,12 @@ func (this *QStandardItemModel) RemoveColumns(column int, count int) bool {
return (bool)(C.QStandardItemModel_RemoveColumns(this.h, (C.int)(column), (C.int)(count)))
}
func (this *QStandardItemModel) Flags(index *QModelIndex) int {
return (int)(C.QStandardItemModel_Flags(this.h, index.cPointer()))
func (this *QStandardItemModel) Flags(index *QModelIndex) ItemFlag {
return (ItemFlag)(C.QStandardItemModel_Flags(this.h, index.cPointer()))
}
func (this *QStandardItemModel) SupportedDropActions() int {
return (int)(C.QStandardItemModel_SupportedDropActions(this.h))
func (this *QStandardItemModel) SupportedDropActions() DropAction {
return (DropAction)(C.QStandardItemModel_SupportedDropActions(this.h))
}
func (this *QStandardItemModel) Clear() {
@ -1104,7 +1104,7 @@ func (this *QStandardItemModel) TakeItem2(row int, column int) *QStandardItem {
return newQStandardItem_U(unsafe.Pointer(C.QStandardItemModel_TakeItem2(this.h, (C.int)(row), (C.int)(column))))
}
func (this *QStandardItemModel) FindItems2(text string, flags int) []*QStandardItem {
func (this *QStandardItemModel) FindItems2(text string, flags MatchFlag) []*QStandardItem {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
var _ma *C.struct_miqt_array = C.QStandardItemModel_FindItems2(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags))
@ -1117,7 +1117,7 @@ func (this *QStandardItemModel) FindItems2(text string, flags int) []*QStandardI
return _ret
}
func (this *QStandardItemModel) FindItems3(text string, flags int, column int) []*QStandardItem {
func (this *QStandardItemModel) FindItems3(text string, flags MatchFlag, column int) []*QStandardItem {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
var _ma *C.struct_miqt_array = C.QStandardItemModel_FindItems3(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags), (C.int)(column))

Some files were not shown because too many files have changed in this diff Show More