mirror of
https://github.com/mappu/miqt.git
synced 2025-01-30 10:00:22 +00:00
Merge pull request #148 from mappu/miqt-zero-length-slices
Add checks for zero-length byte slices
This commit is contained in:
commit
6b421799fb
@ -333,7 +333,11 @@ func (gfs *goFileState) emitParameterGo2CABIForwarding(p CppParameter) (preamble
|
||||
|
||||
gfs.imports["unsafe"] = struct{}{}
|
||||
preamble += nameprefix + "_alias := C.struct_miqt_string{}\n"
|
||||
preamble += "if len(" + p.ParameterName + ") > 0 {\n"
|
||||
preamble += nameprefix + "_alias.data = (*C.char)(unsafe.Pointer(&" + p.ParameterName + "[0]))\n"
|
||||
preamble += "} else {\n"
|
||||
preamble += nameprefix + "_alias.data = (*C.char)(unsafe.Pointer(nil))\n"
|
||||
preamble += "}\n"
|
||||
preamble += nameprefix + "_alias.len = C.size_t(len(" + p.ParameterName + "))\n"
|
||||
|
||||
rvalue = nameprefix + "_alias"
|
||||
|
@ -106,6 +106,17 @@ func testMarshalling(t *testing.T) {
|
||||
}
|
||||
})
|
||||
|
||||
t.Run("QByteArray of zero length", func(t *testing.T) {
|
||||
|
||||
input := ""
|
||||
ba := qt.QFile_EncodeName(input)
|
||||
got := qt.QFile_DecodeName(ba)
|
||||
|
||||
if input != got {
|
||||
t.Fatalf("QByteArray: expected %q, got %q", input, got)
|
||||
}
|
||||
})
|
||||
|
||||
// QMap
|
||||
t.Run("QMap", func(t *testing.T) {
|
||||
input := make(map[string]qt.QVariant)
|
||||
|
@ -6022,7 +6022,11 @@ func miqt_exec_callback_ScintillaEditBase_UpdateUi(cb C.intptr_t, updated C.int)
|
||||
|
||||
func (this *ScintillaEditBase) Modified(typeVal Scintilla__ModificationFlags, position uintptr, length uintptr, linesAdded uintptr, text []byte, line uintptr, foldNow Scintilla__FoldLevel, foldPrev Scintilla__FoldLevel) {
|
||||
text_alias := C.struct_miqt_string{}
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(&text[0]))
|
||||
if len(text) > 0 {
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(&text[0]))
|
||||
} else {
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
text_alias.len = C.size_t(len(text))
|
||||
C.ScintillaEditBase_Modified(this.h, (C.int)(typeVal), (C.intptr_t)(position), (C.intptr_t)(length), (C.intptr_t)(linesAdded), text_alias, (C.intptr_t)(line), (C.int)(foldNow), (C.int)(foldPrev))
|
||||
}
|
||||
@ -7691,7 +7695,11 @@ func miqt_exec_callback_ScintillaEditBase_HideEvent(self *C.ScintillaEditBase, c
|
||||
|
||||
func (this *ScintillaEditBase) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.ScintillaEditBase_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
@ -8157,7 +8165,11 @@ func (this *ScintillaDocument) IsReadOnly() bool {
|
||||
|
||||
func (this *ScintillaDocument) InsertString(position int, str []byte) {
|
||||
str_alias := C.struct_miqt_string{}
|
||||
str_alias.data = (*C.char)(unsafe.Pointer(&str[0]))
|
||||
if len(str) > 0 {
|
||||
str_alias.data = (*C.char)(unsafe.Pointer(&str[0]))
|
||||
} else {
|
||||
str_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
str_alias.len = C.size_t(len(str))
|
||||
C.ScintillaDocument_InsertString(this.h, (C.int)(position), str_alias)
|
||||
}
|
||||
@ -8292,7 +8304,11 @@ func miqt_exec_callback_ScintillaDocument_SavePoint(cb C.intptr_t, atSavePoint C
|
||||
|
||||
func (this *ScintillaDocument) Modified(position int, modification_type int, text []byte, length int, linesAdded int, line int, foldLevelNow int, foldLevelPrev int) {
|
||||
text_alias := C.struct_miqt_string{}
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(&text[0]))
|
||||
if len(text) > 0 {
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(&text[0]))
|
||||
} else {
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
text_alias.len = C.size_t(len(text))
|
||||
C.ScintillaDocument_Modified(this.h, (C.int)(position), (C.int)(modification_type), text_alias, (C.int)(length), (C.int)(linesAdded), (C.int)(line), (C.int)(foldLevelNow), (C.int)(foldLevelPrev))
|
||||
}
|
||||
@ -13361,7 +13377,11 @@ func miqt_exec_callback_ScintillaEdit_HideEvent(self *C.ScintillaEdit, cb C.intp
|
||||
|
||||
func (this *ScintillaEdit) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.ScintillaEdit_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -4248,7 +4248,11 @@ func miqt_exec_callback_QsciScintilla_FromMimeData(self *C.QsciScintilla, cb C.i
|
||||
|
||||
virtualReturn := gofunc((&QsciScintilla{h: self}).callVirtualBase_FromMimeData, slotval1, slotval2)
|
||||
virtualReturn_alias := C.struct_miqt_string{}
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn[0]))
|
||||
if len(virtualReturn) > 0 {
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn[0]))
|
||||
} else {
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
virtualReturn_alias.len = C.size_t(len(virtualReturn))
|
||||
|
||||
return virtualReturn_alias
|
||||
@ -4257,7 +4261,11 @@ func miqt_exec_callback_QsciScintilla_FromMimeData(self *C.QsciScintilla, cb C.i
|
||||
|
||||
func (this *QsciScintilla) callVirtualBase_ToMimeData(text []byte, rectangular bool) *qt.QMimeData {
|
||||
text_alias := C.struct_miqt_string{}
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(&text[0]))
|
||||
if len(text) > 0 {
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(&text[0]))
|
||||
} else {
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
text_alias.len = C.size_t(len(text))
|
||||
|
||||
return qt.UnsafeNewQMimeData(unsafe.Pointer(C.QsciScintilla_virtualbase_ToMimeData(unsafe.Pointer(this.h), text_alias, (C.bool)(rectangular))))
|
||||
@ -5270,7 +5278,11 @@ func miqt_exec_callback_QsciScintilla_HideEvent(self *C.QsciScintilla, cb C.intp
|
||||
|
||||
func (this *QsciScintilla) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QsciScintilla_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -2253,7 +2253,11 @@ func miqt_exec_callback_QsciScintillaBase_FromMimeData(self *C.QsciScintillaBase
|
||||
|
||||
virtualReturn := gofunc((&QsciScintillaBase{h: self}).callVirtualBase_FromMimeData, slotval1, slotval2)
|
||||
virtualReturn_alias := C.struct_miqt_string{}
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn[0]))
|
||||
if len(virtualReturn) > 0 {
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn[0]))
|
||||
} else {
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
virtualReturn_alias.len = C.size_t(len(virtualReturn))
|
||||
|
||||
return virtualReturn_alias
|
||||
@ -2262,7 +2266,11 @@ func miqt_exec_callback_QsciScintillaBase_FromMimeData(self *C.QsciScintillaBase
|
||||
|
||||
func (this *QsciScintillaBase) callVirtualBase_ToMimeData(text []byte, rectangular bool) *qt.QMimeData {
|
||||
text_alias := C.struct_miqt_string{}
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(&text[0]))
|
||||
if len(text) > 0 {
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(&text[0]))
|
||||
} else {
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
text_alias.len = C.size_t(len(text))
|
||||
|
||||
return qt.UnsafeNewQMimeData(unsafe.Pointer(C.QsciScintillaBase_virtualbase_ToMimeData(unsafe.Pointer(this.h), text_alias, (C.bool)(rectangular))))
|
||||
@ -3381,7 +3389,11 @@ func miqt_exec_callback_QsciScintillaBase_HideEvent(self *C.QsciScintillaBase, c
|
||||
|
||||
func (this *QsciScintillaBase) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QsciScintillaBase_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -4217,7 +4217,11 @@ func miqt_exec_callback_QsciScintilla_FromMimeData(self *C.QsciScintilla, cb C.i
|
||||
|
||||
virtualReturn := gofunc((&QsciScintilla{h: self}).callVirtualBase_FromMimeData, slotval1, slotval2)
|
||||
virtualReturn_alias := C.struct_miqt_string{}
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn[0]))
|
||||
if len(virtualReturn) > 0 {
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn[0]))
|
||||
} else {
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
virtualReturn_alias.len = C.size_t(len(virtualReturn))
|
||||
|
||||
return virtualReturn_alias
|
||||
@ -4226,7 +4230,11 @@ func miqt_exec_callback_QsciScintilla_FromMimeData(self *C.QsciScintilla, cb C.i
|
||||
|
||||
func (this *QsciScintilla) callVirtualBase_ToMimeData(text []byte, rectangular bool) *qt6.QMimeData {
|
||||
text_alias := C.struct_miqt_string{}
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(&text[0]))
|
||||
if len(text) > 0 {
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(&text[0]))
|
||||
} else {
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
text_alias.len = C.size_t(len(text))
|
||||
|
||||
return qt6.UnsafeNewQMimeData(unsafe.Pointer(C.QsciScintilla_virtualbase_ToMimeData(unsafe.Pointer(this.h), text_alias, (C.bool)(rectangular))))
|
||||
@ -5265,7 +5273,11 @@ func miqt_exec_callback_QsciScintilla_HideEvent(self *C.QsciScintilla, cb C.intp
|
||||
|
||||
func (this *QsciScintilla) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *uintptr) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QsciScintilla_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.intptr_t)(unsafe.Pointer(result))))
|
||||
|
@ -2222,7 +2222,11 @@ func miqt_exec_callback_QsciScintillaBase_FromMimeData(self *C.QsciScintillaBase
|
||||
|
||||
virtualReturn := gofunc((&QsciScintillaBase{h: self}).callVirtualBase_FromMimeData, slotval1, slotval2)
|
||||
virtualReturn_alias := C.struct_miqt_string{}
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn[0]))
|
||||
if len(virtualReturn) > 0 {
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn[0]))
|
||||
} else {
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
virtualReturn_alias.len = C.size_t(len(virtualReturn))
|
||||
|
||||
return virtualReturn_alias
|
||||
@ -2231,7 +2235,11 @@ func miqt_exec_callback_QsciScintillaBase_FromMimeData(self *C.QsciScintillaBase
|
||||
|
||||
func (this *QsciScintillaBase) callVirtualBase_ToMimeData(text []byte, rectangular bool) *qt6.QMimeData {
|
||||
text_alias := C.struct_miqt_string{}
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(&text[0]))
|
||||
if len(text) > 0 {
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(&text[0]))
|
||||
} else {
|
||||
text_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
text_alias.len = C.size_t(len(text))
|
||||
|
||||
return qt6.UnsafeNewQMimeData(unsafe.Pointer(C.QsciScintillaBase_virtualbase_ToMimeData(unsafe.Pointer(this.h), text_alias, (C.bool)(rectangular))))
|
||||
@ -3376,7 +3384,11 @@ func miqt_exec_callback_QsciScintillaBase_HideEvent(self *C.QsciScintillaBase, c
|
||||
|
||||
func (this *QsciScintillaBase) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *uintptr) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QsciScintillaBase_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.intptr_t)(unsafe.Pointer(result))))
|
||||
|
@ -97,7 +97,11 @@ func NewQCborStreamReader3(data *byte, lenVal int64) *QCborStreamReader {
|
||||
// NewQCborStreamReader4 constructs a new QCborStreamReader object.
|
||||
func NewQCborStreamReader4(data []byte) *QCborStreamReader {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
|
||||
return newQCborStreamReader(C.QCborStreamReader_new4(data_alias))
|
||||
@ -119,7 +123,11 @@ func (this *QCborStreamReader) Device() *qt.QIODevice {
|
||||
|
||||
func (this *QCborStreamReader) AddData(data []byte) {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
C.QCborStreamReader_AddData(this.h, data_alias)
|
||||
}
|
||||
|
@ -74,7 +74,11 @@ func (this *QCborStreamWriter) AppendWithQCborNegativeInteger(n QCborNegativeInt
|
||||
|
||||
func (this *QCborStreamWriter) AppendWithBa(ba []byte) {
|
||||
ba_alias := C.struct_miqt_string{}
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(&ba[0]))
|
||||
if len(ba) > 0 {
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(&ba[0]))
|
||||
} else {
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
ba_alias.len = C.size_t(len(ba))
|
||||
C.QCborStreamWriter_AppendWithBa(this.h, ba_alias)
|
||||
}
|
||||
|
@ -190,7 +190,11 @@ func NewQCborValue8(st QCborSimpleType) *QCborValue {
|
||||
// NewQCborValue9 constructs a new QCborValue object.
|
||||
func NewQCborValue9(ba []byte) *QCborValue {
|
||||
ba_alias := C.struct_miqt_string{}
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(&ba[0]))
|
||||
if len(ba) > 0 {
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(&ba[0]))
|
||||
} else {
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
ba_alias.len = C.size_t(len(ba))
|
||||
|
||||
return newQCborValue(C.QCborValue_new9(ba_alias))
|
||||
@ -540,7 +544,11 @@ func QCborValue_FromCbor(reader *QCborStreamReader) *QCborValue {
|
||||
|
||||
func QCborValue_FromCborWithBa(ba []byte) *QCborValue {
|
||||
ba_alias := C.struct_miqt_string{}
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(&ba[0]))
|
||||
if len(ba) > 0 {
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(&ba[0]))
|
||||
} else {
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
ba_alias.len = C.size_t(len(ba))
|
||||
_goptr := newQCborValue(C.QCborValue_FromCborWithBa(ba_alias))
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
@ -607,7 +615,11 @@ func (this *QCborValue) TaggedValue1(defaultValue *QCborValue) *QCborValue {
|
||||
|
||||
func (this *QCborValue) ToByteArray1(defaultValue []byte) []byte {
|
||||
defaultValue_alias := C.struct_miqt_string{}
|
||||
defaultValue_alias.data = (*C.char)(unsafe.Pointer(&defaultValue[0]))
|
||||
if len(defaultValue) > 0 {
|
||||
defaultValue_alias.data = (*C.char)(unsafe.Pointer(&defaultValue[0]))
|
||||
} else {
|
||||
defaultValue_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
defaultValue_alias.len = C.size_t(len(defaultValue))
|
||||
var _bytearray C.struct_miqt_string = C.QCborValue_ToByteArray1(this.h, defaultValue_alias)
|
||||
_ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len)))
|
||||
@ -652,7 +664,11 @@ func (this *QCborValue) ToUuid1(defaultValue *qt.QUuid) *qt.QUuid {
|
||||
|
||||
func QCborValue_FromCbor22(ba []byte, error *QCborParserError) *QCborValue {
|
||||
ba_alias := C.struct_miqt_string{}
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(&ba[0]))
|
||||
if len(ba) > 0 {
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(&ba[0]))
|
||||
} else {
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
ba_alias.len = C.size_t(len(ba))
|
||||
_goptr := newQCborValue(C.QCborValue_FromCbor22(ba_alias, error.cPointer()))
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
@ -1027,7 +1043,11 @@ func (this *QCborValueRef) ToDouble1(defaultValue float64) float64 {
|
||||
|
||||
func (this *QCborValueRef) ToByteArray1(defaultValue []byte) []byte {
|
||||
defaultValue_alias := C.struct_miqt_string{}
|
||||
defaultValue_alias.data = (*C.char)(unsafe.Pointer(&defaultValue[0]))
|
||||
if len(defaultValue) > 0 {
|
||||
defaultValue_alias.data = (*C.char)(unsafe.Pointer(&defaultValue[0]))
|
||||
} else {
|
||||
defaultValue_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
defaultValue_alias.len = C.size_t(len(defaultValue))
|
||||
var _bytearray C.struct_miqt_string = C.QCborValueRef_ToByteArray1(this.h, defaultValue_alias)
|
||||
_ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len)))
|
||||
|
@ -1304,7 +1304,11 @@ func miqt_exec_callback_QAbstractButton_HideEvent(self *C.QAbstractButton, cb C.
|
||||
|
||||
func (this *QAbstractButton) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QAbstractButton_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -160,7 +160,11 @@ func (this *QAbstractEventDispatcher) RemoveNativeEventFilter(filterObj *QAbstra
|
||||
|
||||
func (this *QAbstractEventDispatcher) FilterNativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
return (bool)(C.QAbstractEventDispatcher_FilterNativeEvent(this.h, eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
}
|
||||
|
@ -2037,7 +2037,11 @@ func miqt_exec_callback_QAbstractItemModel_RoleNames(self *C.QAbstractItemModel,
|
||||
for virtualReturn_k, virtualReturn_v := range virtualReturn {
|
||||
virtualReturn_Keys_CArray[virtualReturn_ctr] = (C.int)(virtualReturn_k)
|
||||
virtualReturn_v_alias := C.struct_miqt_string{}
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
if len(virtualReturn_v) > 0 {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
} else {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
virtualReturn_v_alias.len = C.size_t(len(virtualReturn_v))
|
||||
virtualReturn_Values_CArray[virtualReturn_ctr] = virtualReturn_v_alias
|
||||
virtualReturn_ctr++
|
||||
@ -3461,7 +3465,11 @@ func miqt_exec_callback_QAbstractTableModel_RoleNames(self *C.QAbstractTableMode
|
||||
for virtualReturn_k, virtualReturn_v := range virtualReturn {
|
||||
virtualReturn_Keys_CArray[virtualReturn_ctr] = (C.int)(virtualReturn_k)
|
||||
virtualReturn_v_alias := C.struct_miqt_string{}
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
if len(virtualReturn_v) > 0 {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
} else {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
virtualReturn_v_alias.len = C.size_t(len(virtualReturn_v))
|
||||
virtualReturn_Values_CArray[virtualReturn_ctr] = virtualReturn_v_alias
|
||||
virtualReturn_ctr++
|
||||
@ -4863,7 +4871,11 @@ func miqt_exec_callback_QAbstractListModel_RoleNames(self *C.QAbstractListModel,
|
||||
for virtualReturn_k, virtualReturn_v := range virtualReturn {
|
||||
virtualReturn_Keys_CArray[virtualReturn_ctr] = (C.int)(virtualReturn_k)
|
||||
virtualReturn_v_alias := C.struct_miqt_string{}
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
if len(virtualReturn_v) > 0 {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
} else {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
virtualReturn_v_alias.len = C.size_t(len(virtualReturn_v))
|
||||
virtualReturn_Values_CArray[virtualReturn_ctr] = virtualReturn_v_alias
|
||||
virtualReturn_ctr++
|
||||
|
@ -2768,7 +2768,11 @@ func miqt_exec_callback_QAbstractItemView_HideEvent(self *C.QAbstractItemView, c
|
||||
|
||||
func (this *QAbstractItemView) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QAbstractItemView_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -54,7 +54,11 @@ func NewQAbstractNativeEventFilter() *QAbstractNativeEventFilter {
|
||||
|
||||
func (this *QAbstractNativeEventFilter) NativeEventFilter(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
return (bool)(C.QAbstractNativeEventFilter_NativeEventFilter(this.h, eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
}
|
||||
|
@ -1554,7 +1554,11 @@ func miqt_exec_callback_QAbstractProxyModel_RoleNames(self *C.QAbstractProxyMode
|
||||
for virtualReturn_k, virtualReturn_v := range virtualReturn {
|
||||
virtualReturn_Keys_CArray[virtualReturn_ctr] = (C.int)(virtualReturn_k)
|
||||
virtualReturn_v_alias := C.struct_miqt_string{}
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
if len(virtualReturn_v) > 0 {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
} else {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
virtualReturn_v_alias.len = C.size_t(len(virtualReturn_v))
|
||||
virtualReturn_Values_CArray[virtualReturn_ctr] = virtualReturn_v_alias
|
||||
virtualReturn_ctr++
|
||||
|
@ -1236,7 +1236,11 @@ func miqt_exec_callback_QAbstractScrollArea_HideEvent(self *C.QAbstractScrollAre
|
||||
|
||||
func (this *QAbstractScrollArea) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QAbstractScrollArea_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1283,7 +1283,11 @@ func miqt_exec_callback_QAbstractSlider_HideEvent(self *C.QAbstractSlider, cb C.
|
||||
|
||||
func (this *QAbstractSlider) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QAbstractSlider_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1403,7 +1403,11 @@ func miqt_exec_callback_QAbstractSpinBox_DropEvent(self *C.QAbstractSpinBox, cb
|
||||
|
||||
func (this *QAbstractSpinBox) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QAbstractSpinBox_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -106,7 +106,11 @@ func (this *QBuffer) Buffer2() []byte {
|
||||
|
||||
func (this *QBuffer) SetData(data []byte) {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
C.QBuffer_SetData(this.h, data_alias)
|
||||
}
|
||||
|
@ -54,7 +54,11 @@ func NewQByteArrayMatcher() *QByteArrayMatcher {
|
||||
// NewQByteArrayMatcher2 constructs a new QByteArrayMatcher object.
|
||||
func NewQByteArrayMatcher2(pattern []byte) *QByteArrayMatcher {
|
||||
pattern_alias := C.struct_miqt_string{}
|
||||
pattern_alias.data = (*C.char)(unsafe.Pointer(&pattern[0]))
|
||||
if len(pattern) > 0 {
|
||||
pattern_alias.data = (*C.char)(unsafe.Pointer(&pattern[0]))
|
||||
} else {
|
||||
pattern_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
pattern_alias.len = C.size_t(len(pattern))
|
||||
|
||||
return newQByteArrayMatcher(C.QByteArrayMatcher_new2(pattern_alias))
|
||||
@ -80,14 +84,22 @@ func (this *QByteArrayMatcher) OperatorAssign(other *QByteArrayMatcher) {
|
||||
|
||||
func (this *QByteArrayMatcher) SetPattern(pattern []byte) {
|
||||
pattern_alias := C.struct_miqt_string{}
|
||||
pattern_alias.data = (*C.char)(unsafe.Pointer(&pattern[0]))
|
||||
if len(pattern) > 0 {
|
||||
pattern_alias.data = (*C.char)(unsafe.Pointer(&pattern[0]))
|
||||
} else {
|
||||
pattern_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
pattern_alias.len = C.size_t(len(pattern))
|
||||
C.QByteArrayMatcher_SetPattern(this.h, pattern_alias)
|
||||
}
|
||||
|
||||
func (this *QByteArrayMatcher) IndexIn(ba []byte) int {
|
||||
ba_alias := C.struct_miqt_string{}
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(&ba[0]))
|
||||
if len(ba) > 0 {
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(&ba[0]))
|
||||
} else {
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
ba_alias.len = C.size_t(len(ba))
|
||||
return (int)(C.QByteArrayMatcher_IndexIn(this.h, ba_alias))
|
||||
}
|
||||
@ -107,7 +119,11 @@ func (this *QByteArrayMatcher) Pattern() []byte {
|
||||
|
||||
func (this *QByteArrayMatcher) IndexIn22(ba []byte, from int) int {
|
||||
ba_alias := C.struct_miqt_string{}
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(&ba[0]))
|
||||
if len(ba) > 0 {
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(&ba[0]))
|
||||
} else {
|
||||
ba_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
ba_alias.len = C.size_t(len(ba))
|
||||
return (int)(C.QByteArrayMatcher_IndexIn22(this.h, ba_alias, (C.int)(from)))
|
||||
}
|
||||
|
@ -1338,7 +1338,11 @@ func miqt_exec_callback_QCalendarWidget_HideEvent(self *C.QCalendarWidget, cb C.
|
||||
|
||||
func (this *QCalendarWidget) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QCalendarWidget_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1169,7 +1169,11 @@ func miqt_exec_callback_QCheckBox_HideEvent(self *C.QCheckBox, cb C.intptr_t, ev
|
||||
|
||||
func (this *QCheckBox) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QCheckBox_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1325,7 +1325,11 @@ func miqt_exec_callback_QColorDialog_HideEvent(self *C.QColorDialog, cb C.intptr
|
||||
|
||||
func (this *QColorDialog) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QColorDialog_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -167,7 +167,11 @@ func (this *QColorSpace) IsValid() bool {
|
||||
|
||||
func QColorSpace_FromIccProfile(iccProfile []byte) *QColorSpace {
|
||||
iccProfile_alias := C.struct_miqt_string{}
|
||||
iccProfile_alias.data = (*C.char)(unsafe.Pointer(&iccProfile[0]))
|
||||
if len(iccProfile) > 0 {
|
||||
iccProfile_alias.data = (*C.char)(unsafe.Pointer(&iccProfile[0]))
|
||||
} else {
|
||||
iccProfile_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
iccProfile_alias.len = C.size_t(len(iccProfile))
|
||||
_goptr := newQColorSpace(C.QColorSpace_FromIccProfile(iccProfile_alias))
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
|
@ -2425,7 +2425,11 @@ func miqt_exec_callback_QColumnView_HideEvent(self *C.QColumnView, cb C.intptr_t
|
||||
|
||||
func (this *QColumnView) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QColumnView_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1804,7 +1804,11 @@ func miqt_exec_callback_QComboBox_DropEvent(self *C.QComboBox, cb C.intptr_t, ev
|
||||
|
||||
func (this *QComboBox) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QComboBox_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1160,7 +1160,11 @@ func miqt_exec_callback_QCommandLinkButton_HideEvent(self *C.QCommandLinkButton,
|
||||
|
||||
func (this *QCommandLinkButton) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QCommandLinkButton_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1374,7 +1374,11 @@ func miqt_exec_callback_QConcatenateTablesProxyModel_RoleNames(self *C.QConcaten
|
||||
for virtualReturn_k, virtualReturn_v := range virtualReturn {
|
||||
virtualReturn_Keys_CArray[virtualReturn_ctr] = (C.int)(virtualReturn_k)
|
||||
virtualReturn_v_alias := C.struct_miqt_string{}
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
if len(virtualReturn_v) > 0 {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
} else {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
virtualReturn_v_alias.len = C.size_t(len(virtualReturn_v))
|
||||
virtualReturn_Values_CArray[virtualReturn_ctr] = virtualReturn_v_alias
|
||||
virtualReturn_ctr++
|
||||
|
@ -467,7 +467,11 @@ func UnsafeNewQDynamicPropertyChangeEvent(h unsafe.Pointer) *QDynamicPropertyCha
|
||||
// NewQDynamicPropertyChangeEvent constructs a new QDynamicPropertyChangeEvent object.
|
||||
func NewQDynamicPropertyChangeEvent(name []byte) *QDynamicPropertyChangeEvent {
|
||||
name_alias := C.struct_miqt_string{}
|
||||
name_alias.data = (*C.char)(unsafe.Pointer(&name[0]))
|
||||
if len(name) > 0 {
|
||||
name_alias.data = (*C.char)(unsafe.Pointer(&name[0]))
|
||||
} else {
|
||||
name_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
name_alias.len = C.size_t(len(name))
|
||||
|
||||
return newQDynamicPropertyChangeEvent(C.QDynamicPropertyChangeEvent_new(name_alias))
|
||||
|
@ -87,7 +87,11 @@ func (this *QCryptographicHash) AddData(data string, length int) {
|
||||
|
||||
func (this *QCryptographicHash) AddDataWithData(data []byte) {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
C.QCryptographicHash_AddDataWithData(this.h, data_alias)
|
||||
}
|
||||
@ -105,7 +109,11 @@ func (this *QCryptographicHash) Result() []byte {
|
||||
|
||||
func QCryptographicHash_Hash(data []byte, method QCryptographicHash__Algorithm) []byte {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
var _bytearray C.struct_miqt_string = C.QCryptographicHash_Hash(data_alias, (C.int)(method))
|
||||
_ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len)))
|
||||
|
@ -121,7 +121,11 @@ func NewQDataStream2(param1 *QIODevice) *QDataStream {
|
||||
// NewQDataStream3 constructs a new QDataStream object.
|
||||
func NewQDataStream3(param1 []byte) *QDataStream {
|
||||
param1_alias := C.struct_miqt_string{}
|
||||
param1_alias.data = (*C.char)(unsafe.Pointer(¶m1[0]))
|
||||
if len(param1) > 0 {
|
||||
param1_alias.data = (*C.char)(unsafe.Pointer(¶m1[0]))
|
||||
} else {
|
||||
param1_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
param1_alias.len = C.size_t(len(param1))
|
||||
|
||||
return newQDataStream(C.QDataStream_new3(param1_alias))
|
||||
|
@ -145,7 +145,11 @@ func (this *QDataWidgetMapper) AddMapping(widget *QWidget, section int) {
|
||||
|
||||
func (this *QDataWidgetMapper) AddMapping2(widget *QWidget, section int, propertyName []byte) {
|
||||
propertyName_alias := C.struct_miqt_string{}
|
||||
propertyName_alias.data = (*C.char)(unsafe.Pointer(&propertyName[0]))
|
||||
if len(propertyName) > 0 {
|
||||
propertyName_alias.data = (*C.char)(unsafe.Pointer(&propertyName[0]))
|
||||
} else {
|
||||
propertyName_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
propertyName_alias.len = C.size_t(len(propertyName))
|
||||
C.QDataWidgetMapper_AddMapping2(this.h, widget.cPointer(), (C.int)(section), propertyName_alias)
|
||||
}
|
||||
|
@ -1639,7 +1639,11 @@ func miqt_exec_callback_QDateTimeEdit_DropEvent(self *C.QDateTimeEdit, cb C.intp
|
||||
|
||||
func (this *QDateTimeEdit) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QDateTimeEdit_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
@ -3268,7 +3272,11 @@ func miqt_exec_callback_QTimeEdit_DropEvent(self *C.QTimeEdit, cb C.intptr_t, ev
|
||||
|
||||
func (this *QTimeEdit) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QTimeEdit_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
@ -4897,7 +4905,11 @@ func miqt_exec_callback_QDateEdit_DropEvent(self *C.QDateEdit, cb C.intptr_t, ev
|
||||
|
||||
func (this *QDateEdit) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QDateEdit_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -189,7 +189,11 @@ func (this *QDebug) OperatorShiftLeftWithQString(t string) *QDebug {
|
||||
|
||||
func (this *QDebug) OperatorShiftLeftWithQByteArray(t []byte) *QDebug {
|
||||
t_alias := C.struct_miqt_string{}
|
||||
t_alias.data = (*C.char)(unsafe.Pointer(&t[0]))
|
||||
if len(t) > 0 {
|
||||
t_alias.data = (*C.char)(unsafe.Pointer(&t[0]))
|
||||
} else {
|
||||
t_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
t_alias.len = C.size_t(len(t))
|
||||
return newQDebug(C.QDebug_OperatorShiftLeftWithQByteArray(this.h, t_alias))
|
||||
}
|
||||
|
@ -1126,7 +1126,11 @@ func miqt_exec_callback_QDesktopWidget_HideEvent(self *C.QDesktopWidget, cb C.in
|
||||
|
||||
func (this *QDesktopWidget) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QDesktopWidget_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1089,7 +1089,11 @@ func miqt_exec_callback_QDial_HideEvent(self *C.QDial, cb C.intptr_t, event *C.Q
|
||||
|
||||
func (this *QDial) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QDial_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1264,7 +1264,11 @@ func miqt_exec_callback_QDialog_HideEvent(self *C.QDialog, cb C.intptr_t, event
|
||||
|
||||
func (this *QDialog) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QDialog_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1226,7 +1226,11 @@ func miqt_exec_callback_QDialogButtonBox_HideEvent(self *C.QDialogButtonBox, cb
|
||||
|
||||
func (this *QDialogButtonBox) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QDialogButtonBox_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1501,7 +1501,11 @@ func miqt_exec_callback_QDirModel_RoleNames(self *C.QDirModel, cb C.intptr_t) C.
|
||||
for virtualReturn_k, virtualReturn_v := range virtualReturn {
|
||||
virtualReturn_Keys_CArray[virtualReturn_ctr] = (C.int)(virtualReturn_k)
|
||||
virtualReturn_v_alias := C.struct_miqt_string{}
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
if len(virtualReturn_v) > 0 {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
} else {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
virtualReturn_v_alias.len = C.size_t(len(virtualReturn_v))
|
||||
virtualReturn_Values_CArray[virtualReturn_ctr] = virtualReturn_v_alias
|
||||
virtualReturn_ctr++
|
||||
|
@ -1194,7 +1194,11 @@ func miqt_exec_callback_QDockWidget_HideEvent(self *C.QDockWidget, cb C.intptr_t
|
||||
|
||||
func (this *QDockWidget) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QDockWidget_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1171,7 +1171,11 @@ func miqt_exec_callback_QErrorMessage_HideEvent(self *C.QErrorMessage, cb C.intp
|
||||
|
||||
func (this *QErrorMessage) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QErrorMessage_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -138,7 +138,11 @@ func QFile_EncodeName(fileName string) []byte {
|
||||
|
||||
func QFile_DecodeName(localFileName []byte) string {
|
||||
localFileName_alias := C.struct_miqt_string{}
|
||||
localFileName_alias.data = (*C.char)(unsafe.Pointer(&localFileName[0]))
|
||||
if len(localFileName) > 0 {
|
||||
localFileName_alias.data = (*C.char)(unsafe.Pointer(&localFileName[0]))
|
||||
} else {
|
||||
localFileName_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
localFileName_alias.len = C.size_t(len(localFileName))
|
||||
var _ms C.struct_miqt_string = C.QFile_DecodeName(localFileName_alias)
|
||||
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
||||
|
@ -429,7 +429,11 @@ func (this *QFileDialog) SaveState() []byte {
|
||||
|
||||
func (this *QFileDialog) RestoreState(state []byte) bool {
|
||||
state_alias := C.struct_miqt_string{}
|
||||
state_alias.data = (*C.char)(unsafe.Pointer(&state[0]))
|
||||
if len(state) > 0 {
|
||||
state_alias.data = (*C.char)(unsafe.Pointer(&state[0]))
|
||||
} else {
|
||||
state_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
state_alias.len = C.size_t(len(state))
|
||||
return (bool)(C.QFileDialog_RestoreState(this.h, state_alias))
|
||||
}
|
||||
@ -877,7 +881,11 @@ func QFileDialog_GetOpenFileUrls() []QUrl {
|
||||
|
||||
func QFileDialog_SaveFileContent(fileContent []byte, fileNameHint string) {
|
||||
fileContent_alias := C.struct_miqt_string{}
|
||||
fileContent_alias.data = (*C.char)(unsafe.Pointer(&fileContent[0]))
|
||||
if len(fileContent) > 0 {
|
||||
fileContent_alias.data = (*C.char)(unsafe.Pointer(&fileContent[0]))
|
||||
} else {
|
||||
fileContent_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
fileContent_alias.len = C.size_t(len(fileContent))
|
||||
fileNameHint_ms := C.struct_miqt_string{}
|
||||
fileNameHint_ms.data = C.CString(fileNameHint)
|
||||
@ -2375,7 +2383,11 @@ func miqt_exec_callback_QFileDialog_HideEvent(self *C.QFileDialog, cb C.intptr_t
|
||||
|
||||
func (this *QFileDialog) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QFileDialog_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1703,7 +1703,11 @@ func miqt_exec_callback_QFileSystemModel_RoleNames(self *C.QFileSystemModel, cb
|
||||
for virtualReturn_k, virtualReturn_v := range virtualReturn {
|
||||
virtualReturn_Keys_CArray[virtualReturn_ctr] = (C.int)(virtualReturn_k)
|
||||
virtualReturn_v_alias := C.struct_miqt_string{}
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
if len(virtualReturn_v) > 0 {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
} else {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
virtualReturn_v_alias.len = C.size_t(len(virtualReturn_v))
|
||||
virtualReturn_Values_CArray[virtualReturn_ctr] = virtualReturn_v_alias
|
||||
virtualReturn_ctr++
|
||||
|
@ -1009,7 +1009,11 @@ func miqt_exec_callback_QFocusFrame_HideEvent(self *C.QFocusFrame, cb C.intptr_t
|
||||
|
||||
func (this *QFocusFrame) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QFocusFrame_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1161,7 +1161,11 @@ func miqt_exec_callback_QFontComboBox_DropEvent(self *C.QFontComboBox, cb C.intp
|
||||
|
||||
func (this *QFontComboBox) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QFontComboBox_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -333,7 +333,11 @@ func QFontDatabase_AddApplicationFont(fileName string) int {
|
||||
|
||||
func QFontDatabase_AddApplicationFontFromData(fontData []byte) int {
|
||||
fontData_alias := C.struct_miqt_string{}
|
||||
fontData_alias.data = (*C.char)(unsafe.Pointer(&fontData[0]))
|
||||
if len(fontData) > 0 {
|
||||
fontData_alias.data = (*C.char)(unsafe.Pointer(&fontData[0]))
|
||||
} else {
|
||||
fontData_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
fontData_alias.len = C.size_t(len(fontData))
|
||||
return (int)(C.QFontDatabase_AddApplicationFontFromData(fontData_alias))
|
||||
}
|
||||
|
@ -1294,7 +1294,11 @@ func miqt_exec_callback_QFontDialog_HideEvent(self *C.QFontDialog, cb C.intptr_t
|
||||
|
||||
func (this *QFontDialog) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QFontDialog_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1090,7 +1090,11 @@ func miqt_exec_callback_QFrame_HideEvent(self *C.QFrame, cb C.intptr_t, event *C
|
||||
|
||||
func (this *QFrame) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QFrame_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1830,7 +1830,11 @@ func miqt_exec_callback_QGraphicsView_HideEvent(self *C.QGraphicsView, cb C.intp
|
||||
|
||||
func (this *QGraphicsView) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QGraphicsView_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1153,7 +1153,11 @@ func miqt_exec_callback_QGroupBox_HideEvent(self *C.QGroupBox, cb C.intptr_t, ev
|
||||
|
||||
func (this *QGroupBox) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QGroupBox_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -355,7 +355,11 @@ func (this *QHeaderView) SaveState() []byte {
|
||||
|
||||
func (this *QHeaderView) RestoreState(state []byte) bool {
|
||||
state_alias := C.struct_miqt_string{}
|
||||
state_alias.data = (*C.char)(unsafe.Pointer(&state[0]))
|
||||
if len(state) > 0 {
|
||||
state_alias.data = (*C.char)(unsafe.Pointer(&state[0]))
|
||||
} else {
|
||||
state_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
state_alias.len = C.size_t(len(state))
|
||||
return (bool)(C.QHeaderView_RestoreState(this.h, state_alias))
|
||||
}
|
||||
@ -2862,7 +2866,11 @@ func miqt_exec_callback_QHeaderView_HideEvent(self *C.QHeaderView, cb C.intptr_t
|
||||
|
||||
func (this *QHeaderView) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QHeaderView_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1525,7 +1525,11 @@ func miqt_exec_callback_QIdentityProxyModel_RoleNames(self *C.QIdentityProxyMode
|
||||
for virtualReturn_k, virtualReturn_v := range virtualReturn {
|
||||
virtualReturn_Keys_CArray[virtualReturn_ctr] = (C.int)(virtualReturn_k)
|
||||
virtualReturn_v_alias := C.struct_miqt_string{}
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
if len(virtualReturn_v) > 0 {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
} else {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
virtualReturn_v_alias.len = C.size_t(len(virtualReturn_v))
|
||||
virtualReturn_Values_CArray[virtualReturn_ctr] = virtualReturn_v_alias
|
||||
virtualReturn_ctr++
|
||||
|
@ -563,7 +563,11 @@ func (this *QImage) LoadFromData(buf *byte, lenVal int) bool {
|
||||
|
||||
func (this *QImage) LoadFromDataWithData(data []byte) bool {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
return (bool)(C.QImage_LoadFromDataWithData(this.h, data_alias))
|
||||
}
|
||||
@ -588,7 +592,11 @@ func QImage_FromData(data *byte, size int) *QImage {
|
||||
|
||||
func QImage_FromDataWithData(data []byte) *QImage {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
_goptr := newQImage(C.QImage_FromDataWithData(data_alias))
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
@ -805,7 +813,11 @@ func (this *QImage) LoadFromData3(buf *byte, lenVal int, format string) bool {
|
||||
|
||||
func (this *QImage) LoadFromData2(data []byte, aformat string) bool {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
aformat_Cstring := C.CString(aformat)
|
||||
defer C.free(unsafe.Pointer(aformat_Cstring))
|
||||
@ -854,7 +866,11 @@ func QImage_FromData3(data *byte, size int, format string) *QImage {
|
||||
|
||||
func QImage_FromData2(data []byte, format string) *QImage {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
format_Cstring := C.CString(format)
|
||||
defer C.free(unsafe.Pointer(format_Cstring))
|
||||
|
@ -108,14 +108,22 @@ func (this *QImageIOHandler) Device() *QIODevice {
|
||||
|
||||
func (this *QImageIOHandler) SetFormat(format []byte) {
|
||||
format_alias := C.struct_miqt_string{}
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
if len(format) > 0 {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
} else {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
format_alias.len = C.size_t(len(format))
|
||||
C.QImageIOHandler_SetFormat(this.h, format_alias)
|
||||
}
|
||||
|
||||
func (this *QImageIOHandler) SetFormatWithFormat(format []byte) {
|
||||
format_alias := C.struct_miqt_string{}
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
if len(format) > 0 {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
} else {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
format_alias.len = C.size_t(len(format))
|
||||
C.QImageIOHandler_SetFormatWithFormat(this.h, format_alias)
|
||||
}
|
||||
@ -213,7 +221,11 @@ func miqt_exec_callback_QImageIOHandler_Name(self *C.QImageIOHandler, cb C.intpt
|
||||
|
||||
virtualReturn := gofunc((&QImageIOHandler{h: self}).callVirtualBase_Name)
|
||||
virtualReturn_alias := C.struct_miqt_string{}
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn[0]))
|
||||
if len(virtualReturn) > 0 {
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn[0]))
|
||||
} else {
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
virtualReturn_alias.len = C.size_t(len(virtualReturn))
|
||||
|
||||
return virtualReturn_alias
|
||||
@ -647,14 +659,22 @@ func QImageIOPlugin_TrUtf8(s string) string {
|
||||
|
||||
func (this *QImageIOPlugin) Capabilities(device *QIODevice, format []byte) QImageIOPlugin__Capability {
|
||||
format_alias := C.struct_miqt_string{}
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
if len(format) > 0 {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
} else {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
format_alias.len = C.size_t(len(format))
|
||||
return (QImageIOPlugin__Capability)(C.QImageIOPlugin_Capabilities(this.h, device.cPointer(), format_alias))
|
||||
}
|
||||
|
||||
func (this *QImageIOPlugin) Create(device *QIODevice, format []byte) *QImageIOHandler {
|
||||
format_alias := C.struct_miqt_string{}
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
if len(format) > 0 {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
} else {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
format_alias.len = C.size_t(len(format))
|
||||
return newQImageIOHandler(C.QImageIOPlugin_Create(this.h, device.cPointer(), format_alias))
|
||||
}
|
||||
|
@ -80,7 +80,11 @@ func NewQImageReader3(fileName string) *QImageReader {
|
||||
// NewQImageReader4 constructs a new QImageReader object.
|
||||
func NewQImageReader4(device *QIODevice, format []byte) *QImageReader {
|
||||
format_alias := C.struct_miqt_string{}
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
if len(format) > 0 {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
} else {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
format_alias.len = C.size_t(len(format))
|
||||
|
||||
return newQImageReader(C.QImageReader_new4(device.cPointer(), format_alias))
|
||||
@ -93,7 +97,11 @@ func NewQImageReader5(fileName string, format []byte) *QImageReader {
|
||||
fileName_ms.len = C.size_t(len(fileName))
|
||||
defer C.free(unsafe.Pointer(fileName_ms.data))
|
||||
format_alias := C.struct_miqt_string{}
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
if len(format) > 0 {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
} else {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
format_alias.len = C.size_t(len(format))
|
||||
|
||||
return newQImageReader(C.QImageReader_new5(fileName_ms, format_alias))
|
||||
@ -119,7 +127,11 @@ func QImageReader_TrUtf8(sourceText string) string {
|
||||
|
||||
func (this *QImageReader) SetFormat(format []byte) {
|
||||
format_alias := C.struct_miqt_string{}
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
if len(format) > 0 {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
} else {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
format_alias.len = C.size_t(len(format))
|
||||
C.QImageReader_SetFormat(this.h, format_alias)
|
||||
}
|
||||
@ -401,7 +413,11 @@ func QImageReader_SupportedMimeTypes() [][]byte {
|
||||
|
||||
func QImageReader_ImageFormatsForMimeType(mimeType []byte) [][]byte {
|
||||
mimeType_alias := C.struct_miqt_string{}
|
||||
mimeType_alias.data = (*C.char)(unsafe.Pointer(&mimeType[0]))
|
||||
if len(mimeType) > 0 {
|
||||
mimeType_alias.data = (*C.char)(unsafe.Pointer(&mimeType[0]))
|
||||
} else {
|
||||
mimeType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
mimeType_alias.len = C.size_t(len(mimeType))
|
||||
var _ma C.struct_miqt_array = C.QImageReader_ImageFormatsForMimeType(mimeType_alias)
|
||||
_ret := make([][]byte, int(_ma.len))
|
||||
|
@ -63,7 +63,11 @@ func NewQImageWriter() *QImageWriter {
|
||||
// NewQImageWriter2 constructs a new QImageWriter object.
|
||||
func NewQImageWriter2(device *QIODevice, format []byte) *QImageWriter {
|
||||
format_alias := C.struct_miqt_string{}
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
if len(format) > 0 {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
} else {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
format_alias.len = C.size_t(len(format))
|
||||
|
||||
return newQImageWriter(C.QImageWriter_new2(device.cPointer(), format_alias))
|
||||
@ -86,7 +90,11 @@ func NewQImageWriter4(fileName string, format []byte) *QImageWriter {
|
||||
fileName_ms.len = C.size_t(len(fileName))
|
||||
defer C.free(unsafe.Pointer(fileName_ms.data))
|
||||
format_alias := C.struct_miqt_string{}
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
if len(format) > 0 {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
} else {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
format_alias.len = C.size_t(len(format))
|
||||
|
||||
return newQImageWriter(C.QImageWriter_new4(fileName_ms, format_alias))
|
||||
@ -112,7 +120,11 @@ func QImageWriter_TrUtf8(sourceText string) string {
|
||||
|
||||
func (this *QImageWriter) SetFormat(format []byte) {
|
||||
format_alias := C.struct_miqt_string{}
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
if len(format) > 0 {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
} else {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
format_alias.len = C.size_t(len(format))
|
||||
C.QImageWriter_SetFormat(this.h, format_alias)
|
||||
}
|
||||
@ -173,7 +185,11 @@ func (this *QImageWriter) Gamma() float32 {
|
||||
|
||||
func (this *QImageWriter) SetSubType(typeVal []byte) {
|
||||
typeVal_alias := C.struct_miqt_string{}
|
||||
typeVal_alias.data = (*C.char)(unsafe.Pointer(&typeVal[0]))
|
||||
if len(typeVal) > 0 {
|
||||
typeVal_alias.data = (*C.char)(unsafe.Pointer(&typeVal[0]))
|
||||
} else {
|
||||
typeVal_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
typeVal_alias.len = C.size_t(len(typeVal))
|
||||
C.QImageWriter_SetSubType(this.h, typeVal_alias)
|
||||
}
|
||||
@ -300,7 +316,11 @@ func QImageWriter_SupportedMimeTypes() [][]byte {
|
||||
|
||||
func QImageWriter_ImageFormatsForMimeType(mimeType []byte) [][]byte {
|
||||
mimeType_alias := C.struct_miqt_string{}
|
||||
mimeType_alias.data = (*C.char)(unsafe.Pointer(&mimeType[0]))
|
||||
if len(mimeType) > 0 {
|
||||
mimeType_alias.data = (*C.char)(unsafe.Pointer(&mimeType[0]))
|
||||
} else {
|
||||
mimeType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
mimeType_alias.len = C.size_t(len(mimeType))
|
||||
var _ma C.struct_miqt_array = C.QImageWriter_ImageFormatsForMimeType(mimeType_alias)
|
||||
_ret := make([][]byte, int(_ma.len))
|
||||
|
@ -2035,7 +2035,11 @@ func miqt_exec_callback_QInputDialog_HideEvent(self *C.QInputDialog, cb C.intptr
|
||||
|
||||
func (this *QInputDialog) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QInputDialog_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -260,7 +260,11 @@ func (this *QIODevice) WriteWithData(data string) int64 {
|
||||
|
||||
func (this *QIODevice) Write2(data []byte) int64 {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
return (int64)(C.QIODevice_Write2(this.h, data_alias))
|
||||
}
|
||||
|
@ -198,7 +198,11 @@ func miqt_exec_callback_QItemEditorFactory_ValuePropertyName(self *C.QItemEditor
|
||||
|
||||
virtualReturn := gofunc((&QItemEditorFactory{h: self}).callVirtualBase_ValuePropertyName, slotval1)
|
||||
virtualReturn_alias := C.struct_miqt_string{}
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn[0]))
|
||||
if len(virtualReturn) > 0 {
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn[0]))
|
||||
} else {
|
||||
virtualReturn_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
virtualReturn_alias.len = C.size_t(len(virtualReturn))
|
||||
|
||||
return virtualReturn_alias
|
||||
|
@ -179,7 +179,11 @@ func (this *QJsonDocument) RawData(size *int) string {
|
||||
|
||||
func QJsonDocument_FromBinaryData(data []byte) *QJsonDocument {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
_goptr := newQJsonDocument(C.QJsonDocument_FromBinaryData(data_alias))
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
@ -207,7 +211,11 @@ func (this *QJsonDocument) ToVariant() *QVariant {
|
||||
|
||||
func QJsonDocument_FromJson(json []byte) *QJsonDocument {
|
||||
json_alias := C.struct_miqt_string{}
|
||||
json_alias.data = (*C.char)(unsafe.Pointer(&json[0]))
|
||||
if len(json) > 0 {
|
||||
json_alias.data = (*C.char)(unsafe.Pointer(&json[0]))
|
||||
} else {
|
||||
json_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
json_alias.len = C.size_t(len(json))
|
||||
_goptr := newQJsonDocument(C.QJsonDocument_FromJson(json_alias))
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
@ -298,7 +306,11 @@ func QJsonDocument_FromRawData3(data string, size int, validation QJsonDocument_
|
||||
|
||||
func QJsonDocument_FromBinaryData2(data []byte, validation QJsonDocument__DataValidation) *QJsonDocument {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
_goptr := newQJsonDocument(C.QJsonDocument_FromBinaryData2(data_alias, (C.int)(validation)))
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
@ -307,7 +319,11 @@ func QJsonDocument_FromBinaryData2(data []byte, validation QJsonDocument__DataVa
|
||||
|
||||
func QJsonDocument_FromJson2(json []byte, error *QJsonParseError) *QJsonDocument {
|
||||
json_alias := C.struct_miqt_string{}
|
||||
json_alias.data = (*C.char)(unsafe.Pointer(&json[0]))
|
||||
if len(json) > 0 {
|
||||
json_alias.data = (*C.char)(unsafe.Pointer(&json[0]))
|
||||
} else {
|
||||
json_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
json_alias.len = C.size_t(len(json))
|
||||
_goptr := newQJsonDocument(C.QJsonDocument_FromJson2(json_alias, error.cPointer()))
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
|
@ -1060,7 +1060,11 @@ func miqt_exec_callback_QKeySequenceEdit_HideEvent(self *C.QKeySequenceEdit, cb
|
||||
|
||||
func (this *QKeySequenceEdit) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QKeySequenceEdit_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1285,7 +1285,11 @@ func miqt_exec_callback_QLabel_HideEvent(self *C.QLabel, cb C.intptr_t, event *C
|
||||
|
||||
func (this *QLabel) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QLabel_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1129,7 +1129,11 @@ func miqt_exec_callback_QLCDNumber_HideEvent(self *C.QLCDNumber, cb C.intptr_t,
|
||||
|
||||
func (this *QLCDNumber) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QLCDNumber_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1562,7 +1562,11 @@ func miqt_exec_callback_QLineEdit_HideEvent(self *C.QLineEdit, cb C.intptr_t, ev
|
||||
|
||||
func (this *QLineEdit) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QLineEdit_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -2527,7 +2527,11 @@ func miqt_exec_callback_QListView_HideEvent(self *C.QListView, cb C.intptr_t, ev
|
||||
|
||||
func (this *QListView) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QListView_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -3368,7 +3368,11 @@ func miqt_exec_callback_QListWidget_HideEvent(self *C.QListWidget, cb C.intptr_t
|
||||
|
||||
func (this *QListWidget) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QListWidget_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -324,7 +324,11 @@ func (this *QMainWindow) SaveState() []byte {
|
||||
|
||||
func (this *QMainWindow) RestoreState(state []byte) bool {
|
||||
state_alias := C.struct_miqt_string{}
|
||||
state_alias.data = (*C.char)(unsafe.Pointer(&state[0]))
|
||||
if len(state) > 0 {
|
||||
state_alias.data = (*C.char)(unsafe.Pointer(&state[0]))
|
||||
} else {
|
||||
state_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
state_alias.len = C.size_t(len(state))
|
||||
return (bool)(C.QMainWindow_RestoreState(this.h, state_alias))
|
||||
}
|
||||
@ -462,7 +466,11 @@ func (this *QMainWindow) SaveState1(version int) []byte {
|
||||
|
||||
func (this *QMainWindow) RestoreState2(state []byte, version int) bool {
|
||||
state_alias := C.struct_miqt_string{}
|
||||
state_alias.data = (*C.char)(unsafe.Pointer(&state[0]))
|
||||
if len(state) > 0 {
|
||||
state_alias.data = (*C.char)(unsafe.Pointer(&state[0]))
|
||||
} else {
|
||||
state_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
state_alias.len = C.size_t(len(state))
|
||||
return (bool)(C.QMainWindow_RestoreState2(this.h, state_alias, (C.int)(version)))
|
||||
}
|
||||
@ -1329,7 +1337,11 @@ func miqt_exec_callback_QMainWindow_HideEvent(self *C.QMainWindow, cb C.intptr_t
|
||||
|
||||
func (this *QMainWindow) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QMainWindow_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1387,7 +1387,11 @@ func miqt_exec_callback_QMdiArea_HideEvent(self *C.QMdiArea, cb C.intptr_t, even
|
||||
|
||||
func (this *QMdiArea) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QMdiArea_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1213,7 +1213,11 @@ func miqt_exec_callback_QMdiSubWindow_DropEvent(self *C.QMdiSubWindow, cb C.intp
|
||||
|
||||
func (this *QMdiSubWindow) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QMdiSubWindow_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1388,7 +1388,11 @@ func miqt_exec_callback_QMenu_ShowEvent(self *C.QMenu, cb C.intptr_t, event *C.Q
|
||||
|
||||
func (this *QMenu) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QMenu_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1207,7 +1207,11 @@ func miqt_exec_callback_QMenuBar_HideEvent(self *C.QMenuBar, cb C.intptr_t, even
|
||||
|
||||
func (this *QMenuBar) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QMenuBar_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -54,7 +54,11 @@ func NewQMessageAuthenticationCode(method QCryptographicHash__Algorithm) *QMessa
|
||||
// NewQMessageAuthenticationCode2 constructs a new QMessageAuthenticationCode object.
|
||||
func NewQMessageAuthenticationCode2(method QCryptographicHash__Algorithm, key []byte) *QMessageAuthenticationCode {
|
||||
key_alias := C.struct_miqt_string{}
|
||||
key_alias.data = (*C.char)(unsafe.Pointer(&key[0]))
|
||||
if len(key) > 0 {
|
||||
key_alias.data = (*C.char)(unsafe.Pointer(&key[0]))
|
||||
} else {
|
||||
key_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
key_alias.len = C.size_t(len(key))
|
||||
|
||||
return newQMessageAuthenticationCode(C.QMessageAuthenticationCode_new2((C.int)(method), key_alias))
|
||||
@ -66,7 +70,11 @@ func (this *QMessageAuthenticationCode) Reset() {
|
||||
|
||||
func (this *QMessageAuthenticationCode) SetKey(key []byte) {
|
||||
key_alias := C.struct_miqt_string{}
|
||||
key_alias.data = (*C.char)(unsafe.Pointer(&key[0]))
|
||||
if len(key) > 0 {
|
||||
key_alias.data = (*C.char)(unsafe.Pointer(&key[0]))
|
||||
} else {
|
||||
key_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
key_alias.len = C.size_t(len(key))
|
||||
C.QMessageAuthenticationCode_SetKey(this.h, key_alias)
|
||||
}
|
||||
@ -79,7 +87,11 @@ func (this *QMessageAuthenticationCode) AddData(data string, length int) {
|
||||
|
||||
func (this *QMessageAuthenticationCode) AddDataWithData(data []byte) {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
C.QMessageAuthenticationCode_AddDataWithData(this.h, data_alias)
|
||||
}
|
||||
@ -97,10 +109,18 @@ func (this *QMessageAuthenticationCode) Result() []byte {
|
||||
|
||||
func QMessageAuthenticationCode_Hash(message []byte, key []byte, method QCryptographicHash__Algorithm) []byte {
|
||||
message_alias := C.struct_miqt_string{}
|
||||
message_alias.data = (*C.char)(unsafe.Pointer(&message[0]))
|
||||
if len(message) > 0 {
|
||||
message_alias.data = (*C.char)(unsafe.Pointer(&message[0]))
|
||||
} else {
|
||||
message_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
message_alias.len = C.size_t(len(message))
|
||||
key_alias := C.struct_miqt_string{}
|
||||
key_alias.data = (*C.char)(unsafe.Pointer(&key[0]))
|
||||
if len(key) > 0 {
|
||||
key_alias.data = (*C.char)(unsafe.Pointer(&key[0]))
|
||||
} else {
|
||||
key_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
key_alias.len = C.size_t(len(key))
|
||||
var _bytearray C.struct_miqt_string = C.QMessageAuthenticationCode_Hash(message_alias, key_alias, (C.int)(method))
|
||||
_ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len)))
|
||||
|
@ -2301,7 +2301,11 @@ func miqt_exec_callback_QMessageBox_HideEvent(self *C.QMessageBox, cb C.intptr_t
|
||||
|
||||
func (this *QMessageBox) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QMessageBox_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -203,7 +203,11 @@ func QMetaType_RegisterTypedef(typeName string, aliasId int) int {
|
||||
|
||||
func QMetaType_RegisterNormalizedTypedef(normalizedTypeName []byte, aliasId int) int {
|
||||
normalizedTypeName_alias := C.struct_miqt_string{}
|
||||
normalizedTypeName_alias.data = (*C.char)(unsafe.Pointer(&normalizedTypeName[0]))
|
||||
if len(normalizedTypeName) > 0 {
|
||||
normalizedTypeName_alias.data = (*C.char)(unsafe.Pointer(&normalizedTypeName[0]))
|
||||
} else {
|
||||
normalizedTypeName_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
normalizedTypeName_alias.len = C.size_t(len(normalizedTypeName))
|
||||
return (int)(C.QMetaType_RegisterNormalizedTypedef(normalizedTypeName_alias, (C.int)(aliasId)))
|
||||
}
|
||||
@ -216,7 +220,11 @@ func QMetaType_Type(typeName string) int {
|
||||
|
||||
func QMetaType_TypeWithTypeName(typeName []byte) int {
|
||||
typeName_alias := C.struct_miqt_string{}
|
||||
typeName_alias.data = (*C.char)(unsafe.Pointer(&typeName[0]))
|
||||
if len(typeName) > 0 {
|
||||
typeName_alias.data = (*C.char)(unsafe.Pointer(&typeName[0]))
|
||||
} else {
|
||||
typeName_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
typeName_alias.len = C.size_t(len(typeName))
|
||||
return (int)(C.QMetaType_TypeWithTypeName(typeName_alias))
|
||||
}
|
||||
|
@ -193,7 +193,11 @@ func (this *QMimeData) SetData(mimetype string, data []byte) {
|
||||
mimetype_ms.len = C.size_t(len(mimetype))
|
||||
defer C.free(unsafe.Pointer(mimetype_ms.data))
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
C.QMimeData_SetData(this.h, mimetype_ms, data_alias)
|
||||
}
|
||||
|
@ -103,7 +103,11 @@ func (this *QMimeDatabase) MimeTypesForFileName(fileName string) []QMimeType {
|
||||
|
||||
func (this *QMimeDatabase) MimeTypeForData(data []byte) *QMimeType {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
_goptr := newQMimeType(C.QMimeDatabase_MimeTypeForData(this.h, data_alias))
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
@ -138,7 +142,11 @@ func (this *QMimeDatabase) MimeTypeForFileNameAndData2(fileName string, data []b
|
||||
fileName_ms.len = C.size_t(len(fileName))
|
||||
defer C.free(unsafe.Pointer(fileName_ms.data))
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
_goptr := newQMimeType(C.QMimeDatabase_MimeTypeForFileNameAndData2(this.h, fileName_ms, data_alias))
|
||||
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
||||
|
@ -96,7 +96,11 @@ func NewQMovie4(parent *QObject) *QMovie {
|
||||
// NewQMovie5 constructs a new QMovie object.
|
||||
func NewQMovie5(device *QIODevice, format []byte) *QMovie {
|
||||
format_alias := C.struct_miqt_string{}
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
if len(format) > 0 {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
} else {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
format_alias.len = C.size_t(len(format))
|
||||
|
||||
return newQMovie(C.QMovie_new5(device.cPointer(), format_alias))
|
||||
@ -105,7 +109,11 @@ func NewQMovie5(device *QIODevice, format []byte) *QMovie {
|
||||
// NewQMovie6 constructs a new QMovie object.
|
||||
func NewQMovie6(device *QIODevice, format []byte, parent *QObject) *QMovie {
|
||||
format_alias := C.struct_miqt_string{}
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
if len(format) > 0 {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
} else {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
format_alias.len = C.size_t(len(format))
|
||||
|
||||
return newQMovie(C.QMovie_new6(device.cPointer(), format_alias, parent.cPointer()))
|
||||
@ -118,7 +126,11 @@ func NewQMovie7(fileName string, format []byte) *QMovie {
|
||||
fileName_ms.len = C.size_t(len(fileName))
|
||||
defer C.free(unsafe.Pointer(fileName_ms.data))
|
||||
format_alias := C.struct_miqt_string{}
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
if len(format) > 0 {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
} else {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
format_alias.len = C.size_t(len(format))
|
||||
|
||||
return newQMovie(C.QMovie_new7(fileName_ms, format_alias))
|
||||
@ -131,7 +143,11 @@ func NewQMovie8(fileName string, format []byte, parent *QObject) *QMovie {
|
||||
fileName_ms.len = C.size_t(len(fileName))
|
||||
defer C.free(unsafe.Pointer(fileName_ms.data))
|
||||
format_alias := C.struct_miqt_string{}
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
if len(format) > 0 {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
} else {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
format_alias.len = C.size_t(len(format))
|
||||
|
||||
return newQMovie(C.QMovie_new8(fileName_ms, format_alias, parent.cPointer()))
|
||||
@ -203,7 +219,11 @@ func (this *QMovie) FileName() string {
|
||||
|
||||
func (this *QMovie) SetFormat(format []byte) {
|
||||
format_alias := C.struct_miqt_string{}
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
if len(format) > 0 {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(&format[0]))
|
||||
} else {
|
||||
format_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
format_alias.len = C.size_t(len(format))
|
||||
C.QMovie_SetFormat(this.h, format_alias)
|
||||
}
|
||||
|
@ -149,7 +149,11 @@ func (this *QPdfWriter) Resolution() int {
|
||||
|
||||
func (this *QPdfWriter) SetDocumentXmpMetadata(xmpMetadata []byte) {
|
||||
xmpMetadata_alias := C.struct_miqt_string{}
|
||||
xmpMetadata_alias.data = (*C.char)(unsafe.Pointer(&xmpMetadata[0]))
|
||||
if len(xmpMetadata) > 0 {
|
||||
xmpMetadata_alias.data = (*C.char)(unsafe.Pointer(&xmpMetadata[0]))
|
||||
} else {
|
||||
xmpMetadata_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
xmpMetadata_alias.len = C.size_t(len(xmpMetadata))
|
||||
C.QPdfWriter_SetDocumentXmpMetadata(this.h, xmpMetadata_alias)
|
||||
}
|
||||
@ -167,7 +171,11 @@ func (this *QPdfWriter) AddFileAttachment(fileName string, data []byte) {
|
||||
fileName_ms.len = C.size_t(len(fileName))
|
||||
defer C.free(unsafe.Pointer(fileName_ms.data))
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
C.QPdfWriter_AddFileAttachment(this.h, fileName_ms, data_alias)
|
||||
}
|
||||
@ -234,7 +242,11 @@ func (this *QPdfWriter) AddFileAttachment3(fileName string, data []byte, mimeTyp
|
||||
fileName_ms.len = C.size_t(len(fileName))
|
||||
defer C.free(unsafe.Pointer(fileName_ms.data))
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
mimeType_ms := C.struct_miqt_string{}
|
||||
mimeType_ms.data = C.CString(mimeType)
|
||||
|
@ -306,7 +306,11 @@ func (this *QPixmap) LoadFromData(buf *byte, lenVal uint) bool {
|
||||
|
||||
func (this *QPixmap) LoadFromDataWithData(data []byte) bool {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
return (bool)(C.QPixmap_LoadFromDataWithData(this.h, data_alias))
|
||||
}
|
||||
@ -529,7 +533,11 @@ func (this *QPixmap) LoadFromData4(buf *byte, lenVal uint, format string, flags
|
||||
|
||||
func (this *QPixmap) LoadFromData2(data []byte, format string) bool {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
format_Cstring := C.CString(format)
|
||||
defer C.free(unsafe.Pointer(format_Cstring))
|
||||
@ -538,7 +546,11 @@ func (this *QPixmap) LoadFromData2(data []byte, format string) bool {
|
||||
|
||||
func (this *QPixmap) LoadFromData32(data []byte, format string, flags ImageConversionFlag) bool {
|
||||
data_alias := C.struct_miqt_string{}
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
if len(data) > 0 {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
|
||||
} else {
|
||||
data_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
data_alias.len = C.size_t(len(data))
|
||||
format_Cstring := C.CString(format)
|
||||
defer C.free(unsafe.Pointer(format_Cstring))
|
||||
|
@ -1965,7 +1965,11 @@ func miqt_exec_callback_QPlainTextEdit_HideEvent(self *C.QPlainTextEdit, cb C.in
|
||||
|
||||
func (this *QPlainTextEdit) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QPlainTextEdit_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1139,7 +1139,11 @@ func miqt_exec_callback_QProgressBar_HideEvent(self *C.QProgressBar, cb C.intptr
|
||||
|
||||
func (this *QProgressBar) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QProgressBar_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1317,7 +1317,11 @@ func miqt_exec_callback_QProgressDialog_HideEvent(self *C.QProgressDialog, cb C.
|
||||
|
||||
func (this *QProgressDialog) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QProgressDialog_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -59,7 +59,11 @@ func NewQPropertyAnimation() *QPropertyAnimation {
|
||||
// NewQPropertyAnimation2 constructs a new QPropertyAnimation object.
|
||||
func NewQPropertyAnimation2(target *QObject, propertyName []byte) *QPropertyAnimation {
|
||||
propertyName_alias := C.struct_miqt_string{}
|
||||
propertyName_alias.data = (*C.char)(unsafe.Pointer(&propertyName[0]))
|
||||
if len(propertyName) > 0 {
|
||||
propertyName_alias.data = (*C.char)(unsafe.Pointer(&propertyName[0]))
|
||||
} else {
|
||||
propertyName_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
propertyName_alias.len = C.size_t(len(propertyName))
|
||||
|
||||
return newQPropertyAnimation(C.QPropertyAnimation_new2(target.cPointer(), propertyName_alias))
|
||||
@ -74,7 +78,11 @@ func NewQPropertyAnimation3(parent *QObject) *QPropertyAnimation {
|
||||
// NewQPropertyAnimation4 constructs a new QPropertyAnimation object.
|
||||
func NewQPropertyAnimation4(target *QObject, propertyName []byte, parent *QObject) *QPropertyAnimation {
|
||||
propertyName_alias := C.struct_miqt_string{}
|
||||
propertyName_alias.data = (*C.char)(unsafe.Pointer(&propertyName[0]))
|
||||
if len(propertyName) > 0 {
|
||||
propertyName_alias.data = (*C.char)(unsafe.Pointer(&propertyName[0]))
|
||||
} else {
|
||||
propertyName_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
propertyName_alias.len = C.size_t(len(propertyName))
|
||||
|
||||
return newQPropertyAnimation(C.QPropertyAnimation_new4(target.cPointer(), propertyName_alias, parent.cPointer()))
|
||||
@ -125,7 +133,11 @@ func (this *QPropertyAnimation) PropertyName() []byte {
|
||||
|
||||
func (this *QPropertyAnimation) SetPropertyName(propertyName []byte) {
|
||||
propertyName_alias := C.struct_miqt_string{}
|
||||
propertyName_alias.data = (*C.char)(unsafe.Pointer(&propertyName[0]))
|
||||
if len(propertyName) > 0 {
|
||||
propertyName_alias.data = (*C.char)(unsafe.Pointer(&propertyName[0]))
|
||||
} else {
|
||||
propertyName_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
propertyName_alias.len = C.size_t(len(propertyName))
|
||||
C.QPropertyAnimation_SetPropertyName(this.h, propertyName_alias)
|
||||
}
|
||||
|
@ -1185,7 +1185,11 @@ func miqt_exec_callback_QPushButton_HideEvent(self *C.QPushButton, cb C.intptr_t
|
||||
|
||||
func (this *QPushButton) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QPushButton_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1129,7 +1129,11 @@ func miqt_exec_callback_QRadioButton_HideEvent(self *C.QRadioButton, cb C.intptr
|
||||
|
||||
func (this *QRadioButton) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QRadioButton_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -791,7 +791,11 @@ func miqt_exec_callback_QRasterWindow_TabletEvent(self *C.QRasterWindow, cb C.in
|
||||
|
||||
func (this *QRasterWindow) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QRasterWindow_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -79,7 +79,11 @@ func NewQRawFont2(fileName string, pixelSize float64) *QRawFont {
|
||||
// NewQRawFont3 constructs a new QRawFont object.
|
||||
func NewQRawFont3(fontData []byte, pixelSize float64) *QRawFont {
|
||||
fontData_alias := C.struct_miqt_string{}
|
||||
fontData_alias.data = (*C.char)(unsafe.Pointer(&fontData[0]))
|
||||
if len(fontData) > 0 {
|
||||
fontData_alias.data = (*C.char)(unsafe.Pointer(&fontData[0]))
|
||||
} else {
|
||||
fontData_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
fontData_alias.len = C.size_t(len(fontData))
|
||||
|
||||
return newQRawFont(C.QRawFont_new3(fontData_alias, (C.double)(pixelSize)))
|
||||
@ -104,7 +108,11 @@ func NewQRawFont5(fileName string, pixelSize float64, hintingPreference QFont__H
|
||||
// NewQRawFont6 constructs a new QRawFont object.
|
||||
func NewQRawFont6(fontData []byte, pixelSize float64, hintingPreference QFont__HintingPreference) *QRawFont {
|
||||
fontData_alias := C.struct_miqt_string{}
|
||||
fontData_alias.data = (*C.char)(unsafe.Pointer(&fontData[0]))
|
||||
if len(fontData) > 0 {
|
||||
fontData_alias.data = (*C.char)(unsafe.Pointer(&fontData[0]))
|
||||
} else {
|
||||
fontData_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
fontData_alias.len = C.size_t(len(fontData))
|
||||
|
||||
return newQRawFont(C.QRawFont_new6(fontData_alias, (C.double)(pixelSize), (C.int)(hintingPreference)))
|
||||
@ -294,7 +302,11 @@ func (this *QRawFont) LoadFromFile(fileName string, pixelSize float64, hintingPr
|
||||
|
||||
func (this *QRawFont) LoadFromData(fontData []byte, pixelSize float64, hintingPreference QFont__HintingPreference) {
|
||||
fontData_alias := C.struct_miqt_string{}
|
||||
fontData_alias.data = (*C.char)(unsafe.Pointer(&fontData[0]))
|
||||
if len(fontData) > 0 {
|
||||
fontData_alias.data = (*C.char)(unsafe.Pointer(&fontData[0]))
|
||||
} else {
|
||||
fontData_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
fontData_alias.len = C.size_t(len(fontData))
|
||||
C.QRawFont_LoadFromData(this.h, fontData_alias, (C.double)(pixelSize), (C.int)(hintingPreference))
|
||||
}
|
||||
|
@ -1032,7 +1032,11 @@ func miqt_exec_callback_QRubberBand_HideEvent(self *C.QRubberBand, cb C.intptr_t
|
||||
|
||||
func (this *QRubberBand) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QRubberBand_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1226,7 +1226,11 @@ func miqt_exec_callback_QScrollArea_HideEvent(self *C.QScrollArea, cb C.intptr_t
|
||||
|
||||
func (this *QScrollArea) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QScrollArea_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1071,7 +1071,11 @@ func miqt_exec_callback_QScrollBar_ShowEvent(self *C.QScrollBar, cb C.intptr_t,
|
||||
|
||||
func (this *QScrollBar) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QScrollBar_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -123,7 +123,11 @@ func (this *QSignalTransition) Signal() []byte {
|
||||
|
||||
func (this *QSignalTransition) SetSignal(signal []byte) {
|
||||
signal_alias := C.struct_miqt_string{}
|
||||
signal_alias.data = (*C.char)(unsafe.Pointer(&signal[0]))
|
||||
if len(signal) > 0 {
|
||||
signal_alias.data = (*C.char)(unsafe.Pointer(&signal[0]))
|
||||
} else {
|
||||
signal_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
signal_alias.len = C.size_t(len(signal))
|
||||
C.QSignalTransition_SetSignal(this.h, signal_alias)
|
||||
}
|
||||
|
@ -1005,7 +1005,11 @@ func miqt_exec_callback_QSizeGrip_DropEvent(self *C.QSizeGrip, cb C.intptr_t, ev
|
||||
|
||||
func (this *QSizeGrip) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QSizeGrip_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1104,7 +1104,11 @@ func miqt_exec_callback_QSlider_HideEvent(self *C.QSlider, cb C.intptr_t, event
|
||||
|
||||
func (this *QSlider) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QSlider_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1952,7 +1952,11 @@ func miqt_exec_callback_QSortFilterProxyModel_RoleNames(self *C.QSortFilterProxy
|
||||
for virtualReturn_k, virtualReturn_v := range virtualReturn {
|
||||
virtualReturn_Keys_CArray[virtualReturn_ctr] = (C.int)(virtualReturn_k)
|
||||
virtualReturn_v_alias := C.struct_miqt_string{}
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
if len(virtualReturn_v) > 0 {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(&virtualReturn_v[0]))
|
||||
} else {
|
||||
virtualReturn_v_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
virtualReturn_v_alias.len = C.size_t(len(virtualReturn_v))
|
||||
virtualReturn_Values_CArray[virtualReturn_ctr] = virtualReturn_v_alias
|
||||
virtualReturn_ctr++
|
||||
|
@ -1428,7 +1428,11 @@ func miqt_exec_callback_QSpinBox_DropEvent(self *C.QSpinBox, cb C.intptr_t, even
|
||||
|
||||
func (this *QSpinBox) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QSpinBox_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
@ -3217,7 +3221,11 @@ func miqt_exec_callback_QDoubleSpinBox_DropEvent(self *C.QDoubleSpinBox, cb C.in
|
||||
|
||||
func (this *QDoubleSpinBox) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QDoubleSpinBox_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1119,7 +1119,11 @@ func miqt_exec_callback_QSplashScreen_HideEvent(self *C.QSplashScreen, cb C.intp
|
||||
|
||||
func (this *QSplashScreen) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QSplashScreen_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -191,7 +191,11 @@ func (this *QSplitter) SaveState() []byte {
|
||||
|
||||
func (this *QSplitter) RestoreState(state []byte) bool {
|
||||
state_alias := C.struct_miqt_string{}
|
||||
state_alias.data = (*C.char)(unsafe.Pointer(&state[0]))
|
||||
if len(state) > 0 {
|
||||
state_alias.data = (*C.char)(unsafe.Pointer(&state[0]))
|
||||
} else {
|
||||
state_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
state_alias.len = C.size_t(len(state))
|
||||
return (bool)(C.QSplitter_RestoreState(this.h, state_alias))
|
||||
}
|
||||
@ -1212,7 +1216,11 @@ func miqt_exec_callback_QSplitter_HideEvent(self *C.QSplitter, cb C.intptr_t, ev
|
||||
|
||||
func (this *QSplitter) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QSplitter_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
@ -2559,7 +2567,11 @@ func miqt_exec_callback_QSplitterHandle_HideEvent(self *C.QSplitterHandle, cb C.
|
||||
|
||||
func (this *QSplitterHandle) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QSplitterHandle_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
@ -1077,7 +1077,11 @@ func miqt_exec_callback_QStackedWidget_HideEvent(self *C.QStackedWidget, cb C.in
|
||||
|
||||
func (this *QStackedWidget) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
||||
eventType_alias := C.struct_miqt_string{}
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
if len(eventType) > 0 {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
||||
} else {
|
||||
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
||||
}
|
||||
eventType_alias.len = C.size_t(len(eventType))
|
||||
|
||||
return (bool)(C.QStackedWidget_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user