mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
genbindings/go: fix missing type cast calling go->cabi
This commit is contained in:
parent
e2fd134509
commit
f6d1ef8ade
@ -265,7 +265,7 @@ func (gfs *goFileState) emitParameterGo2CABIForwarding(p CppParameter) (preamble
|
||||
// We want our functions to accept the Go wrapper type, and forward as cPointer()
|
||||
rvalue = p.ParameterName + ".cPointer()"
|
||||
|
||||
} else if p.IntType() || p.ParameterType == "bool" {
|
||||
} else if p.IntType() || p.IsFlagType() || p.IsKnownEnum() || p.ParameterType == "bool" {
|
||||
if p.Pointer || p.ByRef {
|
||||
gfs.imports["unsafe"] = struct{}{}
|
||||
rvalue = "(" + p.parameterTypeCgo() + ")(unsafe.Pointer(" + p.ParameterName + "))" // n.b. This may not work if the integer type conversion was wrong
|
||||
|
@ -64,7 +64,7 @@ func QAbstractEventDispatcher_Instance() *QAbstractEventDispatcher {
|
||||
}
|
||||
|
||||
func (this *QAbstractEventDispatcher) ProcessEvents(flags int) bool {
|
||||
return (bool)(C.QAbstractEventDispatcher_ProcessEvents(this.h, flags))
|
||||
return (bool)(C.QAbstractEventDispatcher_ProcessEvents(this.h, (C.int)(flags)))
|
||||
}
|
||||
|
||||
func (this *QAbstractEventDispatcher) HasPendingEvents() bool {
|
||||
|
@ -778,7 +778,7 @@ func (this *QAbstractItemModel) Match4(start *QModelIndex, role int, value *QVar
|
||||
}
|
||||
|
||||
func (this *QAbstractItemModel) Match5(start *QModelIndex, role int, value *QVariant, hits int, flags int) []QModelIndex {
|
||||
var _ma *C.struct_miqt_array = C.QAbstractItemModel_Match5(this.h, start.cPointer(), (C.int)(role), value.cPointer(), (C.int)(hits), flags)
|
||||
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
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
@ -792,7 +792,7 @@ func (this *QAbstractItemModel) Match5(start *QModelIndex, role int, value *QVar
|
||||
}
|
||||
|
||||
func (this *QAbstractItemModel) CheckIndex2(index *QModelIndex, options int) bool {
|
||||
return (bool)(C.QAbstractItemModel_CheckIndex2(this.h, index.cPointer(), options))
|
||||
return (bool)(C.QAbstractItemModel_CheckIndex2(this.h, index.cPointer(), (C.int)(options)))
|
||||
}
|
||||
|
||||
func (this *QAbstractItemModel) DataChanged3(topLeft *QModelIndex, bottomRight *QModelIndex, roles []int) {
|
||||
|
@ -170,7 +170,7 @@ func (this *QAbstractItemView) RootIndex() *QModelIndex {
|
||||
}
|
||||
|
||||
func (this *QAbstractItemView) SetEditTriggers(triggers int) {
|
||||
C.QAbstractItemView_SetEditTriggers(this.h, triggers)
|
||||
C.QAbstractItemView_SetEditTriggers(this.h, (C.int)(triggers))
|
||||
}
|
||||
|
||||
func (this *QAbstractItemView) EditTriggers() int {
|
||||
|
@ -119,11 +119,11 @@ func (this *QAbstractScrollArea) SetCornerWidget(widget *QWidget) {
|
||||
}
|
||||
|
||||
func (this *QAbstractScrollArea) AddScrollBarWidget(widget *QWidget, alignment int) {
|
||||
C.QAbstractScrollArea_AddScrollBarWidget(this.h, widget.cPointer(), alignment)
|
||||
C.QAbstractScrollArea_AddScrollBarWidget(this.h, widget.cPointer(), (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QAbstractScrollArea) ScrollBarWidgets(alignment int) []*QWidget {
|
||||
var _ma *C.struct_miqt_array = C.QAbstractScrollArea_ScrollBarWidgets(this.h, alignment)
|
||||
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
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
|
@ -166,7 +166,7 @@ func (this *QAbstractSpinBox) KeyboardTracking() bool {
|
||||
}
|
||||
|
||||
func (this *QAbstractSpinBox) SetAlignment(flag int) {
|
||||
C.QAbstractSpinBox_SetAlignment(this.h, flag)
|
||||
C.QAbstractSpinBox_SetAlignment(this.h, (C.int)(flag))
|
||||
}
|
||||
|
||||
func (this *QAbstractSpinBox) Alignment() int {
|
||||
|
@ -87,11 +87,11 @@ func QArrayData_SharedNull() *QArrayData {
|
||||
}
|
||||
|
||||
func QArrayData_Allocate4(objectSize uint64, alignment uint64, capacity uint64, options int) *QArrayData {
|
||||
return newQArrayData_U(unsafe.Pointer(C.QArrayData_Allocate4((C.size_t)(objectSize), (C.size_t)(alignment), (C.size_t)(capacity), options)))
|
||||
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 {
|
||||
return newQArrayData_U(unsafe.Pointer(C.QArrayData_ReallocateUnaligned4(data.cPointer(), (C.size_t)(objectSize), (C.size_t)(newCapacity), newOptions)))
|
||||
return newQArrayData_U(unsafe.Pointer(C.QArrayData_ReallocateUnaligned4(data.cPointer(), (C.size_t)(objectSize), (C.size_t)(newCapacity), (C.int)(newOptions))))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
|
@ -129,7 +129,7 @@ func (this *QBitmap) TransformedWithMatrix(matrix *QTransform) *QBitmap {
|
||||
}
|
||||
|
||||
func QBitmap_FromImage2(image *QImage, flags int) *QBitmap {
|
||||
_ret := C.QBitmap_FromImage2(image.cPointer(), flags)
|
||||
_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
|
||||
return _goptr
|
||||
|
@ -275,7 +275,7 @@ func (this *QBoxLayout) AddWidget2(param1 *QWidget, stretch int) {
|
||||
}
|
||||
|
||||
func (this *QBoxLayout) AddWidget3(param1 *QWidget, stretch int, alignment int) {
|
||||
C.QBoxLayout_AddWidget3(this.h, param1.cPointer(), (C.int)(stretch), alignment)
|
||||
C.QBoxLayout_AddWidget3(this.h, param1.cPointer(), (C.int)(stretch), (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QBoxLayout) AddLayout2(layout *QLayout, stretch int) {
|
||||
@ -291,7 +291,7 @@ func (this *QBoxLayout) InsertWidget3(index int, widget *QWidget, stretch int) {
|
||||
}
|
||||
|
||||
func (this *QBoxLayout) InsertWidget4(index int, widget *QWidget, stretch int, alignment int) {
|
||||
C.QBoxLayout_InsertWidget4(this.h, (C.int)(index), widget.cPointer(), (C.int)(stretch), alignment)
|
||||
C.QBoxLayout_InsertWidget4(this.h, (C.int)(index), widget.cPointer(), (C.int)(stretch), (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QBoxLayout) InsertLayout3(index int, layout *QLayout, stretch int) {
|
||||
|
@ -109,7 +109,7 @@ func (this *QBuffer) Data() *QByteArray {
|
||||
}
|
||||
|
||||
func (this *QBuffer) Open(openMode int) bool {
|
||||
return (bool)(C.QBuffer_Open(this.h, openMode))
|
||||
return (bool)(C.QBuffer_Open(this.h, (C.int)(openMode)))
|
||||
}
|
||||
|
||||
func (this *QBuffer) Close() {
|
||||
|
@ -764,7 +764,7 @@ func (this *QByteArray) ToDouble() float64 {
|
||||
}
|
||||
|
||||
func (this *QByteArray) ToBase64(options int) *QByteArray {
|
||||
_ret := C.QByteArray_ToBase64(this.h, options)
|
||||
_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
|
||||
return _goptr
|
||||
@ -888,7 +888,7 @@ func QByteArray_FromBase64Encoding(base64 *QByteArray) *QByteArray__FromBase64Re
|
||||
}
|
||||
|
||||
func QByteArray_FromBase64(base64 *QByteArray, options int) *QByteArray {
|
||||
_ret := C.QByteArray_FromBase64(base64.cPointer(), options)
|
||||
_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
|
||||
return _goptr
|
||||
@ -1264,7 +1264,7 @@ func QByteArray_Number3(param1 float64, f byte, prec int) *QByteArray {
|
||||
}
|
||||
|
||||
func QByteArray_FromBase64Encoding2(base64 *QByteArray, options int) *QByteArray__FromBase64Result {
|
||||
_ret := C.QByteArray_FromBase64Encoding2(base64.cPointer(), options)
|
||||
_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
|
||||
return _goptr
|
||||
|
@ -662,18 +662,18 @@ func QCborValue_FromCbor33(data *byte, lenVal uint64, error *QCborParserError) *
|
||||
}
|
||||
|
||||
func (this *QCborValue) ToCbor1(opt int) *QByteArray {
|
||||
_ret := C.QCborValue_ToCbor1(this.h, opt)
|
||||
_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) {
|
||||
C.QCborValue_ToCbor2(this.h, writer.cPointer(), opt)
|
||||
C.QCborValue_ToCbor2(this.h, writer.cPointer(), (C.int)(opt))
|
||||
}
|
||||
|
||||
func (this *QCborValue) ToDiagnosticNotation1(opts int) string {
|
||||
var _ms *C.struct_miqt_string = C.QCborValue_ToDiagnosticNotation1(this.h, opts)
|
||||
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))
|
||||
return _ret
|
||||
@ -1054,18 +1054,18 @@ func (this *QCborValueRef) ToUuid1(defaultValue *QUuid) *QUuid {
|
||||
}
|
||||
|
||||
func (this *QCborValueRef) ToCbor1(opt int) *QByteArray {
|
||||
_ret := C.QCborValueRef_ToCbor1(this.h, opt)
|
||||
_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) {
|
||||
C.QCborValueRef_ToCbor2(this.h, writer.cPointer(), opt)
|
||||
C.QCborValueRef_ToCbor2(this.h, writer.cPointer(), (C.int)(opt))
|
||||
}
|
||||
|
||||
func (this *QCborValueRef) ToDiagnosticNotation1(opt int) string {
|
||||
var _ms *C.struct_miqt_string = C.QCborValueRef_ToDiagnosticNotation1(this.h, opt)
|
||||
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))
|
||||
return _ret
|
||||
|
@ -118,7 +118,7 @@ func (this *QColorDialog) TestOption(option QColorDialog__ColorDialogOption) boo
|
||||
}
|
||||
|
||||
func (this *QColorDialog) SetOptions(options int) {
|
||||
C.QColorDialog_SetOptions(this.h, options)
|
||||
C.QColorDialog_SetOptions(this.h, (C.int)(options))
|
||||
}
|
||||
|
||||
func (this *QColorDialog) Options() int {
|
||||
@ -280,7 +280,7 @@ func QColorDialog_GetColor3(initial *QColor, parent *QWidget, title string) *QCo
|
||||
func QColorDialog_GetColor4(initial *QColor, parent *QWidget, title string, options int) *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), options)
|
||||
_ret := C.QColorDialog_GetColor4(initial.cPointer(), parent.cPointer(), (*C.struct_miqt_string)(title_ms), (C.int)(options))
|
||||
_goptr := newQColor(_ret)
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
return _goptr
|
||||
|
@ -736,7 +736,7 @@ func QComboBox_TrUtf83(s string, c string, n int) string {
|
||||
func (this *QComboBox) FindText2(text string, flags int) int {
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
return (int)(C.QComboBox_FindText2(this.h, (*C.struct_miqt_string)(text_ms), flags))
|
||||
return (int)(C.QComboBox_FindText2(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags)))
|
||||
}
|
||||
|
||||
func (this *QComboBox) FindData2(data *QVariant, role int) int {
|
||||
@ -744,7 +744,7 @@ func (this *QComboBox) FindData2(data *QVariant, role int) int {
|
||||
}
|
||||
|
||||
func (this *QComboBox) FindData3(data *QVariant, role int, flags int) int {
|
||||
return (int)(C.QComboBox_FindData3(this.h, data.cPointer(), (C.int)(role), flags))
|
||||
return (int)(C.QComboBox_FindData3(this.h, data.cPointer(), (C.int)(role), (C.int)(flags)))
|
||||
}
|
||||
|
||||
func (this *QComboBox) CurrentData1(role int) *QVariant {
|
||||
|
@ -255,7 +255,7 @@ func (this *QCommandLineOption) Flags() int {
|
||||
}
|
||||
|
||||
func (this *QCommandLineOption) SetFlags(aflags int) {
|
||||
C.QCommandLineOption_SetFlags(this.h, aflags)
|
||||
C.QCommandLineOption_SetFlags(this.h, (C.int)(aflags))
|
||||
}
|
||||
|
||||
func (this *QCommandLineOption) SetHidden(hidden bool) {
|
||||
|
@ -156,7 +156,7 @@ func (this *QCompleter) CompletionMode() QCompleter__CompletionMode {
|
||||
}
|
||||
|
||||
func (this *QCompleter) SetFilterMode(filterMode int) {
|
||||
C.QCompleter_SetFilterMode(this.h, filterMode)
|
||||
C.QCompleter_SetFilterMode(this.h, (C.int)(filterMode))
|
||||
}
|
||||
|
||||
func (this *QCompleter) FilterMode() int {
|
||||
|
@ -186,7 +186,7 @@ func QCoreApplication_ProcessEvents() {
|
||||
}
|
||||
|
||||
func QCoreApplication_ProcessEvents2(flags int, maxtime int) {
|
||||
C.QCoreApplication_ProcessEvents2(flags, (C.int)(maxtime))
|
||||
C.QCoreApplication_ProcessEvents2((C.int)(flags), (C.int)(maxtime))
|
||||
}
|
||||
|
||||
func QCoreApplication_Exit() {
|
||||
@ -451,7 +451,7 @@ func QCoreApplication_SetAttribute2(attribute ApplicationAttribute, on bool) {
|
||||
}
|
||||
|
||||
func QCoreApplication_ProcessEvents1(flags int) {
|
||||
C.QCoreApplication_ProcessEvents1(flags)
|
||||
C.QCoreApplication_ProcessEvents1((C.int)(flags))
|
||||
}
|
||||
|
||||
func QCoreApplication_Exit1(retcode int) {
|
||||
|
@ -110,7 +110,7 @@ func NewQDataStream2(param1 *QIODevice) *QDataStream {
|
||||
|
||||
// NewQDataStream3 constructs a new QDataStream object.
|
||||
func NewQDataStream3(param1 *QByteArray, flags int) *QDataStream {
|
||||
ret := C.QDataStream_new3(param1.cPointer(), flags)
|
||||
ret := C.QDataStream_new3(param1.cPointer(), (C.int)(flags))
|
||||
return newQDataStream(ret)
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ func NewQDialog2(parent *QWidget) *QDialog {
|
||||
|
||||
// NewQDialog3 constructs a new QDialog object.
|
||||
func NewQDialog3(parent *QWidget, f int) *QDialog {
|
||||
ret := C.QDialog_new3(parent.cPointer(), f)
|
||||
ret := C.QDialog_new3(parent.cPointer(), (C.int)(f))
|
||||
return newQDialog(ret)
|
||||
}
|
||||
|
||||
|
@ -103,13 +103,13 @@ func NewQDialogButtonBox2(orientation Orientation) *QDialogButtonBox {
|
||||
|
||||
// NewQDialogButtonBox3 constructs a new QDialogButtonBox object.
|
||||
func NewQDialogButtonBox3(buttons int) *QDialogButtonBox {
|
||||
ret := C.QDialogButtonBox_new3(buttons)
|
||||
ret := C.QDialogButtonBox_new3((C.int)(buttons))
|
||||
return newQDialogButtonBox(ret)
|
||||
}
|
||||
|
||||
// NewQDialogButtonBox4 constructs a new QDialogButtonBox object.
|
||||
func NewQDialogButtonBox4(buttons int, orientation Orientation) *QDialogButtonBox {
|
||||
ret := C.QDialogButtonBox_new4(buttons, (C.int)(orientation))
|
||||
ret := C.QDialogButtonBox_new4((C.int)(buttons), (C.int)(orientation))
|
||||
return newQDialogButtonBox(ret)
|
||||
}
|
||||
|
||||
@ -127,13 +127,13 @@ func NewQDialogButtonBox6(orientation Orientation, parent *QWidget) *QDialogButt
|
||||
|
||||
// NewQDialogButtonBox7 constructs a new QDialogButtonBox object.
|
||||
func NewQDialogButtonBox7(buttons int, parent *QWidget) *QDialogButtonBox {
|
||||
ret := C.QDialogButtonBox_new7(buttons, parent.cPointer())
|
||||
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 {
|
||||
ret := C.QDialogButtonBox_new8(buttons, (C.int)(orientation), parent.cPointer())
|
||||
ret := C.QDialogButtonBox_new8((C.int)(buttons), (C.int)(orientation), parent.cPointer())
|
||||
return newQDialogButtonBox(ret)
|
||||
}
|
||||
|
||||
@ -205,7 +205,7 @@ func (this *QDialogButtonBox) ButtonRole(button *QAbstractButton) QDialogButtonB
|
||||
}
|
||||
|
||||
func (this *QDialogButtonBox) SetStandardButtons(buttons int) {
|
||||
C.QDialogButtonBox_SetStandardButtons(this.h, buttons)
|
||||
C.QDialogButtonBox_SetStandardButtons(this.h, (C.int)(buttons))
|
||||
}
|
||||
|
||||
func (this *QDialogButtonBox) StandardButtons() int {
|
||||
|
@ -113,7 +113,7 @@ func NewQDir5(path string, nameFilter string, sort int) *QDir {
|
||||
defer C.free(path_ms)
|
||||
nameFilter_ms := miqt_strdupg(nameFilter)
|
||||
defer C.free(nameFilter_ms)
|
||||
ret := C.QDir_new5((*C.struct_miqt_string)(path_ms), (*C.struct_miqt_string)(nameFilter_ms), sort)
|
||||
ret := C.QDir_new5((*C.struct_miqt_string)(path_ms), (*C.struct_miqt_string)(nameFilter_ms), (C.int)(sort))
|
||||
return newQDir(ret)
|
||||
}
|
||||
|
||||
@ -123,7 +123,7 @@ func NewQDir6(path string, nameFilter string, sort int, filter int) *QDir {
|
||||
defer C.free(path_ms)
|
||||
nameFilter_ms := miqt_strdupg(nameFilter)
|
||||
defer C.free(nameFilter_ms)
|
||||
ret := C.QDir_new6((*C.struct_miqt_string)(path_ms), (*C.struct_miqt_string)(nameFilter_ms), sort, filter)
|
||||
ret := C.QDir_new6((*C.struct_miqt_string)(path_ms), (*C.struct_miqt_string)(nameFilter_ms), (C.int)(sort), (C.int)(filter))
|
||||
return newQDir(ret)
|
||||
}
|
||||
|
||||
@ -309,7 +309,7 @@ func (this *QDir) Filter() int {
|
||||
}
|
||||
|
||||
func (this *QDir) SetFilter(filter int) {
|
||||
C.QDir_SetFilter(this.h, filter)
|
||||
C.QDir_SetFilter(this.h, (C.int)(filter))
|
||||
}
|
||||
|
||||
func (this *QDir) Sorting() int {
|
||||
@ -317,7 +317,7 @@ func (this *QDir) Sorting() int {
|
||||
}
|
||||
|
||||
func (this *QDir) SetSorting(sort int) {
|
||||
C.QDir_SetSorting(this.h, sort)
|
||||
C.QDir_SetSorting(this.h, (C.int)(sort))
|
||||
}
|
||||
|
||||
func (this *QDir) Count() uint {
|
||||
@ -647,11 +647,11 @@ func (this *QDir) Refresh() {
|
||||
}
|
||||
|
||||
func (this *QDir) IsEmpty1(filters int) bool {
|
||||
return (bool)(C.QDir_IsEmpty1(this.h, filters))
|
||||
return (bool)(C.QDir_IsEmpty1(this.h, (C.int)(filters)))
|
||||
}
|
||||
|
||||
func (this *QDir) EntryList1(filters int) []string {
|
||||
var _ma *C.struct_miqt_array = C.QDir_EntryList1(this.h, filters)
|
||||
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
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
@ -665,7 +665,7 @@ func (this *QDir) EntryList1(filters int) []string {
|
||||
}
|
||||
|
||||
func (this *QDir) EntryList2(filters int, sort int) []string {
|
||||
var _ma *C.struct_miqt_array = C.QDir_EntryList2(this.h, filters, sort)
|
||||
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
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
@ -689,7 +689,7 @@ func (this *QDir) EntryList22(nameFilters []string, filters int) []string {
|
||||
}
|
||||
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
|
||||
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
|
||||
var _ma *C.struct_miqt_array = C.QDir_EntryList22(this.h, nameFilters_ma, filters)
|
||||
var _ma *C.struct_miqt_array = C.QDir_EntryList22(this.h, nameFilters_ma, (C.int)(filters))
|
||||
_ret := make([]string, int(_ma.len))
|
||||
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
@ -713,7 +713,7 @@ func (this *QDir) EntryList3(nameFilters []string, filters int, sort int) []stri
|
||||
}
|
||||
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
|
||||
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
|
||||
var _ma *C.struct_miqt_array = C.QDir_EntryList3(this.h, nameFilters_ma, filters, sort)
|
||||
var _ma *C.struct_miqt_array = C.QDir_EntryList3(this.h, nameFilters_ma, (C.int)(filters), (C.int)(sort))
|
||||
_ret := make([]string, int(_ma.len))
|
||||
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
@ -727,7 +727,7 @@ func (this *QDir) EntryList3(nameFilters []string, filters int, sort int) []stri
|
||||
}
|
||||
|
||||
func (this *QDir) EntryInfoList1(filters int) []QFileInfo {
|
||||
var _ma *C.struct_miqt_array = C.QDir_EntryInfoList1(this.h, filters)
|
||||
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
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
@ -741,7 +741,7 @@ func (this *QDir) EntryInfoList1(filters int) []QFileInfo {
|
||||
}
|
||||
|
||||
func (this *QDir) EntryInfoList2(filters int, sort int) []QFileInfo {
|
||||
var _ma *C.struct_miqt_array = C.QDir_EntryInfoList2(this.h, filters, sort)
|
||||
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
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
@ -765,7 +765,7 @@ func (this *QDir) EntryInfoList22(nameFilters []string, filters int) []QFileInfo
|
||||
}
|
||||
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
|
||||
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
|
||||
var _ma *C.struct_miqt_array = C.QDir_EntryInfoList22(this.h, nameFilters_ma, filters)
|
||||
var _ma *C.struct_miqt_array = C.QDir_EntryInfoList22(this.h, nameFilters_ma, (C.int)(filters))
|
||||
_ret := make([]QFileInfo, int(_ma.len))
|
||||
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // hey ya
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
@ -789,7 +789,7 @@ func (this *QDir) EntryInfoList3(nameFilters []string, filters int, sort int) []
|
||||
}
|
||||
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
|
||||
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
|
||||
var _ma *C.struct_miqt_array = C.QDir_EntryInfoList3(this.h, nameFilters_ma, filters, sort)
|
||||
var _ma *C.struct_miqt_array = C.QDir_EntryInfoList3(this.h, nameFilters_ma, (C.int)(filters), (C.int)(sort))
|
||||
_ret := make([]QFileInfo, int(_ma.len))
|
||||
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // hey ya
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
|
@ -61,7 +61,7 @@ func NewQDirIterator2(path string) *QDirIterator {
|
||||
func NewQDirIterator3(path string, filter int) *QDirIterator {
|
||||
path_ms := miqt_strdupg(path)
|
||||
defer C.free(path_ms)
|
||||
ret := C.QDirIterator_new3((*C.struct_miqt_string)(path_ms), filter)
|
||||
ret := C.QDirIterator_new3((*C.struct_miqt_string)(path_ms), (C.int)(filter))
|
||||
return newQDirIterator(ret)
|
||||
}
|
||||
|
||||
@ -85,7 +85,7 @@ func NewQDirIterator4(path string, nameFilters []string) *QDirIterator {
|
||||
|
||||
// NewQDirIterator5 constructs a new QDirIterator object.
|
||||
func NewQDirIterator5(dir *QDir, flags int) *QDirIterator {
|
||||
ret := C.QDirIterator_new5(dir.cPointer(), flags)
|
||||
ret := C.QDirIterator_new5(dir.cPointer(), (C.int)(flags))
|
||||
return newQDirIterator(ret)
|
||||
}
|
||||
|
||||
@ -93,7 +93,7 @@ func NewQDirIterator5(dir *QDir, flags int) *QDirIterator {
|
||||
func NewQDirIterator6(path string, flags int) *QDirIterator {
|
||||
path_ms := miqt_strdupg(path)
|
||||
defer C.free(path_ms)
|
||||
ret := C.QDirIterator_new6((*C.struct_miqt_string)(path_ms), flags)
|
||||
ret := C.QDirIterator_new6((*C.struct_miqt_string)(path_ms), (C.int)(flags))
|
||||
return newQDirIterator(ret)
|
||||
}
|
||||
|
||||
@ -101,7 +101,7 @@ func NewQDirIterator6(path string, flags int) *QDirIterator {
|
||||
func NewQDirIterator7(path string, filter int, flags int) *QDirIterator {
|
||||
path_ms := miqt_strdupg(path)
|
||||
defer C.free(path_ms)
|
||||
ret := C.QDirIterator_new7((*C.struct_miqt_string)(path_ms), filter, flags)
|
||||
ret := C.QDirIterator_new7((*C.struct_miqt_string)(path_ms), (C.int)(filter), (C.int)(flags))
|
||||
return newQDirIterator(ret)
|
||||
}
|
||||
|
||||
@ -119,7 +119,7 @@ func NewQDirIterator8(path string, nameFilters []string, filters int) *QDirItera
|
||||
}
|
||||
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
|
||||
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
|
||||
ret := C.QDirIterator_new8((*C.struct_miqt_string)(path_ms), nameFilters_ma, filters)
|
||||
ret := C.QDirIterator_new8((*C.struct_miqt_string)(path_ms), nameFilters_ma, (C.int)(filters))
|
||||
return newQDirIterator(ret)
|
||||
}
|
||||
|
||||
@ -137,7 +137,7 @@ func NewQDirIterator9(path string, nameFilters []string, filters int, flags int)
|
||||
}
|
||||
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
|
||||
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
|
||||
ret := C.QDirIterator_new9((*C.struct_miqt_string)(path_ms), nameFilters_ma, filters, flags)
|
||||
ret := C.QDirIterator_new9((*C.struct_miqt_string)(path_ms), nameFilters_ma, (C.int)(filters), (C.int)(flags))
|
||||
return newQDirIterator(ret)
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ func NewQDirModel(nameFilters []string, filters int, sort int) *QDirModel {
|
||||
}
|
||||
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
|
||||
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
|
||||
ret := C.QDirModel_new(nameFilters_ma, filters, sort)
|
||||
ret := C.QDirModel_new(nameFilters_ma, (C.int)(filters), (C.int)(sort))
|
||||
return newQDirModel(ret)
|
||||
}
|
||||
|
||||
@ -78,7 +78,7 @@ func NewQDirModel3(nameFilters []string, filters int, sort int, parent *QObject)
|
||||
}
|
||||
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
|
||||
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
|
||||
ret := C.QDirModel_new3(nameFilters_ma, filters, sort, parent.cPointer())
|
||||
ret := C.QDirModel_new3(nameFilters_ma, (C.int)(filters), (C.int)(sort), parent.cPointer())
|
||||
return newQDirModel(ret)
|
||||
}
|
||||
|
||||
@ -233,7 +233,7 @@ func (this *QDirModel) NameFilters() []string {
|
||||
}
|
||||
|
||||
func (this *QDirModel) SetFilter(filters int) {
|
||||
C.QDirModel_SetFilter(this.h, filters)
|
||||
C.QDirModel_SetFilter(this.h, (C.int)(filters))
|
||||
}
|
||||
|
||||
func (this *QDirModel) Filter() int {
|
||||
@ -241,7 +241,7 @@ func (this *QDirModel) Filter() int {
|
||||
}
|
||||
|
||||
func (this *QDirModel) SetSorting(sort int) {
|
||||
C.QDirModel_SetSorting(this.h, sort)
|
||||
C.QDirModel_SetSorting(this.h, (C.int)(sort))
|
||||
}
|
||||
|
||||
func (this *QDirModel) Sorting() int {
|
||||
|
@ -76,7 +76,7 @@ func NewQDockWidget3(title string, parent *QWidget) *QDockWidget {
|
||||
func NewQDockWidget4(title string, parent *QWidget, flags int) *QDockWidget {
|
||||
title_ms := miqt_strdupg(title)
|
||||
defer C.free(title_ms)
|
||||
ret := C.QDockWidget_new4((*C.struct_miqt_string)(title_ms), parent.cPointer(), flags)
|
||||
ret := C.QDockWidget_new4((*C.struct_miqt_string)(title_ms), parent.cPointer(), (C.int)(flags))
|
||||
return newQDockWidget(ret)
|
||||
}
|
||||
|
||||
@ -88,7 +88,7 @@ func NewQDockWidget5(parent *QWidget) *QDockWidget {
|
||||
|
||||
// NewQDockWidget6 constructs a new QDockWidget object.
|
||||
func NewQDockWidget6(parent *QWidget, flags int) *QDockWidget {
|
||||
ret := C.QDockWidget_new6(parent.cPointer(), flags)
|
||||
ret := C.QDockWidget_new6(parent.cPointer(), (C.int)(flags))
|
||||
return newQDockWidget(ret)
|
||||
}
|
||||
|
||||
@ -123,7 +123,7 @@ func (this *QDockWidget) SetWidget(widget *QWidget) {
|
||||
}
|
||||
|
||||
func (this *QDockWidget) SetFeatures(features int) {
|
||||
C.QDockWidget_SetFeatures(this.h, features)
|
||||
C.QDockWidget_SetFeatures(this.h, (C.int)(features))
|
||||
}
|
||||
|
||||
func (this *QDockWidget) Features() int {
|
||||
@ -139,7 +139,7 @@ func (this *QDockWidget) IsFloating() bool {
|
||||
}
|
||||
|
||||
func (this *QDockWidget) SetAllowedAreas(areas int) {
|
||||
C.QDockWidget_SetAllowedAreas(this.h, areas)
|
||||
C.QDockWidget_SetAllowedAreas(this.h, (C.int)(areas))
|
||||
}
|
||||
|
||||
func (this *QDockWidget) AllowedAreas() int {
|
||||
@ -163,7 +163,7 @@ func (this *QDockWidget) ToggleViewAction() *QAction {
|
||||
}
|
||||
|
||||
func (this *QDockWidget) FeaturesChanged(features int) {
|
||||
C.QDockWidget_FeaturesChanged(this.h, features)
|
||||
C.QDockWidget_FeaturesChanged(this.h, (C.int)(features))
|
||||
}
|
||||
func (this *QDockWidget) OnFeaturesChanged(slot func(features int)) {
|
||||
C.QDockWidget_connect_FeaturesChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
|
||||
@ -203,7 +203,7 @@ func miqt_exec_callback_QDockWidget_TopLevelChanged(cb *C.void, topLevel C.bool)
|
||||
}
|
||||
|
||||
func (this *QDockWidget) AllowedAreasChanged(allowedAreas int) {
|
||||
C.QDockWidget_AllowedAreasChanged(this.h, allowedAreas)
|
||||
C.QDockWidget_AllowedAreasChanged(this.h, (C.int)(allowedAreas))
|
||||
}
|
||||
func (this *QDockWidget) OnAllowedAreasChanged(slot func(allowedAreas int)) {
|
||||
C.QDockWidget_connect_AllowedAreasChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
|
||||
|
@ -112,7 +112,7 @@ func (this *QDrag) Exec() DropAction {
|
||||
}
|
||||
|
||||
func (this *QDrag) Exec2(supportedActions int, defaultAction DropAction) DropAction {
|
||||
return (DropAction)(C.QDrag_Exec2(this.h, supportedActions, (C.int)(defaultAction)))
|
||||
return (DropAction)(C.QDrag_Exec2(this.h, (C.int)(supportedActions), (C.int)(defaultAction)))
|
||||
}
|
||||
|
||||
func (this *QDrag) SetDragCursor(cursor *QPixmap, action DropAction) {
|
||||
@ -223,11 +223,11 @@ func QDrag_TrUtf83(s string, c string, n int) string {
|
||||
}
|
||||
|
||||
func (this *QDrag) Start1(supportedActions int) DropAction {
|
||||
return (DropAction)(C.QDrag_Start1(this.h, supportedActions))
|
||||
return (DropAction)(C.QDrag_Start1(this.h, (C.int)(supportedActions)))
|
||||
}
|
||||
|
||||
func (this *QDrag) Exec1(supportedActions int) DropAction {
|
||||
return (DropAction)(C.QDrag_Exec1(this.h, supportedActions))
|
||||
return (DropAction)(C.QDrag_Exec1(this.h, (C.int)(supportedActions)))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
|
@ -110,7 +110,7 @@ func NewQInputEvent2(param1 *QInputEvent) *QInputEvent {
|
||||
|
||||
// NewQInputEvent3 constructs a new QInputEvent object.
|
||||
func NewQInputEvent3(typeVal QEvent__Type, modifiers int) *QInputEvent {
|
||||
ret := C.QInputEvent_new3((C.int)(typeVal), modifiers)
|
||||
ret := C.QInputEvent_new3((C.int)(typeVal), (C.int)(modifiers))
|
||||
return newQInputEvent(ret)
|
||||
}
|
||||
|
||||
@ -119,7 +119,7 @@ func (this *QInputEvent) Modifiers() int {
|
||||
}
|
||||
|
||||
func (this *QInputEvent) SetModifiers(amodifiers int) {
|
||||
C.QInputEvent_SetModifiers(this.h, amodifiers)
|
||||
C.QInputEvent_SetModifiers(this.h, (C.int)(amodifiers))
|
||||
}
|
||||
|
||||
func (this *QInputEvent) Timestamp() uint64 {
|
||||
@ -260,25 +260,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 {
|
||||
ret := C.QMouseEvent_new((C.int)(typeVal), localPos.cPointer(), (C.int)(button), buttons, modifiers)
|
||||
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 {
|
||||
ret := C.QMouseEvent_new2((C.int)(typeVal), localPos.cPointer(), screenPos.cPointer(), (C.int)(button), buttons, modifiers)
|
||||
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 {
|
||||
ret := C.QMouseEvent_new3((C.int)(typeVal), localPos.cPointer(), windowPos.cPointer(), screenPos.cPointer(), (C.int)(button), buttons, modifiers)
|
||||
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 {
|
||||
ret := C.QMouseEvent_new4((C.int)(typeVal), localPos.cPointer(), windowPos.cPointer(), screenPos.cPointer(), (C.int)(button), buttons, modifiers, (C.int)(source))
|
||||
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)
|
||||
}
|
||||
|
||||
@ -401,7 +401,7 @@ func NewQHoverEvent2(param1 *QHoverEvent) *QHoverEvent {
|
||||
|
||||
// NewQHoverEvent3 constructs a new QHoverEvent object.
|
||||
func NewQHoverEvent3(typeVal QEvent__Type, pos *QPointF, oldPos *QPointF, modifiers int) *QHoverEvent {
|
||||
ret := C.QHoverEvent_new3((C.int)(typeVal), pos.cPointer(), oldPos.cPointer(), modifiers)
|
||||
ret := C.QHoverEvent_new3((C.int)(typeVal), pos.cPointer(), oldPos.cPointer(), (C.int)(modifiers))
|
||||
return newQHoverEvent(ret)
|
||||
}
|
||||
|
||||
@ -466,43 +466,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 {
|
||||
ret := C.QWheelEvent_new(pos.cPointer(), (C.int)(delta), buttons, modifiers)
|
||||
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 {
|
||||
ret := C.QWheelEvent_new2(pos.cPointer(), globalPos.cPointer(), (C.int)(delta), buttons, modifiers)
|
||||
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 {
|
||||
ret := C.QWheelEvent_new3(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(qt4Orientation), buttons, modifiers)
|
||||
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 {
|
||||
ret := C.QWheelEvent_new4(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(qt4Orientation), buttons, modifiers, (C.int)(phase))
|
||||
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 {
|
||||
ret := C.QWheelEvent_new5(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(qt4Orientation), buttons, modifiers, (C.int)(phase), (C.int)(source))
|
||||
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 {
|
||||
ret := C.QWheelEvent_new6(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), (C.int)(qt4Delta), (C.int)(qt4Orientation), buttons, modifiers, (C.int)(phase), (C.int)(source), (C.bool)(inverted))
|
||||
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 {
|
||||
ret := C.QWheelEvent_new7(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), buttons, modifiers, (C.int)(phase), (C.bool)(inverted))
|
||||
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)
|
||||
}
|
||||
|
||||
@ -514,19 +514,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 {
|
||||
ret := C.QWheelEvent_new9(pos.cPointer(), (C.int)(delta), buttons, modifiers, (C.int)(orient))
|
||||
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 {
|
||||
ret := C.QWheelEvent_new10(pos.cPointer(), globalPos.cPointer(), (C.int)(delta), buttons, modifiers, (C.int)(orient))
|
||||
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 {
|
||||
ret := C.QWheelEvent_new11(pos.cPointer(), globalPos.cPointer(), pixelDelta.cPointer(), angleDelta.cPointer(), buttons, modifiers, (C.int)(phase), (C.bool)(inverted), (C.int)(source))
|
||||
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)
|
||||
}
|
||||
|
||||
@ -659,13 +659,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 {
|
||||
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), keyState, (C.longlong)(uniqueID))
|
||||
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 {
|
||||
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), keyState, (C.longlong)(uniqueID), (C.int)(button), buttons)
|
||||
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)
|
||||
}
|
||||
|
||||
@ -901,13 +901,13 @@ func newQKeyEvent_U(h unsafe.Pointer) *QKeyEvent {
|
||||
|
||||
// NewQKeyEvent constructs a new QKeyEvent object.
|
||||
func NewQKeyEvent(typeVal QEvent__Type, key int, modifiers int) *QKeyEvent {
|
||||
ret := C.QKeyEvent_new((C.int)(typeVal), (C.int)(key), modifiers)
|
||||
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 {
|
||||
ret := C.QKeyEvent_new2((C.int)(typeVal), (C.int)(key), modifiers, (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers))
|
||||
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)
|
||||
}
|
||||
|
||||
@ -921,7 +921,7 @@ func NewQKeyEvent3(param1 *QKeyEvent) *QKeyEvent {
|
||||
func NewQKeyEvent4(typeVal QEvent__Type, key int, modifiers int, text string) *QKeyEvent {
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
ret := C.QKeyEvent_new4((C.int)(typeVal), (C.int)(key), modifiers, (*C.struct_miqt_string)(text_ms))
|
||||
ret := C.QKeyEvent_new4((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (*C.struct_miqt_string)(text_ms))
|
||||
return newQKeyEvent(ret)
|
||||
}
|
||||
|
||||
@ -929,7 +929,7 @@ func NewQKeyEvent4(typeVal QEvent__Type, key int, modifiers int, text string) *Q
|
||||
func NewQKeyEvent5(typeVal QEvent__Type, key int, modifiers int, 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), modifiers, (*C.struct_miqt_string)(text_ms), (C.bool)(autorep))
|
||||
ret := C.QKeyEvent_new5((C.int)(typeVal), (C.int)(key), (C.int)(modifiers), (*C.struct_miqt_string)(text_ms), (C.bool)(autorep))
|
||||
return newQKeyEvent(ret)
|
||||
}
|
||||
|
||||
@ -937,7 +937,7 @@ func NewQKeyEvent5(typeVal QEvent__Type, key int, modifiers int, text string, au
|
||||
func NewQKeyEvent6(typeVal QEvent__Type, key int, modifiers int, 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), modifiers, (*C.struct_miqt_string)(text_ms), (C.bool)(autorep), (C.uint16_t)(count))
|
||||
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))
|
||||
return newQKeyEvent(ret)
|
||||
}
|
||||
|
||||
@ -945,7 +945,7 @@ func NewQKeyEvent6(typeVal QEvent__Type, key int, modifiers int, text string, au
|
||||
func NewQKeyEvent7(typeVal QEvent__Type, key int, modifiers int, 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), modifiers, (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers), (*C.struct_miqt_string)(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))
|
||||
return newQKeyEvent(ret)
|
||||
}
|
||||
|
||||
@ -953,7 +953,7 @@ func NewQKeyEvent7(typeVal QEvent__Type, key int, modifiers int, nativeScanCode
|
||||
func NewQKeyEvent8(typeVal QEvent__Type, key int, modifiers int, 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), modifiers, (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers), (*C.struct_miqt_string)(text_ms), (C.bool)(autorep))
|
||||
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))
|
||||
return newQKeyEvent(ret)
|
||||
}
|
||||
|
||||
@ -961,7 +961,7 @@ func NewQKeyEvent8(typeVal QEvent__Type, key int, modifiers int, nativeScanCode
|
||||
func NewQKeyEvent9(typeVal QEvent__Type, key int, modifiers int, 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), modifiers, (C.uint)(nativeScanCode), (C.uint)(nativeVirtualKey), (C.uint)(nativeModifiers), (*C.struct_miqt_string)(text_ms), (C.bool)(autorep), (C.uint16_t)(count))
|
||||
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))
|
||||
return newQKeyEvent(ret)
|
||||
}
|
||||
|
||||
@ -1605,7 +1605,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 {
|
||||
ret := C.QContextMenuEvent_new((C.int)(reason), pos.cPointer(), globalPos.cPointer(), modifiers)
|
||||
ret := C.QContextMenuEvent_new((C.int)(reason), pos.cPointer(), globalPos.cPointer(), (C.int)(modifiers))
|
||||
return newQContextMenuEvent(ret)
|
||||
}
|
||||
|
||||
@ -1813,7 +1813,7 @@ func newQInputMethodQueryEvent_U(h unsafe.Pointer) *QInputMethodQueryEvent {
|
||||
|
||||
// NewQInputMethodQueryEvent constructs a new QInputMethodQueryEvent object.
|
||||
func NewQInputMethodQueryEvent(queries int) *QInputMethodQueryEvent {
|
||||
ret := C.QInputMethodQueryEvent_new(queries)
|
||||
ret := C.QInputMethodQueryEvent_new((C.int)(queries))
|
||||
return newQInputMethodQueryEvent(ret)
|
||||
}
|
||||
|
||||
@ -1877,7 +1877,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 {
|
||||
ret := C.QDropEvent_new(pos.cPointer(), actions, data.cPointer(), buttons, modifiers)
|
||||
ret := C.QDropEvent_new(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers))
|
||||
return newQDropEvent(ret)
|
||||
}
|
||||
|
||||
@ -1889,7 +1889,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 {
|
||||
ret := C.QDropEvent_new3(pos.cPointer(), actions, data.cPointer(), buttons, modifiers, (C.int)(typeVal))
|
||||
ret := C.QDropEvent_new3(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers), (C.int)(typeVal))
|
||||
return newQDropEvent(ret)
|
||||
}
|
||||
|
||||
@ -1979,7 +1979,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 {
|
||||
ret := C.QDragMoveEvent_new(pos.cPointer(), actions, data.cPointer(), buttons, modifiers)
|
||||
ret := C.QDragMoveEvent_new(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers))
|
||||
return newQDragMoveEvent(ret)
|
||||
}
|
||||
|
||||
@ -1991,7 +1991,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 {
|
||||
ret := C.QDragMoveEvent_new3(pos.cPointer(), actions, data.cPointer(), buttons, modifiers, (C.int)(typeVal))
|
||||
ret := C.QDragMoveEvent_new3(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers), (C.int)(typeVal))
|
||||
return newQDragMoveEvent(ret)
|
||||
}
|
||||
|
||||
@ -2057,7 +2057,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 {
|
||||
ret := C.QDragEnterEvent_new(pos.cPointer(), actions, data.cPointer(), buttons, modifiers)
|
||||
ret := C.QDragEnterEvent_new(pos.cPointer(), (C.int)(actions), data.cPointer(), (C.int)(buttons), (C.int)(modifiers))
|
||||
return newQDragEnterEvent(ret)
|
||||
}
|
||||
|
||||
@ -2452,7 +2452,7 @@ func (this *QFileOpenEvent) Url() *QUrl {
|
||||
}
|
||||
|
||||
func (this *QFileOpenEvent) OpenFile(file *QFile, flags int) bool {
|
||||
return (bool)(C.QFileOpenEvent_OpenFile(this.h, file.cPointer(), flags))
|
||||
return (bool)(C.QFileOpenEvent_OpenFile(this.h, file.cPointer(), (C.int)(flags)))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
@ -2614,7 +2614,7 @@ func newQWindowStateChangeEvent_U(h unsafe.Pointer) *QWindowStateChangeEvent {
|
||||
|
||||
// NewQWindowStateChangeEvent constructs a new QWindowStateChangeEvent object.
|
||||
func NewQWindowStateChangeEvent(aOldState int) *QWindowStateChangeEvent {
|
||||
ret := C.QWindowStateChangeEvent_new(aOldState)
|
||||
ret := C.QWindowStateChangeEvent_new((C.int)(aOldState))
|
||||
return newQWindowStateChangeEvent(ret)
|
||||
}
|
||||
|
||||
@ -2626,7 +2626,7 @@ func NewQWindowStateChangeEvent2(param1 *QWindowStateChangeEvent) *QWindowStateC
|
||||
|
||||
// NewQWindowStateChangeEvent3 constructs a new QWindowStateChangeEvent object.
|
||||
func NewQWindowStateChangeEvent3(aOldState int, isOverride bool) *QWindowStateChangeEvent {
|
||||
ret := C.QWindowStateChangeEvent_new3(aOldState, (C.bool)(isOverride))
|
||||
ret := C.QWindowStateChangeEvent_new3((C.int)(aOldState), (C.bool)(isOverride))
|
||||
return newQWindowStateChangeEvent(ret)
|
||||
}
|
||||
|
||||
@ -2758,13 +2758,13 @@ func NewQTouchEvent3(eventType QEvent__Type, device *QTouchDevice) *QTouchEvent
|
||||
|
||||
// NewQTouchEvent4 constructs a new QTouchEvent object.
|
||||
func NewQTouchEvent4(eventType QEvent__Type, device *QTouchDevice, modifiers int) *QTouchEvent {
|
||||
ret := C.QTouchEvent_new4((C.int)(eventType), device.cPointer(), modifiers)
|
||||
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 {
|
||||
ret := C.QTouchEvent_new5((C.int)(eventType), device.cPointer(), modifiers, touchPointStates)
|
||||
ret := C.QTouchEvent_new5((C.int)(eventType), device.cPointer(), (C.int)(modifiers), (C.int)(touchPointStates))
|
||||
return newQTouchEvent(ret)
|
||||
}
|
||||
|
||||
@ -2778,7 +2778,7 @@ func NewQTouchEvent6(eventType QEvent__Type, device *QTouchDevice, modifiers int
|
||||
}
|
||||
touchPoints_ma := &C.struct_miqt_array{len: C.size_t(len(touchPoints)), data: unsafe.Pointer(touchPoints_CArray)}
|
||||
defer runtime.KeepAlive(unsafe.Pointer(touchPoints_ma))
|
||||
ret := C.QTouchEvent_new6((C.int)(eventType), device.cPointer(), modifiers, touchPointStates, touchPoints_ma)
|
||||
ret := C.QTouchEvent_new6((C.int)(eventType), device.cPointer(), (C.int)(modifiers), (C.int)(touchPointStates), touchPoints_ma)
|
||||
return newQTouchEvent(ret)
|
||||
}
|
||||
|
||||
@ -2821,7 +2821,7 @@ func (this *QTouchEvent) SetTarget(atarget *QObject) {
|
||||
}
|
||||
|
||||
func (this *QTouchEvent) SetTouchPointStates(aTouchPointStates int) {
|
||||
C.QTouchEvent_SetTouchPointStates(this.h, aTouchPointStates)
|
||||
C.QTouchEvent_SetTouchPointStates(this.h, (C.int)(aTouchPointStates))
|
||||
}
|
||||
|
||||
func (this *QTouchEvent) SetTouchPoints(atouchPoints []QTouchEvent__TouchPoint) {
|
||||
@ -3407,7 +3407,7 @@ func (this *QTouchEvent__TouchPoint) SetUniqueId(uid int64) {
|
||||
}
|
||||
|
||||
func (this *QTouchEvent__TouchPoint) SetState(state int) {
|
||||
C.QTouchEvent__TouchPoint_SetState(this.h, state)
|
||||
C.QTouchEvent__TouchPoint_SetState(this.h, (C.int)(state))
|
||||
}
|
||||
|
||||
func (this *QTouchEvent__TouchPoint) SetPos(pos *QPointF) {
|
||||
@ -3475,7 +3475,7 @@ func (this *QTouchEvent__TouchPoint) SetVelocity(v *QVector2D) {
|
||||
}
|
||||
|
||||
func (this *QTouchEvent__TouchPoint) SetFlags(flags int) {
|
||||
C.QTouchEvent__TouchPoint_SetFlags(this.h, flags)
|
||||
C.QTouchEvent__TouchPoint_SetFlags(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QTouchEvent__TouchPoint) SetRawScreenPositions(positions []QPointF) {
|
||||
|
@ -87,7 +87,7 @@ func (this *QEventLoop) ProcessEvents() bool {
|
||||
}
|
||||
|
||||
func (this *QEventLoop) ProcessEvents2(flags int, maximumTime int) {
|
||||
C.QEventLoop_ProcessEvents2(this.h, flags, (C.int)(maximumTime))
|
||||
C.QEventLoop_ProcessEvents2(this.h, (C.int)(flags), (C.int)(maximumTime))
|
||||
}
|
||||
|
||||
func (this *QEventLoop) Exec() int {
|
||||
@ -159,11 +159,11 @@ func QEventLoop_TrUtf83(s string, c string, n int) string {
|
||||
}
|
||||
|
||||
func (this *QEventLoop) ProcessEvents1(flags int) bool {
|
||||
return (bool)(C.QEventLoop_ProcessEvents1(this.h, flags))
|
||||
return (bool)(C.QEventLoop_ProcessEvents1(this.h, (C.int)(flags)))
|
||||
}
|
||||
|
||||
func (this *QEventLoop) Exec1(flags int) int {
|
||||
return (int)(C.QEventLoop_Exec1(this.h, flags))
|
||||
return (int)(C.QEventLoop_Exec1(this.h, (C.int)(flags)))
|
||||
}
|
||||
|
||||
func (this *QEventLoop) Exit1(returnCode int) {
|
||||
|
@ -229,11 +229,11 @@ func QFile_Copy2(fileName string, newName string) bool {
|
||||
}
|
||||
|
||||
func (this *QFile) Open(flags int) bool {
|
||||
return (bool)(C.QFile_Open(this.h, flags))
|
||||
return (bool)(C.QFile_Open(this.h, (C.int)(flags)))
|
||||
}
|
||||
|
||||
func (this *QFile) Open3(fd int, ioFlags int) bool {
|
||||
return (bool)(C.QFile_Open3(this.h, (C.int)(fd), ioFlags))
|
||||
return (bool)(C.QFile_Open3(this.h, (C.int)(fd), (C.int)(ioFlags)))
|
||||
}
|
||||
|
||||
func (this *QFile) Size() int64 {
|
||||
@ -261,13 +261,13 @@ func QFile_PermissionsWithFilename(filename string) int {
|
||||
}
|
||||
|
||||
func (this *QFile) SetPermissions(permissionSpec int) bool {
|
||||
return (bool)(C.QFile_SetPermissions(this.h, permissionSpec))
|
||||
return (bool)(C.QFile_SetPermissions(this.h, (C.int)(permissionSpec)))
|
||||
}
|
||||
|
||||
func QFile_SetPermissions2(filename string, permissionSpec int) bool {
|
||||
filename_ms := miqt_strdupg(filename)
|
||||
defer C.free(filename_ms)
|
||||
return (bool)(C.QFile_SetPermissions2((*C.struct_miqt_string)(filename_ms), permissionSpec))
|
||||
return (bool)(C.QFile_SetPermissions2((*C.struct_miqt_string)(filename_ms), (C.int)(permissionSpec)))
|
||||
}
|
||||
|
||||
func QFile_Tr2(s string, c string) string {
|
||||
@ -315,7 +315,7 @@ func QFile_TrUtf83(s string, c string, n int) string {
|
||||
}
|
||||
|
||||
func (this *QFile) Open33(fd int, ioFlags int, handleFlags int) bool {
|
||||
return (bool)(C.QFile_Open33(this.h, (C.int)(fd), ioFlags, handleFlags))
|
||||
return (bool)(C.QFile_Open33(this.h, (C.int)(fd), (C.int)(ioFlags), (C.int)(handleFlags)))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
|
@ -174,7 +174,7 @@ func (this *QFileDevice) Permissions() int {
|
||||
}
|
||||
|
||||
func (this *QFileDevice) SetPermissions(permissionSpec int) bool {
|
||||
return (bool)(C.QFileDevice_SetPermissions(this.h, permissionSpec))
|
||||
return (bool)(C.QFileDevice_SetPermissions(this.h, (C.int)(permissionSpec)))
|
||||
}
|
||||
|
||||
func (this *QFileDevice) Map(offset int64, size int64) *byte {
|
||||
|
@ -86,7 +86,7 @@ func newQFileDialog_U(h unsafe.Pointer) *QFileDialog {
|
||||
|
||||
// NewQFileDialog constructs a new QFileDialog object.
|
||||
func NewQFileDialog(parent *QWidget, f int) *QFileDialog {
|
||||
ret := C.QFileDialog_new(parent.cPointer(), f)
|
||||
ret := C.QFileDialog_new(parent.cPointer(), (C.int)(f))
|
||||
return newQFileDialog(ret)
|
||||
}
|
||||
|
||||
@ -321,7 +321,7 @@ func (this *QFileDialog) Filter() int {
|
||||
}
|
||||
|
||||
func (this *QFileDialog) SetFilter(filters int) {
|
||||
C.QFileDialog_SetFilter(this.h, filters)
|
||||
C.QFileDialog_SetFilter(this.h, (C.int)(filters))
|
||||
}
|
||||
|
||||
func (this *QFileDialog) SetViewMode(mode QFileDialog__ViewMode) {
|
||||
@ -524,7 +524,7 @@ func (this *QFileDialog) TestOption(option QFileDialog__Option) bool {
|
||||
}
|
||||
|
||||
func (this *QFileDialog) SetOptions(options int) {
|
||||
C.QFileDialog_SetOptions(this.h, options)
|
||||
C.QFileDialog_SetOptions(this.h, (C.int)(options))
|
||||
}
|
||||
|
||||
func (this *QFileDialog) Options() int {
|
||||
@ -1079,7 +1079,7 @@ func QFileDialog_GetExistingDirectory4(parent *QWidget, caption string, dir stri
|
||||
defer C.free(caption_ms)
|
||||
dir_ms := miqt_strdupg(dir)
|
||||
defer C.free(dir_ms)
|
||||
var _ms *C.struct_miqt_string = C.QFileDialog_GetExistingDirectory4(parent.cPointer(), (*C.struct_miqt_string)(caption_ms), (*C.struct_miqt_string)(dir_ms), options)
|
||||
var _ms *C.struct_miqt_string = C.QFileDialog_GetExistingDirectory4(parent.cPointer(), (*C.struct_miqt_string)(caption_ms), (*C.struct_miqt_string)(dir_ms), (C.int)(options))
|
||||
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
||||
C.free(unsafe.Pointer(_ms))
|
||||
return _ret
|
||||
@ -1113,7 +1113,7 @@ func QFileDialog_GetExistingDirectoryUrl3(parent *QWidget, caption string, dir *
|
||||
func QFileDialog_GetExistingDirectoryUrl4(parent *QWidget, caption string, dir *QUrl, options int) *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(), options)
|
||||
_ret := C.QFileDialog_GetExistingDirectoryUrl4(parent.cPointer(), (*C.struct_miqt_string)(caption_ms), dir.cPointer(), (C.int)(options))
|
||||
_goptr := newQUrl(_ret)
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
return _goptr
|
||||
@ -1132,7 +1132,7 @@ func QFileDialog_GetExistingDirectoryUrl5(parent *QWidget, caption string, dir *
|
||||
}
|
||||
supportedSchemes_ma := &C.struct_miqt_array{len: C.size_t(len(supportedSchemes)), data: unsafe.Pointer(supportedSchemes_CArray)}
|
||||
defer runtime.KeepAlive(unsafe.Pointer(supportedSchemes_ma))
|
||||
_ret := C.QFileDialog_GetExistingDirectoryUrl5(parent.cPointer(), (*C.struct_miqt_string)(caption_ms), dir.cPointer(), options, supportedSchemes_ma)
|
||||
_ret := C.QFileDialog_GetExistingDirectoryUrl5(parent.cPointer(), (*C.struct_miqt_string)(caption_ms), dir.cPointer(), (C.int)(options), supportedSchemes_ma)
|
||||
_goptr := newQUrl(_ret)
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
return _goptr
|
||||
|
@ -81,7 +81,7 @@ func (this *QFileIconProvider) Type(info *QFileInfo) string {
|
||||
}
|
||||
|
||||
func (this *QFileIconProvider) SetOptions(options int) {
|
||||
C.QFileIconProvider_SetOptions(this.h, options)
|
||||
C.QFileIconProvider_SetOptions(this.h, (C.int)(options))
|
||||
}
|
||||
|
||||
func (this *QFileIconProvider) Options() int {
|
||||
|
@ -314,7 +314,7 @@ func (this *QFileInfo) GroupId() uint {
|
||||
}
|
||||
|
||||
func (this *QFileInfo) Permission(permissions int) bool {
|
||||
return (bool)(C.QFileInfo_Permission(this.h, permissions))
|
||||
return (bool)(C.QFileInfo_Permission(this.h, (C.int)(permissions)))
|
||||
}
|
||||
|
||||
func (this *QFileInfo) Permissions() int {
|
||||
|
@ -324,7 +324,7 @@ func (this *QFileSystemModel) IconProvider() *QFileIconProvider {
|
||||
}
|
||||
|
||||
func (this *QFileSystemModel) SetFilter(filters int) {
|
||||
C.QFileSystemModel_SetFilter(this.h, filters)
|
||||
C.QFileSystemModel_SetFilter(this.h, (C.int)(filters))
|
||||
}
|
||||
|
||||
func (this *QFileSystemModel) Filter() int {
|
||||
@ -392,7 +392,7 @@ func (this *QFileSystemModel) TestOption(option QFileSystemModel__Option) bool {
|
||||
}
|
||||
|
||||
func (this *QFileSystemModel) SetOptions(options int) {
|
||||
C.QFileSystemModel_SetOptions(this.h, options)
|
||||
C.QFileSystemModel_SetOptions(this.h, (C.int)(options))
|
||||
}
|
||||
|
||||
func (this *QFileSystemModel) Options() int {
|
||||
|
@ -90,7 +90,7 @@ func (this *QFontComboBox) WritingSystem() QFontDatabase__WritingSystem {
|
||||
}
|
||||
|
||||
func (this *QFontComboBox) SetFontFilters(filters int) {
|
||||
C.QFontComboBox_SetFontFilters(this.h, filters)
|
||||
C.QFontComboBox_SetFontFilters(this.h, (C.int)(filters))
|
||||
}
|
||||
|
||||
func (this *QFontComboBox) FontFilters() int {
|
||||
|
@ -121,7 +121,7 @@ func (this *QFontDialog) TestOption(option QFontDialog__FontDialogOption) bool {
|
||||
}
|
||||
|
||||
func (this *QFontDialog) SetOptions(options int) {
|
||||
C.QFontDialog_SetOptions(this.h, options)
|
||||
C.QFontDialog_SetOptions(this.h, (C.int)(options))
|
||||
}
|
||||
|
||||
func (this *QFontDialog) Options() int {
|
||||
@ -260,7 +260,7 @@ func QFontDialog_GetFont4(ok *bool, initial *QFont, parent *QWidget, title strin
|
||||
func QFontDialog_GetFont5(ok *bool, initial *QFont, parent *QWidget, title string, options int) *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), options)
|
||||
_ret := C.QFontDialog_GetFont5((*C.bool)(unsafe.Pointer(ok)), initial.cPointer(), parent.cPointer(), (*C.struct_miqt_string)(title_ms), (C.int)(options))
|
||||
_goptr := newQFont(_ret)
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
return _goptr
|
||||
|
@ -111,7 +111,7 @@ func (this *QFormLayout) RowWrapPolicy() int {
|
||||
}
|
||||
|
||||
func (this *QFormLayout) SetLabelAlignment(alignment int) {
|
||||
C.QFormLayout_SetLabelAlignment(this.h, alignment)
|
||||
C.QFormLayout_SetLabelAlignment(this.h, (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QFormLayout) LabelAlignment() int {
|
||||
@ -119,7 +119,7 @@ func (this *QFormLayout) LabelAlignment() int {
|
||||
}
|
||||
|
||||
func (this *QFormLayout) SetFormAlignment(alignment int) {
|
||||
C.QFormLayout_SetFormAlignment(this.h, alignment)
|
||||
C.QFormLayout_SetFormAlignment(this.h, (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QFormLayout) FormAlignment() int {
|
||||
|
@ -77,7 +77,7 @@ func NewQFrame2(parent *QWidget) *QFrame {
|
||||
|
||||
// NewQFrame3 constructs a new QFrame object.
|
||||
func NewQFrame3(parent *QWidget, f int) *QFrame {
|
||||
ret := C.QFrame_new3(parent.cPointer(), f)
|
||||
ret := C.QFrame_new3(parent.cPointer(), (C.int)(f))
|
||||
return newQFrame(ret)
|
||||
}
|
||||
|
||||
|
@ -402,7 +402,7 @@ func (this *QPinchGesture) TotalChangeFlags() int {
|
||||
}
|
||||
|
||||
func (this *QPinchGesture) SetTotalChangeFlags(value int) {
|
||||
C.QPinchGesture_SetTotalChangeFlags(this.h, value)
|
||||
C.QPinchGesture_SetTotalChangeFlags(this.h, (C.int)(value))
|
||||
}
|
||||
|
||||
func (this *QPinchGesture) ChangeFlags() int {
|
||||
@ -410,7 +410,7 @@ func (this *QPinchGesture) ChangeFlags() int {
|
||||
}
|
||||
|
||||
func (this *QPinchGesture) SetChangeFlags(value int) {
|
||||
C.QPinchGesture_SetChangeFlags(this.h, value)
|
||||
C.QPinchGesture_SetChangeFlags(this.h, (C.int)(value))
|
||||
}
|
||||
|
||||
func (this *QPinchGesture) StartCenterPoint() *QPointF {
|
||||
|
@ -178,7 +178,7 @@ func (this *QGlyphRun) SetFlag(flag QGlyphRun__GlyphRunFlag) {
|
||||
}
|
||||
|
||||
func (this *QGlyphRun) SetFlags(flags int) {
|
||||
C.QGlyphRun_SetFlags(this.h, flags)
|
||||
C.QGlyphRun_SetFlags(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QGlyphRun) Flags() int {
|
||||
|
@ -228,7 +228,7 @@ func (this *QGraphicsAnchorLayout) Invalidate() {
|
||||
}
|
||||
|
||||
func (this *QGraphicsAnchorLayout) AddAnchors3(firstItem *QGraphicsLayoutItem, secondItem *QGraphicsLayoutItem, orientations int) {
|
||||
C.QGraphicsAnchorLayout_AddAnchors3(this.h, firstItem.cPointer(), secondItem.cPointer(), orientations)
|
||||
C.QGraphicsAnchorLayout_AddAnchors3(this.h, firstItem.cPointer(), secondItem.cPointer(), (C.int)(orientations))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
|
@ -439,7 +439,7 @@ func (this *QGraphicsBlurEffect) SetBlurRadius(blurRadius float64) {
|
||||
}
|
||||
|
||||
func (this *QGraphicsBlurEffect) SetBlurHints(hints int) {
|
||||
C.QGraphicsBlurEffect_SetBlurHints(this.h, hints)
|
||||
C.QGraphicsBlurEffect_SetBlurHints(this.h, (C.int)(hints))
|
||||
}
|
||||
|
||||
func (this *QGraphicsBlurEffect) BlurRadiusChanged(blurRadius float64) {
|
||||
@ -463,7 +463,7 @@ func miqt_exec_callback_QGraphicsBlurEffect_BlurRadiusChanged(cb *C.void, blurRa
|
||||
}
|
||||
|
||||
func (this *QGraphicsBlurEffect) BlurHintsChanged(hints int) {
|
||||
C.QGraphicsBlurEffect_BlurHintsChanged(this.h, hints)
|
||||
C.QGraphicsBlurEffect_BlurHintsChanged(this.h, (C.int)(hints))
|
||||
}
|
||||
func (this *QGraphicsBlurEffect) OnBlurHintsChanged(slot func(hints int)) {
|
||||
C.QGraphicsBlurEffect_connect_BlurHintsChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
|
||||
|
@ -165,7 +165,7 @@ func (this *QGraphicsGridLayout) SetColumnFixedWidth(column int, width float64)
|
||||
}
|
||||
|
||||
func (this *QGraphicsGridLayout) SetRowAlignment(row int, alignment int) {
|
||||
C.QGraphicsGridLayout_SetRowAlignment(this.h, (C.int)(row), alignment)
|
||||
C.QGraphicsGridLayout_SetRowAlignment(this.h, (C.int)(row), (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QGraphicsGridLayout) RowAlignment(row int) int {
|
||||
@ -173,7 +173,7 @@ func (this *QGraphicsGridLayout) RowAlignment(row int) int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsGridLayout) SetColumnAlignment(column int, alignment int) {
|
||||
C.QGraphicsGridLayout_SetColumnAlignment(this.h, (C.int)(column), alignment)
|
||||
C.QGraphicsGridLayout_SetColumnAlignment(this.h, (C.int)(column), (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QGraphicsGridLayout) ColumnAlignment(column int) int {
|
||||
@ -181,7 +181,7 @@ func (this *QGraphicsGridLayout) ColumnAlignment(column int) int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsGridLayout) SetAlignment(item *QGraphicsLayoutItem, alignment int) {
|
||||
C.QGraphicsGridLayout_SetAlignment(this.h, item.cPointer(), alignment)
|
||||
C.QGraphicsGridLayout_SetAlignment(this.h, item.cPointer(), (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QGraphicsGridLayout) Alignment(item *QGraphicsLayoutItem) int {
|
||||
@ -232,11 +232,11 @@ func (this *QGraphicsGridLayout) SizeHint(which SizeHint) *QSizeF {
|
||||
}
|
||||
|
||||
func (this *QGraphicsGridLayout) AddItem6(item *QGraphicsLayoutItem, row int, column int, rowSpan int, columnSpan int, alignment int) {
|
||||
C.QGraphicsGridLayout_AddItem6(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), alignment)
|
||||
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) {
|
||||
C.QGraphicsGridLayout_AddItem4(this.h, item.cPointer(), (C.int)(row), (C.int)(column), alignment)
|
||||
C.QGraphicsGridLayout_AddItem4(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QGraphicsGridLayout) SizeHint2(which SizeHint, constraint *QSizeF) *QSizeF {
|
||||
|
@ -269,7 +269,7 @@ func (this *QGraphicsItem) SetFlag(flag QGraphicsItem__GraphicsItemFlag) {
|
||||
}
|
||||
|
||||
func (this *QGraphicsItem) SetFlags(flags int) {
|
||||
C.QGraphicsItem_SetFlags(this.h, flags)
|
||||
C.QGraphicsItem_SetFlags(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QGraphicsItem) CacheMode() QGraphicsItem__CacheMode {
|
||||
@ -393,7 +393,7 @@ func (this *QGraphicsItem) AcceptedMouseButtons() int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsItem) SetAcceptedMouseButtons(buttons int) {
|
||||
C.QGraphicsItem_SetAcceptedMouseButtons(this.h, buttons)
|
||||
C.QGraphicsItem_SetAcceptedMouseButtons(this.h, (C.int)(buttons))
|
||||
}
|
||||
|
||||
func (this *QGraphicsItem) AcceptHoverEvents() bool {
|
||||
@ -1008,7 +1008,7 @@ func (this *QGraphicsItem) InputMethodHints() int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsItem) SetInputMethodHints(hints int) {
|
||||
C.QGraphicsItem_SetInputMethodHints(this.h, hints)
|
||||
C.QGraphicsItem_SetInputMethodHints(this.h, (C.int)(hints))
|
||||
}
|
||||
|
||||
func (this *QGraphicsItem) Type() int {
|
||||
@ -1422,7 +1422,7 @@ func QGraphicsObject_TrUtf83(s string, c string, n int) string {
|
||||
}
|
||||
|
||||
func (this *QGraphicsObject) GrabGesture2(typeVal GestureType, flags int) {
|
||||
C.QGraphicsObject_GrabGesture2(this.h, (C.int)(typeVal), flags)
|
||||
C.QGraphicsObject_GrabGesture2(this.h, (C.int)(typeVal), (C.int)(flags))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
@ -2453,7 +2453,7 @@ func (this *QGraphicsTextItem) Document() *QTextDocument {
|
||||
}
|
||||
|
||||
func (this *QGraphicsTextItem) SetTextInteractionFlags(flags int) {
|
||||
C.QGraphicsTextItem_SetTextInteractionFlags(this.h, flags)
|
||||
C.QGraphicsTextItem_SetTextInteractionFlags(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QGraphicsTextItem) TextInteractionFlags() int {
|
||||
|
@ -117,7 +117,7 @@ func (this *QGraphicsLinearLayout) StretchFactor(item *QGraphicsLayoutItem) int
|
||||
}
|
||||
|
||||
func (this *QGraphicsLinearLayout) SetAlignment(item *QGraphicsLayoutItem, alignment int) {
|
||||
C.QGraphicsLinearLayout_SetAlignment(this.h, item.cPointer(), alignment)
|
||||
C.QGraphicsLinearLayout_SetAlignment(this.h, item.cPointer(), (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QGraphicsLinearLayout) Alignment(item *QGraphicsLayoutItem) int {
|
||||
|
@ -56,7 +56,7 @@ func NewQGraphicsProxyWidget2(parent *QGraphicsItem) *QGraphicsProxyWidget {
|
||||
|
||||
// NewQGraphicsProxyWidget3 constructs a new QGraphicsProxyWidget object.
|
||||
func NewQGraphicsProxyWidget3(parent *QGraphicsItem, wFlags int) *QGraphicsProxyWidget {
|
||||
ret := C.QGraphicsProxyWidget_new3(parent.cPointer(), wFlags)
|
||||
ret := C.QGraphicsProxyWidget_new3(parent.cPointer(), (C.int)(wFlags))
|
||||
return newQGraphicsProxyWidget(ret)
|
||||
}
|
||||
|
||||
|
@ -857,7 +857,7 @@ func (this *QGraphicsScene) AddSimpleText2(text string, font *QFont) *QGraphicsS
|
||||
}
|
||||
|
||||
func (this *QGraphicsScene) AddWidget2(widget *QWidget, wFlags int) *QGraphicsProxyWidget {
|
||||
return newQGraphicsProxyWidget_U(unsafe.Pointer(C.QGraphicsScene_AddWidget2(this.h, widget.cPointer(), wFlags)))
|
||||
return newQGraphicsProxyWidget_U(unsafe.Pointer(C.QGraphicsScene_AddWidget2(this.h, widget.cPointer(), (C.int)(wFlags))))
|
||||
}
|
||||
|
||||
func (this *QGraphicsScene) AddEllipse5(x float64, y float64, w float64, h float64, pen *QPen) *QGraphicsEllipseItem {
|
||||
@ -889,7 +889,7 @@ func (this *QGraphicsScene) SetFocus1(focusReason FocusReason) {
|
||||
}
|
||||
|
||||
func (this *QGraphicsScene) Invalidate5(x float64, y float64, w float64, h float64, layers int) {
|
||||
C.QGraphicsScene_Invalidate5(this.h, (C.double)(x), (C.double)(y), (C.double)(w), (C.double)(h), layers)
|
||||
C.QGraphicsScene_Invalidate5(this.h, (C.double)(x), (C.double)(y), (C.double)(w), (C.double)(h), (C.int)(layers))
|
||||
}
|
||||
|
||||
func (this *QGraphicsScene) Update1(rect *QRectF) {
|
||||
@ -901,7 +901,7 @@ func (this *QGraphicsScene) Invalidate1(rect *QRectF) {
|
||||
}
|
||||
|
||||
func (this *QGraphicsScene) Invalidate22(rect *QRectF, layers int) {
|
||||
C.QGraphicsScene_Invalidate22(this.h, rect.cPointer(), layers)
|
||||
C.QGraphicsScene_Invalidate22(this.h, rect.cPointer(), (C.int)(layers))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
|
@ -211,7 +211,7 @@ func (this *QGraphicsSceneMouseEvent) Buttons() int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneMouseEvent) SetButtons(buttons int) {
|
||||
C.QGraphicsSceneMouseEvent_SetButtons(this.h, buttons)
|
||||
C.QGraphicsSceneMouseEvent_SetButtons(this.h, (C.int)(buttons))
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneMouseEvent) Button() MouseButton {
|
||||
@ -227,7 +227,7 @@ func (this *QGraphicsSceneMouseEvent) Modifiers() int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneMouseEvent) SetModifiers(modifiers int) {
|
||||
C.QGraphicsSceneMouseEvent_SetModifiers(this.h, modifiers)
|
||||
C.QGraphicsSceneMouseEvent_SetModifiers(this.h, (C.int)(modifiers))
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneMouseEvent) Source() MouseEventSource {
|
||||
@ -243,7 +243,7 @@ func (this *QGraphicsSceneMouseEvent) Flags() int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneMouseEvent) SetFlags(flags int) {
|
||||
C.QGraphicsSceneMouseEvent_SetFlags(this.h, flags)
|
||||
C.QGraphicsSceneMouseEvent_SetFlags(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
@ -333,7 +333,7 @@ func (this *QGraphicsSceneWheelEvent) Buttons() int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneWheelEvent) SetButtons(buttons int) {
|
||||
C.QGraphicsSceneWheelEvent_SetButtons(this.h, buttons)
|
||||
C.QGraphicsSceneWheelEvent_SetButtons(this.h, (C.int)(buttons))
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneWheelEvent) Modifiers() int {
|
||||
@ -341,7 +341,7 @@ func (this *QGraphicsSceneWheelEvent) Modifiers() int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneWheelEvent) SetModifiers(modifiers int) {
|
||||
C.QGraphicsSceneWheelEvent_SetModifiers(this.h, modifiers)
|
||||
C.QGraphicsSceneWheelEvent_SetModifiers(this.h, (C.int)(modifiers))
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneWheelEvent) Delta() int {
|
||||
@ -447,7 +447,7 @@ func (this *QGraphicsSceneContextMenuEvent) Modifiers() int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneContextMenuEvent) SetModifiers(modifiers int) {
|
||||
C.QGraphicsSceneContextMenuEvent_SetModifiers(this.h, modifiers)
|
||||
C.QGraphicsSceneContextMenuEvent_SetModifiers(this.h, (C.int)(modifiers))
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneContextMenuEvent) Reason() QGraphicsSceneContextMenuEvent__Reason {
|
||||
@ -578,7 +578,7 @@ func (this *QGraphicsSceneHoverEvent) Modifiers() int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneHoverEvent) SetModifiers(modifiers int) {
|
||||
C.QGraphicsSceneHoverEvent_SetModifiers(this.h, modifiers)
|
||||
C.QGraphicsSceneHoverEvent_SetModifiers(this.h, (C.int)(modifiers))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
@ -739,7 +739,7 @@ func (this *QGraphicsSceneDragDropEvent) Buttons() int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneDragDropEvent) SetButtons(buttons int) {
|
||||
C.QGraphicsSceneDragDropEvent_SetButtons(this.h, buttons)
|
||||
C.QGraphicsSceneDragDropEvent_SetButtons(this.h, (C.int)(buttons))
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneDragDropEvent) Modifiers() int {
|
||||
@ -747,7 +747,7 @@ func (this *QGraphicsSceneDragDropEvent) Modifiers() int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneDragDropEvent) SetModifiers(modifiers int) {
|
||||
C.QGraphicsSceneDragDropEvent_SetModifiers(this.h, modifiers)
|
||||
C.QGraphicsSceneDragDropEvent_SetModifiers(this.h, (C.int)(modifiers))
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneDragDropEvent) PossibleActions() int {
|
||||
@ -755,7 +755,7 @@ func (this *QGraphicsSceneDragDropEvent) PossibleActions() int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneDragDropEvent) SetPossibleActions(actions int) {
|
||||
C.QGraphicsSceneDragDropEvent_SetPossibleActions(this.h, actions)
|
||||
C.QGraphicsSceneDragDropEvent_SetPossibleActions(this.h, (C.int)(actions))
|
||||
}
|
||||
|
||||
func (this *QGraphicsSceneDragDropEvent) ProposedAction() DropAction {
|
||||
|
@ -141,7 +141,7 @@ func (this *QGraphicsView) SetRenderHint(hint QPainter__RenderHint) {
|
||||
}
|
||||
|
||||
func (this *QGraphicsView) SetRenderHints(hints int) {
|
||||
C.QGraphicsView_SetRenderHints(this.h, hints)
|
||||
C.QGraphicsView_SetRenderHints(this.h, (C.int)(hints))
|
||||
}
|
||||
|
||||
func (this *QGraphicsView) Alignment() int {
|
||||
@ -149,7 +149,7 @@ func (this *QGraphicsView) Alignment() int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsView) SetAlignment(alignment int) {
|
||||
C.QGraphicsView_SetAlignment(this.h, alignment)
|
||||
C.QGraphicsView_SetAlignment(this.h, (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QGraphicsView) TransformationAnchor() QGraphicsView__ViewportAnchor {
|
||||
@ -185,7 +185,7 @@ func (this *QGraphicsView) SetOptimizationFlag(flag QGraphicsView__OptimizationF
|
||||
}
|
||||
|
||||
func (this *QGraphicsView) SetOptimizationFlags(flags int) {
|
||||
C.QGraphicsView_SetOptimizationFlags(this.h, flags)
|
||||
C.QGraphicsView_SetOptimizationFlags(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QGraphicsView) DragMode() QGraphicsView__DragMode {
|
||||
@ -216,7 +216,7 @@ func (this *QGraphicsView) CacheMode() int {
|
||||
}
|
||||
|
||||
func (this *QGraphicsView) SetCacheMode(mode int) {
|
||||
C.QGraphicsView_SetCacheMode(this.h, mode)
|
||||
C.QGraphicsView_SetCacheMode(this.h, (C.int)(mode))
|
||||
}
|
||||
|
||||
func (this *QGraphicsView) ResetCachedContent() {
|
||||
@ -695,7 +695,7 @@ func (this *QGraphicsView) InvalidateScene1(rect *QRectF) {
|
||||
}
|
||||
|
||||
func (this *QGraphicsView) InvalidateScene2(rect *QRectF, layers int) {
|
||||
C.QGraphicsView_InvalidateScene2(this.h, rect.cPointer(), layers)
|
||||
C.QGraphicsView_InvalidateScene2(this.h, rect.cPointer(), (C.int)(layers))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
|
@ -58,7 +58,7 @@ func NewQGraphicsWidget2(parent *QGraphicsItem) *QGraphicsWidget {
|
||||
|
||||
// NewQGraphicsWidget3 constructs a new QGraphicsWidget object.
|
||||
func NewQGraphicsWidget3(parent *QGraphicsItem, wFlags int) *QGraphicsWidget {
|
||||
ret := C.QGraphicsWidget_new3(parent.cPointer(), wFlags)
|
||||
ret := C.QGraphicsWidget_new3(parent.cPointer(), (C.int)(wFlags))
|
||||
return newQGraphicsWidget(ret)
|
||||
}
|
||||
|
||||
@ -227,7 +227,7 @@ func (this *QGraphicsWidget) WindowType() WindowType {
|
||||
}
|
||||
|
||||
func (this *QGraphicsWidget) SetWindowFlags(wFlags int) {
|
||||
C.QGraphicsWidget_SetWindowFlags(this.h, wFlags)
|
||||
C.QGraphicsWidget_SetWindowFlags(this.h, (C.int)(wFlags))
|
||||
}
|
||||
|
||||
func (this *QGraphicsWidget) IsActiveWindow() bool {
|
||||
|
@ -287,19 +287,19 @@ func QGridLayout_TrUtf83(s string, c string, n int) string {
|
||||
}
|
||||
|
||||
func (this *QGridLayout) AddWidget4(param1 *QWidget, row int, column int, param4 int) {
|
||||
C.QGridLayout_AddWidget4(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), param4)
|
||||
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) {
|
||||
C.QGridLayout_AddWidget6(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), param6)
|
||||
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) {
|
||||
C.QGridLayout_AddLayout4(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), param4)
|
||||
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) {
|
||||
C.QGridLayout_AddLayout6(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), param6)
|
||||
C.QGridLayout_AddLayout6(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), (C.int)(param6))
|
||||
}
|
||||
|
||||
func (this *QGridLayout) AddItem4(item *QLayoutItem, row int, column int, rowSpan int) {
|
||||
@ -311,7 +311,7 @@ func (this *QGridLayout) AddItem5(item *QLayoutItem, row int, column int, rowSpa
|
||||
}
|
||||
|
||||
func (this *QGridLayout) AddItem6(item *QLayoutItem, row int, column int, rowSpan int, columnSpan int, param6 int) {
|
||||
C.QGridLayout_AddItem6(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), param6)
|
||||
C.QGridLayout_AddItem6(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), (C.int)(param6))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
|
@ -313,7 +313,7 @@ func (this *QHeaderView) DefaultAlignment() int {
|
||||
}
|
||||
|
||||
func (this *QHeaderView) SetDefaultAlignment(alignment int) {
|
||||
C.QHeaderView_SetDefaultAlignment(this.h, alignment)
|
||||
C.QHeaderView_SetDefaultAlignment(this.h, (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QHeaderView) DoItemsLayout() {
|
||||
|
@ -387,27 +387,27 @@ func (this *QIcon) ActualSize4(window *QWindow, size *QSize, mode QIcon__Mode, s
|
||||
}
|
||||
|
||||
func (this *QIcon) Paint3(painter *QPainter, rect *QRect, alignment int) {
|
||||
C.QIcon_Paint3(this.h, painter.cPointer(), rect.cPointer(), alignment)
|
||||
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) {
|
||||
C.QIcon_Paint4(this.h, painter.cPointer(), rect.cPointer(), alignment, (C.int)(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) {
|
||||
C.QIcon_Paint5(this.h, painter.cPointer(), rect.cPointer(), alignment, (C.int)(mode), (C.int)(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) {
|
||||
C.QIcon_Paint6(this.h, painter.cPointer(), (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), alignment)
|
||||
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) {
|
||||
C.QIcon_Paint7(this.h, painter.cPointer(), (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), alignment, (C.int)(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) {
|
||||
C.QIcon_Paint8(this.h, painter.cPointer(), (C.int)(x), (C.int)(y), (C.int)(w), (C.int)(h), alignment, (C.int)(mode), (C.int)(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))
|
||||
}
|
||||
|
||||
func (this *QIcon) AddPixmap2(pixmap *QPixmap, mode QIcon__Mode) {
|
||||
|
@ -247,7 +247,7 @@ func (this *QIdentityProxyModel) Match4(start *QModelIndex, role int, value *QVa
|
||||
}
|
||||
|
||||
func (this *QIdentityProxyModel) Match5(start *QModelIndex, role int, value *QVariant, hits int, flags int) []QModelIndex {
|
||||
var _ma *C.struct_miqt_array = C.QIdentityProxyModel_Match5(this.h, start.cPointer(), (C.int)(role), value.cPointer(), (C.int)(hits), flags)
|
||||
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
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
|
@ -682,7 +682,7 @@ func (this *QImage) Copy1(rect *QRect) *QImage {
|
||||
}
|
||||
|
||||
func (this *QImage) ConvertToFormat22(f QImage__Format, flags int) *QImage {
|
||||
_ret := C.QImage_ConvertToFormat22(this.h, (C.int)(f), flags)
|
||||
_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
|
||||
@ -697,18 +697,18 @@ func (this *QImage) ConvertToFormat3(f QImage__Format, colorTable []uint, flags
|
||||
}
|
||||
colorTable_ma := &C.struct_miqt_array{len: C.size_t(len(colorTable)), data: unsafe.Pointer(colorTable_CArray)}
|
||||
defer runtime.KeepAlive(unsafe.Pointer(colorTable_ma))
|
||||
_ret := C.QImage_ConvertToFormat3(this.h, (C.int)(f), colorTable_ma, flags)
|
||||
_ret := C.QImage_ConvertToFormat3(this.h, (C.int)(f), colorTable_ma, (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) ConvertTo2(f QImage__Format, flags int) {
|
||||
C.QImage_ConvertTo2(this.h, (C.int)(f), flags)
|
||||
C.QImage_ConvertTo2(this.h, (C.int)(f), (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QImage) CreateAlphaMask1(flags int) *QImage {
|
||||
_ret := C.QImage_CreateAlphaMask1(this.h, flags)
|
||||
_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
|
||||
return _goptr
|
||||
|
@ -192,7 +192,7 @@ func (this *QImageWriter) Transformation() int {
|
||||
}
|
||||
|
||||
func (this *QImageWriter) SetTransformation(orientation int) {
|
||||
C.QImageWriter_SetTransformation(this.h, orientation)
|
||||
C.QImageWriter_SetTransformation(this.h, (C.int)(orientation))
|
||||
}
|
||||
|
||||
func (this *QImageWriter) SetDescription(description string) {
|
||||
|
@ -67,7 +67,7 @@ func NewQInputDialog2(parent *QWidget) *QInputDialog {
|
||||
|
||||
// NewQInputDialog3 constructs a new QInputDialog object.
|
||||
func NewQInputDialog3(parent *QWidget, flags int) *QInputDialog {
|
||||
ret := C.QInputDialog_new3(parent.cPointer(), flags)
|
||||
ret := C.QInputDialog_new3(parent.cPointer(), (C.int)(flags))
|
||||
return newQInputDialog(ret)
|
||||
}
|
||||
|
||||
@ -123,7 +123,7 @@ func (this *QInputDialog) TestOption(option QInputDialog__InputDialogOption) boo
|
||||
}
|
||||
|
||||
func (this *QInputDialog) SetOptions(options int) {
|
||||
C.QInputDialog_SetOptions(this.h, options)
|
||||
C.QInputDialog_SetOptions(this.h, (C.int)(options))
|
||||
}
|
||||
|
||||
func (this *QInputDialog) Options() int {
|
||||
@ -367,7 +367,7 @@ func QInputDialog_GetDouble2(parent *QWidget, title string, label string, value
|
||||
defer C.free(title_ms)
|
||||
label_ms := miqt_strdupg(label)
|
||||
defer C.free(label_ms)
|
||||
return (float64)(C.QInputDialog_GetDouble2(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)), flags, (C.double)(step)))
|
||||
return (float64)(C.QInputDialog_GetDouble2(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)), (C.int)(flags), (C.double)(step)))
|
||||
}
|
||||
|
||||
func (this *QInputDialog) SetDoubleStep(step float64) {
|
||||
@ -604,7 +604,7 @@ func QInputDialog_GetText7(parent *QWidget, title string, label string, echo QLi
|
||||
defer C.free(label_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
var _ms *C.struct_miqt_string = C.QInputDialog_GetText7(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.int)(echo), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), flags)
|
||||
var _ms *C.struct_miqt_string = C.QInputDialog_GetText7(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.int)(echo), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), (C.int)(flags))
|
||||
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
||||
C.free(unsafe.Pointer(_ms))
|
||||
return _ret
|
||||
@ -617,7 +617,7 @@ func QInputDialog_GetText8(parent *QWidget, title string, label string, echo QLi
|
||||
defer C.free(label_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
var _ms *C.struct_miqt_string = C.QInputDialog_GetText8(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.int)(echo), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), flags, inputMethodHints)
|
||||
var _ms *C.struct_miqt_string = C.QInputDialog_GetText8(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (C.int)(echo), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), (C.int)(flags), (C.int)(inputMethodHints))
|
||||
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
||||
C.free(unsafe.Pointer(_ms))
|
||||
return _ret
|
||||
@ -656,7 +656,7 @@ func QInputDialog_GetMultiLineText6(parent *QWidget, title string, label string,
|
||||
defer C.free(label_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
var _ms *C.struct_miqt_string = C.QInputDialog_GetMultiLineText6(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), flags)
|
||||
var _ms *C.struct_miqt_string = C.QInputDialog_GetMultiLineText6(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), (C.int)(flags))
|
||||
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
||||
C.free(unsafe.Pointer(_ms))
|
||||
return _ret
|
||||
@ -669,7 +669,7 @@ func QInputDialog_GetMultiLineText7(parent *QWidget, title string, label string,
|
||||
defer C.free(label_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
var _ms *C.struct_miqt_string = C.QInputDialog_GetMultiLineText7(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), flags, inputMethodHints)
|
||||
var _ms *C.struct_miqt_string = C.QInputDialog_GetMultiLineText7(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), (*C.struct_miqt_string)(text_ms), (*C.bool)(unsafe.Pointer(ok)), (C.int)(flags), (C.int)(inputMethodHints))
|
||||
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
||||
C.free(unsafe.Pointer(_ms))
|
||||
return _ret
|
||||
@ -753,7 +753,7 @@ func QInputDialog_GetItem8(parent *QWidget, title string, label string, items []
|
||||
}
|
||||
items_ma := &C.struct_miqt_array{len: C.size_t(len(items)), data: unsafe.Pointer(items_CArray)}
|
||||
defer runtime.KeepAlive(unsafe.Pointer(items_ma))
|
||||
var _ms *C.struct_miqt_string = C.QInputDialog_GetItem8(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), items_ma, (C.int)(current), (C.bool)(editable), (*C.bool)(unsafe.Pointer(ok)), flags)
|
||||
var _ms *C.struct_miqt_string = C.QInputDialog_GetItem8(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), items_ma, (C.int)(current), (C.bool)(editable), (*C.bool)(unsafe.Pointer(ok)), (C.int)(flags))
|
||||
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
||||
C.free(unsafe.Pointer(_ms))
|
||||
return _ret
|
||||
@ -774,7 +774,7 @@ func QInputDialog_GetItem9(parent *QWidget, title string, label string, items []
|
||||
}
|
||||
items_ma := &C.struct_miqt_array{len: C.size_t(len(items)), data: unsafe.Pointer(items_CArray)}
|
||||
defer runtime.KeepAlive(unsafe.Pointer(items_ma))
|
||||
var _ms *C.struct_miqt_string = C.QInputDialog_GetItem9(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), items_ma, (C.int)(current), (C.bool)(editable), (*C.bool)(unsafe.Pointer(ok)), flags, inputMethodHints)
|
||||
var _ms *C.struct_miqt_string = C.QInputDialog_GetItem9(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(label_ms), items_ma, (C.int)(current), (C.bool)(editable), (*C.bool)(unsafe.Pointer(ok)), (C.int)(flags), (C.int)(inputMethodHints))
|
||||
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
||||
C.free(unsafe.Pointer(_ms))
|
||||
return _ret
|
||||
@ -825,7 +825,7 @@ func QInputDialog_GetInt9(parent *QWidget, title string, label string, value int
|
||||
defer C.free(title_ms)
|
||||
label_ms := miqt_strdupg(label)
|
||||
defer C.free(label_ms)
|
||||
return (int)(C.QInputDialog_GetInt9(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)), flags))
|
||||
return (int)(C.QInputDialog_GetInt9(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)), (C.int)(flags)))
|
||||
}
|
||||
|
||||
func QInputDialog_GetDouble4(parent *QWidget, title string, label string, value float64) float64 {
|
||||
@ -873,7 +873,7 @@ func QInputDialog_GetDouble9(parent *QWidget, title string, label string, value
|
||||
defer C.free(title_ms)
|
||||
label_ms := miqt_strdupg(label)
|
||||
defer C.free(label_ms)
|
||||
return (float64)(C.QInputDialog_GetDouble9(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)), flags))
|
||||
return (float64)(C.QInputDialog_GetDouble9(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)), (C.int)(flags)))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
|
@ -154,7 +154,7 @@ func (this *QInputMethod) Hide() {
|
||||
}
|
||||
|
||||
func (this *QInputMethod) Update(queries int) {
|
||||
C.QInputMethod_Update(this.h, queries)
|
||||
C.QInputMethod_Update(this.h, (C.int)(queries))
|
||||
}
|
||||
|
||||
func (this *QInputMethod) Reset() {
|
||||
|
@ -127,7 +127,7 @@ func (this *QIODevice) SetCurrentWriteChannel(channel int) {
|
||||
}
|
||||
|
||||
func (this *QIODevice) Open(mode int) bool {
|
||||
return (bool)(C.QIODevice_Open(this.h, mode))
|
||||
return (bool)(C.QIODevice_Open(this.h, (C.int)(mode)))
|
||||
}
|
||||
|
||||
func (this *QIODevice) Close() {
|
||||
|
@ -343,11 +343,11 @@ func (this *QItemSelectionModel) SetModel(model *QAbstractItemModel) {
|
||||
}
|
||||
|
||||
func (this *QItemSelectionModel) SetCurrentIndex(index *QModelIndex, command int) {
|
||||
C.QItemSelectionModel_SetCurrentIndex(this.h, index.cPointer(), command)
|
||||
C.QItemSelectionModel_SetCurrentIndex(this.h, index.cPointer(), (C.int)(command))
|
||||
}
|
||||
|
||||
func (this *QItemSelectionModel) Select(index *QModelIndex, command int) {
|
||||
C.QItemSelectionModel_Select(this.h, index.cPointer(), command)
|
||||
C.QItemSelectionModel_Select(this.h, index.cPointer(), (C.int)(command))
|
||||
}
|
||||
|
||||
func (this *QItemSelectionModel) Clear() {
|
||||
|
@ -95,7 +95,7 @@ func (this *QKeyEventTransition) ModifierMask() int {
|
||||
}
|
||||
|
||||
func (this *QKeyEventTransition) SetModifierMask(modifiers int) {
|
||||
C.QKeyEventTransition_SetModifierMask(this.h, modifiers)
|
||||
C.QKeyEventTransition_SetModifierMask(this.h, (C.int)(modifiers))
|
||||
}
|
||||
|
||||
func QKeyEventTransition_Tr2(s string, c string) string {
|
||||
|
@ -59,7 +59,7 @@ func NewQLabel3(parent *QWidget) *QLabel {
|
||||
|
||||
// NewQLabel4 constructs a new QLabel object.
|
||||
func NewQLabel4(parent *QWidget, f int) *QLabel {
|
||||
ret := C.QLabel_new4(parent.cPointer(), f)
|
||||
ret := C.QLabel_new4(parent.cPointer(), (C.int)(f))
|
||||
return newQLabel(ret)
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ func NewQLabel5(text string, parent *QWidget) *QLabel {
|
||||
func NewQLabel6(text string, parent *QWidget, f int) *QLabel {
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
ret := C.QLabel_new6((*C.struct_miqt_string)(text_ms), parent.cPointer(), f)
|
||||
ret := C.QLabel_new6((*C.struct_miqt_string)(text_ms), parent.cPointer(), (C.int)(f))
|
||||
return newQLabel(ret)
|
||||
}
|
||||
|
||||
@ -147,7 +147,7 @@ func (this *QLabel) Alignment() int {
|
||||
}
|
||||
|
||||
func (this *QLabel) SetAlignment(alignment int) {
|
||||
C.QLabel_SetAlignment(this.h, alignment)
|
||||
C.QLabel_SetAlignment(this.h, (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QLabel) SetWordWrap(on bool) {
|
||||
@ -217,7 +217,7 @@ func (this *QLabel) SetOpenExternalLinks(open bool) {
|
||||
}
|
||||
|
||||
func (this *QLabel) SetTextInteractionFlags(flags int) {
|
||||
C.QLabel_SetTextInteractionFlags(this.h, flags)
|
||||
C.QLabel_SetTextInteractionFlags(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QLabel) TextInteractionFlags() int {
|
||||
|
@ -113,11 +113,11 @@ func (this *QLayout) ContentsRect() *QRect {
|
||||
}
|
||||
|
||||
func (this *QLayout) SetAlignment(w *QWidget, alignment int) bool {
|
||||
return (bool)(C.QLayout_SetAlignment(this.h, w.cPointer(), alignment))
|
||||
return (bool)(C.QLayout_SetAlignment(this.h, w.cPointer(), (C.int)(alignment)))
|
||||
}
|
||||
|
||||
func (this *QLayout) SetAlignment2(l *QLayout, alignment int) bool {
|
||||
return (bool)(C.QLayout_SetAlignment2(this.h, l.cPointer(), alignment))
|
||||
return (bool)(C.QLayout_SetAlignment2(this.h, l.cPointer(), (C.int)(alignment)))
|
||||
}
|
||||
|
||||
func (this *QLayout) SetSizeConstraint(sizeConstraint QLayout__SizeConstraint) {
|
||||
@ -318,7 +318,7 @@ func QLayout_TrUtf83(s string, c string, n int) string {
|
||||
}
|
||||
|
||||
func (this *QLayout) ReplaceWidget3(from *QWidget, to *QWidget, options int) *QLayoutItem {
|
||||
return newQLayoutItem_U(unsafe.Pointer(C.QLayout_ReplaceWidget3(this.h, from.cPointer(), to.cPointer(), options)))
|
||||
return newQLayoutItem_U(unsafe.Pointer(C.QLayout_ReplaceWidget3(this.h, from.cPointer(), to.cPointer(), (C.int)(options))))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
|
@ -108,7 +108,7 @@ func (this *QLayoutItem) Alignment() int {
|
||||
}
|
||||
|
||||
func (this *QLayoutItem) SetAlignment(a int) {
|
||||
C.QLayoutItem_SetAlignment(this.h, a)
|
||||
C.QLayoutItem_SetAlignment(this.h, (C.int)(a))
|
||||
}
|
||||
|
||||
func (this *QLayoutItem) ControlTypes() int {
|
||||
|
@ -185,7 +185,7 @@ func (this *QLibrary) ErrorString() string {
|
||||
}
|
||||
|
||||
func (this *QLibrary) SetLoadHints(hints int) {
|
||||
C.QLibrary_SetLoadHints(this.h, hints)
|
||||
C.QLibrary_SetLoadHints(this.h, (C.int)(hints))
|
||||
}
|
||||
|
||||
func (this *QLibrary) LoadHints() int {
|
||||
|
@ -213,7 +213,7 @@ func (this *QLineEdit) CursorPositionAt(pos *QPoint) int {
|
||||
}
|
||||
|
||||
func (this *QLineEdit) SetAlignment(flag int) {
|
||||
C.QLineEdit_SetAlignment(this.h, flag)
|
||||
C.QLineEdit_SetAlignment(this.h, (C.int)(flag))
|
||||
}
|
||||
|
||||
func (this *QLineEdit) Alignment() int {
|
||||
|
@ -227,7 +227,7 @@ func (this *QListView) IsSelectionRectVisible() bool {
|
||||
}
|
||||
|
||||
func (this *QListView) SetItemAlignment(alignment int) {
|
||||
C.QListView_SetItemAlignment(this.h, alignment)
|
||||
C.QListView_SetItemAlignment(this.h, (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QListView) ItemAlignment() int {
|
||||
|
@ -144,7 +144,7 @@ func (this *QListWidgetItem) Flags() int {
|
||||
}
|
||||
|
||||
func (this *QListWidgetItem) SetFlags(flags int) {
|
||||
C.QListWidgetItem_SetFlags(this.h, flags)
|
||||
C.QListWidgetItem_SetFlags(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QListWidgetItem) Text() string {
|
||||
@ -471,7 +471,7 @@ func (this *QListWidget) SetCurrentItem(item *QListWidgetItem) {
|
||||
}
|
||||
|
||||
func (this *QListWidget) SetCurrentItem2(item *QListWidgetItem, command int) {
|
||||
C.QListWidget_SetCurrentItem2(this.h, item.cPointer(), command)
|
||||
C.QListWidget_SetCurrentItem2(this.h, item.cPointer(), (C.int)(command))
|
||||
}
|
||||
|
||||
func (this *QListWidget) CurrentRow() int {
|
||||
@ -483,7 +483,7 @@ func (this *QListWidget) SetCurrentRow(row int) {
|
||||
}
|
||||
|
||||
func (this *QListWidget) SetCurrentRow2(row int, command int) {
|
||||
C.QListWidget_SetCurrentRow2(this.h, (C.int)(row), command)
|
||||
C.QListWidget_SetCurrentRow2(this.h, (C.int)(row), (C.int)(command))
|
||||
}
|
||||
|
||||
func (this *QListWidget) ItemAt(p *QPoint) *QListWidgetItem {
|
||||
@ -563,7 +563,7 @@ func (this *QListWidget) SelectedItems() []*QListWidgetItem {
|
||||
func (this *QListWidget) FindItems(text string, flags int) []*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), flags)
|
||||
var _ma *C.struct_miqt_array = C.QListWidget_FindItems(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags))
|
||||
_ret := make([]*QListWidgetItem, int(_ma.len))
|
||||
_outCast := (*[0xffff]*C.QListWidgetItem)(unsafe.Pointer(_ma.data)) // hey ya
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
|
@ -1653,7 +1653,7 @@ func QLocale_CountriesForLanguage(lang QLocale__Language) []QLocale__Country {
|
||||
}
|
||||
|
||||
func (this *QLocale) SetNumberOptions(options int) {
|
||||
C.QLocale_SetNumberOptions(this.h, options)
|
||||
C.QLocale_SetNumberOptions(this.h, (C.int)(options))
|
||||
}
|
||||
|
||||
func (this *QLocale) NumberOptions() int {
|
||||
@ -1958,7 +1958,7 @@ func (this *QLocale) FormattedDataSize2(bytes int64, precision int) string {
|
||||
}
|
||||
|
||||
func (this *QLocale) FormattedDataSize3(bytes int64, precision int, format int) string {
|
||||
var _ms *C.struct_miqt_string = C.QLocale_FormattedDataSize3(this.h, (C.longlong)(bytes), (C.int)(precision), format)
|
||||
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))
|
||||
return _ret
|
||||
@ -1972,7 +1972,7 @@ func (this *QLocale) FormattedDataSize22(bytes int64, precision int) string {
|
||||
}
|
||||
|
||||
func (this *QLocale) FormattedDataSize32(bytes int64, precision int, format int) string {
|
||||
var _ms *C.struct_miqt_string = C.QLocale_FormattedDataSize32(this.h, (C.longlong)(bytes), (C.int)(precision), format)
|
||||
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))
|
||||
return _ret
|
||||
|
@ -62,7 +62,7 @@ func NewQMainWindow2(parent *QWidget) *QMainWindow {
|
||||
|
||||
// NewQMainWindow3 constructs a new QMainWindow object.
|
||||
func NewQMainWindow3(parent *QWidget, flags int) *QMainWindow {
|
||||
ret := C.QMainWindow_new3(parent.cPointer(), flags)
|
||||
ret := C.QMainWindow_new3(parent.cPointer(), (C.int)(flags))
|
||||
return newQMainWindow(ret)
|
||||
}
|
||||
|
||||
@ -136,11 +136,11 @@ func (this *QMainWindow) TabPosition(area DockWidgetArea) QTabWidget__TabPositio
|
||||
}
|
||||
|
||||
func (this *QMainWindow) SetTabPosition(areas int, tabPosition QTabWidget__TabPosition) {
|
||||
C.QMainWindow_SetTabPosition(this.h, areas, (C.int)(tabPosition))
|
||||
C.QMainWindow_SetTabPosition(this.h, (C.int)(areas), (C.int)(tabPosition))
|
||||
}
|
||||
|
||||
func (this *QMainWindow) SetDockOptions(options int) {
|
||||
C.QMainWindow_SetDockOptions(this.h, options)
|
||||
C.QMainWindow_SetDockOptions(this.h, (C.int)(options))
|
||||
}
|
||||
|
||||
func (this *QMainWindow) DockOptions() int {
|
||||
|
@ -312,7 +312,7 @@ func (this *QMdiArea) SubWindowList1(order QMdiArea__WindowOrder) []*QMdiSubWind
|
||||
}
|
||||
|
||||
func (this *QMdiArea) AddSubWindow2(widget *QWidget, flags int) *QMdiSubWindow {
|
||||
return newQMdiSubWindow_U(unsafe.Pointer(C.QMdiArea_AddSubWindow2(this.h, widget.cPointer(), flags)))
|
||||
return newQMdiSubWindow_U(unsafe.Pointer(C.QMdiArea_AddSubWindow2(this.h, widget.cPointer(), (C.int)(flags))))
|
||||
}
|
||||
|
||||
func (this *QMdiArea) SetOption2(option QMdiArea__AreaOption, on bool) {
|
||||
|
@ -60,7 +60,7 @@ func NewQMdiSubWindow2(parent *QWidget) *QMdiSubWindow {
|
||||
|
||||
// NewQMdiSubWindow3 constructs a new QMdiSubWindow object.
|
||||
func NewQMdiSubWindow3(parent *QWidget, flags int) *QMdiSubWindow {
|
||||
ret := C.QMdiSubWindow_new3(parent.cPointer(), flags)
|
||||
ret := C.QMdiSubWindow_new3(parent.cPointer(), (C.int)(flags))
|
||||
return newQMdiSubWindow(ret)
|
||||
}
|
||||
|
||||
@ -157,7 +157,7 @@ func (this *QMdiSubWindow) MdiArea() *QMdiArea {
|
||||
}
|
||||
|
||||
func (this *QMdiSubWindow) WindowStateChanged(oldState int, newState int) {
|
||||
C.QMdiSubWindow_WindowStateChanged(this.h, oldState, newState)
|
||||
C.QMdiSubWindow_WindowStateChanged(this.h, (C.int)(oldState), (C.int)(newState))
|
||||
}
|
||||
func (this *QMdiSubWindow) OnWindowStateChanged(slot func(oldState int, newState int)) {
|
||||
C.QMdiSubWindow_connect_WindowStateChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
|
||||
|
@ -133,7 +133,7 @@ func NewQMessageBox5(icon QMessageBox__Icon, title string, text string, buttons
|
||||
defer C.free(title_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
ret := C.QMessageBox_new5((C.int)(icon), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons)
|
||||
ret := C.QMessageBox_new5((C.int)(icon), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons))
|
||||
return newQMessageBox(ret)
|
||||
}
|
||||
|
||||
@ -143,7 +143,7 @@ func NewQMessageBox6(icon QMessageBox__Icon, title string, text string, buttons
|
||||
defer C.free(title_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
ret := C.QMessageBox_new6((C.int)(icon), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons, parent.cPointer())
|
||||
ret := C.QMessageBox_new6((C.int)(icon), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons), parent.cPointer())
|
||||
return newQMessageBox(ret)
|
||||
}
|
||||
|
||||
@ -153,7 +153,7 @@ func NewQMessageBox7(icon QMessageBox__Icon, title string, text string, buttons
|
||||
defer C.free(title_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
ret := C.QMessageBox_new7((C.int)(icon), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons, parent.cPointer(), flags)
|
||||
ret := C.QMessageBox_new7((C.int)(icon), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons), parent.cPointer(), (C.int)(flags))
|
||||
return newQMessageBox(ret)
|
||||
}
|
||||
|
||||
@ -173,7 +173,7 @@ func NewQMessageBox9(title string, text string, icon QMessageBox__Icon, button0
|
||||
defer C.free(title_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
ret := C.QMessageBox_new9((*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(icon), (C.int)(button0), (C.int)(button1), (C.int)(button2), parent.cPointer(), f)
|
||||
ret := C.QMessageBox_new9((*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(icon), (C.int)(button0), (C.int)(button1), (C.int)(button2), parent.cPointer(), (C.int)(f))
|
||||
return newQMessageBox(ret)
|
||||
}
|
||||
|
||||
@ -233,7 +233,7 @@ func (this *QMessageBox) ButtonRole(button *QAbstractButton) QMessageBox__Button
|
||||
}
|
||||
|
||||
func (this *QMessageBox) SetStandardButtons(buttons int) {
|
||||
C.QMessageBox_SetStandardButtons(this.h, buttons)
|
||||
C.QMessageBox_SetStandardButtons(this.h, (C.int)(buttons))
|
||||
}
|
||||
|
||||
func (this *QMessageBox) StandardButtons() int {
|
||||
@ -317,7 +317,7 @@ func (this *QMessageBox) SetTextFormat(format TextFormat) {
|
||||
}
|
||||
|
||||
func (this *QMessageBox) SetTextInteractionFlags(flags int) {
|
||||
C.QMessageBox_SetTextInteractionFlags(this.h, flags)
|
||||
C.QMessageBox_SetTextInteractionFlags(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QMessageBox) TextInteractionFlags() int {
|
||||
@ -605,7 +605,7 @@ func QMessageBox_Information42(parent *QWidget, title string, text string, butto
|
||||
defer C.free(title_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
return (QMessageBox__StandardButton)(C.QMessageBox_Information42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons))
|
||||
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 {
|
||||
@ -613,7 +613,7 @@ func QMessageBox_Information5(parent *QWidget, title string, text string, button
|
||||
defer C.free(title_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
return (QMessageBox__StandardButton)(C.QMessageBox_Information5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons, (C.int)(defaultButton)))
|
||||
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 {
|
||||
@ -621,7 +621,7 @@ func QMessageBox_Question42(parent *QWidget, title string, text string, buttons
|
||||
defer C.free(title_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
return (QMessageBox__StandardButton)(C.QMessageBox_Question42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), 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 {
|
||||
@ -629,7 +629,7 @@ func QMessageBox_Question5(parent *QWidget, title string, text string, buttons i
|
||||
defer C.free(title_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
return (QMessageBox__StandardButton)(C.QMessageBox_Question5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons, (C.int)(defaultButton)))
|
||||
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 {
|
||||
@ -637,7 +637,7 @@ func QMessageBox_Warning42(parent *QWidget, title string, text string, buttons i
|
||||
defer C.free(title_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
return (QMessageBox__StandardButton)(C.QMessageBox_Warning42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons))
|
||||
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 {
|
||||
@ -645,7 +645,7 @@ func QMessageBox_Warning5(parent *QWidget, title string, text string, buttons in
|
||||
defer C.free(title_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
return (QMessageBox__StandardButton)(C.QMessageBox_Warning5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons, (C.int)(defaultButton)))
|
||||
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 {
|
||||
@ -653,7 +653,7 @@ func QMessageBox_Critical42(parent *QWidget, title string, text string, buttons
|
||||
defer C.free(title_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
return (QMessageBox__StandardButton)(C.QMessageBox_Critical42(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), 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 {
|
||||
@ -661,7 +661,7 @@ func QMessageBox_Critical5(parent *QWidget, title string, text string, buttons i
|
||||
defer C.free(title_ms)
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
return (QMessageBox__StandardButton)(C.QMessageBox_Critical5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), buttons, (C.int)(defaultButton)))
|
||||
return (QMessageBox__StandardButton)(C.QMessageBox_Critical5(parent.cPointer(), (*C.struct_miqt_string)(title_ms), (*C.struct_miqt_string)(text_ms), (C.int)(buttons), (C.int)(defaultButton)))
|
||||
}
|
||||
|
||||
func QMessageBox_AboutQt2(parent *QWidget, title string) {
|
||||
|
@ -95,7 +95,7 @@ func (this *QMouseEventTransition) ModifierMask() int {
|
||||
}
|
||||
|
||||
func (this *QMouseEventTransition) SetModifierMask(modifiers int) {
|
||||
C.QMouseEventTransition_SetModifierMask(this.h, modifiers)
|
||||
C.QMouseEventTransition_SetModifierMask(this.h, (C.int)(modifiers))
|
||||
}
|
||||
|
||||
func (this *QMouseEventTransition) HitTestPath() *QPainterPath {
|
||||
|
@ -315,19 +315,19 @@ func (this *QPaintEngine) FixNegRect(x *int, y *int, w *int, h *int) {
|
||||
}
|
||||
|
||||
func (this *QPaintEngine) TestDirty(df int) bool {
|
||||
return (bool)(C.QPaintEngine_TestDirty(this.h, df))
|
||||
return (bool)(C.QPaintEngine_TestDirty(this.h, (C.int)(df)))
|
||||
}
|
||||
|
||||
func (this *QPaintEngine) SetDirty(df int) {
|
||||
C.QPaintEngine_SetDirty(this.h, df)
|
||||
C.QPaintEngine_SetDirty(this.h, (C.int)(df))
|
||||
}
|
||||
|
||||
func (this *QPaintEngine) ClearDirty(df int) {
|
||||
C.QPaintEngine_ClearDirty(this.h, df)
|
||||
C.QPaintEngine_ClearDirty(this.h, (C.int)(df))
|
||||
}
|
||||
|
||||
func (this *QPaintEngine) HasFeature(feature int) bool {
|
||||
return (bool)(C.QPaintEngine_HasFeature(this.h, feature))
|
||||
return (bool)(C.QPaintEngine_HasFeature(this.h, (C.int)(feature)))
|
||||
}
|
||||
|
||||
func (this *QPaintEngine) Painter() *QPainter {
|
||||
@ -343,7 +343,7 @@ func (this *QPaintEngine) IsExtended() bool {
|
||||
}
|
||||
|
||||
func (this *QPaintEngine) DrawImage4(r *QRectF, pm *QImage, sr *QRectF, flags int) {
|
||||
C.QPaintEngine_DrawImage4(this.h, r.cPointer(), pm.cPointer(), sr.cPointer(), flags)
|
||||
C.QPaintEngine_DrawImage4(this.h, r.cPointer(), pm.cPointer(), sr.cPointer(), (C.int)(flags))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
|
@ -995,7 +995,7 @@ func (this *QPainter) SetRenderHint(hint QPainter__RenderHint) {
|
||||
}
|
||||
|
||||
func (this *QPainter) SetRenderHints(hints int) {
|
||||
C.QPainter_SetRenderHints(this.h, hints)
|
||||
C.QPainter_SetRenderHints(this.h, (C.int)(hints))
|
||||
}
|
||||
|
||||
func (this *QPainter) RenderHints() int {
|
||||
@ -1127,23 +1127,23 @@ func (this *QPainter) DrawTiledPixmap33(param1 *QRect, param2 *QPixmap, param3 *
|
||||
}
|
||||
|
||||
func (this *QPainter) DrawPixmapFragments4(fragments *QPainter__PixmapFragment, fragmentCount int, pixmap *QPixmap, hints int) {
|
||||
C.QPainter_DrawPixmapFragments4(this.h, fragments.cPointer(), (C.int)(fragmentCount), pixmap.cPointer(), hints)
|
||||
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) {
|
||||
C.QPainter_DrawImage42(this.h, targetRect.cPointer(), image.cPointer(), sourceRect.cPointer(), flags)
|
||||
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) {
|
||||
C.QPainter_DrawImage43(this.h, targetRect.cPointer(), image.cPointer(), sourceRect.cPointer(), flags)
|
||||
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) {
|
||||
C.QPainter_DrawImage44(this.h, p.cPointer(), image.cPointer(), sr.cPointer(), flags)
|
||||
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) {
|
||||
C.QPainter_DrawImage45(this.h, p.cPointer(), image.cPointer(), sr.cPointer(), flags)
|
||||
C.QPainter_DrawImage45(this.h, p.cPointer(), image.cPointer(), sr.cPointer(), (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QPainter) DrawImage46(x int, y int, image *QImage, sx int) {
|
||||
@ -1163,7 +1163,7 @@ func (this *QPainter) DrawImage72(x int, y int, image *QImage, sx int, sy int, s
|
||||
}
|
||||
|
||||
func (this *QPainter) DrawImage82(x int, y int, image *QImage, sx int, sy int, sw int, sh int, flags int) {
|
||||
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), flags)
|
||||
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))
|
||||
}
|
||||
|
||||
func (this *QPainter) DrawText42(r *QRectF, flags int, text string, br *QRectF) {
|
||||
@ -1204,7 +1204,7 @@ func (this *QPainter) SetRenderHint2(hint QPainter__RenderHint, on bool) {
|
||||
}
|
||||
|
||||
func (this *QPainter) SetRenderHints2(hints int, on bool) {
|
||||
C.QPainter_SetRenderHints2(this.h, hints, (C.bool)(on))
|
||||
C.QPainter_SetRenderHints2(this.h, (C.int)(hints), (C.bool)(on))
|
||||
}
|
||||
|
||||
func QPainter_SetRedirected3(device *QPaintDevice, replacement *QPaintDevice, offset *QPoint) {
|
||||
|
@ -84,7 +84,7 @@ func NewQPixmap7(fileName string, format string, flags int) *QPixmap {
|
||||
defer C.free(fileName_ms)
|
||||
format_Cstring := C.CString(format)
|
||||
defer C.free(unsafe.Pointer(format_Cstring))
|
||||
ret := C.QPixmap_new7((*C.struct_miqt_string)(fileName_ms), format_Cstring, flags)
|
||||
ret := C.QPixmap_new7((*C.struct_miqt_string)(fileName_ms), format_Cstring, (C.int)(flags))
|
||||
return newQPixmap(ret)
|
||||
}
|
||||
|
||||
@ -490,14 +490,14 @@ func (this *QPixmap) Transformed22(param1 *QTransform, mode TransformationMode)
|
||||
}
|
||||
|
||||
func QPixmap_FromImage2(image *QImage, flags int) *QPixmap {
|
||||
_ret := C.QPixmap_FromImage2(image.cPointer(), flags)
|
||||
_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 {
|
||||
_ret := C.QPixmap_FromImageReader2(imageReader.cPointer(), flags)
|
||||
_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
|
||||
return _goptr
|
||||
@ -516,7 +516,7 @@ func (this *QPixmap) Load3(fileName string, format string, flags int) bool {
|
||||
defer C.free(fileName_ms)
|
||||
format_Cstring := C.CString(format)
|
||||
defer C.free(unsafe.Pointer(format_Cstring))
|
||||
return (bool)(C.QPixmap_Load3(this.h, (*C.struct_miqt_string)(fileName_ms), format_Cstring, flags))
|
||||
return (bool)(C.QPixmap_Load3(this.h, (*C.struct_miqt_string)(fileName_ms), format_Cstring, (C.int)(flags)))
|
||||
}
|
||||
|
||||
func (this *QPixmap) LoadFromData3(buf *byte, lenVal uint, format string) bool {
|
||||
@ -528,7 +528,7 @@ func (this *QPixmap) LoadFromData3(buf *byte, lenVal uint, format string) bool {
|
||||
func (this *QPixmap) LoadFromData4(buf *byte, lenVal uint, format string, flags int) 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, flags))
|
||||
return (bool)(C.QPixmap_LoadFromData4(this.h, (*C.uchar)(unsafe.Pointer(buf)), (C.uint)(lenVal), format_Cstring, (C.int)(flags)))
|
||||
}
|
||||
|
||||
func (this *QPixmap) LoadFromData2(data *QByteArray, format string) bool {
|
||||
@ -540,7 +540,7 @@ func (this *QPixmap) LoadFromData2(data *QByteArray, format string) bool {
|
||||
func (this *QPixmap) LoadFromData32(data *QByteArray, format string, flags int) bool {
|
||||
format_Cstring := C.CString(format)
|
||||
defer C.free(unsafe.Pointer(format_Cstring))
|
||||
return (bool)(C.QPixmap_LoadFromData32(this.h, data.cPointer(), format_Cstring, flags))
|
||||
return (bool)(C.QPixmap_LoadFromData32(this.h, data.cPointer(), format_Cstring, (C.int)(flags)))
|
||||
}
|
||||
|
||||
func (this *QPixmap) Save2(fileName string, format string) bool {
|
||||
@ -572,7 +572,7 @@ func (this *QPixmap) Save32(device *QIODevice, format string, quality int) bool
|
||||
}
|
||||
|
||||
func (this *QPixmap) ConvertFromImage2(img *QImage, flags int) bool {
|
||||
return (bool)(C.QPixmap_ConvertFromImage2(this.h, img.cPointer(), flags))
|
||||
return (bool)(C.QPixmap_ConvertFromImage2(this.h, img.cPointer(), (C.int)(flags)))
|
||||
}
|
||||
|
||||
func (this *QPixmap) Copy1(rect *QRect) *QPixmap {
|
||||
|
@ -135,7 +135,7 @@ func (this *QPlainTextEdit) SetReadOnly(ro bool) {
|
||||
}
|
||||
|
||||
func (this *QPlainTextEdit) SetTextInteractionFlags(flags int) {
|
||||
C.QPlainTextEdit_SetTextInteractionFlags(this.h, flags)
|
||||
C.QPlainTextEdit_SetTextInteractionFlags(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QPlainTextEdit) TextInteractionFlags() int {
|
||||
@ -665,15 +665,15 @@ func QPlainTextEdit_TrUtf83(s string, c string, n int) string {
|
||||
func (this *QPlainTextEdit) Find22(exp string, options int) bool {
|
||||
exp_ms := miqt_strdupg(exp)
|
||||
defer C.free(exp_ms)
|
||||
return (bool)(C.QPlainTextEdit_Find22(this.h, (*C.struct_miqt_string)(exp_ms), options))
|
||||
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 {
|
||||
return (bool)(C.QPlainTextEdit_Find23(this.h, exp.cPointer(), options))
|
||||
return (bool)(C.QPlainTextEdit_Find23(this.h, exp.cPointer(), (C.int)(options)))
|
||||
}
|
||||
|
||||
func (this *QPlainTextEdit) Find24(exp *QRegularExpression, options int) bool {
|
||||
return (bool)(C.QPlainTextEdit_Find24(this.h, exp.cPointer(), options))
|
||||
return (bool)(C.QPlainTextEdit_Find24(this.h, exp.cPointer(), (C.int)(options)))
|
||||
}
|
||||
|
||||
func (this *QPlainTextEdit) MoveCursor2(operation QTextCursor__MoveOperation, mode QTextCursor__MoveMode) {
|
||||
|
@ -155,7 +155,7 @@ func (this *QPluginLoader) ErrorString() string {
|
||||
}
|
||||
|
||||
func (this *QPluginLoader) SetLoadHints(loadHints int) {
|
||||
C.QPluginLoader_SetLoadHints(this.h, loadHints)
|
||||
C.QPluginLoader_SetLoadHints(this.h, (C.int)(loadHints))
|
||||
}
|
||||
|
||||
func (this *QPluginLoader) LoadHints() int {
|
||||
|
@ -773,17 +773,17 @@ func (this *QProcess) Start3(program string, arguments []string, mode int) {
|
||||
}
|
||||
arguments_ma := &C.struct_miqt_array{len: C.size_t(len(arguments)), data: unsafe.Pointer(arguments_CArray)}
|
||||
defer runtime.KeepAlive(unsafe.Pointer(arguments_ma))
|
||||
C.QProcess_Start3(this.h, (*C.struct_miqt_string)(program_ms), arguments_ma, mode)
|
||||
C.QProcess_Start3(this.h, (*C.struct_miqt_string)(program_ms), arguments_ma, (C.int)(mode))
|
||||
}
|
||||
|
||||
func (this *QProcess) Start22(command string, mode int) {
|
||||
command_ms := miqt_strdupg(command)
|
||||
defer C.free(command_ms)
|
||||
C.QProcess_Start22(this.h, (*C.struct_miqt_string)(command_ms), mode)
|
||||
C.QProcess_Start22(this.h, (*C.struct_miqt_string)(command_ms), (C.int)(mode))
|
||||
}
|
||||
|
||||
func (this *QProcess) Start1(mode int) {
|
||||
C.QProcess_Start1(this.h, mode)
|
||||
C.QProcess_Start1(this.h, (C.int)(mode))
|
||||
}
|
||||
|
||||
func (this *QProcess) StartDetached1(pid *int64) bool {
|
||||
@ -791,19 +791,19 @@ func (this *QProcess) StartDetached1(pid *int64) bool {
|
||||
}
|
||||
|
||||
func (this *QProcess) Open1(mode int) bool {
|
||||
return (bool)(C.QProcess_Open1(this.h, mode))
|
||||
return (bool)(C.QProcess_Open1(this.h, (C.int)(mode)))
|
||||
}
|
||||
|
||||
func (this *QProcess) SetStandardOutputFile2(fileName string, mode int) {
|
||||
fileName_ms := miqt_strdupg(fileName)
|
||||
defer C.free(fileName_ms)
|
||||
C.QProcess_SetStandardOutputFile2(this.h, (*C.struct_miqt_string)(fileName_ms), mode)
|
||||
C.QProcess_SetStandardOutputFile2(this.h, (*C.struct_miqt_string)(fileName_ms), (C.int)(mode))
|
||||
}
|
||||
|
||||
func (this *QProcess) SetStandardErrorFile2(fileName string, mode int) {
|
||||
fileName_ms := miqt_strdupg(fileName)
|
||||
defer C.free(fileName_ms)
|
||||
C.QProcess_SetStandardErrorFile2(this.h, (*C.struct_miqt_string)(fileName_ms), mode)
|
||||
C.QProcess_SetStandardErrorFile2(this.h, (*C.struct_miqt_string)(fileName_ms), (C.int)(mode))
|
||||
}
|
||||
|
||||
func (this *QProcess) WaitForStarted1(msecs int) bool {
|
||||
|
@ -110,7 +110,7 @@ func (this *QProgressBar) Alignment() int {
|
||||
}
|
||||
|
||||
func (this *QProgressBar) SetAlignment(alignment int) {
|
||||
C.QProgressBar_SetAlignment(this.h, alignment)
|
||||
C.QProgressBar_SetAlignment(this.h, (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QProgressBar) SizeHint() *QSize {
|
||||
|
@ -61,7 +61,7 @@ func NewQProgressDialog3(parent *QWidget) *QProgressDialog {
|
||||
|
||||
// NewQProgressDialog4 constructs a new QProgressDialog object.
|
||||
func NewQProgressDialog4(parent *QWidget, flags int) *QProgressDialog {
|
||||
ret := C.QProgressDialog_new4(parent.cPointer(), flags)
|
||||
ret := C.QProgressDialog_new4(parent.cPointer(), (C.int)(flags))
|
||||
return newQProgressDialog(ret)
|
||||
}
|
||||
|
||||
@ -81,7 +81,7 @@ func NewQProgressDialog6(labelText string, cancelButtonText string, minimum int,
|
||||
defer C.free(labelText_ms)
|
||||
cancelButtonText_ms := miqt_strdupg(cancelButtonText)
|
||||
defer C.free(cancelButtonText_ms)
|
||||
ret := C.QProgressDialog_new6((*C.struct_miqt_string)(labelText_ms), (*C.struct_miqt_string)(cancelButtonText_ms), (C.int)(minimum), (C.int)(maximum), parent.cPointer(), flags)
|
||||
ret := C.QProgressDialog_new6((*C.struct_miqt_string)(labelText_ms), (*C.struct_miqt_string)(cancelButtonText_ms), (C.int)(minimum), (C.int)(maximum), parent.cPointer(), (C.int)(flags))
|
||||
return newQProgressDialog(ret)
|
||||
}
|
||||
|
||||
|
@ -176,7 +176,7 @@ func (this *QRawFont) AdvancesForGlyphIndexes2(glyphIndexes []uint, layoutFlags
|
||||
}
|
||||
glyphIndexes_ma := &C.struct_miqt_array{len: C.size_t(len(glyphIndexes)), data: unsafe.Pointer(glyphIndexes_CArray)}
|
||||
defer runtime.KeepAlive(unsafe.Pointer(glyphIndexes_ma))
|
||||
var _ma *C.struct_miqt_array = C.QRawFont_AdvancesForGlyphIndexes2(this.h, glyphIndexes_ma, layoutFlags)
|
||||
var _ma *C.struct_miqt_array = C.QRawFont_AdvancesForGlyphIndexes2(this.h, glyphIndexes_ma, (C.int)(layoutFlags))
|
||||
_ret := make([]QPointF, int(_ma.len))
|
||||
_outCast := (*[0xffff]*C.QPointF)(unsafe.Pointer(_ma.data)) // hey ya
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
@ -198,7 +198,7 @@ func (this *QRawFont) AdvancesForGlyphIndexes3(glyphIndexes *uint, advances *QPo
|
||||
}
|
||||
|
||||
func (this *QRawFont) AdvancesForGlyphIndexes4(glyphIndexes *uint, advances *QPointF, numGlyphs int, layoutFlags int) bool {
|
||||
return (bool)(C.QRawFont_AdvancesForGlyphIndexes4(this.h, (*C.uint)(unsafe.Pointer(glyphIndexes)), advances.cPointer(), (C.int)(numGlyphs), layoutFlags))
|
||||
return (bool)(C.QRawFont_AdvancesForGlyphIndexes4(this.h, (*C.uint)(unsafe.Pointer(glyphIndexes)), advances.cPointer(), (C.int)(numGlyphs), (C.int)(layoutFlags)))
|
||||
}
|
||||
|
||||
func (this *QRawFont) AlphaMapForGlyph(glyphIndex uint) *QImage {
|
||||
|
@ -91,7 +91,7 @@ func NewQRegularExpression3(re *QRegularExpression) *QRegularExpression {
|
||||
func NewQRegularExpression4(pattern string, options int) *QRegularExpression {
|
||||
pattern_ms := miqt_strdupg(pattern)
|
||||
defer C.free(pattern_ms)
|
||||
ret := C.QRegularExpression_new4((*C.struct_miqt_string)(pattern_ms), options)
|
||||
ret := C.QRegularExpression_new4((*C.struct_miqt_string)(pattern_ms), (C.int)(options))
|
||||
return newQRegularExpression(ret)
|
||||
}
|
||||
|
||||
@ -100,7 +100,7 @@ func (this *QRegularExpression) PatternOptions() int {
|
||||
}
|
||||
|
||||
func (this *QRegularExpression) SetPatternOptions(options int) {
|
||||
C.QRegularExpression_SetPatternOptions(this.h, options)
|
||||
C.QRegularExpression_SetPatternOptions(this.h, (C.int)(options))
|
||||
}
|
||||
|
||||
func (this *QRegularExpression) OperatorAssign(re *QRegularExpression) {
|
||||
@ -235,7 +235,7 @@ func (this *QRegularExpression) Match3(subject string, offset int, matchType QRe
|
||||
func (this *QRegularExpression) Match4(subject string, offset int, matchType QRegularExpression__MatchType, matchOptions int) *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), matchOptions)
|
||||
_ret := C.QRegularExpression_Match4(this.h, (*C.struct_miqt_string)(subject_ms), (C.int)(offset), (C.int)(matchType), (C.int)(matchOptions))
|
||||
_goptr := newQRegularExpressionMatch(_ret)
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
return _goptr
|
||||
@ -262,7 +262,7 @@ func (this *QRegularExpression) GlobalMatch3(subject string, offset int, matchTy
|
||||
func (this *QRegularExpression) GlobalMatch4(subject string, offset int, matchType QRegularExpression__MatchType, matchOptions int) *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), matchOptions)
|
||||
_ret := C.QRegularExpression_GlobalMatch4(this.h, (*C.struct_miqt_string)(subject_ms), (C.int)(offset), (C.int)(matchType), (C.int)(matchOptions))
|
||||
_goptr := newQRegularExpressionMatchIterator(_ret)
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
return _goptr
|
||||
|
@ -100,7 +100,7 @@ func (this *QSaveFile) SetFileName(name string) {
|
||||
}
|
||||
|
||||
func (this *QSaveFile) Open(flags int) bool {
|
||||
return (bool)(C.QSaveFile_Open(this.h, flags))
|
||||
return (bool)(C.QSaveFile_Open(this.h, (C.int)(flags)))
|
||||
}
|
||||
|
||||
func (this *QSaveFile) Commit() bool {
|
||||
|
@ -214,7 +214,7 @@ func (this *QScreen) OrientationUpdateMask() int {
|
||||
}
|
||||
|
||||
func (this *QScreen) SetOrientationUpdateMask(mask int) {
|
||||
C.QScreen_SetOrientationUpdateMask(this.h, mask)
|
||||
C.QScreen_SetOrientationUpdateMask(this.h, (C.int)(mask))
|
||||
}
|
||||
|
||||
func (this *QScreen) AngleBetween(a ScreenOrientation, b ScreenOrientation) int {
|
||||
|
@ -106,7 +106,7 @@ func (this *QScrollArea) Alignment() int {
|
||||
}
|
||||
|
||||
func (this *QScrollArea) SetAlignment(alignment int) {
|
||||
C.QScrollArea_SetAlignment(this.h, alignment)
|
||||
C.QScrollArea_SetAlignment(this.h, (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QScrollArea) EnsureVisible(x int, y int) {
|
||||
|
@ -620,7 +620,7 @@ func (this *QSortFilterProxyModel) Match4(start *QModelIndex, role int, value *Q
|
||||
}
|
||||
|
||||
func (this *QSortFilterProxyModel) Match5(start *QModelIndex, role int, value *QVariant, hits int, flags int) []QModelIndex {
|
||||
var _ma *C.struct_miqt_array = C.QSortFilterProxyModel_Match5(this.h, start.cPointer(), (C.int)(role), value.cPointer(), (C.int)(hits), flags)
|
||||
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
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
|
@ -63,7 +63,7 @@ func NewQSplashScreen4(pixmap *QPixmap) *QSplashScreen {
|
||||
|
||||
// NewQSplashScreen5 constructs a new QSplashScreen object.
|
||||
func NewQSplashScreen5(pixmap *QPixmap, f int) *QSplashScreen {
|
||||
ret := C.QSplashScreen_new5(pixmap.cPointer(), f)
|
||||
ret := C.QSplashScreen_new5(pixmap.cPointer(), (C.int)(f))
|
||||
return newQSplashScreen(ret)
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ func NewQSplashScreen6(screen *QScreen, pixmap *QPixmap) *QSplashScreen {
|
||||
|
||||
// NewQSplashScreen7 constructs a new QSplashScreen object.
|
||||
func NewQSplashScreen7(screen *QScreen, pixmap *QPixmap, f int) *QSplashScreen {
|
||||
ret := C.QSplashScreen_new7(screen.cPointer(), pixmap.cPointer(), f)
|
||||
ret := C.QSplashScreen_new7(screen.cPointer(), pixmap.cPointer(), (C.int)(f))
|
||||
return newQSplashScreen(ret)
|
||||
}
|
||||
|
||||
@ -87,7 +87,7 @@ func NewQSplashScreen8(parent *QWidget, pixmap *QPixmap) *QSplashScreen {
|
||||
|
||||
// NewQSplashScreen9 constructs a new QSplashScreen object.
|
||||
func NewQSplashScreen9(parent *QWidget, pixmap *QPixmap, f int) *QSplashScreen {
|
||||
ret := C.QSplashScreen_new9(parent.cPointer(), pixmap.cPointer(), f)
|
||||
ret := C.QSplashScreen_new9(parent.cPointer(), pixmap.cPointer(), (C.int)(f))
|
||||
return newQSplashScreen(ret)
|
||||
}
|
||||
|
||||
|
@ -182,7 +182,7 @@ func (this *QStandardItem) TextAlignment() int {
|
||||
}
|
||||
|
||||
func (this *QStandardItem) SetTextAlignment(textAlignment int) {
|
||||
C.QStandardItem_SetTextAlignment(this.h, textAlignment)
|
||||
C.QStandardItem_SetTextAlignment(this.h, (C.int)(textAlignment))
|
||||
}
|
||||
|
||||
func (this *QStandardItem) Background() *QBrush {
|
||||
@ -246,7 +246,7 @@ func (this *QStandardItem) Flags() int {
|
||||
}
|
||||
|
||||
func (this *QStandardItem) SetFlags(flags int) {
|
||||
C.QStandardItem_SetFlags(this.h, flags)
|
||||
C.QStandardItem_SetFlags(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QStandardItem) IsEnabled() bool {
|
||||
@ -1107,7 +1107,7 @@ func (this *QStandardItemModel) TakeItem2(row int, column int) *QStandardItem {
|
||||
func (this *QStandardItemModel) FindItems2(text string, flags int) []*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), flags)
|
||||
var _ma *C.struct_miqt_array = C.QStandardItemModel_FindItems2(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags))
|
||||
_ret := make([]*QStandardItem, int(_ma.len))
|
||||
_outCast := (*[0xffff]*C.QStandardItem)(unsafe.Pointer(_ma.data)) // hey ya
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
@ -1120,7 +1120,7 @@ func (this *QStandardItemModel) FindItems2(text string, flags int) []*QStandardI
|
||||
func (this *QStandardItemModel) FindItems3(text string, flags int, 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), flags, (C.int)(column))
|
||||
var _ma *C.struct_miqt_array = C.QStandardItemModel_FindItems3(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags), (C.int)(column))
|
||||
_ret := make([]*QStandardItem, int(_ma.len))
|
||||
_outCast := (*[0xffff]*C.QStandardItem)(unsafe.Pointer(_ma.data)) // hey ya
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
|
@ -144,7 +144,7 @@ func QStandardPaths_IsTestModeEnabled() bool {
|
||||
func QStandardPaths_Locate3(typeVal QStandardPaths__StandardLocation, fileName string, options int) string {
|
||||
fileName_ms := miqt_strdupg(fileName)
|
||||
defer C.free(fileName_ms)
|
||||
var _ms *C.struct_miqt_string = C.QStandardPaths_Locate3((C.int)(typeVal), (*C.struct_miqt_string)(fileName_ms), options)
|
||||
var _ms *C.struct_miqt_string = C.QStandardPaths_Locate3((C.int)(typeVal), (*C.struct_miqt_string)(fileName_ms), (C.int)(options))
|
||||
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
||||
C.free(unsafe.Pointer(_ms))
|
||||
return _ret
|
||||
@ -153,7 +153,7 @@ func QStandardPaths_Locate3(typeVal QStandardPaths__StandardLocation, fileName s
|
||||
func QStandardPaths_LocateAll3(typeVal QStandardPaths__StandardLocation, fileName string, options int) []string {
|
||||
fileName_ms := miqt_strdupg(fileName)
|
||||
defer C.free(fileName_ms)
|
||||
var _ma *C.struct_miqt_array = C.QStandardPaths_LocateAll3((C.int)(typeVal), (*C.struct_miqt_string)(fileName_ms), options)
|
||||
var _ma *C.struct_miqt_array = C.QStandardPaths_LocateAll3((C.int)(typeVal), (*C.struct_miqt_string)(fileName_ms), (C.int)(options))
|
||||
_ret := make([]string, int(_ma.len))
|
||||
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
|
@ -823,11 +823,11 @@ func QStyle_SliderValueFromPosition(min int, max int, pos int, space int) int {
|
||||
}
|
||||
|
||||
func QStyle_VisualAlignment(direction LayoutDirection, alignment int) int {
|
||||
return (int)(C.QStyle_VisualAlignment((C.int)(direction), alignment))
|
||||
return (int)(C.QStyle_VisualAlignment((C.int)(direction), (C.int)(alignment)))
|
||||
}
|
||||
|
||||
func QStyle_AlignedRect(direction LayoutDirection, alignment int, size *QSize, rectangle *QRect) *QRect {
|
||||
_ret := C.QStyle_AlignedRect((C.int)(direction), alignment, size.cPointer(), rectangle.cPointer())
|
||||
_ret := C.QStyle_AlignedRect((C.int)(direction), (C.int)(alignment), size.cPointer(), rectangle.cPointer())
|
||||
_goptr := newQRect(_ret)
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
return _goptr
|
||||
@ -838,7 +838,7 @@ func (this *QStyle) LayoutSpacing(control1 QSizePolicy__ControlType, control2 QS
|
||||
}
|
||||
|
||||
func (this *QStyle) CombinedLayoutSpacing(controls1 int, controls2 int, orientation Orientation) int {
|
||||
return (int)(C.QStyle_CombinedLayoutSpacing(this.h, controls1, controls2, (C.int)(orientation)))
|
||||
return (int)(C.QStyle_CombinedLayoutSpacing(this.h, (C.int)(controls1), (C.int)(controls2), (C.int)(orientation)))
|
||||
}
|
||||
|
||||
func (this *QStyle) Proxy() *QStyle {
|
||||
@ -997,11 +997,11 @@ func (this *QStyle) LayoutSpacing5(control1 QSizePolicy__ControlType, control2 Q
|
||||
}
|
||||
|
||||
func (this *QStyle) CombinedLayoutSpacing4(controls1 int, controls2 int, orientation Orientation, option *QStyleOption) int {
|
||||
return (int)(C.QStyle_CombinedLayoutSpacing4(this.h, controls1, controls2, (C.int)(orientation), option.cPointer()))
|
||||
return (int)(C.QStyle_CombinedLayoutSpacing4(this.h, (C.int)(controls1), (C.int)(controls2), (C.int)(orientation), option.cPointer()))
|
||||
}
|
||||
|
||||
func (this *QStyle) CombinedLayoutSpacing5(controls1 int, controls2 int, orientation Orientation, option *QStyleOption, widget *QWidget) int {
|
||||
return (int)(C.QStyle_CombinedLayoutSpacing5(this.h, controls1, controls2, (C.int)(orientation), option.cPointer(), widget.cPointer()))
|
||||
return (int)(C.QStyle_CombinedLayoutSpacing5(this.h, (C.int)(controls1), (C.int)(controls2), (C.int)(orientation), option.cPointer(), widget.cPointer()))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
|
@ -85,7 +85,7 @@ func NewQSurfaceFormat() *QSurfaceFormat {
|
||||
|
||||
// NewQSurfaceFormat2 constructs a new QSurfaceFormat object.
|
||||
func NewQSurfaceFormat2(options int) *QSurfaceFormat {
|
||||
ret := C.QSurfaceFormat_new2(options)
|
||||
ret := C.QSurfaceFormat_new2((C.int)(options))
|
||||
return newQSurfaceFormat(ret)
|
||||
}
|
||||
|
||||
@ -212,15 +212,15 @@ func (this *QSurfaceFormat) SetStereo(enable bool) {
|
||||
}
|
||||
|
||||
func (this *QSurfaceFormat) SetOption(opt int) {
|
||||
C.QSurfaceFormat_SetOption(this.h, opt)
|
||||
C.QSurfaceFormat_SetOption(this.h, (C.int)(opt))
|
||||
}
|
||||
|
||||
func (this *QSurfaceFormat) TestOption(opt int) bool {
|
||||
return (bool)(C.QSurfaceFormat_TestOption(this.h, opt))
|
||||
return (bool)(C.QSurfaceFormat_TestOption(this.h, (C.int)(opt)))
|
||||
}
|
||||
|
||||
func (this *QSurfaceFormat) SetOptions(options int) {
|
||||
C.QSurfaceFormat_SetOptions(this.h, options)
|
||||
C.QSurfaceFormat_SetOptions(this.h, (C.int)(options))
|
||||
}
|
||||
|
||||
func (this *QSurfaceFormat) SetOptionWithOption(option QSurfaceFormat__FormatOption) {
|
||||
|
@ -204,7 +204,7 @@ func (this *QTableWidgetItem) Flags() int {
|
||||
}
|
||||
|
||||
func (this *QTableWidgetItem) SetFlags(flags int) {
|
||||
C.QTableWidgetItem_SetFlags(this.h, flags)
|
||||
C.QTableWidgetItem_SetFlags(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QTableWidgetItem) Text() string {
|
||||
@ -571,7 +571,7 @@ func (this *QTableWidget) SetCurrentItem(item *QTableWidgetItem) {
|
||||
}
|
||||
|
||||
func (this *QTableWidget) SetCurrentItem2(item *QTableWidgetItem, command int) {
|
||||
C.QTableWidget_SetCurrentItem2(this.h, item.cPointer(), command)
|
||||
C.QTableWidget_SetCurrentItem2(this.h, item.cPointer(), (C.int)(command))
|
||||
}
|
||||
|
||||
func (this *QTableWidget) SetCurrentCell(row int, column int) {
|
||||
@ -579,7 +579,7 @@ func (this *QTableWidget) SetCurrentCell(row int, column int) {
|
||||
}
|
||||
|
||||
func (this *QTableWidget) SetCurrentCell2(row int, column int, command int) {
|
||||
C.QTableWidget_SetCurrentCell2(this.h, (C.int)(row), (C.int)(column), command)
|
||||
C.QTableWidget_SetCurrentCell2(this.h, (C.int)(row), (C.int)(column), (C.int)(command))
|
||||
}
|
||||
|
||||
func (this *QTableWidget) SortItems(column int) {
|
||||
@ -662,7 +662,7 @@ func (this *QTableWidget) SelectedItems() []*QTableWidgetItem {
|
||||
func (this *QTableWidget) FindItems(text string, flags int) []*QTableWidgetItem {
|
||||
text_ms := miqt_strdupg(text)
|
||||
defer C.free(text_ms)
|
||||
var _ma *C.struct_miqt_array = C.QTableWidget_FindItems(this.h, (*C.struct_miqt_string)(text_ms), flags)
|
||||
var _ma *C.struct_miqt_array = C.QTableWidget_FindItems(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags))
|
||||
_ret := make([]*QTableWidgetItem, int(_ma.len))
|
||||
_outCast := (*[0xffff]*C.QTableWidgetItem)(unsafe.Pointer(_ma.data)) // hey ya
|
||||
for i := 0; i < int(_ma.len); i++ {
|
||||
|
@ -208,11 +208,11 @@ func (this *QTextCodec) FromUnicode3(in *QChar, length int, state *QTextCodec__C
|
||||
}
|
||||
|
||||
func (this *QTextCodec) MakeDecoder1(flags int) *QTextDecoder {
|
||||
return newQTextDecoder_U(unsafe.Pointer(C.QTextCodec_MakeDecoder1(this.h, flags)))
|
||||
return newQTextDecoder_U(unsafe.Pointer(C.QTextCodec_MakeDecoder1(this.h, (C.int)(flags))))
|
||||
}
|
||||
|
||||
func (this *QTextCodec) MakeEncoder1(flags int) *QTextEncoder {
|
||||
return newQTextEncoder_U(unsafe.Pointer(C.QTextCodec_MakeEncoder1(this.h, flags)))
|
||||
return newQTextEncoder_U(unsafe.Pointer(C.QTextCodec_MakeEncoder1(this.h, (C.int)(flags))))
|
||||
}
|
||||
|
||||
type QTextEncoder struct {
|
||||
@ -245,7 +245,7 @@ func NewQTextEncoder(codec *QTextCodec) *QTextEncoder {
|
||||
|
||||
// NewQTextEncoder2 constructs a new QTextEncoder object.
|
||||
func NewQTextEncoder2(codec *QTextCodec, flags int) *QTextEncoder {
|
||||
ret := C.QTextEncoder_new2(codec.cPointer(), flags)
|
||||
ret := C.QTextEncoder_new2(codec.cPointer(), (C.int)(flags))
|
||||
return newQTextEncoder(ret)
|
||||
}
|
||||
|
||||
@ -313,7 +313,7 @@ func NewQTextDecoder(codec *QTextCodec) *QTextDecoder {
|
||||
|
||||
// NewQTextDecoder2 constructs a new QTextDecoder object.
|
||||
func NewQTextDecoder2(codec *QTextCodec, flags int) *QTextDecoder {
|
||||
ret := C.QTextDecoder_new2(codec.cPointer(), flags)
|
||||
ret := C.QTextDecoder_new2(codec.cPointer(), (C.int)(flags))
|
||||
return newQTextDecoder(ret)
|
||||
}
|
||||
|
||||
@ -385,7 +385,7 @@ func NewQTextCodec__ConverterState() *QTextCodec__ConverterState {
|
||||
|
||||
// NewQTextCodec__ConverterState2 constructs a new QTextCodec::ConverterState object.
|
||||
func NewQTextCodec__ConverterState2(f int) *QTextCodec__ConverterState {
|
||||
ret := C.QTextCodec__ConverterState_new2(f)
|
||||
ret := C.QTextCodec__ConverterState_new2((C.int)(f))
|
||||
return newQTextCodec__ConverterState(ret)
|
||||
}
|
||||
|
||||
|
@ -858,7 +858,7 @@ func (this *QTextDocument) ToHtml1(encoding *QByteArray) string {
|
||||
}
|
||||
|
||||
func (this *QTextDocument) ToMarkdown1(features int) string {
|
||||
var _ms *C.struct_miqt_string = C.QTextDocument_ToMarkdown1(this.h, features)
|
||||
var _ms *C.struct_miqt_string = C.QTextDocument_ToMarkdown1(this.h, (C.int)(features))
|
||||
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
||||
C.free(unsafe.Pointer(_ms))
|
||||
return _ret
|
||||
@ -867,7 +867,7 @@ func (this *QTextDocument) ToMarkdown1(features int) string {
|
||||
func (this *QTextDocument) SetMarkdown2(markdown string, features int) {
|
||||
markdown_ms := miqt_strdupg(markdown)
|
||||
defer C.free(markdown_ms)
|
||||
C.QTextDocument_SetMarkdown2(this.h, (*C.struct_miqt_string)(markdown_ms), features)
|
||||
C.QTextDocument_SetMarkdown2(this.h, (*C.struct_miqt_string)(markdown_ms), (C.int)(features))
|
||||
}
|
||||
|
||||
func (this *QTextDocument) Find22(subString string, from int) *QTextCursor {
|
||||
@ -882,7 +882,7 @@ func (this *QTextDocument) Find22(subString string, from int) *QTextCursor {
|
||||
func (this *QTextDocument) Find32(subString string, from int, options int) *QTextCursor {
|
||||
subString_ms := miqt_strdupg(subString)
|
||||
defer C.free(subString_ms)
|
||||
_ret := C.QTextDocument_Find32(this.h, (*C.struct_miqt_string)(subString_ms), (C.int)(from), options)
|
||||
_ret := C.QTextDocument_Find32(this.h, (*C.struct_miqt_string)(subString_ms), (C.int)(from), (C.int)(options))
|
||||
_goptr := newQTextCursor(_ret)
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
return _goptr
|
||||
@ -891,7 +891,7 @@ func (this *QTextDocument) Find32(subString string, from int, options int) *QTex
|
||||
func (this *QTextDocument) Find33(subString string, cursor *QTextCursor, options int) *QTextCursor {
|
||||
subString_ms := miqt_strdupg(subString)
|
||||
defer C.free(subString_ms)
|
||||
_ret := C.QTextDocument_Find33(this.h, (*C.struct_miqt_string)(subString_ms), cursor.cPointer(), options)
|
||||
_ret := C.QTextDocument_Find33(this.h, (*C.struct_miqt_string)(subString_ms), cursor.cPointer(), (C.int)(options))
|
||||
_goptr := newQTextCursor(_ret)
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
return _goptr
|
||||
@ -905,14 +905,14 @@ func (this *QTextDocument) Find23(expr *QRegExp, from int) *QTextCursor {
|
||||
}
|
||||
|
||||
func (this *QTextDocument) Find34(expr *QRegExp, from int, options int) *QTextCursor {
|
||||
_ret := C.QTextDocument_Find34(this.h, expr.cPointer(), (C.int)(from), options)
|
||||
_ret := C.QTextDocument_Find34(this.h, expr.cPointer(), (C.int)(from), (C.int)(options))
|
||||
_goptr := newQTextCursor(_ret)
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
return _goptr
|
||||
}
|
||||
|
||||
func (this *QTextDocument) Find35(expr *QRegExp, cursor *QTextCursor, options int) *QTextCursor {
|
||||
_ret := C.QTextDocument_Find35(this.h, expr.cPointer(), cursor.cPointer(), options)
|
||||
_ret := C.QTextDocument_Find35(this.h, expr.cPointer(), cursor.cPointer(), (C.int)(options))
|
||||
_goptr := newQTextCursor(_ret)
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
return _goptr
|
||||
@ -926,14 +926,14 @@ func (this *QTextDocument) Find24(expr *QRegularExpression, from int) *QTextCurs
|
||||
}
|
||||
|
||||
func (this *QTextDocument) Find36(expr *QRegularExpression, from int, options int) *QTextCursor {
|
||||
_ret := C.QTextDocument_Find36(this.h, expr.cPointer(), (C.int)(from), options)
|
||||
_ret := C.QTextDocument_Find36(this.h, expr.cPointer(), (C.int)(from), (C.int)(options))
|
||||
_goptr := newQTextCursor(_ret)
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
return _goptr
|
||||
}
|
||||
|
||||
func (this *QTextDocument) Find37(expr *QRegularExpression, cursor *QTextCursor, options int) *QTextCursor {
|
||||
_ret := C.QTextDocument_Find37(this.h, expr.cPointer(), cursor.cPointer(), options)
|
||||
_ret := C.QTextDocument_Find37(this.h, expr.cPointer(), cursor.cPointer(), (C.int)(options))
|
||||
_goptr := newQTextCursor(_ret)
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
return _goptr
|
||||
|
@ -145,7 +145,7 @@ func (this *QTextEdit) SetReadOnly(ro bool) {
|
||||
}
|
||||
|
||||
func (this *QTextEdit) SetTextInteractionFlags(flags int) {
|
||||
C.QTextEdit_SetTextInteractionFlags(this.h, flags)
|
||||
C.QTextEdit_SetTextInteractionFlags(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QTextEdit) TextInteractionFlags() int {
|
||||
@ -220,7 +220,7 @@ func (this *QTextEdit) AutoFormatting() int {
|
||||
}
|
||||
|
||||
func (this *QTextEdit) SetAutoFormatting(features int) {
|
||||
C.QTextEdit_SetAutoFormatting(this.h, features)
|
||||
C.QTextEdit_SetAutoFormatting(this.h, (C.int)(features))
|
||||
}
|
||||
|
||||
func (this *QTextEdit) TabChangesFocus() bool {
|
||||
@ -485,7 +485,7 @@ func (this *QTextEdit) SetCurrentFont(f *QFont) {
|
||||
}
|
||||
|
||||
func (this *QTextEdit) SetAlignment(a int) {
|
||||
C.QTextEdit_SetAlignment(this.h, a)
|
||||
C.QTextEdit_SetAlignment(this.h, (C.int)(a))
|
||||
}
|
||||
|
||||
func (this *QTextEdit) SetPlainText(text string) {
|
||||
@ -750,19 +750,19 @@ func QTextEdit_TrUtf83(s string, c string, n int) string {
|
||||
func (this *QTextEdit) Find22(exp string, options int) bool {
|
||||
exp_ms := miqt_strdupg(exp)
|
||||
defer C.free(exp_ms)
|
||||
return (bool)(C.QTextEdit_Find22(this.h, (*C.struct_miqt_string)(exp_ms), options))
|
||||
return (bool)(C.QTextEdit_Find22(this.h, (*C.struct_miqt_string)(exp_ms), (C.int)(options)))
|
||||
}
|
||||
|
||||
func (this *QTextEdit) Find23(exp *QRegExp, options int) bool {
|
||||
return (bool)(C.QTextEdit_Find23(this.h, exp.cPointer(), options))
|
||||
return (bool)(C.QTextEdit_Find23(this.h, exp.cPointer(), (C.int)(options)))
|
||||
}
|
||||
|
||||
func (this *QTextEdit) Find24(exp *QRegularExpression, options int) bool {
|
||||
return (bool)(C.QTextEdit_Find24(this.h, exp.cPointer(), options))
|
||||
return (bool)(C.QTextEdit_Find24(this.h, exp.cPointer(), (C.int)(options)))
|
||||
}
|
||||
|
||||
func (this *QTextEdit) ToMarkdown1(features int) string {
|
||||
var _ms *C.struct_miqt_string = C.QTextEdit_ToMarkdown1(this.h, features)
|
||||
var _ms *C.struct_miqt_string = C.QTextEdit_ToMarkdown1(this.h, (C.int)(features))
|
||||
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
||||
C.free(unsafe.Pointer(_ms))
|
||||
return _ret
|
||||
|
@ -1052,7 +1052,7 @@ func (this *QTextBlockFormat) IsValid() bool {
|
||||
}
|
||||
|
||||
func (this *QTextBlockFormat) SetAlignment(alignment int) {
|
||||
C.QTextBlockFormat_SetAlignment(this.h, alignment)
|
||||
C.QTextBlockFormat_SetAlignment(this.h, (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QTextBlockFormat) Alignment() int {
|
||||
@ -1140,7 +1140,7 @@ func (this *QTextBlockFormat) NonBreakableLines() bool {
|
||||
}
|
||||
|
||||
func (this *QTextBlockFormat) SetPageBreakPolicy(flags int) {
|
||||
C.QTextBlockFormat_SetPageBreakPolicy(this.h, flags)
|
||||
C.QTextBlockFormat_SetPageBreakPolicy(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QTextBlockFormat) PageBreakPolicy() int {
|
||||
@ -1531,7 +1531,7 @@ func (this *QTextFrameFormat) Height() *QTextLength {
|
||||
}
|
||||
|
||||
func (this *QTextFrameFormat) SetPageBreakPolicy(flags int) {
|
||||
C.QTextFrameFormat_SetPageBreakPolicy(this.h, flags)
|
||||
C.QTextFrameFormat_SetPageBreakPolicy(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QTextFrameFormat) PageBreakPolicy() int {
|
||||
@ -1640,7 +1640,7 @@ func (this *QTextTableFormat) SetCellPadding(padding float64) {
|
||||
}
|
||||
|
||||
func (this *QTextTableFormat) SetAlignment(alignment int) {
|
||||
C.QTextTableFormat_SetAlignment(this.h, alignment)
|
||||
C.QTextTableFormat_SetAlignment(this.h, (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QTextTableFormat) Alignment() int {
|
||||
|
@ -73,7 +73,7 @@ func NewQTextOption() *QTextOption {
|
||||
|
||||
// NewQTextOption2 constructs a new QTextOption object.
|
||||
func NewQTextOption2(alignment int) *QTextOption {
|
||||
ret := C.QTextOption_new2(alignment)
|
||||
ret := C.QTextOption_new2((C.int)(alignment))
|
||||
return newQTextOption(ret)
|
||||
}
|
||||
|
||||
@ -88,7 +88,7 @@ func (this *QTextOption) OperatorAssign(o *QTextOption) {
|
||||
}
|
||||
|
||||
func (this *QTextOption) SetAlignment(alignment int) {
|
||||
C.QTextOption_SetAlignment(this.h, alignment)
|
||||
C.QTextOption_SetAlignment(this.h, (C.int)(alignment))
|
||||
}
|
||||
|
||||
func (this *QTextOption) Alignment() int {
|
||||
@ -112,7 +112,7 @@ func (this *QTextOption) WrapMode() QTextOption__WrapMode {
|
||||
}
|
||||
|
||||
func (this *QTextOption) SetFlags(flags int) {
|
||||
C.QTextOption_SetFlags(this.h, flags)
|
||||
C.QTextOption_SetFlags(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QTextOption) Flags() int {
|
||||
|
@ -97,13 +97,13 @@ func NewQTextStream4(array *QByteArray) *QTextStream {
|
||||
|
||||
// NewQTextStream5 constructs a new QTextStream object.
|
||||
func NewQTextStream5(array *QByteArray, openMode int) *QTextStream {
|
||||
ret := C.QTextStream_new5(array.cPointer(), openMode)
|
||||
ret := C.QTextStream_new5(array.cPointer(), (C.int)(openMode))
|
||||
return newQTextStream(ret)
|
||||
}
|
||||
|
||||
// NewQTextStream6 constructs a new QTextStream object.
|
||||
func NewQTextStream6(array *QByteArray, openMode int) *QTextStream {
|
||||
ret := C.QTextStream_new6(array.cPointer(), openMode)
|
||||
ret := C.QTextStream_new6(array.cPointer(), (C.int)(openMode))
|
||||
return newQTextStream(ret)
|
||||
}
|
||||
|
||||
@ -248,7 +248,7 @@ func (this *QTextStream) FieldWidth() int {
|
||||
}
|
||||
|
||||
func (this *QTextStream) SetNumberFlags(flags int) {
|
||||
C.QTextStream_SetNumberFlags(this.h, flags)
|
||||
C.QTextStream_SetNumberFlags(this.h, (C.int)(flags))
|
||||
}
|
||||
|
||||
func (this *QTextStream) NumberFlags() int {
|
||||
|
@ -96,7 +96,7 @@ func (this *QToolBar) IsMovable() bool {
|
||||
}
|
||||
|
||||
func (this *QToolBar) SetAllowedAreas(areas int) {
|
||||
C.QToolBar_SetAllowedAreas(this.h, areas)
|
||||
C.QToolBar_SetAllowedAreas(this.h, (C.int)(areas))
|
||||
}
|
||||
|
||||
func (this *QToolBar) AllowedAreas() int {
|
||||
@ -242,7 +242,7 @@ func miqt_exec_callback_QToolBar_MovableChanged(cb *C.void, movable C.bool) {
|
||||
}
|
||||
|
||||
func (this *QToolBar) AllowedAreasChanged(allowedAreas int) {
|
||||
C.QToolBar_AllowedAreasChanged(this.h, allowedAreas)
|
||||
C.QToolBar_AllowedAreasChanged(this.h, (C.int)(allowedAreas))
|
||||
}
|
||||
func (this *QToolBar) OnAllowedAreasChanged(slot func(allowedAreas int)) {
|
||||
C.QToolBar_connect_AllowedAreasChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user