qt: rebuild (simpler go-side array handling)

This commit is contained in:
mappu 2024-09-17 19:30:27 +12:00
parent 15f4c367d0
commit 398ddf7a51
336 changed files with 7250 additions and 12439 deletions

View File

@ -60,8 +60,7 @@ func newQAbstractAnimation_U(h unsafe.Pointer) *QAbstractAnimation {
}
func (this *QAbstractAnimation) MetaObject() *QMetaObject {
_ret := C.QAbstractAnimation_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAbstractAnimation_MetaObject(this.h)))
}
func QAbstractAnimation_Tr(s string) string {
@ -83,18 +82,15 @@ func QAbstractAnimation_TrUtf8(s string) string {
}
func (this *QAbstractAnimation) State() QAbstractAnimation__State {
_ret := C.QAbstractAnimation_State(this.h)
return (QAbstractAnimation__State)(_ret)
return (QAbstractAnimation__State)(C.QAbstractAnimation_State(this.h))
}
func (this *QAbstractAnimation) Group() *QAnimationGroup {
_ret := C.QAbstractAnimation_Group(this.h)
return newQAnimationGroup_U(unsafe.Pointer(_ret))
return newQAnimationGroup_U(unsafe.Pointer(C.QAbstractAnimation_Group(this.h)))
}
func (this *QAbstractAnimation) Direction() QAbstractAnimation__Direction {
_ret := C.QAbstractAnimation_Direction(this.h)
return (QAbstractAnimation__Direction)(_ret)
return (QAbstractAnimation__Direction)(C.QAbstractAnimation_Direction(this.h))
}
func (this *QAbstractAnimation) SetDirection(direction QAbstractAnimation__Direction) {
@ -102,18 +98,15 @@ func (this *QAbstractAnimation) SetDirection(direction QAbstractAnimation__Direc
}
func (this *QAbstractAnimation) CurrentTime() int {
_ret := C.QAbstractAnimation_CurrentTime(this.h)
return (int)(_ret)
return (int)(C.QAbstractAnimation_CurrentTime(this.h))
}
func (this *QAbstractAnimation) CurrentLoopTime() int {
_ret := C.QAbstractAnimation_CurrentLoopTime(this.h)
return (int)(_ret)
return (int)(C.QAbstractAnimation_CurrentLoopTime(this.h))
}
func (this *QAbstractAnimation) LoopCount() int {
_ret := C.QAbstractAnimation_LoopCount(this.h)
return (int)(_ret)
return (int)(C.QAbstractAnimation_LoopCount(this.h))
}
func (this *QAbstractAnimation) SetLoopCount(loopCount int) {
@ -121,18 +114,15 @@ func (this *QAbstractAnimation) SetLoopCount(loopCount int) {
}
func (this *QAbstractAnimation) CurrentLoop() int {
_ret := C.QAbstractAnimation_CurrentLoop(this.h)
return (int)(_ret)
return (int)(C.QAbstractAnimation_CurrentLoop(this.h))
}
func (this *QAbstractAnimation) Duration() int {
_ret := C.QAbstractAnimation_Duration(this.h)
return (int)(_ret)
return (int)(C.QAbstractAnimation_Duration(this.h))
}
func (this *QAbstractAnimation) TotalDuration() int {
_ret := C.QAbstractAnimation_TotalDuration(this.h)
return (int)(_ret)
return (int)(C.QAbstractAnimation_TotalDuration(this.h))
}
func (this *QAbstractAnimation) Finished() {
@ -167,11 +157,9 @@ func miqt_exec_callback_QAbstractAnimation_StateChanged(cb *C.void, newState C.u
}
// Convert all CABI parameters to Go parameters
newState_ret := newState
slotval1 := (QAbstractAnimation__State)(newState_ret)
slotval1 := (QAbstractAnimation__State)(newState)
oldState_ret := oldState
slotval2 := (QAbstractAnimation__State)(oldState_ret)
slotval2 := (QAbstractAnimation__State)(oldState)
gofunc(slotval1, slotval2)
}
@ -191,8 +179,7 @@ func miqt_exec_callback_QAbstractAnimation_CurrentLoopChanged(cb *C.void, curren
}
// Convert all CABI parameters to Go parameters
currentLoop_ret := currentLoop
slotval1 := (int)(currentLoop_ret)
slotval1 := (int)(currentLoop)
gofunc(slotval1)
}
@ -212,8 +199,7 @@ func miqt_exec_callback_QAbstractAnimation_DirectionChanged(cb *C.void, param1 C
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (QAbstractAnimation__Direction)(param1_ret)
slotval1 := (QAbstractAnimation__Direction)(param1)
gofunc(slotval1)
}
@ -340,8 +326,7 @@ func NewQAnimationDriver2(parent *QObject) *QAnimationDriver {
}
func (this *QAnimationDriver) MetaObject() *QMetaObject {
_ret := C.QAnimationDriver_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAnimationDriver_MetaObject(this.h)))
}
func QAnimationDriver_Tr(s string) string {
@ -375,13 +360,11 @@ func (this *QAnimationDriver) Uninstall() {
}
func (this *QAnimationDriver) IsRunning() bool {
_ret := C.QAnimationDriver_IsRunning(this.h)
return (bool)(_ret)
return (bool)(C.QAnimationDriver_IsRunning(this.h))
}
func (this *QAnimationDriver) Elapsed() int64 {
_ret := C.QAnimationDriver_Elapsed(this.h)
return (int64)(_ret)
return (int64)(C.QAnimationDriver_Elapsed(this.h))
}
func (this *QAnimationDriver) SetStartTime(startTime int64) {
@ -389,8 +372,7 @@ func (this *QAnimationDriver) SetStartTime(startTime int64) {
}
func (this *QAnimationDriver) StartTime() int64 {
_ret := C.QAnimationDriver_StartTime(this.h)
return (int64)(_ret)
return (int64)(C.QAnimationDriver_StartTime(this.h))
}
func (this *QAnimationDriver) Started() {

View File

@ -38,8 +38,7 @@ func newQAbstractButton_U(h unsafe.Pointer) *QAbstractButton {
}
func (this *QAbstractButton) MetaObject() *QMetaObject {
_ret := C.QAbstractButton_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAbstractButton_MetaObject(this.h)))
}
func QAbstractButton_Tr(s string) string {
@ -107,13 +106,11 @@ func (this *QAbstractButton) SetCheckable(checkable bool) {
}
func (this *QAbstractButton) IsCheckable() bool {
_ret := C.QAbstractButton_IsCheckable(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractButton_IsCheckable(this.h))
}
func (this *QAbstractButton) IsChecked() bool {
_ret := C.QAbstractButton_IsChecked(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractButton_IsChecked(this.h))
}
func (this *QAbstractButton) SetDown(down bool) {
@ -121,8 +118,7 @@ func (this *QAbstractButton) SetDown(down bool) {
}
func (this *QAbstractButton) IsDown() bool {
_ret := C.QAbstractButton_IsDown(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractButton_IsDown(this.h))
}
func (this *QAbstractButton) SetAutoRepeat(autoRepeat bool) {
@ -130,8 +126,7 @@ func (this *QAbstractButton) SetAutoRepeat(autoRepeat bool) {
}
func (this *QAbstractButton) AutoRepeat() bool {
_ret := C.QAbstractButton_AutoRepeat(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractButton_AutoRepeat(this.h))
}
func (this *QAbstractButton) SetAutoRepeatDelay(autoRepeatDelay int) {
@ -139,8 +134,7 @@ func (this *QAbstractButton) SetAutoRepeatDelay(autoRepeatDelay int) {
}
func (this *QAbstractButton) AutoRepeatDelay() int {
_ret := C.QAbstractButton_AutoRepeatDelay(this.h)
return (int)(_ret)
return (int)(C.QAbstractButton_AutoRepeatDelay(this.h))
}
func (this *QAbstractButton) SetAutoRepeatInterval(autoRepeatInterval int) {
@ -148,8 +142,7 @@ func (this *QAbstractButton) SetAutoRepeatInterval(autoRepeatInterval int) {
}
func (this *QAbstractButton) AutoRepeatInterval() int {
_ret := C.QAbstractButton_AutoRepeatInterval(this.h)
return (int)(_ret)
return (int)(C.QAbstractButton_AutoRepeatInterval(this.h))
}
func (this *QAbstractButton) SetAutoExclusive(autoExclusive bool) {
@ -157,13 +150,11 @@ func (this *QAbstractButton) SetAutoExclusive(autoExclusive bool) {
}
func (this *QAbstractButton) AutoExclusive() bool {
_ret := C.QAbstractButton_AutoExclusive(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractButton_AutoExclusive(this.h))
}
func (this *QAbstractButton) Group() *QButtonGroup {
_ret := C.QAbstractButton_Group(this.h)
return newQButtonGroup_U(unsafe.Pointer(_ret))
return newQButtonGroup_U(unsafe.Pointer(C.QAbstractButton_Group(this.h)))
}
func (this *QAbstractButton) SetIconSize(size *QSize) {
@ -252,8 +243,7 @@ func miqt_exec_callback_QAbstractButton_Toggled(cb *C.void, checked C.bool) {
}
// Convert all CABI parameters to Go parameters
checked_ret := checked
slotval1 := (bool)(checked_ret)
slotval1 := (bool)(checked)
gofunc(slotval1)
}
@ -321,8 +311,7 @@ func miqt_exec_callback_QAbstractButton_Clicked1(cb *C.void, checked C.bool) {
}
// Convert all CABI parameters to Go parameters
checked_ret := checked
slotval1 := (bool)(checked_ret)
slotval1 := (bool)(checked)
gofunc(slotval1)
}

View File

@ -38,8 +38,7 @@ func newQAbstractEventDispatcher_U(h unsafe.Pointer) *QAbstractEventDispatcher {
}
func (this *QAbstractEventDispatcher) MetaObject() *QMetaObject {
_ret := C.QAbstractEventDispatcher_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAbstractEventDispatcher_MetaObject(this.h)))
}
func QAbstractEventDispatcher_Tr(s string) string {
@ -61,18 +60,15 @@ func QAbstractEventDispatcher_TrUtf8(s string) string {
}
func QAbstractEventDispatcher_Instance() *QAbstractEventDispatcher {
_ret := C.QAbstractEventDispatcher_Instance()
return newQAbstractEventDispatcher_U(unsafe.Pointer(_ret))
return newQAbstractEventDispatcher_U(unsafe.Pointer(C.QAbstractEventDispatcher_Instance()))
}
func (this *QAbstractEventDispatcher) ProcessEvents(flags int) bool {
_ret := C.QAbstractEventDispatcher_ProcessEvents(this.h, (C.int)(flags))
return (bool)(_ret)
return (bool)(C.QAbstractEventDispatcher_ProcessEvents(this.h, (C.int)(flags)))
}
func (this *QAbstractEventDispatcher) HasPendingEvents() bool {
_ret := C.QAbstractEventDispatcher_HasPendingEvents(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractEventDispatcher_HasPendingEvents(this.h))
}
func (this *QAbstractEventDispatcher) RegisterSocketNotifier(notifier *QSocketNotifier) {
@ -84,8 +80,7 @@ func (this *QAbstractEventDispatcher) UnregisterSocketNotifier(notifier *QSocket
}
func (this *QAbstractEventDispatcher) RegisterTimer(interval int, timerType TimerType, object *QObject) int {
_ret := C.QAbstractEventDispatcher_RegisterTimer(this.h, (C.int)(interval), (C.uintptr_t)(timerType), object.cPointer())
return (int)(_ret)
return (int)(C.QAbstractEventDispatcher_RegisterTimer(this.h, (C.int)(interval), (C.uintptr_t)(timerType), object.cPointer()))
}
func (this *QAbstractEventDispatcher) RegisterTimer2(timerId int, interval int, timerType TimerType, object *QObject) {
@ -93,29 +88,29 @@ func (this *QAbstractEventDispatcher) RegisterTimer2(timerId int, interval int,
}
func (this *QAbstractEventDispatcher) UnregisterTimer(timerId int) bool {
_ret := C.QAbstractEventDispatcher_UnregisterTimer(this.h, (C.int)(timerId))
return (bool)(_ret)
return (bool)(C.QAbstractEventDispatcher_UnregisterTimer(this.h, (C.int)(timerId)))
}
func (this *QAbstractEventDispatcher) UnregisterTimers(object *QObject) bool {
_ret := C.QAbstractEventDispatcher_UnregisterTimers(this.h, object.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractEventDispatcher_UnregisterTimers(this.h, object.cPointer()))
}
func (this *QAbstractEventDispatcher) RegisteredTimers(object *QObject) []QAbstractEventDispatcher__TimerInfo {
var _ma *C.struct_miqt_array = C.QAbstractEventDispatcher_RegisteredTimers(this.h, object.cPointer())
_ret := make([]QAbstractEventDispatcher__TimerInfo, int(_ma.len))
_outCast := (*[0xffff]*C.QAbstractEventDispatcher__TimerInfo)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QAbstractEventDispatcher__TimerInfo)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQAbstractEventDispatcher__TimerInfo(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQAbstractEventDispatcher__TimerInfo(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QAbstractEventDispatcher) RemainingTime(timerId int) int {
_ret := C.QAbstractEventDispatcher_RemainingTime(this.h, (C.int)(timerId))
return (int)(_ret)
return (int)(C.QAbstractEventDispatcher_RemainingTime(this.h, (C.int)(timerId)))
}
func (this *QAbstractEventDispatcher) WakeUp() {
@ -225,8 +220,7 @@ func QAbstractEventDispatcher_TrUtf83(s string, c string, n int) string {
}
func QAbstractEventDispatcher_Instance1(thread *QThread) *QAbstractEventDispatcher {
_ret := C.QAbstractEventDispatcher_Instance1(thread.cPointer())
return newQAbstractEventDispatcher_U(unsafe.Pointer(_ret))
return newQAbstractEventDispatcher_U(unsafe.Pointer(C.QAbstractEventDispatcher_Instance1(thread.cPointer())))
}
// Delete this object from C++ memory.

View File

@ -48,8 +48,7 @@ func newQAbstractItemDelegate_U(h unsafe.Pointer) *QAbstractItemDelegate {
}
func (this *QAbstractItemDelegate) MetaObject() *QMetaObject {
_ret := C.QAbstractItemDelegate_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAbstractItemDelegate_MetaObject(this.h)))
}
func QAbstractItemDelegate_Tr(s string) string {
@ -82,8 +81,7 @@ func (this *QAbstractItemDelegate) SizeHint(option *QStyleOptionViewItem, index
}
func (this *QAbstractItemDelegate) CreateEditor(parent *QWidget, option *QStyleOptionViewItem, index *QModelIndex) *QWidget {
_ret := C.QAbstractItemDelegate_CreateEditor(this.h, parent.cPointer(), option.cPointer(), index.cPointer())
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QAbstractItemDelegate_CreateEditor(this.h, parent.cPointer(), option.cPointer(), index.cPointer())))
}
func (this *QAbstractItemDelegate) DestroyEditor(editor *QWidget, index *QModelIndex) {
@ -103,8 +101,7 @@ func (this *QAbstractItemDelegate) UpdateEditorGeometry(editor *QWidget, option
}
func (this *QAbstractItemDelegate) EditorEvent(event *QEvent, model *QAbstractItemModel, option *QStyleOptionViewItem, index *QModelIndex) bool {
_ret := C.QAbstractItemDelegate_EditorEvent(this.h, event.cPointer(), model.cPointer(), option.cPointer(), index.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemDelegate_EditorEvent(this.h, event.cPointer(), model.cPointer(), option.cPointer(), index.cPointer()))
}
func QAbstractItemDelegate_ElidedText(fontMetrics *QFontMetrics, width int, mode TextElideMode, text string) string {
@ -117,14 +114,13 @@ func QAbstractItemDelegate_ElidedText(fontMetrics *QFontMetrics, width int, mode
}
func (this *QAbstractItemDelegate) HelpEvent(event *QHelpEvent, view *QAbstractItemView, option *QStyleOptionViewItem, index *QModelIndex) bool {
_ret := C.QAbstractItemDelegate_HelpEvent(this.h, event.cPointer(), view.cPointer(), option.cPointer(), index.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemDelegate_HelpEvent(this.h, event.cPointer(), view.cPointer(), option.cPointer(), index.cPointer()))
}
func (this *QAbstractItemDelegate) PaintingRoles() []int {
var _ma *C.struct_miqt_array = C.QAbstractItemDelegate_PaintingRoles(this.h)
_ret := make([]int, int(_ma.len))
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (int)(_outCast[i])
}
@ -147,8 +143,7 @@ func miqt_exec_callback_QAbstractItemDelegate_CommitData(cb *C.void, editor *C.Q
}
// Convert all CABI parameters to Go parameters
editor_ret := editor
slotval1 := newQWidget_U(unsafe.Pointer(editor_ret))
slotval1 := newQWidget_U(unsafe.Pointer(editor))
gofunc(slotval1)
}
@ -168,8 +163,7 @@ func miqt_exec_callback_QAbstractItemDelegate_CloseEditor(cb *C.void, editor *C.
}
// Convert all CABI parameters to Go parameters
editor_ret := editor
slotval1 := newQWidget_U(unsafe.Pointer(editor_ret))
slotval1 := newQWidget_U(unsafe.Pointer(editor))
gofunc(slotval1)
}
@ -189,8 +183,7 @@ func miqt_exec_callback_QAbstractItemDelegate_SizeHintChanged(cb *C.void, param1
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := newQModelIndex_U(unsafe.Pointer(param1_ret))
slotval1 := newQModelIndex_U(unsafe.Pointer(param1))
gofunc(slotval1)
}
@ -254,10 +247,8 @@ func miqt_exec_callback_QAbstractItemDelegate_CloseEditor2(cb *C.void, editor *C
}
// Convert all CABI parameters to Go parameters
editor_ret := editor
slotval1 := newQWidget_U(unsafe.Pointer(editor_ret))
hint_ret := hint
slotval2 := (QAbstractItemDelegate__EndEditHint)(hint_ret)
slotval1 := newQWidget_U(unsafe.Pointer(editor))
slotval2 := (QAbstractItemDelegate__EndEditHint)(hint)
gofunc(slotval1, slotval2)
}

View File

@ -66,18 +66,15 @@ func NewQModelIndex2(param1 *QModelIndex) *QModelIndex {
}
func (this *QModelIndex) Row() int {
_ret := C.QModelIndex_Row(this.h)
return (int)(_ret)
return (int)(C.QModelIndex_Row(this.h))
}
func (this *QModelIndex) Column() int {
_ret := C.QModelIndex_Column(this.h)
return (int)(_ret)
return (int)(C.QModelIndex_Column(this.h))
}
func (this *QModelIndex) InternalId() uintptr {
_ret := C.QModelIndex_InternalId(this.h)
return (uintptr)(_ret)
return (uintptr)(C.QModelIndex_InternalId(this.h))
}
func (this *QModelIndex) Parent() *QModelIndex {
@ -123,33 +120,27 @@ func (this *QModelIndex) Data() *QVariant {
}
func (this *QModelIndex) Flags() int {
_ret := C.QModelIndex_Flags(this.h)
return (int)(_ret)
return (int)(C.QModelIndex_Flags(this.h))
}
func (this *QModelIndex) Model() *QAbstractItemModel {
_ret := C.QModelIndex_Model(this.h)
return newQAbstractItemModel_U(unsafe.Pointer(_ret))
return newQAbstractItemModel_U(unsafe.Pointer(C.QModelIndex_Model(this.h)))
}
func (this *QModelIndex) IsValid() bool {
_ret := C.QModelIndex_IsValid(this.h)
return (bool)(_ret)
return (bool)(C.QModelIndex_IsValid(this.h))
}
func (this *QModelIndex) OperatorEqual(other *QModelIndex) bool {
_ret := C.QModelIndex_OperatorEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QModelIndex_OperatorEqual(this.h, other.cPointer()))
}
func (this *QModelIndex) OperatorNotEqual(other *QModelIndex) bool {
_ret := C.QModelIndex_OperatorNotEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QModelIndex_OperatorNotEqual(this.h, other.cPointer()))
}
func (this *QModelIndex) OperatorLesser(other *QModelIndex) bool {
_ret := C.QModelIndex_OperatorLesser(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QModelIndex_OperatorLesser(this.h, other.cPointer()))
}
func (this *QModelIndex) Data1(role int) *QVariant {
@ -214,18 +205,15 @@ func NewQPersistentModelIndex3(other *QPersistentModelIndex) *QPersistentModelIn
}
func (this *QPersistentModelIndex) OperatorLesser(other *QPersistentModelIndex) bool {
_ret := C.QPersistentModelIndex_OperatorLesser(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QPersistentModelIndex_OperatorLesser(this.h, other.cPointer()))
}
func (this *QPersistentModelIndex) OperatorEqual(other *QPersistentModelIndex) bool {
_ret := C.QPersistentModelIndex_OperatorEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QPersistentModelIndex_OperatorEqual(this.h, other.cPointer()))
}
func (this *QPersistentModelIndex) OperatorNotEqual(other *QPersistentModelIndex) bool {
_ret := C.QPersistentModelIndex_OperatorNotEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QPersistentModelIndex_OperatorNotEqual(this.h, other.cPointer()))
}
func (this *QPersistentModelIndex) OperatorAssign(other *QPersistentModelIndex) {
@ -237,13 +225,11 @@ func (this *QPersistentModelIndex) Swap(other *QPersistentModelIndex) {
}
func (this *QPersistentModelIndex) OperatorEqualWithOther(other *QModelIndex) bool {
_ret := C.QPersistentModelIndex_OperatorEqualWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QPersistentModelIndex_OperatorEqualWithOther(this.h, other.cPointer()))
}
func (this *QPersistentModelIndex) OperatorNotEqualWithOther(other *QModelIndex) bool {
_ret := C.QPersistentModelIndex_OperatorNotEqualWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QPersistentModelIndex_OperatorNotEqualWithOther(this.h, other.cPointer()))
}
func (this *QPersistentModelIndex) OperatorAssignWithOther(other *QModelIndex) {
@ -251,18 +237,15 @@ func (this *QPersistentModelIndex) OperatorAssignWithOther(other *QModelIndex) {
}
func (this *QPersistentModelIndex) Row() int {
_ret := C.QPersistentModelIndex_Row(this.h)
return (int)(_ret)
return (int)(C.QPersistentModelIndex_Row(this.h))
}
func (this *QPersistentModelIndex) Column() int {
_ret := C.QPersistentModelIndex_Column(this.h)
return (int)(_ret)
return (int)(C.QPersistentModelIndex_Column(this.h))
}
func (this *QPersistentModelIndex) InternalId() uintptr {
_ret := C.QPersistentModelIndex_InternalId(this.h)
return (uintptr)(_ret)
return (uintptr)(C.QPersistentModelIndex_InternalId(this.h))
}
func (this *QPersistentModelIndex) Parent() *QModelIndex {
@ -294,18 +277,15 @@ func (this *QPersistentModelIndex) Data() *QVariant {
}
func (this *QPersistentModelIndex) Flags() int {
_ret := C.QPersistentModelIndex_Flags(this.h)
return (int)(_ret)
return (int)(C.QPersistentModelIndex_Flags(this.h))
}
func (this *QPersistentModelIndex) Model() *QAbstractItemModel {
_ret := C.QPersistentModelIndex_Model(this.h)
return newQAbstractItemModel_U(unsafe.Pointer(_ret))
return newQAbstractItemModel_U(unsafe.Pointer(C.QPersistentModelIndex_Model(this.h)))
}
func (this *QPersistentModelIndex) IsValid() bool {
_ret := C.QPersistentModelIndex_IsValid(this.h)
return (bool)(_ret)
return (bool)(C.QPersistentModelIndex_IsValid(this.h))
}
func (this *QPersistentModelIndex) Data1(role int) *QVariant {
@ -353,8 +333,7 @@ func newQAbstractItemModel_U(h unsafe.Pointer) *QAbstractItemModel {
}
func (this *QAbstractItemModel) MetaObject() *QMetaObject {
_ret := C.QAbstractItemModel_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAbstractItemModel_MetaObject(this.h)))
}
func QAbstractItemModel_Tr(s string) string {
@ -376,8 +355,7 @@ func QAbstractItemModel_TrUtf8(s string) string {
}
func (this *QAbstractItemModel) HasIndex(row int, column int) bool {
_ret := C.QAbstractItemModel_HasIndex(this.h, (C.int)(row), (C.int)(column))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_HasIndex(this.h, (C.int)(row), (C.int)(column)))
}
func (this *QAbstractItemModel) Index(row int, column int) *QModelIndex {
@ -402,18 +380,15 @@ func (this *QAbstractItemModel) Sibling(row int, column int, idx *QModelIndex) *
}
func (this *QAbstractItemModel) RowCount() int {
_ret := C.QAbstractItemModel_RowCount(this.h)
return (int)(_ret)
return (int)(C.QAbstractItemModel_RowCount(this.h))
}
func (this *QAbstractItemModel) ColumnCount() int {
_ret := C.QAbstractItemModel_ColumnCount(this.h)
return (int)(_ret)
return (int)(C.QAbstractItemModel_ColumnCount(this.h))
}
func (this *QAbstractItemModel) HasChildren() bool {
_ret := C.QAbstractItemModel_HasChildren(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_HasChildren(this.h))
}
func (this *QAbstractItemModel) Data(index *QModelIndex) *QVariant {
@ -424,8 +399,7 @@ func (this *QAbstractItemModel) Data(index *QModelIndex) *QVariant {
}
func (this *QAbstractItemModel) SetData(index *QModelIndex, value *QVariant) bool {
_ret := C.QAbstractItemModel_SetData(this.h, index.cPointer(), value.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_SetData(this.h, index.cPointer(), value.cPointer()))
}
func (this *QAbstractItemModel) HeaderData(section int, orientation Orientation) *QVariant {
@ -436,8 +410,7 @@ func (this *QAbstractItemModel) HeaderData(section int, orientation Orientation)
}
func (this *QAbstractItemModel) SetHeaderData(section int, orientation Orientation, value *QVariant) bool {
_ret := C.QAbstractItemModel_SetHeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_SetHeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer()))
}
func (this *QAbstractItemModel) MimeTypes() []string {
@ -445,8 +418,10 @@ func (this *QAbstractItemModel) MimeTypes() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -461,88 +436,71 @@ func (this *QAbstractItemModel) MimeData(indexes []QModelIndex) *QMimeData {
}
indexes_ma := &C.struct_miqt_array{len: C.size_t(len(indexes)), data: unsafe.Pointer(indexes_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(indexes_ma))
_ret := C.QAbstractItemModel_MimeData(this.h, indexes_ma)
return newQMimeData_U(unsafe.Pointer(_ret))
return newQMimeData_U(unsafe.Pointer(C.QAbstractItemModel_MimeData(this.h, indexes_ma)))
}
func (this *QAbstractItemModel) CanDropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool {
_ret := C.QAbstractItemModel_CanDropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_CanDropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QAbstractItemModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool {
_ret := C.QAbstractItemModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QAbstractItemModel) SupportedDropActions() int {
_ret := C.QAbstractItemModel_SupportedDropActions(this.h)
return (int)(_ret)
return (int)(C.QAbstractItemModel_SupportedDropActions(this.h))
}
func (this *QAbstractItemModel) SupportedDragActions() int {
_ret := C.QAbstractItemModel_SupportedDragActions(this.h)
return (int)(_ret)
return (int)(C.QAbstractItemModel_SupportedDragActions(this.h))
}
func (this *QAbstractItemModel) InsertRows(row int, count int) bool {
_ret := C.QAbstractItemModel_InsertRows(this.h, (C.int)(row), (C.int)(count))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_InsertRows(this.h, (C.int)(row), (C.int)(count)))
}
func (this *QAbstractItemModel) InsertColumns(column int, count int) bool {
_ret := C.QAbstractItemModel_InsertColumns(this.h, (C.int)(column), (C.int)(count))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_InsertColumns(this.h, (C.int)(column), (C.int)(count)))
}
func (this *QAbstractItemModel) RemoveRows(row int, count int) bool {
_ret := C.QAbstractItemModel_RemoveRows(this.h, (C.int)(row), (C.int)(count))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_RemoveRows(this.h, (C.int)(row), (C.int)(count)))
}
func (this *QAbstractItemModel) RemoveColumns(column int, count int) bool {
_ret := C.QAbstractItemModel_RemoveColumns(this.h, (C.int)(column), (C.int)(count))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_RemoveColumns(this.h, (C.int)(column), (C.int)(count)))
}
func (this *QAbstractItemModel) MoveRows(sourceParent *QModelIndex, sourceRow int, count int, destinationParent *QModelIndex, destinationChild int) bool {
_ret := C.QAbstractItemModel_MoveRows(this.h, sourceParent.cPointer(), (C.int)(sourceRow), (C.int)(count), destinationParent.cPointer(), (C.int)(destinationChild))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_MoveRows(this.h, sourceParent.cPointer(), (C.int)(sourceRow), (C.int)(count), destinationParent.cPointer(), (C.int)(destinationChild)))
}
func (this *QAbstractItemModel) MoveColumns(sourceParent *QModelIndex, sourceColumn int, count int, destinationParent *QModelIndex, destinationChild int) bool {
_ret := C.QAbstractItemModel_MoveColumns(this.h, sourceParent.cPointer(), (C.int)(sourceColumn), (C.int)(count), destinationParent.cPointer(), (C.int)(destinationChild))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_MoveColumns(this.h, sourceParent.cPointer(), (C.int)(sourceColumn), (C.int)(count), destinationParent.cPointer(), (C.int)(destinationChild)))
}
func (this *QAbstractItemModel) InsertRow(row int) bool {
_ret := C.QAbstractItemModel_InsertRow(this.h, (C.int)(row))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_InsertRow(this.h, (C.int)(row)))
}
func (this *QAbstractItemModel) InsertColumn(column int) bool {
_ret := C.QAbstractItemModel_InsertColumn(this.h, (C.int)(column))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_InsertColumn(this.h, (C.int)(column)))
}
func (this *QAbstractItemModel) RemoveRow(row int) bool {
_ret := C.QAbstractItemModel_RemoveRow(this.h, (C.int)(row))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_RemoveRow(this.h, (C.int)(row)))
}
func (this *QAbstractItemModel) RemoveColumn(column int) bool {
_ret := C.QAbstractItemModel_RemoveColumn(this.h, (C.int)(column))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_RemoveColumn(this.h, (C.int)(column)))
}
func (this *QAbstractItemModel) MoveRow(sourceParent *QModelIndex, sourceRow int, destinationParent *QModelIndex, destinationChild int) bool {
_ret := C.QAbstractItemModel_MoveRow(this.h, sourceParent.cPointer(), (C.int)(sourceRow), destinationParent.cPointer(), (C.int)(destinationChild))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_MoveRow(this.h, sourceParent.cPointer(), (C.int)(sourceRow), destinationParent.cPointer(), (C.int)(destinationChild)))
}
func (this *QAbstractItemModel) MoveColumn(sourceParent *QModelIndex, sourceColumn int, destinationParent *QModelIndex, destinationChild int) bool {
_ret := C.QAbstractItemModel_MoveColumn(this.h, sourceParent.cPointer(), (C.int)(sourceColumn), destinationParent.cPointer(), (C.int)(destinationChild))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_MoveColumn(this.h, sourceParent.cPointer(), (C.int)(sourceColumn), destinationParent.cPointer(), (C.int)(destinationChild)))
}
func (this *QAbstractItemModel) FetchMore(parent *QModelIndex) {
@ -550,13 +508,11 @@ func (this *QAbstractItemModel) FetchMore(parent *QModelIndex) {
}
func (this *QAbstractItemModel) CanFetchMore(parent *QModelIndex) bool {
_ret := C.QAbstractItemModel_CanFetchMore(this.h, parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_CanFetchMore(this.h, parent.cPointer()))
}
func (this *QAbstractItemModel) Flags(index *QModelIndex) int {
_ret := C.QAbstractItemModel_Flags(this.h, index.cPointer())
return (int)(_ret)
return (int)(C.QAbstractItemModel_Flags(this.h, index.cPointer()))
}
func (this *QAbstractItemModel) Sort(column int) {
@ -573,9 +529,12 @@ func (this *QAbstractItemModel) Buddy(index *QModelIndex) *QModelIndex {
func (this *QAbstractItemModel) Match(start *QModelIndex, role int, value *QVariant) []QModelIndex {
var _ma *C.struct_miqt_array = C.QAbstractItemModel_Match(this.h, start.cPointer(), (C.int)(role), value.cPointer())
_ret := make([]QModelIndex, int(_ma.len))
_outCast := (*[0xffff]*C.QModelIndex)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QModelIndex)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQModelIndex(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQModelIndex(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -589,8 +548,7 @@ func (this *QAbstractItemModel) Span(index *QModelIndex) *QSize {
}
func (this *QAbstractItemModel) CheckIndex(index *QModelIndex) bool {
_ret := C.QAbstractItemModel_CheckIndex(this.h, index.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_CheckIndex(this.h, index.cPointer()))
}
func (this *QAbstractItemModel) DataChanged(topLeft *QModelIndex, bottomRight *QModelIndex) {
@ -608,10 +566,8 @@ func miqt_exec_callback_QAbstractItemModel_DataChanged(cb *C.void, topLeft *C.QM
}
// Convert all CABI parameters to Go parameters
topLeft_ret := topLeft
slotval1 := newQModelIndex_U(unsafe.Pointer(topLeft_ret))
bottomRight_ret := bottomRight
slotval2 := newQModelIndex_U(unsafe.Pointer(bottomRight_ret))
slotval1 := newQModelIndex_U(unsafe.Pointer(topLeft))
slotval2 := newQModelIndex_U(unsafe.Pointer(bottomRight))
gofunc(slotval1, slotval2)
}
@ -631,14 +587,11 @@ func miqt_exec_callback_QAbstractItemModel_HeaderDataChanged(cb *C.void, orienta
}
// Convert all CABI parameters to Go parameters
orientation_ret := orientation
slotval1 := (Orientation)(orientation_ret)
slotval1 := (Orientation)(orientation)
first_ret := first
slotval2 := (int)(first_ret)
slotval2 := (int)(first)
last_ret := last
slotval3 := (int)(last_ret)
slotval3 := (int)(last)
gofunc(slotval1, slotval2, slotval3)
}
@ -678,8 +631,7 @@ func miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged(cb *C.void) {
}
func (this *QAbstractItemModel) Submit() bool {
_ret := C.QAbstractItemModel_Submit(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_Submit(this.h))
}
func (this *QAbstractItemModel) Revert() {
@ -731,8 +683,7 @@ func QAbstractItemModel_TrUtf83(s string, c string, n int) string {
}
func (this *QAbstractItemModel) HasIndex3(row int, column int, parent *QModelIndex) bool {
_ret := C.QAbstractItemModel_HasIndex3(this.h, (C.int)(row), (C.int)(column), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_HasIndex3(this.h, (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QAbstractItemModel) Index3(row int, column int, parent *QModelIndex) *QModelIndex {
@ -743,18 +694,15 @@ func (this *QAbstractItemModel) Index3(row int, column int, parent *QModelIndex)
}
func (this *QAbstractItemModel) RowCount1(parent *QModelIndex) int {
_ret := C.QAbstractItemModel_RowCount1(this.h, parent.cPointer())
return (int)(_ret)
return (int)(C.QAbstractItemModel_RowCount1(this.h, parent.cPointer()))
}
func (this *QAbstractItemModel) ColumnCount1(parent *QModelIndex) int {
_ret := C.QAbstractItemModel_ColumnCount1(this.h, parent.cPointer())
return (int)(_ret)
return (int)(C.QAbstractItemModel_ColumnCount1(this.h, parent.cPointer()))
}
func (this *QAbstractItemModel) HasChildren1(parent *QModelIndex) bool {
_ret := C.QAbstractItemModel_HasChildren1(this.h, parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_HasChildren1(this.h, parent.cPointer()))
}
func (this *QAbstractItemModel) Data2(index *QModelIndex, role int) *QVariant {
@ -765,8 +713,7 @@ func (this *QAbstractItemModel) Data2(index *QModelIndex, role int) *QVariant {
}
func (this *QAbstractItemModel) SetData3(index *QModelIndex, value *QVariant, role int) bool {
_ret := C.QAbstractItemModel_SetData3(this.h, index.cPointer(), value.cPointer(), (C.int)(role))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_SetData3(this.h, index.cPointer(), value.cPointer(), (C.int)(role)))
}
func (this *QAbstractItemModel) HeaderData3(section int, orientation Orientation, role int) *QVariant {
@ -777,48 +724,39 @@ func (this *QAbstractItemModel) HeaderData3(section int, orientation Orientation
}
func (this *QAbstractItemModel) SetHeaderData4(section int, orientation Orientation, value *QVariant, role int) bool {
_ret := C.QAbstractItemModel_SetHeaderData4(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer(), (C.int)(role))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_SetHeaderData4(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer(), (C.int)(role)))
}
func (this *QAbstractItemModel) InsertRows3(row int, count int, parent *QModelIndex) bool {
_ret := C.QAbstractItemModel_InsertRows3(this.h, (C.int)(row), (C.int)(count), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_InsertRows3(this.h, (C.int)(row), (C.int)(count), parent.cPointer()))
}
func (this *QAbstractItemModel) InsertColumns3(column int, count int, parent *QModelIndex) bool {
_ret := C.QAbstractItemModel_InsertColumns3(this.h, (C.int)(column), (C.int)(count), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_InsertColumns3(this.h, (C.int)(column), (C.int)(count), parent.cPointer()))
}
func (this *QAbstractItemModel) RemoveRows3(row int, count int, parent *QModelIndex) bool {
_ret := C.QAbstractItemModel_RemoveRows3(this.h, (C.int)(row), (C.int)(count), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_RemoveRows3(this.h, (C.int)(row), (C.int)(count), parent.cPointer()))
}
func (this *QAbstractItemModel) RemoveColumns3(column int, count int, parent *QModelIndex) bool {
_ret := C.QAbstractItemModel_RemoveColumns3(this.h, (C.int)(column), (C.int)(count), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_RemoveColumns3(this.h, (C.int)(column), (C.int)(count), parent.cPointer()))
}
func (this *QAbstractItemModel) InsertRow2(row int, parent *QModelIndex) bool {
_ret := C.QAbstractItemModel_InsertRow2(this.h, (C.int)(row), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_InsertRow2(this.h, (C.int)(row), parent.cPointer()))
}
func (this *QAbstractItemModel) InsertColumn2(column int, parent *QModelIndex) bool {
_ret := C.QAbstractItemModel_InsertColumn2(this.h, (C.int)(column), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_InsertColumn2(this.h, (C.int)(column), parent.cPointer()))
}
func (this *QAbstractItemModel) RemoveRow2(row int, parent *QModelIndex) bool {
_ret := C.QAbstractItemModel_RemoveRow2(this.h, (C.int)(row), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_RemoveRow2(this.h, (C.int)(row), parent.cPointer()))
}
func (this *QAbstractItemModel) RemoveColumn2(column int, parent *QModelIndex) bool {
_ret := C.QAbstractItemModel_RemoveColumn2(this.h, (C.int)(column), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_RemoveColumn2(this.h, (C.int)(column), parent.cPointer()))
}
func (this *QAbstractItemModel) Sort2(column int, order SortOrder) {
@ -828,9 +766,12 @@ func (this *QAbstractItemModel) Sort2(column int, order SortOrder) {
func (this *QAbstractItemModel) Match4(start *QModelIndex, role int, value *QVariant, hits int) []QModelIndex {
var _ma *C.struct_miqt_array = C.QAbstractItemModel_Match4(this.h, start.cPointer(), (C.int)(role), value.cPointer(), (C.int)(hits))
_ret := make([]QModelIndex, int(_ma.len))
_outCast := (*[0xffff]*C.QModelIndex)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QModelIndex)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQModelIndex(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQModelIndex(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -839,17 +780,19 @@ func (this *QAbstractItemModel) Match4(start *QModelIndex, role int, value *QVar
func (this *QAbstractItemModel) Match5(start *QModelIndex, role int, value *QVariant, hits int, flags int) []QModelIndex {
var _ma *C.struct_miqt_array = C.QAbstractItemModel_Match5(this.h, start.cPointer(), (C.int)(role), value.cPointer(), (C.int)(hits), (C.int)(flags))
_ret := make([]QModelIndex, int(_ma.len))
_outCast := (*[0xffff]*C.QModelIndex)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QModelIndex)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQModelIndex(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQModelIndex(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QAbstractItemModel) CheckIndex2(index *QModelIndex, options int) bool {
_ret := C.QAbstractItemModel_CheckIndex2(this.h, index.cPointer(), (C.int)(options))
return (bool)(_ret)
return (bool)(C.QAbstractItemModel_CheckIndex2(this.h, index.cPointer(), (C.int)(options)))
}
func (this *QAbstractItemModel) DataChanged3(topLeft *QModelIndex, bottomRight *QModelIndex, roles []int) {
@ -875,15 +818,13 @@ func miqt_exec_callback_QAbstractItemModel_DataChanged3(cb *C.void, topLeft *C.Q
}
// Convert all CABI parameters to Go parameters
topLeft_ret := topLeft
slotval1 := newQModelIndex_U(unsafe.Pointer(topLeft_ret))
bottomRight_ret := bottomRight
slotval2 := newQModelIndex_U(unsafe.Pointer(bottomRight_ret))
slotval1 := newQModelIndex_U(unsafe.Pointer(topLeft))
slotval2 := newQModelIndex_U(unsafe.Pointer(bottomRight))
var roles_ma *C.struct_miqt_array = roles
roles_ret := make([]int, int(roles_ma.len))
_outCast := (*[0xffff]C.int)(unsafe.Pointer(roles_ma.data)) // mrs jackson
roles_outCast := (*[0xffff]C.int)(unsafe.Pointer(roles_ma.data)) // hey ya
for i := 0; i < int(roles_ma.len); i++ {
roles_ret[i] = (int)(_outCast[i])
roles_ret[i] = (int)(roles_outCast[i])
}
C.free(unsafe.Pointer(roles_ma))
slotval3 := roles_ret
@ -916,9 +857,12 @@ func miqt_exec_callback_QAbstractItemModel_LayoutChanged1(cb *C.void, parents *C
// Convert all CABI parameters to Go parameters
var parents_ma *C.struct_miqt_array = parents
parents_ret := make([]QPersistentModelIndex, int(parents_ma.len))
_outCast := (*[0xffff]*C.QPersistentModelIndex)(unsafe.Pointer(parents_ma.data)) // mrs jackson
parents_outCast := (*[0xffff]*C.QPersistentModelIndex)(unsafe.Pointer(parents_ma.data)) // hey ya
for i := 0; i < int(parents_ma.len); i++ {
parents_ret[i] = *newQPersistentModelIndex(_outCast[i])
parents_lv_ret := parents_outCast[i]
parents_lv_goptr := newQPersistentModelIndex(parents_lv_ret)
parents_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
parents_ret[i] = *parents_lv_goptr
}
C.free(unsafe.Pointer(parents_ma))
slotval1 := parents_ret
@ -951,15 +895,17 @@ func miqt_exec_callback_QAbstractItemModel_LayoutChanged2(cb *C.void, parents *C
// Convert all CABI parameters to Go parameters
var parents_ma *C.struct_miqt_array = parents
parents_ret := make([]QPersistentModelIndex, int(parents_ma.len))
_outCast := (*[0xffff]*C.QPersistentModelIndex)(unsafe.Pointer(parents_ma.data)) // mrs jackson
parents_outCast := (*[0xffff]*C.QPersistentModelIndex)(unsafe.Pointer(parents_ma.data)) // hey ya
for i := 0; i < int(parents_ma.len); i++ {
parents_ret[i] = *newQPersistentModelIndex(_outCast[i])
parents_lv_ret := parents_outCast[i]
parents_lv_goptr := newQPersistentModelIndex(parents_lv_ret)
parents_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
parents_ret[i] = *parents_lv_goptr
}
C.free(unsafe.Pointer(parents_ma))
slotval1 := parents_ret
hint_ret := hint
slotval2 := (QAbstractItemModel__LayoutChangeHint)(hint_ret)
slotval2 := (QAbstractItemModel__LayoutChangeHint)(hint)
gofunc(slotval1, slotval2)
}
@ -989,9 +935,12 @@ func miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged1(cb *C.void, p
// Convert all CABI parameters to Go parameters
var parents_ma *C.struct_miqt_array = parents
parents_ret := make([]QPersistentModelIndex, int(parents_ma.len))
_outCast := (*[0xffff]*C.QPersistentModelIndex)(unsafe.Pointer(parents_ma.data)) // mrs jackson
parents_outCast := (*[0xffff]*C.QPersistentModelIndex)(unsafe.Pointer(parents_ma.data)) // hey ya
for i := 0; i < int(parents_ma.len); i++ {
parents_ret[i] = *newQPersistentModelIndex(_outCast[i])
parents_lv_ret := parents_outCast[i]
parents_lv_goptr := newQPersistentModelIndex(parents_lv_ret)
parents_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
parents_ret[i] = *parents_lv_goptr
}
C.free(unsafe.Pointer(parents_ma))
slotval1 := parents_ret
@ -1024,15 +973,17 @@ func miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged2(cb *C.void, p
// Convert all CABI parameters to Go parameters
var parents_ma *C.struct_miqt_array = parents
parents_ret := make([]QPersistentModelIndex, int(parents_ma.len))
_outCast := (*[0xffff]*C.QPersistentModelIndex)(unsafe.Pointer(parents_ma.data)) // mrs jackson
parents_outCast := (*[0xffff]*C.QPersistentModelIndex)(unsafe.Pointer(parents_ma.data)) // hey ya
for i := 0; i < int(parents_ma.len); i++ {
parents_ret[i] = *newQPersistentModelIndex(_outCast[i])
parents_lv_ret := parents_outCast[i]
parents_lv_goptr := newQPersistentModelIndex(parents_lv_ret)
parents_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
parents_ret[i] = *parents_lv_goptr
}
C.free(unsafe.Pointer(parents_ma))
slotval1 := parents_ret
hint_ret := hint
slotval2 := (QAbstractItemModel__LayoutChangeHint)(hint_ret)
slotval2 := (QAbstractItemModel__LayoutChangeHint)(hint)
gofunc(slotval1, slotval2)
}
@ -1075,8 +1026,7 @@ func newQAbstractTableModel_U(h unsafe.Pointer) *QAbstractTableModel {
}
func (this *QAbstractTableModel) MetaObject() *QMetaObject {
_ret := C.QAbstractTableModel_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAbstractTableModel_MetaObject(this.h)))
}
func QAbstractTableModel_Tr(s string) string {
@ -1112,13 +1062,11 @@ func (this *QAbstractTableModel) Sibling(row int, column int, idx *QModelIndex)
}
func (this *QAbstractTableModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool {
_ret := C.QAbstractTableModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractTableModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QAbstractTableModel) Flags(index *QModelIndex) int {
_ret := C.QAbstractTableModel_Flags(this.h, index.cPointer())
return (int)(_ret)
return (int)(C.QAbstractTableModel_Flags(this.h, index.cPointer()))
}
func QAbstractTableModel_Tr2(s string, c string) string {
@ -1210,8 +1158,7 @@ func newQAbstractListModel_U(h unsafe.Pointer) *QAbstractListModel {
}
func (this *QAbstractListModel) MetaObject() *QMetaObject {
_ret := C.QAbstractListModel_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAbstractListModel_MetaObject(this.h)))
}
func QAbstractListModel_Tr(s string) string {
@ -1247,13 +1194,11 @@ func (this *QAbstractListModel) Sibling(row int, column int, idx *QModelIndex) *
}
func (this *QAbstractListModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool {
_ret := C.QAbstractListModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractListModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QAbstractListModel) Flags(index *QModelIndex) int {
_ret := C.QAbstractListModel_Flags(this.h, index.cPointer())
return (int)(_ret)
return (int)(C.QAbstractListModel_Flags(this.h, index.cPointer()))
}
func QAbstractListModel_Tr2(s string, c string) string {

View File

@ -94,8 +94,7 @@ func newQAbstractItemView_U(h unsafe.Pointer) *QAbstractItemView {
}
func (this *QAbstractItemView) MetaObject() *QMetaObject {
_ret := C.QAbstractItemView_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAbstractItemView_MetaObject(this.h)))
}
func QAbstractItemView_Tr(s string) string {
@ -121,8 +120,7 @@ func (this *QAbstractItemView) SetModel(model *QAbstractItemModel) {
}
func (this *QAbstractItemView) Model() *QAbstractItemModel {
_ret := C.QAbstractItemView_Model(this.h)
return newQAbstractItemModel_U(unsafe.Pointer(_ret))
return newQAbstractItemModel_U(unsafe.Pointer(C.QAbstractItemView_Model(this.h)))
}
func (this *QAbstractItemView) SetSelectionModel(selectionModel *QItemSelectionModel) {
@ -130,8 +128,7 @@ func (this *QAbstractItemView) SetSelectionModel(selectionModel *QItemSelectionM
}
func (this *QAbstractItemView) SelectionModel() *QItemSelectionModel {
_ret := C.QAbstractItemView_SelectionModel(this.h)
return newQItemSelectionModel_U(unsafe.Pointer(_ret))
return newQItemSelectionModel_U(unsafe.Pointer(C.QAbstractItemView_SelectionModel(this.h)))
}
func (this *QAbstractItemView) SetItemDelegate(delegate *QAbstractItemDelegate) {
@ -139,8 +136,7 @@ func (this *QAbstractItemView) SetItemDelegate(delegate *QAbstractItemDelegate)
}
func (this *QAbstractItemView) ItemDelegate() *QAbstractItemDelegate {
_ret := C.QAbstractItemView_ItemDelegate(this.h)
return newQAbstractItemDelegate_U(unsafe.Pointer(_ret))
return newQAbstractItemDelegate_U(unsafe.Pointer(C.QAbstractItemView_ItemDelegate(this.h)))
}
func (this *QAbstractItemView) SetSelectionMode(mode QAbstractItemView__SelectionMode) {
@ -148,8 +144,7 @@ func (this *QAbstractItemView) SetSelectionMode(mode QAbstractItemView__Selectio
}
func (this *QAbstractItemView) SelectionMode() QAbstractItemView__SelectionMode {
_ret := C.QAbstractItemView_SelectionMode(this.h)
return (QAbstractItemView__SelectionMode)(_ret)
return (QAbstractItemView__SelectionMode)(C.QAbstractItemView_SelectionMode(this.h))
}
func (this *QAbstractItemView) SetSelectionBehavior(behavior QAbstractItemView__SelectionBehavior) {
@ -157,8 +152,7 @@ func (this *QAbstractItemView) SetSelectionBehavior(behavior QAbstractItemView__
}
func (this *QAbstractItemView) SelectionBehavior() QAbstractItemView__SelectionBehavior {
_ret := C.QAbstractItemView_SelectionBehavior(this.h)
return (QAbstractItemView__SelectionBehavior)(_ret)
return (QAbstractItemView__SelectionBehavior)(C.QAbstractItemView_SelectionBehavior(this.h))
}
func (this *QAbstractItemView) CurrentIndex() *QModelIndex {
@ -180,8 +174,7 @@ func (this *QAbstractItemView) SetEditTriggers(triggers int) {
}
func (this *QAbstractItemView) EditTriggers() int {
_ret := C.QAbstractItemView_EditTriggers(this.h)
return (int)(_ret)
return (int)(C.QAbstractItemView_EditTriggers(this.h))
}
func (this *QAbstractItemView) SetVerticalScrollMode(mode QAbstractItemView__ScrollMode) {
@ -189,8 +182,7 @@ func (this *QAbstractItemView) SetVerticalScrollMode(mode QAbstractItemView__Scr
}
func (this *QAbstractItemView) VerticalScrollMode() QAbstractItemView__ScrollMode {
_ret := C.QAbstractItemView_VerticalScrollMode(this.h)
return (QAbstractItemView__ScrollMode)(_ret)
return (QAbstractItemView__ScrollMode)(C.QAbstractItemView_VerticalScrollMode(this.h))
}
func (this *QAbstractItemView) ResetVerticalScrollMode() {
@ -202,8 +194,7 @@ func (this *QAbstractItemView) SetHorizontalScrollMode(mode QAbstractItemView__S
}
func (this *QAbstractItemView) HorizontalScrollMode() QAbstractItemView__ScrollMode {
_ret := C.QAbstractItemView_HorizontalScrollMode(this.h)
return (QAbstractItemView__ScrollMode)(_ret)
return (QAbstractItemView__ScrollMode)(C.QAbstractItemView_HorizontalScrollMode(this.h))
}
func (this *QAbstractItemView) ResetHorizontalScrollMode() {
@ -215,8 +206,7 @@ func (this *QAbstractItemView) SetAutoScroll(enable bool) {
}
func (this *QAbstractItemView) HasAutoScroll() bool {
_ret := C.QAbstractItemView_HasAutoScroll(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractItemView_HasAutoScroll(this.h))
}
func (this *QAbstractItemView) SetAutoScrollMargin(margin int) {
@ -224,8 +214,7 @@ func (this *QAbstractItemView) SetAutoScrollMargin(margin int) {
}
func (this *QAbstractItemView) AutoScrollMargin() int {
_ret := C.QAbstractItemView_AutoScrollMargin(this.h)
return (int)(_ret)
return (int)(C.QAbstractItemView_AutoScrollMargin(this.h))
}
func (this *QAbstractItemView) SetTabKeyNavigation(enable bool) {
@ -233,8 +222,7 @@ func (this *QAbstractItemView) SetTabKeyNavigation(enable bool) {
}
func (this *QAbstractItemView) TabKeyNavigation() bool {
_ret := C.QAbstractItemView_TabKeyNavigation(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractItemView_TabKeyNavigation(this.h))
}
func (this *QAbstractItemView) SetDropIndicatorShown(enable bool) {
@ -242,8 +230,7 @@ func (this *QAbstractItemView) SetDropIndicatorShown(enable bool) {
}
func (this *QAbstractItemView) ShowDropIndicator() bool {
_ret := C.QAbstractItemView_ShowDropIndicator(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractItemView_ShowDropIndicator(this.h))
}
func (this *QAbstractItemView) SetDragEnabled(enable bool) {
@ -251,8 +238,7 @@ func (this *QAbstractItemView) SetDragEnabled(enable bool) {
}
func (this *QAbstractItemView) DragEnabled() bool {
_ret := C.QAbstractItemView_DragEnabled(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractItemView_DragEnabled(this.h))
}
func (this *QAbstractItemView) SetDragDropOverwriteMode(overwrite bool) {
@ -260,8 +246,7 @@ func (this *QAbstractItemView) SetDragDropOverwriteMode(overwrite bool) {
}
func (this *QAbstractItemView) DragDropOverwriteMode() bool {
_ret := C.QAbstractItemView_DragDropOverwriteMode(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractItemView_DragDropOverwriteMode(this.h))
}
func (this *QAbstractItemView) SetDragDropMode(behavior QAbstractItemView__DragDropMode) {
@ -269,8 +254,7 @@ func (this *QAbstractItemView) SetDragDropMode(behavior QAbstractItemView__DragD
}
func (this *QAbstractItemView) DragDropMode() QAbstractItemView__DragDropMode {
_ret := C.QAbstractItemView_DragDropMode(this.h)
return (QAbstractItemView__DragDropMode)(_ret)
return (QAbstractItemView__DragDropMode)(C.QAbstractItemView_DragDropMode(this.h))
}
func (this *QAbstractItemView) SetDefaultDropAction(dropAction DropAction) {
@ -278,8 +262,7 @@ func (this *QAbstractItemView) SetDefaultDropAction(dropAction DropAction) {
}
func (this *QAbstractItemView) DefaultDropAction() DropAction {
_ret := C.QAbstractItemView_DefaultDropAction(this.h)
return (DropAction)(_ret)
return (DropAction)(C.QAbstractItemView_DefaultDropAction(this.h))
}
func (this *QAbstractItemView) SetAlternatingRowColors(enable bool) {
@ -287,8 +270,7 @@ func (this *QAbstractItemView) SetAlternatingRowColors(enable bool) {
}
func (this *QAbstractItemView) AlternatingRowColors() bool {
_ret := C.QAbstractItemView_AlternatingRowColors(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractItemView_AlternatingRowColors(this.h))
}
func (this *QAbstractItemView) SetIconSize(size *QSize) {
@ -307,8 +289,7 @@ func (this *QAbstractItemView) SetTextElideMode(mode TextElideMode) {
}
func (this *QAbstractItemView) TextElideMode() TextElideMode {
_ret := C.QAbstractItemView_TextElideMode(this.h)
return (TextElideMode)(_ret)
return (TextElideMode)(C.QAbstractItemView_TextElideMode(this.h))
}
func (this *QAbstractItemView) KeyboardSearch(search string) {
@ -343,13 +324,11 @@ func (this *QAbstractItemView) SizeHintForIndex(index *QModelIndex) *QSize {
}
func (this *QAbstractItemView) SizeHintForRow(row int) int {
_ret := C.QAbstractItemView_SizeHintForRow(this.h, (C.int)(row))
return (int)(_ret)
return (int)(C.QAbstractItemView_SizeHintForRow(this.h, (C.int)(row)))
}
func (this *QAbstractItemView) SizeHintForColumn(column int) int {
_ret := C.QAbstractItemView_SizeHintForColumn(this.h, (C.int)(column))
return (int)(_ret)
return (int)(C.QAbstractItemView_SizeHintForColumn(this.h, (C.int)(column)))
}
func (this *QAbstractItemView) OpenPersistentEditor(index *QModelIndex) {
@ -361,8 +340,7 @@ func (this *QAbstractItemView) ClosePersistentEditor(index *QModelIndex) {
}
func (this *QAbstractItemView) IsPersistentEditorOpen(index *QModelIndex) bool {
_ret := C.QAbstractItemView_IsPersistentEditorOpen(this.h, index.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractItemView_IsPersistentEditorOpen(this.h, index.cPointer()))
}
func (this *QAbstractItemView) SetIndexWidget(index *QModelIndex, widget *QWidget) {
@ -370,8 +348,7 @@ func (this *QAbstractItemView) SetIndexWidget(index *QModelIndex, widget *QWidge
}
func (this *QAbstractItemView) IndexWidget(index *QModelIndex) *QWidget {
_ret := C.QAbstractItemView_IndexWidget(this.h, index.cPointer())
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QAbstractItemView_IndexWidget(this.h, index.cPointer())))
}
func (this *QAbstractItemView) SetItemDelegateForRow(row int, delegate *QAbstractItemDelegate) {
@ -379,8 +356,7 @@ func (this *QAbstractItemView) SetItemDelegateForRow(row int, delegate *QAbstrac
}
func (this *QAbstractItemView) ItemDelegateForRow(row int) *QAbstractItemDelegate {
_ret := C.QAbstractItemView_ItemDelegateForRow(this.h, (C.int)(row))
return newQAbstractItemDelegate_U(unsafe.Pointer(_ret))
return newQAbstractItemDelegate_U(unsafe.Pointer(C.QAbstractItemView_ItemDelegateForRow(this.h, (C.int)(row))))
}
func (this *QAbstractItemView) SetItemDelegateForColumn(column int, delegate *QAbstractItemDelegate) {
@ -388,13 +364,11 @@ func (this *QAbstractItemView) SetItemDelegateForColumn(column int, delegate *QA
}
func (this *QAbstractItemView) ItemDelegateForColumn(column int) *QAbstractItemDelegate {
_ret := C.QAbstractItemView_ItemDelegateForColumn(this.h, (C.int)(column))
return newQAbstractItemDelegate_U(unsafe.Pointer(_ret))
return newQAbstractItemDelegate_U(unsafe.Pointer(C.QAbstractItemView_ItemDelegateForColumn(this.h, (C.int)(column))))
}
func (this *QAbstractItemView) ItemDelegateWithIndex(index *QModelIndex) *QAbstractItemDelegate {
_ret := C.QAbstractItemView_ItemDelegateWithIndex(this.h, index.cPointer())
return newQAbstractItemDelegate_U(unsafe.Pointer(_ret))
return newQAbstractItemDelegate_U(unsafe.Pointer(C.QAbstractItemView_ItemDelegateWithIndex(this.h, index.cPointer())))
}
func (this *QAbstractItemView) InputMethodQuery(query InputMethodQuery) *QVariant {
@ -459,8 +433,7 @@ func miqt_exec_callback_QAbstractItemView_Pressed(cb *C.void, index *C.QModelInd
}
// Convert all CABI parameters to Go parameters
index_ret := index
slotval1 := newQModelIndex_U(unsafe.Pointer(index_ret))
slotval1 := newQModelIndex_U(unsafe.Pointer(index))
gofunc(slotval1)
}
@ -480,8 +453,7 @@ func miqt_exec_callback_QAbstractItemView_Clicked(cb *C.void, index *C.QModelInd
}
// Convert all CABI parameters to Go parameters
index_ret := index
slotval1 := newQModelIndex_U(unsafe.Pointer(index_ret))
slotval1 := newQModelIndex_U(unsafe.Pointer(index))
gofunc(slotval1)
}
@ -501,8 +473,7 @@ func miqt_exec_callback_QAbstractItemView_DoubleClicked(cb *C.void, index *C.QMo
}
// Convert all CABI parameters to Go parameters
index_ret := index
slotval1 := newQModelIndex_U(unsafe.Pointer(index_ret))
slotval1 := newQModelIndex_U(unsafe.Pointer(index))
gofunc(slotval1)
}
@ -522,8 +493,7 @@ func miqt_exec_callback_QAbstractItemView_Activated(cb *C.void, index *C.QModelI
}
// Convert all CABI parameters to Go parameters
index_ret := index
slotval1 := newQModelIndex_U(unsafe.Pointer(index_ret))
slotval1 := newQModelIndex_U(unsafe.Pointer(index))
gofunc(slotval1)
}
@ -543,8 +513,7 @@ func miqt_exec_callback_QAbstractItemView_Entered(cb *C.void, index *C.QModelInd
}
// Convert all CABI parameters to Go parameters
index_ret := index
slotval1 := newQModelIndex_U(unsafe.Pointer(index_ret))
slotval1 := newQModelIndex_U(unsafe.Pointer(index))
gofunc(slotval1)
}
@ -581,8 +550,7 @@ func miqt_exec_callback_QAbstractItemView_IconSizeChanged(cb *C.void, size *C.QS
}
// Convert all CABI parameters to Go parameters
size_ret := size
slotval1 := newQSize_U(unsafe.Pointer(size_ret))
slotval1 := newQSize_U(unsafe.Pointer(size))
gofunc(slotval1)
}

View File

@ -37,8 +37,7 @@ func newQAbstractProxyModel_U(h unsafe.Pointer) *QAbstractProxyModel {
}
func (this *QAbstractProxyModel) MetaObject() *QMetaObject {
_ret := C.QAbstractProxyModel_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAbstractProxyModel_MetaObject(this.h)))
}
func QAbstractProxyModel_Tr(s string) string {
@ -64,8 +63,7 @@ func (this *QAbstractProxyModel) SetSourceModel(sourceModel *QAbstractItemModel)
}
func (this *QAbstractProxyModel) SourceModel() *QAbstractItemModel {
_ret := C.QAbstractProxyModel_SourceModel(this.h)
return newQAbstractItemModel_U(unsafe.Pointer(_ret))
return newQAbstractItemModel_U(unsafe.Pointer(C.QAbstractProxyModel_SourceModel(this.h)))
}
func (this *QAbstractProxyModel) MapToSource(proxyIndex *QModelIndex) *QModelIndex {
@ -83,8 +81,7 @@ func (this *QAbstractProxyModel) MapFromSource(sourceIndex *QModelIndex) *QModel
}
func (this *QAbstractProxyModel) Submit() bool {
_ret := C.QAbstractProxyModel_Submit(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractProxyModel_Submit(this.h))
}
func (this *QAbstractProxyModel) Revert() {
@ -106,18 +103,15 @@ func (this *QAbstractProxyModel) HeaderData(section int, orientation Orientation
}
func (this *QAbstractProxyModel) Flags(index *QModelIndex) int {
_ret := C.QAbstractProxyModel_Flags(this.h, index.cPointer())
return (int)(_ret)
return (int)(C.QAbstractProxyModel_Flags(this.h, index.cPointer()))
}
func (this *QAbstractProxyModel) SetData(index *QModelIndex, value *QVariant) bool {
_ret := C.QAbstractProxyModel_SetData(this.h, index.cPointer(), value.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractProxyModel_SetData(this.h, index.cPointer(), value.cPointer()))
}
func (this *QAbstractProxyModel) SetHeaderData(section int, orientation Orientation, value *QVariant) bool {
_ret := C.QAbstractProxyModel_SetHeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractProxyModel_SetHeaderData(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer()))
}
func (this *QAbstractProxyModel) Buddy(index *QModelIndex) *QModelIndex {
@ -128,8 +122,7 @@ func (this *QAbstractProxyModel) Buddy(index *QModelIndex) *QModelIndex {
}
func (this *QAbstractProxyModel) CanFetchMore(parent *QModelIndex) bool {
_ret := C.QAbstractProxyModel_CanFetchMore(this.h, parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractProxyModel_CanFetchMore(this.h, parent.cPointer()))
}
func (this *QAbstractProxyModel) FetchMore(parent *QModelIndex) {
@ -148,8 +141,7 @@ func (this *QAbstractProxyModel) Span(index *QModelIndex) *QSize {
}
func (this *QAbstractProxyModel) HasChildren() bool {
_ret := C.QAbstractProxyModel_HasChildren(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractProxyModel_HasChildren(this.h))
}
func (this *QAbstractProxyModel) Sibling(row int, column int, idx *QModelIndex) *QModelIndex {
@ -168,18 +160,15 @@ func (this *QAbstractProxyModel) MimeData(indexes []QModelIndex) *QMimeData {
}
indexes_ma := &C.struct_miqt_array{len: C.size_t(len(indexes)), data: unsafe.Pointer(indexes_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(indexes_ma))
_ret := C.QAbstractProxyModel_MimeData(this.h, indexes_ma)
return newQMimeData_U(unsafe.Pointer(_ret))
return newQMimeData_U(unsafe.Pointer(C.QAbstractProxyModel_MimeData(this.h, indexes_ma)))
}
func (this *QAbstractProxyModel) CanDropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool {
_ret := C.QAbstractProxyModel_CanDropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractProxyModel_CanDropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QAbstractProxyModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool {
_ret := C.QAbstractProxyModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractProxyModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QAbstractProxyModel) MimeTypes() []string {
@ -187,21 +176,21 @@ func (this *QAbstractProxyModel) MimeTypes() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QAbstractProxyModel) SupportedDragActions() int {
_ret := C.QAbstractProxyModel_SupportedDragActions(this.h)
return (int)(_ret)
return (int)(C.QAbstractProxyModel_SupportedDragActions(this.h))
}
func (this *QAbstractProxyModel) SupportedDropActions() int {
_ret := C.QAbstractProxyModel_SupportedDropActions(this.h)
return (int)(_ret)
return (int)(C.QAbstractProxyModel_SupportedDropActions(this.h))
}
func QAbstractProxyModel_Tr2(s string, c string) string {
@ -263,13 +252,11 @@ func (this *QAbstractProxyModel) HeaderData3(section int, orientation Orientatio
}
func (this *QAbstractProxyModel) SetData3(index *QModelIndex, value *QVariant, role int) bool {
_ret := C.QAbstractProxyModel_SetData3(this.h, index.cPointer(), value.cPointer(), (C.int)(role))
return (bool)(_ret)
return (bool)(C.QAbstractProxyModel_SetData3(this.h, index.cPointer(), value.cPointer(), (C.int)(role)))
}
func (this *QAbstractProxyModel) SetHeaderData4(section int, orientation Orientation, value *QVariant, role int) bool {
_ret := C.QAbstractProxyModel_SetHeaderData4(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer(), (C.int)(role))
return (bool)(_ret)
return (bool)(C.QAbstractProxyModel_SetHeaderData4(this.h, (C.int)(section), (C.uintptr_t)(orientation), value.cPointer(), (C.int)(role)))
}
func (this *QAbstractProxyModel) Sort2(column int, order SortOrder) {
@ -277,8 +264,7 @@ func (this *QAbstractProxyModel) Sort2(column int, order SortOrder) {
}
func (this *QAbstractProxyModel) HasChildren1(parent *QModelIndex) bool {
_ret := C.QAbstractProxyModel_HasChildren1(this.h, parent.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractProxyModel_HasChildren1(this.h, parent.cPointer()))
}
// Delete this object from C++ memory.

View File

@ -57,8 +57,7 @@ func NewQAbstractScrollArea2(parent *QWidget) *QAbstractScrollArea {
}
func (this *QAbstractScrollArea) MetaObject() *QMetaObject {
_ret := C.QAbstractScrollArea_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAbstractScrollArea_MetaObject(this.h)))
}
func QAbstractScrollArea_Tr(s string) string {
@ -80,8 +79,7 @@ func QAbstractScrollArea_TrUtf8(s string) string {
}
func (this *QAbstractScrollArea) VerticalScrollBarPolicy() ScrollBarPolicy {
_ret := C.QAbstractScrollArea_VerticalScrollBarPolicy(this.h)
return (ScrollBarPolicy)(_ret)
return (ScrollBarPolicy)(C.QAbstractScrollArea_VerticalScrollBarPolicy(this.h))
}
func (this *QAbstractScrollArea) SetVerticalScrollBarPolicy(verticalScrollBarPolicy ScrollBarPolicy) {
@ -89,8 +87,7 @@ func (this *QAbstractScrollArea) SetVerticalScrollBarPolicy(verticalScrollBarPol
}
func (this *QAbstractScrollArea) VerticalScrollBar() *QScrollBar {
_ret := C.QAbstractScrollArea_VerticalScrollBar(this.h)
return newQScrollBar_U(unsafe.Pointer(_ret))
return newQScrollBar_U(unsafe.Pointer(C.QAbstractScrollArea_VerticalScrollBar(this.h)))
}
func (this *QAbstractScrollArea) SetVerticalScrollBar(scrollbar *QScrollBar) {
@ -98,8 +95,7 @@ func (this *QAbstractScrollArea) SetVerticalScrollBar(scrollbar *QScrollBar) {
}
func (this *QAbstractScrollArea) HorizontalScrollBarPolicy() ScrollBarPolicy {
_ret := C.QAbstractScrollArea_HorizontalScrollBarPolicy(this.h)
return (ScrollBarPolicy)(_ret)
return (ScrollBarPolicy)(C.QAbstractScrollArea_HorizontalScrollBarPolicy(this.h))
}
func (this *QAbstractScrollArea) SetHorizontalScrollBarPolicy(horizontalScrollBarPolicy ScrollBarPolicy) {
@ -107,8 +103,7 @@ func (this *QAbstractScrollArea) SetHorizontalScrollBarPolicy(horizontalScrollBa
}
func (this *QAbstractScrollArea) HorizontalScrollBar() *QScrollBar {
_ret := C.QAbstractScrollArea_HorizontalScrollBar(this.h)
return newQScrollBar_U(unsafe.Pointer(_ret))
return newQScrollBar_U(unsafe.Pointer(C.QAbstractScrollArea_HorizontalScrollBar(this.h)))
}
func (this *QAbstractScrollArea) SetHorizontalScrollBar(scrollbar *QScrollBar) {
@ -116,8 +111,7 @@ func (this *QAbstractScrollArea) SetHorizontalScrollBar(scrollbar *QScrollBar) {
}
func (this *QAbstractScrollArea) CornerWidget() *QWidget {
_ret := C.QAbstractScrollArea_CornerWidget(this.h)
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QAbstractScrollArea_CornerWidget(this.h)))
}
func (this *QAbstractScrollArea) SetCornerWidget(widget *QWidget) {
@ -131,17 +125,16 @@ func (this *QAbstractScrollArea) AddScrollBarWidget(widget *QWidget, alignment i
func (this *QAbstractScrollArea) ScrollBarWidgets(alignment int) []*QWidget {
var _ma *C.struct_miqt_array = C.QAbstractScrollArea_ScrollBarWidgets(this.h, (C.int)(alignment))
_ret := make([]*QWidget, int(_ma.len))
_outCast := (*[0xffff]*C.QWidget)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QWidget)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQWidget(_outCast[i])
_ret[i] = newQWidget_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QAbstractScrollArea) Viewport() *QWidget {
_ret := C.QAbstractScrollArea_Viewport(this.h)
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QAbstractScrollArea_Viewport(this.h)))
}
func (this *QAbstractScrollArea) SetViewport(widget *QWidget) {
@ -174,8 +167,7 @@ func (this *QAbstractScrollArea) SetupViewport(viewport *QWidget) {
}
func (this *QAbstractScrollArea) SizeAdjustPolicy() QAbstractScrollArea__SizeAdjustPolicy {
_ret := C.QAbstractScrollArea_SizeAdjustPolicy(this.h)
return (QAbstractScrollArea__SizeAdjustPolicy)(_ret)
return (QAbstractScrollArea__SizeAdjustPolicy)(C.QAbstractScrollArea_SizeAdjustPolicy(this.h))
}
func (this *QAbstractScrollArea) SetSizeAdjustPolicy(policy QAbstractScrollArea__SizeAdjustPolicy) {

View File

@ -63,8 +63,7 @@ func NewQAbstractSlider2(parent *QWidget) *QAbstractSlider {
}
func (this *QAbstractSlider) MetaObject() *QMetaObject {
_ret := C.QAbstractSlider_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAbstractSlider_MetaObject(this.h)))
}
func QAbstractSlider_Tr(s string) string {
@ -86,8 +85,7 @@ func QAbstractSlider_TrUtf8(s string) string {
}
func (this *QAbstractSlider) Orientation() Orientation {
_ret := C.QAbstractSlider_Orientation(this.h)
return (Orientation)(_ret)
return (Orientation)(C.QAbstractSlider_Orientation(this.h))
}
func (this *QAbstractSlider) SetMinimum(minimum int) {
@ -95,8 +93,7 @@ func (this *QAbstractSlider) SetMinimum(minimum int) {
}
func (this *QAbstractSlider) Minimum() int {
_ret := C.QAbstractSlider_Minimum(this.h)
return (int)(_ret)
return (int)(C.QAbstractSlider_Minimum(this.h))
}
func (this *QAbstractSlider) SetMaximum(maximum int) {
@ -104,8 +101,7 @@ func (this *QAbstractSlider) SetMaximum(maximum int) {
}
func (this *QAbstractSlider) Maximum() int {
_ret := C.QAbstractSlider_Maximum(this.h)
return (int)(_ret)
return (int)(C.QAbstractSlider_Maximum(this.h))
}
func (this *QAbstractSlider) SetSingleStep(singleStep int) {
@ -113,8 +109,7 @@ func (this *QAbstractSlider) SetSingleStep(singleStep int) {
}
func (this *QAbstractSlider) SingleStep() int {
_ret := C.QAbstractSlider_SingleStep(this.h)
return (int)(_ret)
return (int)(C.QAbstractSlider_SingleStep(this.h))
}
func (this *QAbstractSlider) SetPageStep(pageStep int) {
@ -122,8 +117,7 @@ func (this *QAbstractSlider) SetPageStep(pageStep int) {
}
func (this *QAbstractSlider) PageStep() int {
_ret := C.QAbstractSlider_PageStep(this.h)
return (int)(_ret)
return (int)(C.QAbstractSlider_PageStep(this.h))
}
func (this *QAbstractSlider) SetTracking(enable bool) {
@ -131,8 +125,7 @@ func (this *QAbstractSlider) SetTracking(enable bool) {
}
func (this *QAbstractSlider) HasTracking() bool {
_ret := C.QAbstractSlider_HasTracking(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractSlider_HasTracking(this.h))
}
func (this *QAbstractSlider) SetSliderDown(sliderDown bool) {
@ -140,8 +133,7 @@ func (this *QAbstractSlider) SetSliderDown(sliderDown bool) {
}
func (this *QAbstractSlider) IsSliderDown() bool {
_ret := C.QAbstractSlider_IsSliderDown(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractSlider_IsSliderDown(this.h))
}
func (this *QAbstractSlider) SetSliderPosition(sliderPosition int) {
@ -149,8 +141,7 @@ func (this *QAbstractSlider) SetSliderPosition(sliderPosition int) {
}
func (this *QAbstractSlider) SliderPosition() int {
_ret := C.QAbstractSlider_SliderPosition(this.h)
return (int)(_ret)
return (int)(C.QAbstractSlider_SliderPosition(this.h))
}
func (this *QAbstractSlider) SetInvertedAppearance(invertedAppearance bool) {
@ -158,8 +149,7 @@ func (this *QAbstractSlider) SetInvertedAppearance(invertedAppearance bool) {
}
func (this *QAbstractSlider) InvertedAppearance() bool {
_ret := C.QAbstractSlider_InvertedAppearance(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractSlider_InvertedAppearance(this.h))
}
func (this *QAbstractSlider) SetInvertedControls(invertedControls bool) {
@ -167,13 +157,11 @@ func (this *QAbstractSlider) SetInvertedControls(invertedControls bool) {
}
func (this *QAbstractSlider) InvertedControls() bool {
_ret := C.QAbstractSlider_InvertedControls(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractSlider_InvertedControls(this.h))
}
func (this *QAbstractSlider) Value() int {
_ret := C.QAbstractSlider_Value(this.h)
return (int)(_ret)
return (int)(C.QAbstractSlider_Value(this.h))
}
func (this *QAbstractSlider) TriggerAction(action QAbstractSlider__SliderAction) {
@ -207,8 +195,7 @@ func miqt_exec_callback_QAbstractSlider_ValueChanged(cb *C.void, value C.int) {
}
// Convert all CABI parameters to Go parameters
value_ret := value
slotval1 := (int)(value_ret)
slotval1 := (int)(value)
gofunc(slotval1)
}
@ -245,8 +232,7 @@ func miqt_exec_callback_QAbstractSlider_SliderMoved(cb *C.void, position C.int)
}
// Convert all CABI parameters to Go parameters
position_ret := position
slotval1 := (int)(position_ret)
slotval1 := (int)(position)
gofunc(slotval1)
}
@ -283,11 +269,9 @@ func miqt_exec_callback_QAbstractSlider_RangeChanged(cb *C.void, min C.int, max
}
// Convert all CABI parameters to Go parameters
min_ret := min
slotval1 := (int)(min_ret)
slotval1 := (int)(min)
max_ret := max
slotval2 := (int)(max_ret)
slotval2 := (int)(max)
gofunc(slotval1, slotval2)
}
@ -307,8 +291,7 @@ func miqt_exec_callback_QAbstractSlider_ActionTriggered(cb *C.void, action C.int
}
// Convert all CABI parameters to Go parameters
action_ret := action
slotval1 := (int)(action_ret)
slotval1 := (int)(action)
gofunc(slotval1)
}

View File

@ -80,8 +80,7 @@ func NewQAbstractSpinBox2(parent *QWidget) *QAbstractSpinBox {
}
func (this *QAbstractSpinBox) MetaObject() *QMetaObject {
_ret := C.QAbstractSpinBox_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAbstractSpinBox_MetaObject(this.h)))
}
func QAbstractSpinBox_Tr(s string) string {
@ -103,8 +102,7 @@ func QAbstractSpinBox_TrUtf8(s string) string {
}
func (this *QAbstractSpinBox) ButtonSymbols() QAbstractSpinBox__ButtonSymbols {
_ret := C.QAbstractSpinBox_ButtonSymbols(this.h)
return (QAbstractSpinBox__ButtonSymbols)(_ret)
return (QAbstractSpinBox__ButtonSymbols)(C.QAbstractSpinBox_ButtonSymbols(this.h))
}
func (this *QAbstractSpinBox) SetButtonSymbols(bs QAbstractSpinBox__ButtonSymbols) {
@ -116,13 +114,11 @@ func (this *QAbstractSpinBox) SetCorrectionMode(cm QAbstractSpinBox__CorrectionM
}
func (this *QAbstractSpinBox) CorrectionMode() QAbstractSpinBox__CorrectionMode {
_ret := C.QAbstractSpinBox_CorrectionMode(this.h)
return (QAbstractSpinBox__CorrectionMode)(_ret)
return (QAbstractSpinBox__CorrectionMode)(C.QAbstractSpinBox_CorrectionMode(this.h))
}
func (this *QAbstractSpinBox) HasAcceptableInput() bool {
_ret := C.QAbstractSpinBox_HasAcceptableInput(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractSpinBox_HasAcceptableInput(this.h))
}
func (this *QAbstractSpinBox) Text() string {
@ -146,8 +142,7 @@ func (this *QAbstractSpinBox) SetSpecialValueText(txt string) {
}
func (this *QAbstractSpinBox) Wrapping() bool {
_ret := C.QAbstractSpinBox_Wrapping(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractSpinBox_Wrapping(this.h))
}
func (this *QAbstractSpinBox) SetWrapping(w bool) {
@ -159,8 +154,7 @@ func (this *QAbstractSpinBox) SetReadOnly(r bool) {
}
func (this *QAbstractSpinBox) IsReadOnly() bool {
_ret := C.QAbstractSpinBox_IsReadOnly(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractSpinBox_IsReadOnly(this.h))
}
func (this *QAbstractSpinBox) SetKeyboardTracking(kt bool) {
@ -168,8 +162,7 @@ func (this *QAbstractSpinBox) SetKeyboardTracking(kt bool) {
}
func (this *QAbstractSpinBox) KeyboardTracking() bool {
_ret := C.QAbstractSpinBox_KeyboardTracking(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractSpinBox_KeyboardTracking(this.h))
}
func (this *QAbstractSpinBox) SetAlignment(flag int) {
@ -177,8 +170,7 @@ func (this *QAbstractSpinBox) SetAlignment(flag int) {
}
func (this *QAbstractSpinBox) Alignment() int {
_ret := C.QAbstractSpinBox_Alignment(this.h)
return (int)(_ret)
return (int)(C.QAbstractSpinBox_Alignment(this.h))
}
func (this *QAbstractSpinBox) SetFrame(frame bool) {
@ -186,8 +178,7 @@ func (this *QAbstractSpinBox) SetFrame(frame bool) {
}
func (this *QAbstractSpinBox) HasFrame() bool {
_ret := C.QAbstractSpinBox_HasFrame(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractSpinBox_HasFrame(this.h))
}
func (this *QAbstractSpinBox) SetAccelerated(on bool) {
@ -195,8 +186,7 @@ func (this *QAbstractSpinBox) SetAccelerated(on bool) {
}
func (this *QAbstractSpinBox) IsAccelerated() bool {
_ret := C.QAbstractSpinBox_IsAccelerated(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractSpinBox_IsAccelerated(this.h))
}
func (this *QAbstractSpinBox) SetGroupSeparatorShown(shown bool) {
@ -204,8 +194,7 @@ func (this *QAbstractSpinBox) SetGroupSeparatorShown(shown bool) {
}
func (this *QAbstractSpinBox) IsGroupSeparatorShown() bool {
_ret := C.QAbstractSpinBox_IsGroupSeparatorShown(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractSpinBox_IsGroupSeparatorShown(this.h))
}
func (this *QAbstractSpinBox) SizeHint() *QSize {
@ -227,8 +216,7 @@ func (this *QAbstractSpinBox) InterpretText() {
}
func (this *QAbstractSpinBox) Event(event *QEvent) bool {
_ret := C.QAbstractSpinBox_Event(this.h, event.cPointer())
return (bool)(_ret)
return (bool)(C.QAbstractSpinBox_Event(this.h, event.cPointer()))
}
func (this *QAbstractSpinBox) InputMethodQuery(param1 InputMethodQuery) *QVariant {
@ -241,8 +229,7 @@ func (this *QAbstractSpinBox) InputMethodQuery(param1 InputMethodQuery) *QVarian
func (this *QAbstractSpinBox) Validate(input string, pos *int) QValidator__State {
input_ms := miqt_strdupg(input)
defer C.free(input_ms)
_ret := C.QAbstractSpinBox_Validate(this.h, (*C.struct_miqt_string)(input_ms), (*C.int)(unsafe.Pointer(pos)))
return (QValidator__State)(_ret)
return (QValidator__State)(C.QAbstractSpinBox_Validate(this.h, (*C.struct_miqt_string)(input_ms), (*C.int)(unsafe.Pointer(pos))))
}
func (this *QAbstractSpinBox) Fixup(input string) {

View File

@ -38,8 +38,7 @@ func newQAbstractState_U(h unsafe.Pointer) *QAbstractState {
}
func (this *QAbstractState) MetaObject() *QMetaObject {
_ret := C.QAbstractState_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAbstractState_MetaObject(this.h)))
}
func QAbstractState_Tr(s string) string {
@ -61,18 +60,15 @@ func QAbstractState_TrUtf8(s string) string {
}
func (this *QAbstractState) ParentState() *QState {
_ret := C.QAbstractState_ParentState(this.h)
return newQState_U(unsafe.Pointer(_ret))
return newQState_U(unsafe.Pointer(C.QAbstractState_ParentState(this.h)))
}
func (this *QAbstractState) Machine() *QStateMachine {
_ret := C.QAbstractState_Machine(this.h)
return newQStateMachine_U(unsafe.Pointer(_ret))
return newQStateMachine_U(unsafe.Pointer(C.QAbstractState_Machine(this.h)))
}
func (this *QAbstractState) Active() bool {
_ret := C.QAbstractState_Active(this.h)
return (bool)(_ret)
return (bool)(C.QAbstractState_Active(this.h))
}
func (this *QAbstractState) ActiveChanged(active bool) {
@ -90,8 +86,7 @@ func miqt_exec_callback_QAbstractState_ActiveChanged(cb *C.void, active C.bool)
}
// Convert all CABI parameters to Go parameters
active_ret := active
slotval1 := (bool)(active_ret)
slotval1 := (bool)(active)
gofunc(slotval1)
}

View File

@ -38,8 +38,7 @@ func newQAbstractTextDocumentLayout_U(h unsafe.Pointer) *QAbstractTextDocumentLa
}
func (this *QAbstractTextDocumentLayout) MetaObject() *QMetaObject {
_ret := C.QAbstractTextDocumentLayout_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAbstractTextDocumentLayout_MetaObject(this.h)))
}
func QAbstractTextDocumentLayout_Tr(s string) string {
@ -65,8 +64,7 @@ func (this *QAbstractTextDocumentLayout) Draw(painter *QPainter, context *QAbstr
}
func (this *QAbstractTextDocumentLayout) HitTest(point *QPointF, accuracy HitTestAccuracy) int {
_ret := C.QAbstractTextDocumentLayout_HitTest(this.h, point.cPointer(), (C.uintptr_t)(accuracy))
return (int)(_ret)
return (int)(C.QAbstractTextDocumentLayout_HitTest(this.h, point.cPointer(), (C.uintptr_t)(accuracy)))
}
func (this *QAbstractTextDocumentLayout) AnchorAt(pos *QPointF) string {
@ -98,8 +96,7 @@ func (this *QAbstractTextDocumentLayout) BlockWithMarkerAt(pos *QPointF) *QTextB
}
func (this *QAbstractTextDocumentLayout) PageCount() int {
_ret := C.QAbstractTextDocumentLayout_PageCount(this.h)
return (int)(_ret)
return (int)(C.QAbstractTextDocumentLayout_PageCount(this.h))
}
func (this *QAbstractTextDocumentLayout) DocumentSize() *QSizeF {
@ -128,13 +125,11 @@ func (this *QAbstractTextDocumentLayout) SetPaintDevice(device *QPaintDevice) {
}
func (this *QAbstractTextDocumentLayout) PaintDevice() *QPaintDevice {
_ret := C.QAbstractTextDocumentLayout_PaintDevice(this.h)
return newQPaintDevice_U(unsafe.Pointer(_ret))
return newQPaintDevice_U(unsafe.Pointer(C.QAbstractTextDocumentLayout_PaintDevice(this.h)))
}
func (this *QAbstractTextDocumentLayout) Document() *QTextDocument {
_ret := C.QAbstractTextDocumentLayout_Document(this.h)
return newQTextDocument_U(unsafe.Pointer(_ret))
return newQTextDocument_U(unsafe.Pointer(C.QAbstractTextDocumentLayout_Document(this.h)))
}
func (this *QAbstractTextDocumentLayout) RegisterHandler(objectType int, component *QObject) {
@ -146,8 +141,7 @@ func (this *QAbstractTextDocumentLayout) UnregisterHandler(objectType int) {
}
func (this *QAbstractTextDocumentLayout) HandlerForObject(objectType int) *QTextObjectInterface {
_ret := C.QAbstractTextDocumentLayout_HandlerForObject(this.h, (C.int)(objectType))
return newQTextObjectInterface_U(unsafe.Pointer(_ret))
return newQTextObjectInterface_U(unsafe.Pointer(C.QAbstractTextDocumentLayout_HandlerForObject(this.h, (C.int)(objectType))))
}
func (this *QAbstractTextDocumentLayout) Update() {
@ -182,8 +176,7 @@ func miqt_exec_callback_QAbstractTextDocumentLayout_UpdateBlock(cb *C.void, bloc
}
// Convert all CABI parameters to Go parameters
block_ret := block
slotval1 := newQTextBlock_U(unsafe.Pointer(block_ret))
slotval1 := newQTextBlock_U(unsafe.Pointer(block))
gofunc(slotval1)
}
@ -203,8 +196,7 @@ func miqt_exec_callback_QAbstractTextDocumentLayout_DocumentSizeChanged(cb *C.vo
}
// Convert all CABI parameters to Go parameters
newSize_ret := newSize
slotval1 := newQSizeF_U(unsafe.Pointer(newSize_ret))
slotval1 := newQSizeF_U(unsafe.Pointer(newSize))
gofunc(slotval1)
}
@ -224,8 +216,7 @@ func miqt_exec_callback_QAbstractTextDocumentLayout_PageCountChanged(cb *C.void,
}
// Convert all CABI parameters to Go parameters
newPages_ret := newPages
slotval1 := (int)(newPages_ret)
slotval1 := (int)(newPages)
gofunc(slotval1)
}
@ -293,8 +284,7 @@ func miqt_exec_callback_QAbstractTextDocumentLayout_Update1(cb *C.void, param1 *
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := newQRectF_U(unsafe.Pointer(param1_ret))
slotval1 := newQRectF_U(unsafe.Pointer(param1))
gofunc(slotval1)
}

View File

@ -44,8 +44,7 @@ func newQAbstractTransition_U(h unsafe.Pointer) *QAbstractTransition {
}
func (this *QAbstractTransition) MetaObject() *QMetaObject {
_ret := C.QAbstractTransition_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAbstractTransition_MetaObject(this.h)))
}
func QAbstractTransition_Tr(s string) string {
@ -67,13 +66,11 @@ func QAbstractTransition_TrUtf8(s string) string {
}
func (this *QAbstractTransition) SourceState() *QState {
_ret := C.QAbstractTransition_SourceState(this.h)
return newQState_U(unsafe.Pointer(_ret))
return newQState_U(unsafe.Pointer(C.QAbstractTransition_SourceState(this.h)))
}
func (this *QAbstractTransition) TargetState() *QAbstractState {
_ret := C.QAbstractTransition_TargetState(this.h)
return newQAbstractState_U(unsafe.Pointer(_ret))
return newQAbstractState_U(unsafe.Pointer(C.QAbstractTransition_TargetState(this.h)))
}
func (this *QAbstractTransition) SetTargetState(target *QAbstractState) {
@ -83,9 +80,9 @@ func (this *QAbstractTransition) SetTargetState(target *QAbstractState) {
func (this *QAbstractTransition) TargetStates() []*QAbstractState {
var _ma *C.struct_miqt_array = C.QAbstractTransition_TargetStates(this.h)
_ret := make([]*QAbstractState, int(_ma.len))
_outCast := (*[0xffff]*C.QAbstractState)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QAbstractState)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQAbstractState(_outCast[i])
_ret[i] = newQAbstractState_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -104,8 +101,7 @@ func (this *QAbstractTransition) SetTargetStates(targets []*QAbstractState) {
}
func (this *QAbstractTransition) TransitionType() QAbstractTransition__TransitionType {
_ret := C.QAbstractTransition_TransitionType(this.h)
return (QAbstractTransition__TransitionType)(_ret)
return (QAbstractTransition__TransitionType)(C.QAbstractTransition_TransitionType(this.h))
}
func (this *QAbstractTransition) SetTransitionType(typeVal QAbstractTransition__TransitionType) {
@ -113,8 +109,7 @@ func (this *QAbstractTransition) SetTransitionType(typeVal QAbstractTransition__
}
func (this *QAbstractTransition) Machine() *QStateMachine {
_ret := C.QAbstractTransition_Machine(this.h)
return newQStateMachine_U(unsafe.Pointer(_ret))
return newQStateMachine_U(unsafe.Pointer(C.QAbstractTransition_Machine(this.h)))
}
func (this *QAbstractTransition) AddAnimation(animation *QAbstractAnimation) {
@ -128,9 +123,9 @@ func (this *QAbstractTransition) RemoveAnimation(animation *QAbstractAnimation)
func (this *QAbstractTransition) Animations() []*QAbstractAnimation {
var _ma *C.struct_miqt_array = C.QAbstractTransition_Animations(this.h)
_ret := make([]*QAbstractAnimation, int(_ma.len))
_outCast := (*[0xffff]*C.QAbstractAnimation)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QAbstractAnimation)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQAbstractAnimation(_outCast[i])
_ret[i] = newQAbstractAnimation_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret

View File

@ -256,23 +256,19 @@ func QAccessible_RemoveActivationObserver(param1 *QAccessible__ActivationObserve
}
func QAccessible_QueryAccessibleInterface(param1 *QObject) *QAccessibleInterface {
_ret := C.QAccessible_QueryAccessibleInterface(param1.cPointer())
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessible_QueryAccessibleInterface(param1.cPointer())))
}
func QAccessible_UniqueId(iface *QAccessibleInterface) uint {
_ret := C.QAccessible_UniqueId(iface.cPointer())
return (uint)(_ret)
return (uint)(C.QAccessible_UniqueId(iface.cPointer()))
}
func QAccessible_AccessibleInterface(uniqueId uint) *QAccessibleInterface {
_ret := C.QAccessible_AccessibleInterface((C.uint)(uniqueId))
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessible_AccessibleInterface((C.uint)(uniqueId))))
}
func QAccessible_RegisterAccessibleInterface(iface *QAccessibleInterface) uint {
_ret := C.QAccessible_RegisterAccessibleInterface(iface.cPointer())
return (uint)(_ret)
return (uint)(C.QAccessible_RegisterAccessibleInterface(iface.cPointer()))
}
func QAccessible_DeleteAccessibleInterface(uniqueId uint) {
@ -284,8 +280,7 @@ func QAccessible_UpdateAccessibility(event *QAccessibleEvent) {
}
func QAccessible_IsActive() bool {
_ret := C.QAccessible_IsActive()
return (bool)(_ret)
return (bool)(C.QAccessible_IsActive())
}
func QAccessible_SetActive(active bool) {
@ -337,48 +332,39 @@ func newQAccessibleInterface_U(h unsafe.Pointer) *QAccessibleInterface {
}
func (this *QAccessibleInterface) IsValid() bool {
_ret := C.QAccessibleInterface_IsValid(this.h)
return (bool)(_ret)
return (bool)(C.QAccessibleInterface_IsValid(this.h))
}
func (this *QAccessibleInterface) Object() *QObject {
_ret := C.QAccessibleInterface_Object(this.h)
return newQObject_U(unsafe.Pointer(_ret))
return newQObject_U(unsafe.Pointer(C.QAccessibleInterface_Object(this.h)))
}
func (this *QAccessibleInterface) Window() *QWindow {
_ret := C.QAccessibleInterface_Window(this.h)
return newQWindow_U(unsafe.Pointer(_ret))
return newQWindow_U(unsafe.Pointer(C.QAccessibleInterface_Window(this.h)))
}
func (this *QAccessibleInterface) FocusChild() *QAccessibleInterface {
_ret := C.QAccessibleInterface_FocusChild(this.h)
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleInterface_FocusChild(this.h)))
}
func (this *QAccessibleInterface) ChildAt(x int, y int) *QAccessibleInterface {
_ret := C.QAccessibleInterface_ChildAt(this.h, (C.int)(x), (C.int)(y))
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleInterface_ChildAt(this.h, (C.int)(x), (C.int)(y))))
}
func (this *QAccessibleInterface) Parent() *QAccessibleInterface {
_ret := C.QAccessibleInterface_Parent(this.h)
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleInterface_Parent(this.h)))
}
func (this *QAccessibleInterface) Child(index int) *QAccessibleInterface {
_ret := C.QAccessibleInterface_Child(this.h, (C.int)(index))
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleInterface_Child(this.h, (C.int)(index))))
}
func (this *QAccessibleInterface) ChildCount() int {
_ret := C.QAccessibleInterface_ChildCount(this.h)
return (int)(_ret)
return (int)(C.QAccessibleInterface_ChildCount(this.h))
}
func (this *QAccessibleInterface) IndexOfChild(param1 *QAccessibleInterface) int {
_ret := C.QAccessibleInterface_IndexOfChild(this.h, param1.cPointer())
return (int)(_ret)
return (int)(C.QAccessibleInterface_IndexOfChild(this.h, param1.cPointer()))
}
func (this *QAccessibleInterface) Text(t QAccessible__Text) string {
@ -402,8 +388,7 @@ func (this *QAccessibleInterface) Rect() *QRect {
}
func (this *QAccessibleInterface) Role() QAccessible__Role {
_ret := C.QAccessibleInterface_Role(this.h)
return (QAccessible__Role)(_ret)
return (QAccessible__Role)(C.QAccessibleInterface_Role(this.h))
}
func (this *QAccessibleInterface) State() *QAccessible__State {
@ -428,38 +413,31 @@ func (this *QAccessibleInterface) BackgroundColor() *QColor {
}
func (this *QAccessibleInterface) TextInterface() *QAccessibleTextInterface {
_ret := C.QAccessibleInterface_TextInterface(this.h)
return newQAccessibleTextInterface_U(unsafe.Pointer(_ret))
return newQAccessibleTextInterface_U(unsafe.Pointer(C.QAccessibleInterface_TextInterface(this.h)))
}
func (this *QAccessibleInterface) EditableTextInterface() *QAccessibleEditableTextInterface {
_ret := C.QAccessibleInterface_EditableTextInterface(this.h)
return newQAccessibleEditableTextInterface_U(unsafe.Pointer(_ret))
return newQAccessibleEditableTextInterface_U(unsafe.Pointer(C.QAccessibleInterface_EditableTextInterface(this.h)))
}
func (this *QAccessibleInterface) ValueInterface() *QAccessibleValueInterface {
_ret := C.QAccessibleInterface_ValueInterface(this.h)
return newQAccessibleValueInterface_U(unsafe.Pointer(_ret))
return newQAccessibleValueInterface_U(unsafe.Pointer(C.QAccessibleInterface_ValueInterface(this.h)))
}
func (this *QAccessibleInterface) ActionInterface() *QAccessibleActionInterface {
_ret := C.QAccessibleInterface_ActionInterface(this.h)
return newQAccessibleActionInterface_U(unsafe.Pointer(_ret))
return newQAccessibleActionInterface_U(unsafe.Pointer(C.QAccessibleInterface_ActionInterface(this.h)))
}
func (this *QAccessibleInterface) ImageInterface() *QAccessibleImageInterface {
_ret := C.QAccessibleInterface_ImageInterface(this.h)
return newQAccessibleImageInterface_U(unsafe.Pointer(_ret))
return newQAccessibleImageInterface_U(unsafe.Pointer(C.QAccessibleInterface_ImageInterface(this.h)))
}
func (this *QAccessibleInterface) TableInterface() *QAccessibleTableInterface {
_ret := C.QAccessibleInterface_TableInterface(this.h)
return newQAccessibleTableInterface_U(unsafe.Pointer(_ret))
return newQAccessibleTableInterface_U(unsafe.Pointer(C.QAccessibleInterface_TableInterface(this.h)))
}
func (this *QAccessibleInterface) TableCellInterface() *QAccessibleTableCellInterface {
_ret := C.QAccessibleInterface_TableCellInterface(this.h)
return newQAccessibleTableCellInterface_U(unsafe.Pointer(_ret))
return newQAccessibleTableCellInterface_U(unsafe.Pointer(C.QAccessibleInterface_TableCellInterface(this.h)))
}
type QAccessibleTextInterface struct {
@ -489,8 +467,7 @@ func (this *QAccessibleTextInterface) Selection(selectionIndex int, startOffset
}
func (this *QAccessibleTextInterface) SelectionCount() int {
_ret := C.QAccessibleTextInterface_SelectionCount(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTextInterface_SelectionCount(this.h))
}
func (this *QAccessibleTextInterface) AddSelection(startOffset int, endOffset int) {
@ -506,8 +483,7 @@ func (this *QAccessibleTextInterface) SetSelection(selectionIndex int, startOffs
}
func (this *QAccessibleTextInterface) CursorPosition() int {
_ret := C.QAccessibleTextInterface_CursorPosition(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTextInterface_CursorPosition(this.h))
}
func (this *QAccessibleTextInterface) SetCursorPosition(position int) {
@ -543,8 +519,7 @@ func (this *QAccessibleTextInterface) TextAtOffset(offset int, boundaryType QAcc
}
func (this *QAccessibleTextInterface) CharacterCount() int {
_ret := C.QAccessibleTextInterface_CharacterCount(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTextInterface_CharacterCount(this.h))
}
func (this *QAccessibleTextInterface) CharacterRect(offset int) *QRect {
@ -555,8 +530,7 @@ func (this *QAccessibleTextInterface) CharacterRect(offset int) *QRect {
}
func (this *QAccessibleTextInterface) OffsetAtPoint(point *QPoint) int {
_ret := C.QAccessibleTextInterface_OffsetAtPoint(this.h, point.cPointer())
return (int)(_ret)
return (int)(C.QAccessibleTextInterface_OffsetAtPoint(this.h, point.cPointer()))
}
func (this *QAccessibleTextInterface) ScrollToSubstring(startIndex int, endIndex int) {
@ -739,16 +713,15 @@ func newQAccessibleTableCellInterface_U(h unsafe.Pointer) *QAccessibleTableCellI
}
func (this *QAccessibleTableCellInterface) IsSelected() bool {
_ret := C.QAccessibleTableCellInterface_IsSelected(this.h)
return (bool)(_ret)
return (bool)(C.QAccessibleTableCellInterface_IsSelected(this.h))
}
func (this *QAccessibleTableCellInterface) ColumnHeaderCells() []*QAccessibleInterface {
var _ma *C.struct_miqt_array = C.QAccessibleTableCellInterface_ColumnHeaderCells(this.h)
_ret := make([]*QAccessibleInterface, int(_ma.len))
_outCast := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQAccessibleInterface(_outCast[i])
_ret[i] = newQAccessibleInterface_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -757,37 +730,32 @@ func (this *QAccessibleTableCellInterface) ColumnHeaderCells() []*QAccessibleInt
func (this *QAccessibleTableCellInterface) RowHeaderCells() []*QAccessibleInterface {
var _ma *C.struct_miqt_array = C.QAccessibleTableCellInterface_RowHeaderCells(this.h)
_ret := make([]*QAccessibleInterface, int(_ma.len))
_outCast := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQAccessibleInterface(_outCast[i])
_ret[i] = newQAccessibleInterface_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QAccessibleTableCellInterface) ColumnIndex() int {
_ret := C.QAccessibleTableCellInterface_ColumnIndex(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTableCellInterface_ColumnIndex(this.h))
}
func (this *QAccessibleTableCellInterface) RowIndex() int {
_ret := C.QAccessibleTableCellInterface_RowIndex(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTableCellInterface_RowIndex(this.h))
}
func (this *QAccessibleTableCellInterface) ColumnExtent() int {
_ret := C.QAccessibleTableCellInterface_ColumnExtent(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTableCellInterface_ColumnExtent(this.h))
}
func (this *QAccessibleTableCellInterface) RowExtent() int {
_ret := C.QAccessibleTableCellInterface_RowExtent(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTableCellInterface_RowExtent(this.h))
}
func (this *QAccessibleTableCellInterface) Table() *QAccessibleInterface {
_ret := C.QAccessibleTableCellInterface_Table(this.h)
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleTableCellInterface_Table(this.h)))
}
func (this *QAccessibleTableCellInterface) OperatorAssign(param1 *QAccessibleTableCellInterface) {
@ -831,31 +799,27 @@ func newQAccessibleTableInterface_U(h unsafe.Pointer) *QAccessibleTableInterface
}
func (this *QAccessibleTableInterface) Caption() *QAccessibleInterface {
_ret := C.QAccessibleTableInterface_Caption(this.h)
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleTableInterface_Caption(this.h)))
}
func (this *QAccessibleTableInterface) Summary() *QAccessibleInterface {
_ret := C.QAccessibleTableInterface_Summary(this.h)
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleTableInterface_Summary(this.h)))
}
func (this *QAccessibleTableInterface) CellAt(row int, column int) *QAccessibleInterface {
_ret := C.QAccessibleTableInterface_CellAt(this.h, (C.int)(row), (C.int)(column))
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleTableInterface_CellAt(this.h, (C.int)(row), (C.int)(column))))
}
func (this *QAccessibleTableInterface) SelectedCellCount() int {
_ret := C.QAccessibleTableInterface_SelectedCellCount(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTableInterface_SelectedCellCount(this.h))
}
func (this *QAccessibleTableInterface) SelectedCells() []*QAccessibleInterface {
var _ma *C.struct_miqt_array = C.QAccessibleTableInterface_SelectedCells(this.h)
_ret := make([]*QAccessibleInterface, int(_ma.len))
_outCast := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQAccessibleInterface(_outCast[i])
_ret[i] = newQAccessibleInterface_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -876,29 +840,25 @@ func (this *QAccessibleTableInterface) RowDescription(row int) string {
}
func (this *QAccessibleTableInterface) SelectedColumnCount() int {
_ret := C.QAccessibleTableInterface_SelectedColumnCount(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTableInterface_SelectedColumnCount(this.h))
}
func (this *QAccessibleTableInterface) SelectedRowCount() int {
_ret := C.QAccessibleTableInterface_SelectedRowCount(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTableInterface_SelectedRowCount(this.h))
}
func (this *QAccessibleTableInterface) ColumnCount() int {
_ret := C.QAccessibleTableInterface_ColumnCount(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTableInterface_ColumnCount(this.h))
}
func (this *QAccessibleTableInterface) RowCount() int {
_ret := C.QAccessibleTableInterface_RowCount(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTableInterface_RowCount(this.h))
}
func (this *QAccessibleTableInterface) SelectedColumns() []int {
var _ma *C.struct_miqt_array = C.QAccessibleTableInterface_SelectedColumns(this.h)
_ret := make([]int, int(_ma.len))
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (int)(_outCast[i])
}
@ -909,7 +869,7 @@ func (this *QAccessibleTableInterface) SelectedColumns() []int {
func (this *QAccessibleTableInterface) SelectedRows() []int {
var _ma *C.struct_miqt_array = C.QAccessibleTableInterface_SelectedRows(this.h)
_ret := make([]int, int(_ma.len))
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (int)(_outCast[i])
}
@ -918,33 +878,27 @@ func (this *QAccessibleTableInterface) SelectedRows() []int {
}
func (this *QAccessibleTableInterface) IsColumnSelected(column int) bool {
_ret := C.QAccessibleTableInterface_IsColumnSelected(this.h, (C.int)(column))
return (bool)(_ret)
return (bool)(C.QAccessibleTableInterface_IsColumnSelected(this.h, (C.int)(column)))
}
func (this *QAccessibleTableInterface) IsRowSelected(row int) bool {
_ret := C.QAccessibleTableInterface_IsRowSelected(this.h, (C.int)(row))
return (bool)(_ret)
return (bool)(C.QAccessibleTableInterface_IsRowSelected(this.h, (C.int)(row)))
}
func (this *QAccessibleTableInterface) SelectRow(row int) bool {
_ret := C.QAccessibleTableInterface_SelectRow(this.h, (C.int)(row))
return (bool)(_ret)
return (bool)(C.QAccessibleTableInterface_SelectRow(this.h, (C.int)(row)))
}
func (this *QAccessibleTableInterface) SelectColumn(column int) bool {
_ret := C.QAccessibleTableInterface_SelectColumn(this.h, (C.int)(column))
return (bool)(_ret)
return (bool)(C.QAccessibleTableInterface_SelectColumn(this.h, (C.int)(column)))
}
func (this *QAccessibleTableInterface) UnselectRow(row int) bool {
_ret := C.QAccessibleTableInterface_UnselectRow(this.h, (C.int)(row))
return (bool)(_ret)
return (bool)(C.QAccessibleTableInterface_UnselectRow(this.h, (C.int)(row)))
}
func (this *QAccessibleTableInterface) UnselectColumn(column int) bool {
_ret := C.QAccessibleTableInterface_UnselectColumn(this.h, (C.int)(column))
return (bool)(_ret)
return (bool)(C.QAccessibleTableInterface_UnselectColumn(this.h, (C.int)(column)))
}
func (this *QAccessibleTableInterface) ModelChange(event *QAccessibleTableModelChangeEvent) {
@ -1010,8 +964,10 @@ func (this *QAccessibleActionInterface) ActionNames() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -1048,8 +1004,10 @@ func (this *QAccessibleActionInterface) KeyBindingsForAction(actionName string)
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -1297,18 +1255,15 @@ func NewQAccessibleEvent2(iface *QAccessibleInterface, typ QAccessible__Event) *
}
func (this *QAccessibleEvent) Type() QAccessible__Event {
_ret := C.QAccessibleEvent_Type(this.h)
return (QAccessible__Event)(_ret)
return (QAccessible__Event)(C.QAccessibleEvent_Type(this.h))
}
func (this *QAccessibleEvent) Object() *QObject {
_ret := C.QAccessibleEvent_Object(this.h)
return newQObject_U(unsafe.Pointer(_ret))
return newQObject_U(unsafe.Pointer(C.QAccessibleEvent_Object(this.h)))
}
func (this *QAccessibleEvent) UniqueId() uint {
_ret := C.QAccessibleEvent_UniqueId(this.h)
return (uint)(_ret)
return (uint)(C.QAccessibleEvent_UniqueId(this.h))
}
func (this *QAccessibleEvent) SetChild(chld int) {
@ -1316,13 +1271,11 @@ func (this *QAccessibleEvent) SetChild(chld int) {
}
func (this *QAccessibleEvent) Child() int {
_ret := C.QAccessibleEvent_Child(this.h)
return (int)(_ret)
return (int)(C.QAccessibleEvent_Child(this.h))
}
func (this *QAccessibleEvent) AccessibleInterface() *QAccessibleInterface {
_ret := C.QAccessibleEvent_AccessibleInterface(this.h)
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleEvent_AccessibleInterface(this.h)))
}
// Delete this object from C++ memory.
@ -1435,8 +1388,7 @@ func (this *QAccessibleTextCursorEvent) SetCursorPosition(position int) {
}
func (this *QAccessibleTextCursorEvent) CursorPosition() int {
_ret := C.QAccessibleTextCursorEvent_CursorPosition(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTextCursorEvent_CursorPosition(this.h))
}
// Delete this object from C++ memory.
@ -1493,13 +1445,11 @@ func (this *QAccessibleTextSelectionEvent) SetSelection(start int, end int) {
}
func (this *QAccessibleTextSelectionEvent) SelectionStart() int {
_ret := C.QAccessibleTextSelectionEvent_SelectionStart(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTextSelectionEvent_SelectionStart(this.h))
}
func (this *QAccessibleTextSelectionEvent) SelectionEnd() int {
_ret := C.QAccessibleTextSelectionEvent_SelectionEnd(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTextSelectionEvent_SelectionEnd(this.h))
}
// Delete this object from C++ memory.
@ -1563,8 +1513,7 @@ func (this *QAccessibleTextInsertEvent) TextInserted() string {
}
func (this *QAccessibleTextInsertEvent) ChangePosition() int {
_ret := C.QAccessibleTextInsertEvent_ChangePosition(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTextInsertEvent_ChangePosition(this.h))
}
// Delete this object from C++ memory.
@ -1628,8 +1577,7 @@ func (this *QAccessibleTextRemoveEvent) TextRemoved() string {
}
func (this *QAccessibleTextRemoveEvent) ChangePosition() int {
_ret := C.QAccessibleTextRemoveEvent_ChangePosition(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTextRemoveEvent_ChangePosition(this.h))
}
// Delete this object from C++ memory.
@ -1704,8 +1652,7 @@ func (this *QAccessibleTextUpdateEvent) TextInserted() string {
}
func (this *QAccessibleTextUpdateEvent) ChangePosition() int {
_ret := C.QAccessibleTextUpdateEvent_ChangePosition(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTextUpdateEvent_ChangePosition(this.h))
}
// Delete this object from C++ memory.
@ -1822,8 +1769,7 @@ func (this *QAccessibleTableModelChangeEvent) SetModelChangeType(changeType QAcc
}
func (this *QAccessibleTableModelChangeEvent) ModelChangeType() QAccessibleTableModelChangeEvent__ModelChangeType {
_ret := C.QAccessibleTableModelChangeEvent_ModelChangeType(this.h)
return (QAccessibleTableModelChangeEvent__ModelChangeType)(_ret)
return (QAccessibleTableModelChangeEvent__ModelChangeType)(C.QAccessibleTableModelChangeEvent_ModelChangeType(this.h))
}
func (this *QAccessibleTableModelChangeEvent) SetFirstRow(row int) {
@ -1843,23 +1789,19 @@ func (this *QAccessibleTableModelChangeEvent) SetLastColumn(col int) {
}
func (this *QAccessibleTableModelChangeEvent) FirstRow() int {
_ret := C.QAccessibleTableModelChangeEvent_FirstRow(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTableModelChangeEvent_FirstRow(this.h))
}
func (this *QAccessibleTableModelChangeEvent) FirstColumn() int {
_ret := C.QAccessibleTableModelChangeEvent_FirstColumn(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTableModelChangeEvent_FirstColumn(this.h))
}
func (this *QAccessibleTableModelChangeEvent) LastRow() int {
_ret := C.QAccessibleTableModelChangeEvent_LastRow(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTableModelChangeEvent_LastRow(this.h))
}
func (this *QAccessibleTableModelChangeEvent) LastColumn() int {
_ret := C.QAccessibleTableModelChangeEvent_LastColumn(this.h)
return (int)(_ret)
return (int)(C.QAccessibleTableModelChangeEvent_LastColumn(this.h))
}
// Delete this object from C++ memory.

View File

@ -85,8 +85,7 @@ func newQAccessibleBridgePlugin_U(h unsafe.Pointer) *QAccessibleBridgePlugin {
}
func (this *QAccessibleBridgePlugin) MetaObject() *QMetaObject {
_ret := C.QAccessibleBridgePlugin_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAccessibleBridgePlugin_MetaObject(this.h)))
}
func QAccessibleBridgePlugin_Tr(s string) string {
@ -110,8 +109,7 @@ func QAccessibleBridgePlugin_TrUtf8(s string) string {
func (this *QAccessibleBridgePlugin) Create(key string) *QAccessibleBridge {
key_ms := miqt_strdupg(key)
defer C.free(key_ms)
_ret := C.QAccessibleBridgePlugin_Create(this.h, (*C.struct_miqt_string)(key_ms))
return newQAccessibleBridge_U(unsafe.Pointer(_ret))
return newQAccessibleBridge_U(unsafe.Pointer(C.QAccessibleBridgePlugin_Create(this.h, (*C.struct_miqt_string)(key_ms))))
}
func QAccessibleBridgePlugin_Tr2(s string, c string) string {

View File

@ -37,13 +37,11 @@ func newQAccessibleObject_U(h unsafe.Pointer) *QAccessibleObject {
}
func (this *QAccessibleObject) IsValid() bool {
_ret := C.QAccessibleObject_IsValid(this.h)
return (bool)(_ret)
return (bool)(C.QAccessibleObject_IsValid(this.h))
}
func (this *QAccessibleObject) Object() *QObject {
_ret := C.QAccessibleObject_Object(this.h)
return newQObject_U(unsafe.Pointer(_ret))
return newQObject_U(unsafe.Pointer(C.QAccessibleObject_Object(this.h)))
}
func (this *QAccessibleObject) Rect() *QRect {
@ -60,8 +58,7 @@ func (this *QAccessibleObject) SetText(t QAccessible__Text, text string) {
}
func (this *QAccessibleObject) ChildAt(x int, y int) *QAccessibleInterface {
_ret := C.QAccessibleObject_ChildAt(this.h, (C.int)(x), (C.int)(y))
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleObject_ChildAt(this.h, (C.int)(x), (C.int)(y))))
}
type QAccessibleApplication struct {
@ -94,33 +91,27 @@ func NewQAccessibleApplication() *QAccessibleApplication {
}
func (this *QAccessibleApplication) Window() *QWindow {
_ret := C.QAccessibleApplication_Window(this.h)
return newQWindow_U(unsafe.Pointer(_ret))
return newQWindow_U(unsafe.Pointer(C.QAccessibleApplication_Window(this.h)))
}
func (this *QAccessibleApplication) ChildCount() int {
_ret := C.QAccessibleApplication_ChildCount(this.h)
return (int)(_ret)
return (int)(C.QAccessibleApplication_ChildCount(this.h))
}
func (this *QAccessibleApplication) IndexOfChild(param1 *QAccessibleInterface) int {
_ret := C.QAccessibleApplication_IndexOfChild(this.h, param1.cPointer())
return (int)(_ret)
return (int)(C.QAccessibleApplication_IndexOfChild(this.h, param1.cPointer()))
}
func (this *QAccessibleApplication) FocusChild() *QAccessibleInterface {
_ret := C.QAccessibleApplication_FocusChild(this.h)
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleApplication_FocusChild(this.h)))
}
func (this *QAccessibleApplication) Parent() *QAccessibleInterface {
_ret := C.QAccessibleApplication_Parent(this.h)
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleApplication_Parent(this.h)))
}
func (this *QAccessibleApplication) Child(index int) *QAccessibleInterface {
_ret := C.QAccessibleApplication_Child(this.h, (C.int)(index))
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleApplication_Child(this.h, (C.int)(index))))
}
func (this *QAccessibleApplication) Text(t QAccessible__Text) string {
@ -131,8 +122,7 @@ func (this *QAccessibleApplication) Text(t QAccessible__Text) string {
}
func (this *QAccessibleApplication) Role() QAccessible__Role {
_ret := C.QAccessibleApplication_Role(this.h)
return (QAccessible__Role)(_ret)
return (QAccessible__Role)(C.QAccessibleApplication_Role(this.h))
}
func (this *QAccessibleApplication) State() *QAccessible__State {

View File

@ -37,8 +37,7 @@ func newQAccessiblePlugin_U(h unsafe.Pointer) *QAccessiblePlugin {
}
func (this *QAccessiblePlugin) MetaObject() *QMetaObject {
_ret := C.QAccessiblePlugin_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAccessiblePlugin_MetaObject(this.h)))
}
func QAccessiblePlugin_Tr(s string) string {
@ -62,8 +61,7 @@ func QAccessiblePlugin_TrUtf8(s string) string {
func (this *QAccessiblePlugin) Create(key string, object *QObject) *QAccessibleInterface {
key_ms := miqt_strdupg(key)
defer C.free(key_ms)
_ret := C.QAccessiblePlugin_Create(this.h, (*C.struct_miqt_string)(key_ms), object.cPointer())
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessiblePlugin_Create(this.h, (*C.struct_miqt_string)(key_ms), object.cPointer())))
}
func QAccessiblePlugin_Tr2(s string, c string) string {

View File

@ -57,28 +57,23 @@ func NewQAccessibleWidget3(o *QWidget, r QAccessible__Role, name string) *QAcces
}
func (this *QAccessibleWidget) IsValid() bool {
_ret := C.QAccessibleWidget_IsValid(this.h)
return (bool)(_ret)
return (bool)(C.QAccessibleWidget_IsValid(this.h))
}
func (this *QAccessibleWidget) Window() *QWindow {
_ret := C.QAccessibleWidget_Window(this.h)
return newQWindow_U(unsafe.Pointer(_ret))
return newQWindow_U(unsafe.Pointer(C.QAccessibleWidget_Window(this.h)))
}
func (this *QAccessibleWidget) ChildCount() int {
_ret := C.QAccessibleWidget_ChildCount(this.h)
return (int)(_ret)
return (int)(C.QAccessibleWidget_ChildCount(this.h))
}
func (this *QAccessibleWidget) IndexOfChild(child *QAccessibleInterface) int {
_ret := C.QAccessibleWidget_IndexOfChild(this.h, child.cPointer())
return (int)(_ret)
return (int)(C.QAccessibleWidget_IndexOfChild(this.h, child.cPointer()))
}
func (this *QAccessibleWidget) FocusChild() *QAccessibleInterface {
_ret := C.QAccessibleWidget_FocusChild(this.h)
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleWidget_FocusChild(this.h)))
}
func (this *QAccessibleWidget) Rect() *QRect {
@ -89,13 +84,11 @@ func (this *QAccessibleWidget) Rect() *QRect {
}
func (this *QAccessibleWidget) Parent() *QAccessibleInterface {
_ret := C.QAccessibleWidget_Parent(this.h)
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleWidget_Parent(this.h)))
}
func (this *QAccessibleWidget) Child(index int) *QAccessibleInterface {
_ret := C.QAccessibleWidget_Child(this.h, (C.int)(index))
return newQAccessibleInterface_U(unsafe.Pointer(_ret))
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleWidget_Child(this.h, (C.int)(index))))
}
func (this *QAccessibleWidget) Text(t QAccessible__Text) string {
@ -106,8 +99,7 @@ func (this *QAccessibleWidget) Text(t QAccessible__Text) string {
}
func (this *QAccessibleWidget) Role() QAccessible__Role {
_ret := C.QAccessibleWidget_Role(this.h)
return (QAccessible__Role)(_ret)
return (QAccessible__Role)(C.QAccessibleWidget_Role(this.h))
}
func (this *QAccessibleWidget) State() *QAccessible__State {
@ -136,8 +128,10 @@ func (this *QAccessibleWidget) ActionNames() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -156,8 +150,10 @@ func (this *QAccessibleWidget) KeyBindingsForAction(actionName string) []string
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret

View File

@ -109,8 +109,7 @@ func NewQAction6(icon *QIcon, text string, parent *QObject) *QAction {
}
func (this *QAction) MetaObject() *QMetaObject {
_ret := C.QAction_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAction_MetaObject(this.h)))
}
func QAction_Tr(s string) string {
@ -136,8 +135,7 @@ func (this *QAction) SetActionGroup(group *QActionGroup) {
}
func (this *QAction) ActionGroup() *QActionGroup {
_ret := C.QAction_ActionGroup(this.h)
return newQActionGroup_U(unsafe.Pointer(_ret))
return newQActionGroup_U(unsafe.Pointer(C.QAction_ActionGroup(this.h)))
}
func (this *QAction) SetIcon(icon *QIcon) {
@ -221,13 +219,11 @@ func (this *QAction) SetPriority(priority QAction__Priority) {
}
func (this *QAction) Priority() QAction__Priority {
_ret := C.QAction_Priority(this.h)
return (QAction__Priority)(_ret)
return (QAction__Priority)(C.QAction_Priority(this.h))
}
func (this *QAction) Menu() *QMenu {
_ret := C.QAction_Menu(this.h)
return newQMenu_U(unsafe.Pointer(_ret))
return newQMenu_U(unsafe.Pointer(C.QAction_Menu(this.h)))
}
func (this *QAction) SetMenu(menu *QMenu) {
@ -239,8 +235,7 @@ func (this *QAction) SetSeparator(b bool) {
}
func (this *QAction) IsSeparator() bool {
_ret := C.QAction_IsSeparator(this.h)
return (bool)(_ret)
return (bool)(C.QAction_IsSeparator(this.h))
}
func (this *QAction) SetShortcut(shortcut *QKeySequence) {
@ -273,9 +268,12 @@ func (this *QAction) SetShortcutsWithShortcuts(shortcuts QKeySequence__StandardK
func (this *QAction) Shortcuts() []QKeySequence {
var _ma *C.struct_miqt_array = C.QAction_Shortcuts(this.h)
_ret := make([]QKeySequence, int(_ma.len))
_outCast := (*[0xffff]*C.QKeySequence)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QKeySequence)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQKeySequence(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQKeySequence(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -286,8 +284,7 @@ func (this *QAction) SetShortcutContext(context ShortcutContext) {
}
func (this *QAction) ShortcutContext() ShortcutContext {
_ret := C.QAction_ShortcutContext(this.h)
return (ShortcutContext)(_ret)
return (ShortcutContext)(C.QAction_ShortcutContext(this.h))
}
func (this *QAction) SetAutoRepeat(autoRepeat bool) {
@ -295,8 +292,7 @@ func (this *QAction) SetAutoRepeat(autoRepeat bool) {
}
func (this *QAction) AutoRepeat() bool {
_ret := C.QAction_AutoRepeat(this.h)
return (bool)(_ret)
return (bool)(C.QAction_AutoRepeat(this.h))
}
func (this *QAction) SetFont(font *QFont) {
@ -315,8 +311,7 @@ func (this *QAction) SetCheckable(checkable bool) {
}
func (this *QAction) IsCheckable() bool {
_ret := C.QAction_IsCheckable(this.h)
return (bool)(_ret)
return (bool)(C.QAction_IsCheckable(this.h))
}
func (this *QAction) Data() *QVariant {
@ -331,18 +326,15 @@ func (this *QAction) SetData(varVal *QVariant) {
}
func (this *QAction) IsChecked() bool {
_ret := C.QAction_IsChecked(this.h)
return (bool)(_ret)
return (bool)(C.QAction_IsChecked(this.h))
}
func (this *QAction) IsEnabled() bool {
_ret := C.QAction_IsEnabled(this.h)
return (bool)(_ret)
return (bool)(C.QAction_IsEnabled(this.h))
}
func (this *QAction) IsVisible() bool {
_ret := C.QAction_IsVisible(this.h)
return (bool)(_ret)
return (bool)(C.QAction_IsVisible(this.h))
}
func (this *QAction) Activate(event QAction__ActionEvent) {
@ -350,8 +342,7 @@ func (this *QAction) Activate(event QAction__ActionEvent) {
}
func (this *QAction) ShowStatusText() bool {
_ret := C.QAction_ShowStatusText(this.h)
return (bool)(_ret)
return (bool)(C.QAction_ShowStatusText(this.h))
}
func (this *QAction) SetMenuRole(menuRole QAction__MenuRole) {
@ -359,8 +350,7 @@ func (this *QAction) SetMenuRole(menuRole QAction__MenuRole) {
}
func (this *QAction) MenuRole() QAction__MenuRole {
_ret := C.QAction_MenuRole(this.h)
return (QAction__MenuRole)(_ret)
return (QAction__MenuRole)(C.QAction_MenuRole(this.h))
}
func (this *QAction) SetIconVisibleInMenu(visible bool) {
@ -368,8 +358,7 @@ func (this *QAction) SetIconVisibleInMenu(visible bool) {
}
func (this *QAction) IsIconVisibleInMenu() bool {
_ret := C.QAction_IsIconVisibleInMenu(this.h)
return (bool)(_ret)
return (bool)(C.QAction_IsIconVisibleInMenu(this.h))
}
func (this *QAction) SetShortcutVisibleInContextMenu(show bool) {
@ -377,21 +366,19 @@ func (this *QAction) SetShortcutVisibleInContextMenu(show bool) {
}
func (this *QAction) IsShortcutVisibleInContextMenu() bool {
_ret := C.QAction_IsShortcutVisibleInContextMenu(this.h)
return (bool)(_ret)
return (bool)(C.QAction_IsShortcutVisibleInContextMenu(this.h))
}
func (this *QAction) ParentWidget() *QWidget {
_ret := C.QAction_ParentWidget(this.h)
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QAction_ParentWidget(this.h)))
}
func (this *QAction) AssociatedWidgets() []*QWidget {
var _ma *C.struct_miqt_array = C.QAction_AssociatedWidgets(this.h)
_ret := make([]*QWidget, int(_ma.len))
_outCast := (*[0xffff]*C.QWidget)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QWidget)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQWidget(_outCast[i])
_ret[i] = newQWidget_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -400,9 +387,9 @@ func (this *QAction) AssociatedWidgets() []*QWidget {
func (this *QAction) AssociatedGraphicsWidgets() []*QGraphicsWidget {
var _ma *C.struct_miqt_array = C.QAction_AssociatedGraphicsWidgets(this.h)
_ret := make([]*QGraphicsWidget, int(_ma.len))
_outCast := (*[0xffff]*C.QGraphicsWidget)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QGraphicsWidget)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQGraphicsWidget(_outCast[i])
_ret[i] = newQGraphicsWidget_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -502,8 +489,7 @@ func miqt_exec_callback_QAction_Toggled(cb *C.void, param1 C.bool) {
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (bool)(param1_ret)
slotval1 := (bool)(param1)
gofunc(slotval1)
}
@ -553,8 +539,7 @@ func QAction_TrUtf83(s string, c string, n int) string {
}
func (this *QAction) ShowStatusText1(widget *QWidget) bool {
_ret := C.QAction_ShowStatusText1(this.h, widget.cPointer())
return (bool)(_ret)
return (bool)(C.QAction_ShowStatusText1(this.h, widget.cPointer()))
}
func (this *QAction) Triggered1(checked bool) {
@ -572,8 +557,7 @@ func miqt_exec_callback_QAction_Triggered1(cb *C.void, checked C.bool) {
}
// Convert all CABI parameters to Go parameters
checked_ret := checked
slotval1 := (bool)(checked_ret)
slotval1 := (bool)(checked)
gofunc(slotval1)
}

View File

@ -52,8 +52,7 @@ func NewQActionGroup(parent *QObject) *QActionGroup {
}
func (this *QActionGroup) MetaObject() *QMetaObject {
_ret := C.QActionGroup_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QActionGroup_MetaObject(this.h)))
}
func QActionGroup_Tr(s string) string {
@ -75,22 +74,19 @@ func QActionGroup_TrUtf8(s string) string {
}
func (this *QActionGroup) AddAction(a *QAction) *QAction {
_ret := C.QActionGroup_AddAction(this.h, a.cPointer())
return newQAction_U(unsafe.Pointer(_ret))
return newQAction_U(unsafe.Pointer(C.QActionGroup_AddAction(this.h, a.cPointer())))
}
func (this *QActionGroup) AddActionWithText(text string) *QAction {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
_ret := C.QActionGroup_AddActionWithText(this.h, (*C.struct_miqt_string)(text_ms))
return newQAction_U(unsafe.Pointer(_ret))
return newQAction_U(unsafe.Pointer(C.QActionGroup_AddActionWithText(this.h, (*C.struct_miqt_string)(text_ms))))
}
func (this *QActionGroup) AddAction2(icon *QIcon, text string) *QAction {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
_ret := C.QActionGroup_AddAction2(this.h, icon.cPointer(), (*C.struct_miqt_string)(text_ms))
return newQAction_U(unsafe.Pointer(_ret))
return newQAction_U(unsafe.Pointer(C.QActionGroup_AddAction2(this.h, icon.cPointer(), (*C.struct_miqt_string)(text_ms))))
}
func (this *QActionGroup) RemoveAction(a *QAction) {
@ -100,37 +96,32 @@ func (this *QActionGroup) RemoveAction(a *QAction) {
func (this *QActionGroup) Actions() []*QAction {
var _ma *C.struct_miqt_array = C.QActionGroup_Actions(this.h)
_ret := make([]*QAction, int(_ma.len))
_outCast := (*[0xffff]*C.QAction)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QAction)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQAction(_outCast[i])
_ret[i] = newQAction_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QActionGroup) CheckedAction() *QAction {
_ret := C.QActionGroup_CheckedAction(this.h)
return newQAction_U(unsafe.Pointer(_ret))
return newQAction_U(unsafe.Pointer(C.QActionGroup_CheckedAction(this.h)))
}
func (this *QActionGroup) IsExclusive() bool {
_ret := C.QActionGroup_IsExclusive(this.h)
return (bool)(_ret)
return (bool)(C.QActionGroup_IsExclusive(this.h))
}
func (this *QActionGroup) IsEnabled() bool {
_ret := C.QActionGroup_IsEnabled(this.h)
return (bool)(_ret)
return (bool)(C.QActionGroup_IsEnabled(this.h))
}
func (this *QActionGroup) IsVisible() bool {
_ret := C.QActionGroup_IsVisible(this.h)
return (bool)(_ret)
return (bool)(C.QActionGroup_IsVisible(this.h))
}
func (this *QActionGroup) ExclusionPolicy() QActionGroup__ExclusionPolicy {
_ret := C.QActionGroup_ExclusionPolicy(this.h)
return (QActionGroup__ExclusionPolicy)(_ret)
return (QActionGroup__ExclusionPolicy)(C.QActionGroup_ExclusionPolicy(this.h))
}
func (this *QActionGroup) SetEnabled(enabled bool) {
@ -168,8 +159,7 @@ func miqt_exec_callback_QActionGroup_Triggered(cb *C.void, param1 *C.QAction) {
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := newQAction_U(unsafe.Pointer(param1_ret))
slotval1 := newQAction_U(unsafe.Pointer(param1))
gofunc(slotval1)
}
@ -189,8 +179,7 @@ func miqt_exec_callback_QActionGroup_Hovered(cb *C.void, param1 *C.QAction) {
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := newQAction_U(unsafe.Pointer(param1_ret))
slotval1 := newQAction_U(unsafe.Pointer(param1))
gofunc(slotval1)
}

View File

@ -37,8 +37,7 @@ func newQAnimationGroup_U(h unsafe.Pointer) *QAnimationGroup {
}
func (this *QAnimationGroup) MetaObject() *QMetaObject {
_ret := C.QAnimationGroup_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QAnimationGroup_MetaObject(this.h)))
}
func QAnimationGroup_Tr(s string) string {
@ -60,18 +59,15 @@ func QAnimationGroup_TrUtf8(s string) string {
}
func (this *QAnimationGroup) AnimationAt(index int) *QAbstractAnimation {
_ret := C.QAnimationGroup_AnimationAt(this.h, (C.int)(index))
return newQAbstractAnimation_U(unsafe.Pointer(_ret))
return newQAbstractAnimation_U(unsafe.Pointer(C.QAnimationGroup_AnimationAt(this.h, (C.int)(index))))
}
func (this *QAnimationGroup) AnimationCount() int {
_ret := C.QAnimationGroup_AnimationCount(this.h)
return (int)(_ret)
return (int)(C.QAnimationGroup_AnimationCount(this.h))
}
func (this *QAnimationGroup) IndexOfAnimation(animation *QAbstractAnimation) int {
_ret := C.QAnimationGroup_IndexOfAnimation(this.h, animation.cPointer())
return (int)(_ret)
return (int)(C.QAnimationGroup_IndexOfAnimation(this.h, animation.cPointer()))
}
func (this *QAnimationGroup) AddAnimation(animation *QAbstractAnimation) {
@ -87,8 +83,7 @@ func (this *QAnimationGroup) RemoveAnimation(animation *QAbstractAnimation) {
}
func (this *QAnimationGroup) TakeAnimation(index int) *QAbstractAnimation {
_ret := C.QAnimationGroup_TakeAnimation(this.h, (C.int)(index))
return newQAbstractAnimation_U(unsafe.Pointer(_ret))
return newQAbstractAnimation_U(unsafe.Pointer(C.QAnimationGroup_TakeAnimation(this.h, (C.int)(index))))
}
func (this *QAnimationGroup) Clear() {

View File

@ -72,8 +72,7 @@ func NewQApplication2(args []string, param3 int) *QApplication {
}
func (this *QApplication) MetaObject() *QMetaObject {
_ret := C.QApplication_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QApplication_MetaObject(this.h)))
}
func QApplication_Tr(s string) string {
@ -95,8 +94,7 @@ func QApplication_TrUtf8(s string) string {
}
func QApplication_Style() *QStyle {
_ret := C.QApplication_Style()
return newQStyle_U(unsafe.Pointer(_ret))
return newQStyle_U(unsafe.Pointer(C.QApplication_Style()))
}
func QApplication_SetStyle(style *QStyle) {
@ -106,13 +104,11 @@ func QApplication_SetStyle(style *QStyle) {
func QApplication_SetStyleWithStyle(style string) *QStyle {
style_ms := miqt_strdupg(style)
defer C.free(style_ms)
_ret := C.QApplication_SetStyleWithStyle((*C.struct_miqt_string)(style_ms))
return newQStyle_U(unsafe.Pointer(_ret))
return newQStyle_U(unsafe.Pointer(C.QApplication_SetStyleWithStyle((*C.struct_miqt_string)(style_ms))))
}
func QApplication_ColorSpec() int {
_ret := C.QApplication_ColorSpec()
return (int)(_ret)
return (int)(C.QApplication_ColorSpec())
}
func QApplication_SetColorSpec(colorSpec int) {
@ -187,9 +183,9 @@ func QApplication_WindowIcon() *QIcon {
func QApplication_AllWidgets() []*QWidget {
var _ma *C.struct_miqt_array = C.QApplication_AllWidgets()
_ret := make([]*QWidget, int(_ma.len))
_outCast := (*[0xffff]*C.QWidget)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QWidget)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQWidget(_outCast[i])
_ret[i] = newQWidget_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -198,37 +194,32 @@ func QApplication_AllWidgets() []*QWidget {
func QApplication_TopLevelWidgets() []*QWidget {
var _ma *C.struct_miqt_array = C.QApplication_TopLevelWidgets()
_ret := make([]*QWidget, int(_ma.len))
_outCast := (*[0xffff]*C.QWidget)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QWidget)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQWidget(_outCast[i])
_ret[i] = newQWidget_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func QApplication_Desktop() *QDesktopWidget {
_ret := C.QApplication_Desktop()
return newQDesktopWidget_U(unsafe.Pointer(_ret))
return newQDesktopWidget_U(unsafe.Pointer(C.QApplication_Desktop()))
}
func QApplication_ActivePopupWidget() *QWidget {
_ret := C.QApplication_ActivePopupWidget()
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QApplication_ActivePopupWidget()))
}
func QApplication_ActiveModalWidget() *QWidget {
_ret := C.QApplication_ActiveModalWidget()
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QApplication_ActiveModalWidget()))
}
func QApplication_FocusWidget() *QWidget {
_ret := C.QApplication_FocusWidget()
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QApplication_FocusWidget()))
}
func QApplication_ActiveWindow() *QWidget {
_ret := C.QApplication_ActiveWindow()
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QApplication_ActiveWindow()))
}
func QApplication_SetActiveWindow(act *QWidget) {
@ -236,23 +227,19 @@ func QApplication_SetActiveWindow(act *QWidget) {
}
func QApplication_WidgetAt(p *QPoint) *QWidget {
_ret := C.QApplication_WidgetAt(p.cPointer())
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QApplication_WidgetAt(p.cPointer())))
}
func QApplication_WidgetAt2(x int, y int) *QWidget {
_ret := C.QApplication_WidgetAt2((C.int)(x), (C.int)(y))
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QApplication_WidgetAt2((C.int)(x), (C.int)(y))))
}
func QApplication_TopLevelAt(p *QPoint) *QWidget {
_ret := C.QApplication_TopLevelAt(p.cPointer())
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QApplication_TopLevelAt(p.cPointer())))
}
func QApplication_TopLevelAt2(x int, y int) *QWidget {
_ret := C.QApplication_TopLevelAt2((C.int)(x), (C.int)(y))
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QApplication_TopLevelAt2((C.int)(x), (C.int)(y))))
}
func QApplication_Beep() {
@ -268,8 +255,7 @@ func QApplication_SetCursorFlashTime(cursorFlashTime int) {
}
func QApplication_CursorFlashTime() int {
_ret := C.QApplication_CursorFlashTime()
return (int)(_ret)
return (int)(C.QApplication_CursorFlashTime())
}
func QApplication_SetDoubleClickInterval(doubleClickInterval int) {
@ -277,8 +263,7 @@ func QApplication_SetDoubleClickInterval(doubleClickInterval int) {
}
func QApplication_DoubleClickInterval() int {
_ret := C.QApplication_DoubleClickInterval()
return (int)(_ret)
return (int)(C.QApplication_DoubleClickInterval())
}
func QApplication_SetKeyboardInputInterval(keyboardInputInterval int) {
@ -286,8 +271,7 @@ func QApplication_SetKeyboardInputInterval(keyboardInputInterval int) {
}
func QApplication_KeyboardInputInterval() int {
_ret := C.QApplication_KeyboardInputInterval()
return (int)(_ret)
return (int)(C.QApplication_KeyboardInputInterval())
}
func QApplication_SetWheelScrollLines(wheelScrollLines int) {
@ -295,8 +279,7 @@ func QApplication_SetWheelScrollLines(wheelScrollLines int) {
}
func QApplication_WheelScrollLines() int {
_ret := C.QApplication_WheelScrollLines()
return (int)(_ret)
return (int)(C.QApplication_WheelScrollLines())
}
func QApplication_SetGlobalStrut(globalStrut *QSize) {
@ -315,8 +298,7 @@ func QApplication_SetStartDragTime(ms int) {
}
func QApplication_StartDragTime() int {
_ret := C.QApplication_StartDragTime()
return (int)(_ret)
return (int)(C.QApplication_StartDragTime())
}
func QApplication_SetStartDragDistance(l int) {
@ -324,13 +306,11 @@ func QApplication_SetStartDragDistance(l int) {
}
func QApplication_StartDragDistance() int {
_ret := C.QApplication_StartDragDistance()
return (int)(_ret)
return (int)(C.QApplication_StartDragDistance())
}
func QApplication_IsEffectEnabled(param1 UIEffect) bool {
_ret := C.QApplication_IsEffectEnabled((C.uintptr_t)(param1))
return (bool)(_ret)
return (bool)(C.QApplication_IsEffectEnabled((C.uintptr_t)(param1)))
}
func QApplication_SetEffectEnabled(param1 UIEffect) {
@ -338,13 +318,11 @@ func QApplication_SetEffectEnabled(param1 UIEffect) {
}
func QApplication_Exec() int {
_ret := C.QApplication_Exec()
return (int)(_ret)
return (int)(C.QApplication_Exec())
}
func (this *QApplication) Notify(param1 *QObject, param2 *QEvent) bool {
_ret := C.QApplication_Notify(this.h, param1.cPointer(), param2.cPointer())
return (bool)(_ret)
return (bool)(C.QApplication_Notify(this.h, param1.cPointer(), param2.cPointer()))
}
func (this *QApplication) FocusChanged(old *QWidget, now *QWidget) {
@ -362,10 +340,8 @@ func miqt_exec_callback_QApplication_FocusChanged(cb *C.void, old *C.QWidget, no
}
// Convert all CABI parameters to Go parameters
old_ret := old
slotval1 := newQWidget_U(unsafe.Pointer(old_ret))
now_ret := now
slotval2 := newQWidget_U(unsafe.Pointer(now_ret))
slotval1 := newQWidget_U(unsafe.Pointer(old))
slotval2 := newQWidget_U(unsafe.Pointer(now))
gofunc(slotval1, slotval2)
}
@ -388,8 +364,7 @@ func (this *QApplication) SetAutoSipEnabled(enabled bool) {
}
func (this *QApplication) AutoSipEnabled() bool {
_ret := C.QApplication_AutoSipEnabled(this.h)
return (bool)(_ret)
return (bool)(C.QApplication_AutoSipEnabled(this.h))
}
func QApplication_CloseAllWindows() {

View File

@ -55,33 +55,27 @@ func newQArrayData_U(h unsafe.Pointer) *QArrayData {
}
func (this *QArrayData) IsMutable() bool {
_ret := C.QArrayData_IsMutable(this.h)
return (bool)(_ret)
return (bool)(C.QArrayData_IsMutable(this.h))
}
func (this *QArrayData) DetachCapacity(newSize uint64) uint64 {
_ret := C.QArrayData_DetachCapacity(this.h, (C.size_t)(newSize))
return (uint64)(_ret)
return (uint64)(C.QArrayData_DetachCapacity(this.h, (C.size_t)(newSize)))
}
func (this *QArrayData) DetachFlags() int {
_ret := C.QArrayData_DetachFlags(this.h)
return (int)(_ret)
return (int)(C.QArrayData_DetachFlags(this.h))
}
func (this *QArrayData) CloneFlags() int {
_ret := C.QArrayData_CloneFlags(this.h)
return (int)(_ret)
return (int)(C.QArrayData_CloneFlags(this.h))
}
func QArrayData_Allocate(objectSize uint64, alignment uint64, capacity uint64) *QArrayData {
_ret := C.QArrayData_Allocate((C.size_t)(objectSize), (C.size_t)(alignment), (C.size_t)(capacity))
return newQArrayData_U(unsafe.Pointer(_ret))
return newQArrayData_U(unsafe.Pointer(C.QArrayData_Allocate((C.size_t)(objectSize), (C.size_t)(alignment), (C.size_t)(capacity))))
}
func QArrayData_ReallocateUnaligned(data *QArrayData, objectSize uint64, newCapacity uint64) *QArrayData {
_ret := C.QArrayData_ReallocateUnaligned(data.cPointer(), (C.size_t)(objectSize), (C.size_t)(newCapacity))
return newQArrayData_U(unsafe.Pointer(_ret))
return newQArrayData_U(unsafe.Pointer(C.QArrayData_ReallocateUnaligned(data.cPointer(), (C.size_t)(objectSize), (C.size_t)(newCapacity))))
}
func QArrayData_Deallocate(data *QArrayData, objectSize uint64, alignment uint64) {
@ -89,18 +83,15 @@ func QArrayData_Deallocate(data *QArrayData, objectSize uint64, alignment uint64
}
func QArrayData_SharedNull() *QArrayData {
_ret := C.QArrayData_SharedNull()
return newQArrayData_U(unsafe.Pointer(_ret))
return newQArrayData_U(unsafe.Pointer(C.QArrayData_SharedNull()))
}
func QArrayData_Allocate4(objectSize uint64, alignment uint64, capacity uint64, options int) *QArrayData {
_ret := C.QArrayData_Allocate4((C.size_t)(objectSize), (C.size_t)(alignment), (C.size_t)(capacity), (C.int)(options))
return newQArrayData_U(unsafe.Pointer(_ret))
return newQArrayData_U(unsafe.Pointer(C.QArrayData_Allocate4((C.size_t)(objectSize), (C.size_t)(alignment), (C.size_t)(capacity), (C.int)(options))))
}
func QArrayData_ReallocateUnaligned4(data *QArrayData, objectSize uint64, newCapacity uint64, newOptions int) *QArrayData {
_ret := C.QArrayData_ReallocateUnaligned4(data.cPointer(), (C.size_t)(objectSize), (C.size_t)(newCapacity), (C.int)(newOptions))
return newQArrayData_U(unsafe.Pointer(_ret))
return newQArrayData_U(unsafe.Pointer(C.QArrayData_ReallocateUnaligned4(data.cPointer(), (C.size_t)(objectSize), (C.size_t)(newCapacity), (C.int)(newOptions))))
}
// Delete this object from C++ memory.
@ -140,8 +131,7 @@ func newQtPrivate__QContainerImplHelper_U(h unsafe.Pointer) *QtPrivate__QContain
}
func QtPrivate__QContainerImplHelper_Mid(originalLength int, position *int, length *int) QtPrivate__QContainerImplHelper__CutResult {
_ret := C.QtPrivate__QContainerImplHelper_Mid((C.int)(originalLength), (*C.int)(unsafe.Pointer(position)), (*C.int)(unsafe.Pointer(length)))
return (QtPrivate__QContainerImplHelper__CutResult)(_ret)
return (QtPrivate__QContainerImplHelper__CutResult)(C.QtPrivate__QContainerImplHelper_Mid((C.int)(originalLength), (*C.int)(unsafe.Pointer(position)), (*C.int)(unsafe.Pointer(length))))
}
// Delete this object from C++ memory.

View File

@ -42,13 +42,11 @@ func NewQBackingStore(window *QWindow) *QBackingStore {
}
func (this *QBackingStore) Window() *QWindow {
_ret := C.QBackingStore_Window(this.h)
return newQWindow_U(unsafe.Pointer(_ret))
return newQWindow_U(unsafe.Pointer(C.QBackingStore_Window(this.h)))
}
func (this *QBackingStore) PaintDevice() *QPaintDevice {
_ret := C.QBackingStore_PaintDevice(this.h)
return newQPaintDevice_U(unsafe.Pointer(_ret))
return newQPaintDevice_U(unsafe.Pointer(C.QBackingStore_PaintDevice(this.h)))
}
func (this *QBackingStore) Flush(region *QRegion) {
@ -67,8 +65,7 @@ func (this *QBackingStore) Size() *QSize {
}
func (this *QBackingStore) Scroll(area *QRegion, dx int, dy int) bool {
_ret := C.QBackingStore_Scroll(this.h, area.cPointer(), (C.int)(dx), (C.int)(dy))
return (bool)(_ret)
return (bool)(C.QBackingStore_Scroll(this.h, area.cPointer(), (C.int)(dx), (C.int)(dy)))
}
func (this *QBackingStore) BeginPaint(param1 *QRegion) {
@ -91,8 +88,7 @@ func (this *QBackingStore) StaticContents() *QRegion {
}
func (this *QBackingStore) HasStaticContents() bool {
_ret := C.QBackingStore_HasStaticContents(this.h)
return (bool)(_ret)
return (bool)(C.QBackingStore_HasStaticContents(this.h))
}
func (this *QBackingStore) Flush2(region *QRegion, window *QWindow) {

View File

@ -56,13 +56,11 @@ func (this *QBasicTimer) Swap(other *QBasicTimer) {
}
func (this *QBasicTimer) IsActive() bool {
_ret := C.QBasicTimer_IsActive(this.h)
return (bool)(_ret)
return (bool)(C.QBasicTimer_IsActive(this.h))
}
func (this *QBasicTimer) TimerId() int {
_ret := C.QBasicTimer_TimerId(this.h)
return (int)(_ret)
return (int)(C.QBasicTimer_TimerId(this.h))
}
func (this *QBasicTimer) Start(msec int, obj *QObject) {

View File

@ -68,28 +68,23 @@ func (this *QBitArray) Swap(other *QBitArray) {
}
func (this *QBitArray) Size() int {
_ret := C.QBitArray_Size(this.h)
return (int)(_ret)
return (int)(C.QBitArray_Size(this.h))
}
func (this *QBitArray) Count() int {
_ret := C.QBitArray_Count(this.h)
return (int)(_ret)
return (int)(C.QBitArray_Count(this.h))
}
func (this *QBitArray) CountWithOn(on bool) int {
_ret := C.QBitArray_CountWithOn(this.h, (C.bool)(on))
return (int)(_ret)
return (int)(C.QBitArray_CountWithOn(this.h, (C.bool)(on)))
}
func (this *QBitArray) IsEmpty() bool {
_ret := C.QBitArray_IsEmpty(this.h)
return (bool)(_ret)
return (bool)(C.QBitArray_IsEmpty(this.h))
}
func (this *QBitArray) IsNull() bool {
_ret := C.QBitArray_IsNull(this.h)
return (bool)(_ret)
return (bool)(C.QBitArray_IsNull(this.h))
}
func (this *QBitArray) Resize(size int) {
@ -101,8 +96,7 @@ func (this *QBitArray) Detach() {
}
func (this *QBitArray) IsDetached() bool {
_ret := C.QBitArray_IsDetached(this.h)
return (bool)(_ret)
return (bool)(C.QBitArray_IsDetached(this.h))
}
func (this *QBitArray) Clear() {
@ -110,8 +104,7 @@ func (this *QBitArray) Clear() {
}
func (this *QBitArray) TestBit(i int) bool {
_ret := C.QBitArray_TestBit(this.h, (C.int)(i))
return (bool)(_ret)
return (bool)(C.QBitArray_TestBit(this.h, (C.int)(i)))
}
func (this *QBitArray) SetBit(i int) {
@ -127,13 +120,11 @@ func (this *QBitArray) ClearBit(i int) {
}
func (this *QBitArray) ToggleBit(i int) bool {
_ret := C.QBitArray_ToggleBit(this.h, (C.int)(i))
return (bool)(_ret)
return (bool)(C.QBitArray_ToggleBit(this.h, (C.int)(i)))
}
func (this *QBitArray) At(i int) bool {
_ret := C.QBitArray_At(this.h, (C.int)(i))
return (bool)(_ret)
return (bool)(C.QBitArray_At(this.h, (C.int)(i)))
}
func (this *QBitArray) OperatorSubscript(i int) *QBitRef {
@ -144,8 +135,7 @@ func (this *QBitArray) OperatorSubscript(i int) *QBitRef {
}
func (this *QBitArray) OperatorSubscriptWithInt(i int) bool {
_ret := C.QBitArray_OperatorSubscriptWithInt(this.h, (C.int)(i))
return (bool)(_ret)
return (bool)(C.QBitArray_OperatorSubscriptWithInt(this.h, (C.int)(i)))
}
func (this *QBitArray) OperatorSubscriptWithUint(i uint) *QBitRef {
@ -156,8 +146,7 @@ func (this *QBitArray) OperatorSubscriptWithUint(i uint) *QBitRef {
}
func (this *QBitArray) OperatorSubscript2(i uint) bool {
_ret := C.QBitArray_OperatorSubscript2(this.h, (C.uint)(i))
return (bool)(_ret)
return (bool)(C.QBitArray_OperatorSubscript2(this.h, (C.uint)(i)))
}
func (this *QBitArray) OperatorBitwiseAndAssign(param1 *QBitArray) {
@ -180,18 +169,15 @@ func (this *QBitArray) OperatorBitwiseXor() *QBitArray {
}
func (this *QBitArray) OperatorEqual(other *QBitArray) bool {
_ret := C.QBitArray_OperatorEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QBitArray_OperatorEqual(this.h, other.cPointer()))
}
func (this *QBitArray) OperatorNotEqual(other *QBitArray) bool {
_ret := C.QBitArray_OperatorNotEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QBitArray_OperatorNotEqual(this.h, other.cPointer()))
}
func (this *QBitArray) Fill(val bool) bool {
_ret := C.QBitArray_Fill(this.h, (C.bool)(val))
return (bool)(_ret)
return (bool)(C.QBitArray_Fill(this.h, (C.bool)(val)))
}
func (this *QBitArray) Fill2(val bool, first int, last int) {
@ -217,8 +203,7 @@ func QBitArray_FromBits(data string, lenVal uint64) *QBitArray {
}
func (this *QBitArray) Fill22(val bool, size int) bool {
_ret := C.QBitArray_Fill22(this.h, (C.bool)(val), (C.int)(size))
return (bool)(_ret)
return (bool)(C.QBitArray_Fill22(this.h, (C.bool)(val), (C.int)(size)))
}
// Delete this object from C++ memory.
@ -264,8 +249,7 @@ func NewQBitRef(param1 *QBitRef) *QBitRef {
}
func (this *QBitRef) OperatorNot() bool {
_ret := C.QBitRef_OperatorNot(this.h)
return (bool)(_ret)
return (bool)(C.QBitRef_OperatorNot(this.h))
}
func (this *QBitRef) OperatorAssign(val *QBitRef) {

View File

@ -60,8 +60,7 @@ func NewQBoxLayout2(param1 QBoxLayout__Direction, parent *QWidget) *QBoxLayout {
}
func (this *QBoxLayout) MetaObject() *QMetaObject {
_ret := C.QBoxLayout_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QBoxLayout_MetaObject(this.h)))
}
func QBoxLayout_Tr(s string) string {
@ -83,8 +82,7 @@ func QBoxLayout_TrUtf8(s string) string {
}
func (this *QBoxLayout) Direction() QBoxLayout__Direction {
_ret := C.QBoxLayout_Direction(this.h)
return (QBoxLayout__Direction)(_ret)
return (QBoxLayout__Direction)(C.QBoxLayout_Direction(this.h))
}
func (this *QBoxLayout) SetDirection(direction QBoxLayout__Direction) {
@ -144,8 +142,7 @@ func (this *QBoxLayout) InsertItem(index int, param2 *QLayoutItem) {
}
func (this *QBoxLayout) Spacing() int {
_ret := C.QBoxLayout_Spacing(this.h)
return (int)(_ret)
return (int)(C.QBoxLayout_Spacing(this.h))
}
func (this *QBoxLayout) SetSpacing(spacing int) {
@ -153,13 +150,11 @@ func (this *QBoxLayout) SetSpacing(spacing int) {
}
func (this *QBoxLayout) SetStretchFactor(w *QWidget, stretch int) bool {
_ret := C.QBoxLayout_SetStretchFactor(this.h, w.cPointer(), (C.int)(stretch))
return (bool)(_ret)
return (bool)(C.QBoxLayout_SetStretchFactor(this.h, w.cPointer(), (C.int)(stretch)))
}
func (this *QBoxLayout) SetStretchFactor2(l *QLayout, stretch int) bool {
_ret := C.QBoxLayout_SetStretchFactor2(this.h, l.cPointer(), (C.int)(stretch))
return (bool)(_ret)
return (bool)(C.QBoxLayout_SetStretchFactor2(this.h, l.cPointer(), (C.int)(stretch)))
}
func (this *QBoxLayout) SetStretch(index int, stretch int) {
@ -167,8 +162,7 @@ func (this *QBoxLayout) SetStretch(index int, stretch int) {
}
func (this *QBoxLayout) Stretch(index int) int {
_ret := C.QBoxLayout_Stretch(this.h, (C.int)(index))
return (int)(_ret)
return (int)(C.QBoxLayout_Stretch(this.h, (C.int)(index)))
}
func (this *QBoxLayout) SizeHint() *QSize {
@ -193,23 +187,19 @@ func (this *QBoxLayout) MaximumSize() *QSize {
}
func (this *QBoxLayout) HasHeightForWidth() bool {
_ret := C.QBoxLayout_HasHeightForWidth(this.h)
return (bool)(_ret)
return (bool)(C.QBoxLayout_HasHeightForWidth(this.h))
}
func (this *QBoxLayout) HeightForWidth(param1 int) int {
_ret := C.QBoxLayout_HeightForWidth(this.h, (C.int)(param1))
return (int)(_ret)
return (int)(C.QBoxLayout_HeightForWidth(this.h, (C.int)(param1)))
}
func (this *QBoxLayout) MinimumHeightForWidth(param1 int) int {
_ret := C.QBoxLayout_MinimumHeightForWidth(this.h, (C.int)(param1))
return (int)(_ret)
return (int)(C.QBoxLayout_MinimumHeightForWidth(this.h, (C.int)(param1)))
}
func (this *QBoxLayout) ExpandingDirections() int {
_ret := C.QBoxLayout_ExpandingDirections(this.h)
return (int)(_ret)
return (int)(C.QBoxLayout_ExpandingDirections(this.h))
}
func (this *QBoxLayout) Invalidate() {
@ -217,18 +207,15 @@ func (this *QBoxLayout) Invalidate() {
}
func (this *QBoxLayout) ItemAt(param1 int) *QLayoutItem {
_ret := C.QBoxLayout_ItemAt(this.h, (C.int)(param1))
return newQLayoutItem_U(unsafe.Pointer(_ret))
return newQLayoutItem_U(unsafe.Pointer(C.QBoxLayout_ItemAt(this.h, (C.int)(param1))))
}
func (this *QBoxLayout) TakeAt(param1 int) *QLayoutItem {
_ret := C.QBoxLayout_TakeAt(this.h, (C.int)(param1))
return newQLayoutItem_U(unsafe.Pointer(_ret))
return newQLayoutItem_U(unsafe.Pointer(C.QBoxLayout_TakeAt(this.h, (C.int)(param1))))
}
func (this *QBoxLayout) Count() int {
_ret := C.QBoxLayout_Count(this.h)
return (int)(_ret)
return (int)(C.QBoxLayout_Count(this.h))
}
func (this *QBoxLayout) SetGeometry(geometry *QRect) {
@ -361,8 +348,7 @@ func NewQHBoxLayout2(parent *QWidget) *QHBoxLayout {
}
func (this *QHBoxLayout) MetaObject() *QMetaObject {
_ret := C.QHBoxLayout_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QHBoxLayout_MetaObject(this.h)))
}
func QHBoxLayout_Tr(s string) string {
@ -477,8 +463,7 @@ func NewQVBoxLayout2(parent *QWidget) *QVBoxLayout {
}
func (this *QVBoxLayout) MetaObject() *QMetaObject {
_ret := C.QVBoxLayout_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QVBoxLayout_MetaObject(this.h)))
}
func QVBoxLayout_Tr(s string) string {

View File

@ -323,8 +323,7 @@ func (this *QBrush) Swap(other *QBrush) {
}
func (this *QBrush) Style() BrushStyle {
_ret := C.QBrush_Style(this.h)
return (BrushStyle)(_ret)
return (BrushStyle)(C.QBrush_Style(this.h))
}
func (this *QBrush) SetStyle(style BrushStyle) {
@ -332,8 +331,7 @@ func (this *QBrush) SetStyle(style BrushStyle) {
}
func (this *QBrush) Matrix() *QMatrix {
_ret := C.QBrush_Matrix(this.h)
return newQMatrix_U(unsafe.Pointer(_ret))
return newQMatrix_U(unsafe.Pointer(C.QBrush_Matrix(this.h)))
}
func (this *QBrush) SetMatrix(mat *QMatrix) {
@ -374,8 +372,7 @@ func (this *QBrush) SetTextureImage(image *QImage) {
}
func (this *QBrush) Color() *QColor {
_ret := C.QBrush_Color(this.h)
return newQColor_U(unsafe.Pointer(_ret))
return newQColor_U(unsafe.Pointer(C.QBrush_Color(this.h)))
}
func (this *QBrush) SetColor(color *QColor) {
@ -387,28 +384,23 @@ func (this *QBrush) SetColorWithColor(color GlobalColor) {
}
func (this *QBrush) Gradient() *QGradient {
_ret := C.QBrush_Gradient(this.h)
return newQGradient_U(unsafe.Pointer(_ret))
return newQGradient_U(unsafe.Pointer(C.QBrush_Gradient(this.h)))
}
func (this *QBrush) IsOpaque() bool {
_ret := C.QBrush_IsOpaque(this.h)
return (bool)(_ret)
return (bool)(C.QBrush_IsOpaque(this.h))
}
func (this *QBrush) OperatorEqual(b *QBrush) bool {
_ret := C.QBrush_OperatorEqual(this.h, b.cPointer())
return (bool)(_ret)
return (bool)(C.QBrush_OperatorEqual(this.h, b.cPointer()))
}
func (this *QBrush) OperatorNotEqual(b *QBrush) bool {
_ret := C.QBrush_OperatorNotEqual(this.h, b.cPointer())
return (bool)(_ret)
return (bool)(C.QBrush_OperatorNotEqual(this.h, b.cPointer()))
}
func (this *QBrush) IsDetached() bool {
_ret := C.QBrush_IsDetached(this.h)
return (bool)(_ret)
return (bool)(C.QBrush_IsDetached(this.h))
}
// Delete this object from C++ memory.
@ -512,8 +504,7 @@ func NewQGradient3(param1 *QGradient) *QGradient {
}
func (this *QGradient) Type() QGradient__Type {
_ret := C.QGradient_Type(this.h)
return (QGradient__Type)(_ret)
return (QGradient__Type)(C.QGradient_Type(this.h))
}
func (this *QGradient) SetSpread(spread QGradient__Spread) {
@ -521,8 +512,7 @@ func (this *QGradient) SetSpread(spread QGradient__Spread) {
}
func (this *QGradient) Spread() QGradient__Spread {
_ret := C.QGradient_Spread(this.h)
return (QGradient__Spread)(_ret)
return (QGradient__Spread)(C.QGradient_Spread(this.h))
}
func (this *QGradient) SetColorAt(pos float64, color *QColor) {
@ -530,8 +520,7 @@ func (this *QGradient) SetColorAt(pos float64, color *QColor) {
}
func (this *QGradient) CoordinateMode() QGradient__CoordinateMode {
_ret := C.QGradient_CoordinateMode(this.h)
return (QGradient__CoordinateMode)(_ret)
return (QGradient__CoordinateMode)(C.QGradient_CoordinateMode(this.h))
}
func (this *QGradient) SetCoordinateMode(mode QGradient__CoordinateMode) {
@ -539,8 +528,7 @@ func (this *QGradient) SetCoordinateMode(mode QGradient__CoordinateMode) {
}
func (this *QGradient) InterpolationMode() QGradient__InterpolationMode {
_ret := C.QGradient_InterpolationMode(this.h)
return (QGradient__InterpolationMode)(_ret)
return (QGradient__InterpolationMode)(C.QGradient_InterpolationMode(this.h))
}
func (this *QGradient) SetInterpolationMode(mode QGradient__InterpolationMode) {
@ -548,13 +536,11 @@ func (this *QGradient) SetInterpolationMode(mode QGradient__InterpolationMode) {
}
func (this *QGradient) OperatorEqual(gradient *QGradient) bool {
_ret := C.QGradient_OperatorEqual(this.h, gradient.cPointer())
return (bool)(_ret)
return (bool)(C.QGradient_OperatorEqual(this.h, gradient.cPointer()))
}
func (this *QGradient) OperatorNotEqual(other *QGradient) bool {
_ret := C.QGradient_OperatorNotEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QGradient_OperatorNotEqual(this.h, other.cPointer()))
}
// Delete this object from C++ memory.
@ -764,8 +750,7 @@ func (this *QRadialGradient) SetFocalPoint2(x float64, y float64) {
}
func (this *QRadialGradient) Radius() float64 {
_ret := C.QRadialGradient_Radius(this.h)
return (float64)(_ret)
return (float64)(C.QRadialGradient_Radius(this.h))
}
func (this *QRadialGradient) SetRadius(radius float64) {
@ -773,8 +758,7 @@ func (this *QRadialGradient) SetRadius(radius float64) {
}
func (this *QRadialGradient) CenterRadius() float64 {
_ret := C.QRadialGradient_CenterRadius(this.h)
return (float64)(_ret)
return (float64)(C.QRadialGradient_CenterRadius(this.h))
}
func (this *QRadialGradient) SetCenterRadius(radius float64) {
@ -782,8 +766,7 @@ func (this *QRadialGradient) SetCenterRadius(radius float64) {
}
func (this *QRadialGradient) FocalRadius() float64 {
_ret := C.QRadialGradient_FocalRadius(this.h)
return (float64)(_ret)
return (float64)(C.QRadialGradient_FocalRadius(this.h))
}
func (this *QRadialGradient) SetFocalRadius(radius float64) {
@ -867,8 +850,7 @@ func (this *QConicalGradient) SetCenter2(x float64, y float64) {
}
func (this *QConicalGradient) Angle() float64 {
_ret := C.QConicalGradient_Angle(this.h)
return (float64)(_ret)
return (float64)(C.QConicalGradient_Angle(this.h))
}
func (this *QConicalGradient) SetAngle(angle float64) {

View File

@ -61,8 +61,7 @@ func NewQBuffer4(buf *QByteArray, parent *QObject) *QBuffer {
}
func (this *QBuffer) MetaObject() *QMetaObject {
_ret := C.QBuffer_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QBuffer_MetaObject(this.h)))
}
func QBuffer_Tr(s string) string {
@ -84,13 +83,11 @@ func QBuffer_TrUtf8(s string) string {
}
func (this *QBuffer) Buffer() *QByteArray {
_ret := C.QBuffer_Buffer(this.h)
return newQByteArray_U(unsafe.Pointer(_ret))
return newQByteArray_U(unsafe.Pointer(C.QBuffer_Buffer(this.h)))
}
func (this *QBuffer) Buffer2() *QByteArray {
_ret := C.QBuffer_Buffer2(this.h)
return newQByteArray_U(unsafe.Pointer(_ret))
return newQByteArray_U(unsafe.Pointer(C.QBuffer_Buffer2(this.h)))
}
func (this *QBuffer) SetBuffer(a *QByteArray) {
@ -108,13 +105,11 @@ func (this *QBuffer) SetData2(data string, lenVal int) {
}
func (this *QBuffer) Data() *QByteArray {
_ret := C.QBuffer_Data(this.h)
return newQByteArray_U(unsafe.Pointer(_ret))
return newQByteArray_U(unsafe.Pointer(C.QBuffer_Data(this.h)))
}
func (this *QBuffer) Open(openMode int) bool {
_ret := C.QBuffer_Open(this.h, (C.int)(openMode))
return (bool)(_ret)
return (bool)(C.QBuffer_Open(this.h, (C.int)(openMode)))
}
func (this *QBuffer) Close() {
@ -122,28 +117,23 @@ func (this *QBuffer) Close() {
}
func (this *QBuffer) Size() int64 {
_ret := C.QBuffer_Size(this.h)
return (int64)(_ret)
return (int64)(C.QBuffer_Size(this.h))
}
func (this *QBuffer) Pos() int64 {
_ret := C.QBuffer_Pos(this.h)
return (int64)(_ret)
return (int64)(C.QBuffer_Pos(this.h))
}
func (this *QBuffer) Seek(off int64) bool {
_ret := C.QBuffer_Seek(this.h, (C.longlong)(off))
return (bool)(_ret)
return (bool)(C.QBuffer_Seek(this.h, (C.longlong)(off)))
}
func (this *QBuffer) AtEnd() bool {
_ret := C.QBuffer_AtEnd(this.h)
return (bool)(_ret)
return (bool)(C.QBuffer_AtEnd(this.h))
}
func (this *QBuffer) CanReadLine() bool {
_ret := C.QBuffer_CanReadLine(this.h)
return (bool)(_ret)
return (bool)(C.QBuffer_CanReadLine(this.h))
}
func QBuffer_Tr2(s string, c string) string {

View File

@ -50,8 +50,7 @@ func NewQButtonGroup2(parent *QObject) *QButtonGroup {
}
func (this *QButtonGroup) MetaObject() *QMetaObject {
_ret := C.QButtonGroup_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QButtonGroup_MetaObject(this.h)))
}
func QButtonGroup_Tr(s string) string {
@ -77,8 +76,7 @@ func (this *QButtonGroup) SetExclusive(exclusive bool) {
}
func (this *QButtonGroup) Exclusive() bool {
_ret := C.QButtonGroup_Exclusive(this.h)
return (bool)(_ret)
return (bool)(C.QButtonGroup_Exclusive(this.h))
}
func (this *QButtonGroup) AddButton(param1 *QAbstractButton) {
@ -92,22 +90,20 @@ func (this *QButtonGroup) RemoveButton(param1 *QAbstractButton) {
func (this *QButtonGroup) Buttons() []*QAbstractButton {
var _ma *C.struct_miqt_array = C.QButtonGroup_Buttons(this.h)
_ret := make([]*QAbstractButton, int(_ma.len))
_outCast := (*[0xffff]*C.QAbstractButton)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QAbstractButton)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQAbstractButton(_outCast[i])
_ret[i] = newQAbstractButton_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QButtonGroup) CheckedButton() *QAbstractButton {
_ret := C.QButtonGroup_CheckedButton(this.h)
return newQAbstractButton_U(unsafe.Pointer(_ret))
return newQAbstractButton_U(unsafe.Pointer(C.QButtonGroup_CheckedButton(this.h)))
}
func (this *QButtonGroup) Button(id int) *QAbstractButton {
_ret := C.QButtonGroup_Button(this.h, (C.int)(id))
return newQAbstractButton_U(unsafe.Pointer(_ret))
return newQAbstractButton_U(unsafe.Pointer(C.QButtonGroup_Button(this.h, (C.int)(id))))
}
func (this *QButtonGroup) SetId(button *QAbstractButton, id int) {
@ -115,13 +111,11 @@ func (this *QButtonGroup) SetId(button *QAbstractButton, id int) {
}
func (this *QButtonGroup) Id(button *QAbstractButton) int {
_ret := C.QButtonGroup_Id(this.h, button.cPointer())
return (int)(_ret)
return (int)(C.QButtonGroup_Id(this.h, button.cPointer()))
}
func (this *QButtonGroup) CheckedId() int {
_ret := C.QButtonGroup_CheckedId(this.h)
return (int)(_ret)
return (int)(C.QButtonGroup_CheckedId(this.h))
}
func (this *QButtonGroup) ButtonClicked(param1 *QAbstractButton) {
@ -139,8 +133,7 @@ func miqt_exec_callback_QButtonGroup_ButtonClicked(cb *C.void, param1 *C.QAbstra
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := newQAbstractButton_U(unsafe.Pointer(param1_ret))
slotval1 := newQAbstractButton_U(unsafe.Pointer(param1))
gofunc(slotval1)
}
@ -160,8 +153,7 @@ func miqt_exec_callback_QButtonGroup_ButtonPressed(cb *C.void, param1 *C.QAbstra
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := newQAbstractButton_U(unsafe.Pointer(param1_ret))
slotval1 := newQAbstractButton_U(unsafe.Pointer(param1))
gofunc(slotval1)
}
@ -181,8 +173,7 @@ func miqt_exec_callback_QButtonGroup_ButtonReleased(cb *C.void, param1 *C.QAbstr
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := newQAbstractButton_U(unsafe.Pointer(param1_ret))
slotval1 := newQAbstractButton_U(unsafe.Pointer(param1))
gofunc(slotval1)
}
@ -202,10 +193,8 @@ func miqt_exec_callback_QButtonGroup_ButtonToggled(cb *C.void, param1 *C.QAbstra
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := newQAbstractButton_U(unsafe.Pointer(param1_ret))
param2_ret := param2
slotval2 := (bool)(param2_ret)
slotval1 := newQAbstractButton_U(unsafe.Pointer(param1))
slotval2 := (bool)(param2)
gofunc(slotval1, slotval2)
}
@ -225,8 +214,7 @@ func miqt_exec_callback_QButtonGroup_IdClicked(cb *C.void, param1 C.int) {
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (int)(param1_ret)
slotval1 := (int)(param1)
gofunc(slotval1)
}
@ -246,8 +234,7 @@ func miqt_exec_callback_QButtonGroup_IdPressed(cb *C.void, param1 C.int) {
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (int)(param1_ret)
slotval1 := (int)(param1)
gofunc(slotval1)
}
@ -267,8 +254,7 @@ func miqt_exec_callback_QButtonGroup_IdReleased(cb *C.void, param1 C.int) {
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (int)(param1_ret)
slotval1 := (int)(param1)
gofunc(slotval1)
}
@ -288,11 +274,9 @@ func miqt_exec_callback_QButtonGroup_IdToggled(cb *C.void, param1 C.int, param2
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (int)(param1_ret)
slotval1 := (int)(param1)
param2_ret := param2
slotval2 := (bool)(param2_ret)
slotval2 := (bool)(param2)
gofunc(slotval1, slotval2)
}
@ -312,8 +296,7 @@ func miqt_exec_callback_QButtonGroup_ButtonClickedWithInt(cb *C.void, param1 C.i
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (int)(param1_ret)
slotval1 := (int)(param1)
gofunc(slotval1)
}
@ -333,8 +316,7 @@ func miqt_exec_callback_QButtonGroup_ButtonPressedWithInt(cb *C.void, param1 C.i
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (int)(param1_ret)
slotval1 := (int)(param1)
gofunc(slotval1)
}
@ -354,8 +336,7 @@ func miqt_exec_callback_QButtonGroup_ButtonReleasedWithInt(cb *C.void, param1 C.
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (int)(param1_ret)
slotval1 := (int)(param1)
gofunc(slotval1)
}
@ -375,11 +356,9 @@ func miqt_exec_callback_QButtonGroup_ButtonToggled2(cb *C.void, param1 C.int, pa
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (int)(param1_ret)
slotval1 := (int)(param1)
param2_ret := param2
slotval2 := (bool)(param2_ret)
slotval2 := (bool)(param2)
gofunc(slotval1, slotval2)
}

File diff suppressed because it is too large Load Diff

View File

@ -70,15 +70,13 @@ func (this *QByteArrayMatcher) SetPattern(pattern *QByteArray) {
}
func (this *QByteArrayMatcher) IndexIn(ba *QByteArray) int {
_ret := C.QByteArrayMatcher_IndexIn(this.h, ba.cPointer())
return (int)(_ret)
return (int)(C.QByteArrayMatcher_IndexIn(this.h, ba.cPointer()))
}
func (this *QByteArrayMatcher) IndexIn2(str string, lenVal int) int {
str_Cstring := C.CString(str)
defer C.free(unsafe.Pointer(str_Cstring))
_ret := C.QByteArrayMatcher_IndexIn2(this.h, str_Cstring, (C.int)(lenVal))
return (int)(_ret)
return (int)(C.QByteArrayMatcher_IndexIn2(this.h, str_Cstring, (C.int)(lenVal)))
}
func (this *QByteArrayMatcher) Pattern() *QByteArray {
@ -89,15 +87,13 @@ func (this *QByteArrayMatcher) Pattern() *QByteArray {
}
func (this *QByteArrayMatcher) IndexIn22(ba *QByteArray, from int) int {
_ret := C.QByteArrayMatcher_IndexIn22(this.h, ba.cPointer(), (C.int)(from))
return (int)(_ret)
return (int)(C.QByteArrayMatcher_IndexIn22(this.h, ba.cPointer(), (C.int)(from)))
}
func (this *QByteArrayMatcher) IndexIn3(str string, lenVal int, from int) int {
str_Cstring := C.CString(str)
defer C.free(unsafe.Pointer(str_Cstring))
_ret := C.QByteArrayMatcher_IndexIn3(this.h, str_Cstring, (C.int)(lenVal), (C.int)(from))
return (int)(_ret)
return (int)(C.QByteArrayMatcher_IndexIn3(this.h, str_Cstring, (C.int)(lenVal), (C.int)(from)))
}
// Delete this object from C++ memory.

View File

@ -66,78 +66,63 @@ func NewQCalendar2(system QCalendar__System) *QCalendar {
}
func (this *QCalendar) IsValid() bool {
_ret := C.QCalendar_IsValid(this.h)
return (bool)(_ret)
return (bool)(C.QCalendar_IsValid(this.h))
}
func (this *QCalendar) DaysInMonth(month int) int {
_ret := C.QCalendar_DaysInMonth(this.h, (C.int)(month))
return (int)(_ret)
return (int)(C.QCalendar_DaysInMonth(this.h, (C.int)(month)))
}
func (this *QCalendar) DaysInYear(year int) int {
_ret := C.QCalendar_DaysInYear(this.h, (C.int)(year))
return (int)(_ret)
return (int)(C.QCalendar_DaysInYear(this.h, (C.int)(year)))
}
func (this *QCalendar) MonthsInYear(year int) int {
_ret := C.QCalendar_MonthsInYear(this.h, (C.int)(year))
return (int)(_ret)
return (int)(C.QCalendar_MonthsInYear(this.h, (C.int)(year)))
}
func (this *QCalendar) IsDateValid(year int, month int, day int) bool {
_ret := C.QCalendar_IsDateValid(this.h, (C.int)(year), (C.int)(month), (C.int)(day))
return (bool)(_ret)
return (bool)(C.QCalendar_IsDateValid(this.h, (C.int)(year), (C.int)(month), (C.int)(day)))
}
func (this *QCalendar) IsLeapYear(year int) bool {
_ret := C.QCalendar_IsLeapYear(this.h, (C.int)(year))
return (bool)(_ret)
return (bool)(C.QCalendar_IsLeapYear(this.h, (C.int)(year)))
}
func (this *QCalendar) IsGregorian() bool {
_ret := C.QCalendar_IsGregorian(this.h)
return (bool)(_ret)
return (bool)(C.QCalendar_IsGregorian(this.h))
}
func (this *QCalendar) IsLunar() bool {
_ret := C.QCalendar_IsLunar(this.h)
return (bool)(_ret)
return (bool)(C.QCalendar_IsLunar(this.h))
}
func (this *QCalendar) IsLuniSolar() bool {
_ret := C.QCalendar_IsLuniSolar(this.h)
return (bool)(_ret)
return (bool)(C.QCalendar_IsLuniSolar(this.h))
}
func (this *QCalendar) IsSolar() bool {
_ret := C.QCalendar_IsSolar(this.h)
return (bool)(_ret)
return (bool)(C.QCalendar_IsSolar(this.h))
}
func (this *QCalendar) IsProleptic() bool {
_ret := C.QCalendar_IsProleptic(this.h)
return (bool)(_ret)
return (bool)(C.QCalendar_IsProleptic(this.h))
}
func (this *QCalendar) HasYearZero() bool {
_ret := C.QCalendar_HasYearZero(this.h)
return (bool)(_ret)
return (bool)(C.QCalendar_HasYearZero(this.h))
}
func (this *QCalendar) MaximumDaysInMonth() int {
_ret := C.QCalendar_MaximumDaysInMonth(this.h)
return (int)(_ret)
return (int)(C.QCalendar_MaximumDaysInMonth(this.h))
}
func (this *QCalendar) MinimumDaysInMonth() int {
_ret := C.QCalendar_MinimumDaysInMonth(this.h)
return (int)(_ret)
return (int)(C.QCalendar_MinimumDaysInMonth(this.h))
}
func (this *QCalendar) MaximumMonthsInYear() int {
_ret := C.QCalendar_MaximumMonthsInYear(this.h)
return (int)(_ret)
return (int)(C.QCalendar_MaximumMonthsInYear(this.h))
}
func (this *QCalendar) Name() string {
@ -169,8 +154,7 @@ func (this *QCalendar) PartsFromDate(date QDate) *QCalendar__YearMonthDay {
}
func (this *QCalendar) DayOfWeek(date QDate) int {
_ret := C.QCalendar_DayOfWeek(this.h, date.cPointer())
return (int)(_ret)
return (int)(C.QCalendar_DayOfWeek(this.h, date.cPointer()))
}
func (this *QCalendar) MonthName(locale *QLocale, month int) string {
@ -206,16 +190,17 @@ func QCalendar_AvailableCalendars() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QCalendar) DaysInMonth2(month int, year int) int {
_ret := C.QCalendar_DaysInMonth2(this.h, (C.int)(month), (C.int)(year))
return (int)(_ret)
return (int)(C.QCalendar_DaysInMonth2(this.h, (C.int)(month), (C.int)(year)))
}
func (this *QCalendar) MonthName3(locale *QLocale, month int, year int) string {
@ -321,8 +306,7 @@ func NewQCalendar__YearMonthDay4(y int, m int, d int) *QCalendar__YearMonthDay {
}
func (this *QCalendar__YearMonthDay) IsValid() bool {
_ret := C.QCalendar__YearMonthDay_IsValid(this.h)
return (bool)(_ret)
return (bool)(C.QCalendar__YearMonthDay_IsValid(this.h))
}
// Delete this object from C++ memory.

View File

@ -73,8 +73,7 @@ func NewQCalendarWidget2(parent *QWidget) *QCalendarWidget {
}
func (this *QCalendarWidget) MetaObject() *QMetaObject {
_ret := C.QCalendarWidget_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QCalendarWidget_MetaObject(this.h)))
}
func QCalendarWidget_Tr(s string) string {
@ -117,13 +116,11 @@ func (this *QCalendarWidget) SelectedDate() *QDate {
}
func (this *QCalendarWidget) YearShown() int {
_ret := C.QCalendarWidget_YearShown(this.h)
return (int)(_ret)
return (int)(C.QCalendarWidget_YearShown(this.h))
}
func (this *QCalendarWidget) MonthShown() int {
_ret := C.QCalendarWidget_MonthShown(this.h)
return (int)(_ret)
return (int)(C.QCalendarWidget_MonthShown(this.h))
}
func (this *QCalendarWidget) MinimumDate() *QDate {
@ -149,8 +146,7 @@ func (this *QCalendarWidget) SetMaximumDate(date *QDate) {
}
func (this *QCalendarWidget) FirstDayOfWeek() DayOfWeek {
_ret := C.QCalendarWidget_FirstDayOfWeek(this.h)
return (DayOfWeek)(_ret)
return (DayOfWeek)(C.QCalendarWidget_FirstDayOfWeek(this.h))
}
func (this *QCalendarWidget) SetFirstDayOfWeek(dayOfWeek DayOfWeek) {
@ -158,13 +154,11 @@ func (this *QCalendarWidget) SetFirstDayOfWeek(dayOfWeek DayOfWeek) {
}
func (this *QCalendarWidget) IsNavigationBarVisible() bool {
_ret := C.QCalendarWidget_IsNavigationBarVisible(this.h)
return (bool)(_ret)
return (bool)(C.QCalendarWidget_IsNavigationBarVisible(this.h))
}
func (this *QCalendarWidget) IsGridVisible() bool {
_ret := C.QCalendarWidget_IsGridVisible(this.h)
return (bool)(_ret)
return (bool)(C.QCalendarWidget_IsGridVisible(this.h))
}
func (this *QCalendarWidget) Calendar() *QCalendar {
@ -179,8 +173,7 @@ func (this *QCalendarWidget) SetCalendar(calendar QCalendar) {
}
func (this *QCalendarWidget) SelectionMode() QCalendarWidget__SelectionMode {
_ret := C.QCalendarWidget_SelectionMode(this.h)
return (QCalendarWidget__SelectionMode)(_ret)
return (QCalendarWidget__SelectionMode)(C.QCalendarWidget_SelectionMode(this.h))
}
func (this *QCalendarWidget) SetSelectionMode(mode QCalendarWidget__SelectionMode) {
@ -188,8 +181,7 @@ func (this *QCalendarWidget) SetSelectionMode(mode QCalendarWidget__SelectionMod
}
func (this *QCalendarWidget) HorizontalHeaderFormat() QCalendarWidget__HorizontalHeaderFormat {
_ret := C.QCalendarWidget_HorizontalHeaderFormat(this.h)
return (QCalendarWidget__HorizontalHeaderFormat)(_ret)
return (QCalendarWidget__HorizontalHeaderFormat)(C.QCalendarWidget_HorizontalHeaderFormat(this.h))
}
func (this *QCalendarWidget) SetHorizontalHeaderFormat(format QCalendarWidget__HorizontalHeaderFormat) {
@ -197,8 +189,7 @@ func (this *QCalendarWidget) SetHorizontalHeaderFormat(format QCalendarWidget__H
}
func (this *QCalendarWidget) VerticalHeaderFormat() QCalendarWidget__VerticalHeaderFormat {
_ret := C.QCalendarWidget_VerticalHeaderFormat(this.h)
return (QCalendarWidget__VerticalHeaderFormat)(_ret)
return (QCalendarWidget__VerticalHeaderFormat)(C.QCalendarWidget_VerticalHeaderFormat(this.h))
}
func (this *QCalendarWidget) SetVerticalHeaderFormat(format QCalendarWidget__VerticalHeaderFormat) {
@ -239,8 +230,7 @@ func (this *QCalendarWidget) SetDateTextFormat(date *QDate, format *QTextCharFor
}
func (this *QCalendarWidget) IsDateEditEnabled() bool {
_ret := C.QCalendarWidget_IsDateEditEnabled(this.h)
return (bool)(_ret)
return (bool)(C.QCalendarWidget_IsDateEditEnabled(this.h))
}
func (this *QCalendarWidget) SetDateEditEnabled(enable bool) {
@ -248,8 +238,7 @@ func (this *QCalendarWidget) SetDateEditEnabled(enable bool) {
}
func (this *QCalendarWidget) DateEditAcceptDelay() int {
_ret := C.QCalendarWidget_DateEditAcceptDelay(this.h)
return (int)(_ret)
return (int)(C.QCalendarWidget_DateEditAcceptDelay(this.h))
}
func (this *QCalendarWidget) SetDateEditAcceptDelay(delay int) {
@ -332,8 +321,7 @@ func miqt_exec_callback_QCalendarWidget_Clicked(cb *C.void, date *C.QDate) {
}
// Convert all CABI parameters to Go parameters
date_ret := date
slotval1 := newQDate_U(unsafe.Pointer(date_ret))
slotval1 := newQDate_U(unsafe.Pointer(date))
gofunc(slotval1)
}
@ -353,8 +341,7 @@ func miqt_exec_callback_QCalendarWidget_Activated(cb *C.void, date *C.QDate) {
}
// Convert all CABI parameters to Go parameters
date_ret := date
slotval1 := newQDate_U(unsafe.Pointer(date_ret))
slotval1 := newQDate_U(unsafe.Pointer(date))
gofunc(slotval1)
}
@ -374,11 +361,9 @@ func miqt_exec_callback_QCalendarWidget_CurrentPageChanged(cb *C.void, year C.in
}
// Convert all CABI parameters to Go parameters
year_ret := year
slotval1 := (int)(year_ret)
slotval1 := (int)(year)
month_ret := month
slotval2 := (int)(month_ret)
slotval2 := (int)(month)
gofunc(slotval1, slotval2)
}

View File

@ -63,13 +63,11 @@ func (this *QCborArray) ToCborValue() *QCborValue {
}
func (this *QCborArray) Size() uint64 {
_ret := C.QCborArray_Size(this.h)
return (uint64)(_ret)
return (uint64)(C.QCborArray_Size(this.h))
}
func (this *QCborArray) IsEmpty() bool {
_ret := C.QCborArray_IsEmpty(this.h)
return (bool)(_ret)
return (bool)(C.QCborArray_IsEmpty(this.h))
}
func (this *QCborArray) Clear() {
@ -185,28 +183,23 @@ func (this *QCborArray) TakeLast() *QCborValue {
}
func (this *QCborArray) Contains(value *QCborValue) bool {
_ret := C.QCborArray_Contains(this.h, value.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray_Contains(this.h, value.cPointer()))
}
func (this *QCborArray) Compare(other *QCborArray) int {
_ret := C.QCborArray_Compare(this.h, other.cPointer())
return (int)(_ret)
return (int)(C.QCborArray_Compare(this.h, other.cPointer()))
}
func (this *QCborArray) OperatorEqual(other *QCborArray) bool {
_ret := C.QCborArray_OperatorEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray_OperatorEqual(this.h, other.cPointer()))
}
func (this *QCborArray) OperatorNotEqual(other *QCborArray) bool {
_ret := C.QCborArray_OperatorNotEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray_OperatorNotEqual(this.h, other.cPointer()))
}
func (this *QCborArray) OperatorLesser(other *QCborArray) bool {
_ret := C.QCborArray_OperatorLesser(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray_OperatorLesser(this.h, other.cPointer()))
}
func (this *QCborArray) Begin() *QCborArray__Iterator {
@ -310,8 +303,7 @@ func (this *QCborArray) PopBack() {
}
func (this *QCborArray) Empty() bool {
_ret := C.QCborArray_Empty(this.h)
return (bool)(_ret)
return (bool)(C.QCborArray_Empty(this.h))
}
func (this *QCborArray) OperatorPlus(v *QCborValue) *QCborArray {
@ -322,23 +314,21 @@ func (this *QCborArray) OperatorPlus(v *QCborValue) *QCborArray {
}
func (this *QCborArray) OperatorPlusAssign(v *QCborValue) *QCborArray {
_ret := C.QCborArray_OperatorPlusAssign(this.h, v.cPointer())
return newQCborArray_U(unsafe.Pointer(_ret))
return newQCborArray_U(unsafe.Pointer(C.QCborArray_OperatorPlusAssign(this.h, v.cPointer())))
}
func (this *QCborArray) OperatorShiftLeft(v *QCborValue) *QCborArray {
_ret := C.QCborArray_OperatorShiftLeft(this.h, v.cPointer())
return newQCborArray_U(unsafe.Pointer(_ret))
return newQCborArray_U(unsafe.Pointer(C.QCborArray_OperatorShiftLeft(this.h, v.cPointer())))
}
func QCborArray_FromStringList(list []string) *QCborArray {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
list_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(list))))
defer C.free(unsafe.Pointer(list_CArray))
for i := range list {
single_ms := miqt_strdupg(list[i])
defer C.free(single_ms)
list_CArray[i] = (*C.struct_miqt_string)(single_ms)
list_i_ms := miqt_strdupg(list[i])
defer C.free(list_i_ms)
list_CArray[i] = (*C.struct_miqt_string)(list_i_ms)
}
list_ma := &C.struct_miqt_array{len: C.size_t(len(list)), data: unsafe.Pointer(list_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(list_ma))
@ -418,8 +408,7 @@ func (this *QCborArray__Iterator) OperatorMultiply() *QCborValueRef {
}
func (this *QCborArray__Iterator) OperatorMinusGreater() *QCborValueRef {
_ret := C.QCborArray__Iterator_OperatorMinusGreater(this.h)
return newQCborValueRef_U(unsafe.Pointer(_ret))
return newQCborValueRef_U(unsafe.Pointer(C.QCborArray__Iterator_OperatorMinusGreater(this.h)))
}
func (this *QCborArray__Iterator) OperatorSubscript(j uint64) *QCborValueRef {
@ -430,63 +419,51 @@ func (this *QCborArray__Iterator) OperatorSubscript(j uint64) *QCborValueRef {
}
func (this *QCborArray__Iterator) OperatorEqual(o *QCborArray__Iterator) bool {
_ret := C.QCborArray__Iterator_OperatorEqual(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__Iterator_OperatorEqual(this.h, o.cPointer()))
}
func (this *QCborArray__Iterator) OperatorNotEqual(o *QCborArray__Iterator) bool {
_ret := C.QCborArray__Iterator_OperatorNotEqual(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__Iterator_OperatorNotEqual(this.h, o.cPointer()))
}
func (this *QCborArray__Iterator) OperatorLesser(other *QCborArray__Iterator) bool {
_ret := C.QCborArray__Iterator_OperatorLesser(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__Iterator_OperatorLesser(this.h, other.cPointer()))
}
func (this *QCborArray__Iterator) OperatorLesserOrEqual(other *QCborArray__Iterator) bool {
_ret := C.QCborArray__Iterator_OperatorLesserOrEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__Iterator_OperatorLesserOrEqual(this.h, other.cPointer()))
}
func (this *QCborArray__Iterator) OperatorGreater(other *QCborArray__Iterator) bool {
_ret := C.QCborArray__Iterator_OperatorGreater(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__Iterator_OperatorGreater(this.h, other.cPointer()))
}
func (this *QCborArray__Iterator) OperatorGreaterOrEqual(other *QCborArray__Iterator) bool {
_ret := C.QCborArray__Iterator_OperatorGreaterOrEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__Iterator_OperatorGreaterOrEqual(this.h, other.cPointer()))
}
func (this *QCborArray__Iterator) OperatorEqualWithQCborArrayConstIterator(o *QCborArray__ConstIterator) bool {
_ret := C.QCborArray__Iterator_OperatorEqualWithQCborArrayConstIterator(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__Iterator_OperatorEqualWithQCborArrayConstIterator(this.h, o.cPointer()))
}
func (this *QCborArray__Iterator) OperatorNotEqualWithQCborArrayConstIterator(o *QCborArray__ConstIterator) bool {
_ret := C.QCborArray__Iterator_OperatorNotEqualWithQCborArrayConstIterator(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__Iterator_OperatorNotEqualWithQCborArrayConstIterator(this.h, o.cPointer()))
}
func (this *QCborArray__Iterator) OperatorLesserWithOther(other *QCborArray__ConstIterator) bool {
_ret := C.QCborArray__Iterator_OperatorLesserWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__Iterator_OperatorLesserWithOther(this.h, other.cPointer()))
}
func (this *QCborArray__Iterator) OperatorLesserOrEqualWithOther(other *QCborArray__ConstIterator) bool {
_ret := C.QCborArray__Iterator_OperatorLesserOrEqualWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__Iterator_OperatorLesserOrEqualWithOther(this.h, other.cPointer()))
}
func (this *QCborArray__Iterator) OperatorGreaterWithOther(other *QCborArray__ConstIterator) bool {
_ret := C.QCborArray__Iterator_OperatorGreaterWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__Iterator_OperatorGreaterWithOther(this.h, other.cPointer()))
}
func (this *QCborArray__Iterator) OperatorGreaterOrEqualWithOther(other *QCborArray__ConstIterator) bool {
_ret := C.QCborArray__Iterator_OperatorGreaterOrEqualWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__Iterator_OperatorGreaterOrEqualWithOther(this.h, other.cPointer()))
}
func (this *QCborArray__Iterator) OperatorPlusPlus(param1 int) *QCborArray__Iterator {
@ -518,8 +495,7 @@ func (this *QCborArray__Iterator) OperatorMinus(j uint64) *QCborArray__Iterator
}
func (this *QCborArray__Iterator) OperatorMinusWithQCborArrayIterator(j QCborArray__Iterator) uint64 {
_ret := C.QCborArray__Iterator_OperatorMinusWithQCborArrayIterator(this.h, j.cPointer())
return (uint64)(_ret)
return (uint64)(C.QCborArray__Iterator_OperatorMinusWithQCborArrayIterator(this.h, j.cPointer()))
}
// Delete this object from C++ memory.
@ -578,8 +554,7 @@ func (this *QCborArray__ConstIterator) OperatorMultiply() *QCborValueRef {
}
func (this *QCborArray__ConstIterator) OperatorMinusGreater() *QCborValueRef {
_ret := C.QCborArray__ConstIterator_OperatorMinusGreater(this.h)
return newQCborValueRef_U(unsafe.Pointer(_ret))
return newQCborValueRef_U(unsafe.Pointer(C.QCborArray__ConstIterator_OperatorMinusGreater(this.h)))
}
func (this *QCborArray__ConstIterator) OperatorSubscript(j uint64) *QCborValueRef {
@ -590,63 +565,51 @@ func (this *QCborArray__ConstIterator) OperatorSubscript(j uint64) *QCborValueRe
}
func (this *QCborArray__ConstIterator) OperatorEqual(o *QCborArray__Iterator) bool {
_ret := C.QCborArray__ConstIterator_OperatorEqual(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__ConstIterator_OperatorEqual(this.h, o.cPointer()))
}
func (this *QCborArray__ConstIterator) OperatorNotEqual(o *QCborArray__Iterator) bool {
_ret := C.QCborArray__ConstIterator_OperatorNotEqual(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__ConstIterator_OperatorNotEqual(this.h, o.cPointer()))
}
func (this *QCborArray__ConstIterator) OperatorLesser(other *QCborArray__Iterator) bool {
_ret := C.QCborArray__ConstIterator_OperatorLesser(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__ConstIterator_OperatorLesser(this.h, other.cPointer()))
}
func (this *QCborArray__ConstIterator) OperatorLesserOrEqual(other *QCborArray__Iterator) bool {
_ret := C.QCborArray__ConstIterator_OperatorLesserOrEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__ConstIterator_OperatorLesserOrEqual(this.h, other.cPointer()))
}
func (this *QCborArray__ConstIterator) OperatorGreater(other *QCborArray__Iterator) bool {
_ret := C.QCborArray__ConstIterator_OperatorGreater(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__ConstIterator_OperatorGreater(this.h, other.cPointer()))
}
func (this *QCborArray__ConstIterator) OperatorGreaterOrEqual(other *QCborArray__Iterator) bool {
_ret := C.QCborArray__ConstIterator_OperatorGreaterOrEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__ConstIterator_OperatorGreaterOrEqual(this.h, other.cPointer()))
}
func (this *QCborArray__ConstIterator) OperatorEqualWithQCborArrayConstIterator(o *QCborArray__ConstIterator) bool {
_ret := C.QCborArray__ConstIterator_OperatorEqualWithQCborArrayConstIterator(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__ConstIterator_OperatorEqualWithQCborArrayConstIterator(this.h, o.cPointer()))
}
func (this *QCborArray__ConstIterator) OperatorNotEqualWithQCborArrayConstIterator(o *QCborArray__ConstIterator) bool {
_ret := C.QCborArray__ConstIterator_OperatorNotEqualWithQCborArrayConstIterator(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__ConstIterator_OperatorNotEqualWithQCborArrayConstIterator(this.h, o.cPointer()))
}
func (this *QCborArray__ConstIterator) OperatorLesserWithOther(other *QCborArray__ConstIterator) bool {
_ret := C.QCborArray__ConstIterator_OperatorLesserWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__ConstIterator_OperatorLesserWithOther(this.h, other.cPointer()))
}
func (this *QCborArray__ConstIterator) OperatorLesserOrEqualWithOther(other *QCborArray__ConstIterator) bool {
_ret := C.QCborArray__ConstIterator_OperatorLesserOrEqualWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__ConstIterator_OperatorLesserOrEqualWithOther(this.h, other.cPointer()))
}
func (this *QCborArray__ConstIterator) OperatorGreaterWithOther(other *QCborArray__ConstIterator) bool {
_ret := C.QCborArray__ConstIterator_OperatorGreaterWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__ConstIterator_OperatorGreaterWithOther(this.h, other.cPointer()))
}
func (this *QCborArray__ConstIterator) OperatorGreaterOrEqualWithOther(other *QCborArray__ConstIterator) bool {
_ret := C.QCborArray__ConstIterator_OperatorGreaterOrEqualWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborArray__ConstIterator_OperatorGreaterOrEqualWithOther(this.h, other.cPointer()))
}
func (this *QCborArray__ConstIterator) OperatorPlusPlus(param1 int) *QCborArray__ConstIterator {
@ -678,8 +641,7 @@ func (this *QCborArray__ConstIterator) OperatorMinus(j uint64) *QCborArray__Cons
}
func (this *QCborArray__ConstIterator) OperatorMinusWithQCborArrayConstIterator(j QCborArray__ConstIterator) uint64 {
_ret := C.QCborArray__ConstIterator_OperatorMinusWithQCborArrayConstIterator(this.h, j.cPointer())
return (uint64)(_ret)
return (uint64)(C.QCborArray__ConstIterator_OperatorMinusWithQCborArrayConstIterator(this.h, j.cPointer()))
}
// Delete this object from C++ memory.

View File

@ -63,13 +63,11 @@ func (this *QCborMap) ToCborValue() *QCborValue {
}
func (this *QCborMap) Size() uint64 {
_ret := C.QCborMap_Size(this.h)
return (uint64)(_ret)
return (uint64)(C.QCborMap_Size(this.h))
}
func (this *QCborMap) IsEmpty() bool {
_ret := C.QCborMap_IsEmpty(this.h)
return (bool)(_ret)
return (bool)(C.QCborMap_IsEmpty(this.h))
}
func (this *QCborMap) Clear() {
@ -79,9 +77,12 @@ func (this *QCborMap) Clear() {
func (this *QCborMap) Keys() []QCborValue {
var _ma *C.struct_miqt_array = C.QCborMap_Keys(this.h)
_ret := make([]QCborValue, int(_ma.len))
_outCast := (*[0xffff]*C.QCborValue)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QCborValue)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQCborValue(_outCast[i])
_vv_ret := _outCast[i]
_vv_goptr := newQCborValue(_vv_ret)
_vv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_vv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -194,40 +195,33 @@ func (this *QCborMap) Remove3(key *QCborValue) {
}
func (this *QCborMap) Contains(key int64) bool {
_ret := C.QCborMap_Contains(this.h, (C.longlong)(key))
return (bool)(_ret)
return (bool)(C.QCborMap_Contains(this.h, (C.longlong)(key)))
}
func (this *QCborMap) Contains2(key string) bool {
key_ms := miqt_strdupg(key)
defer C.free(key_ms)
_ret := C.QCborMap_Contains2(this.h, (*C.struct_miqt_string)(key_ms))
return (bool)(_ret)
return (bool)(C.QCborMap_Contains2(this.h, (*C.struct_miqt_string)(key_ms)))
}
func (this *QCborMap) Contains3(key *QCborValue) bool {
_ret := C.QCborMap_Contains3(this.h, key.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap_Contains3(this.h, key.cPointer()))
}
func (this *QCborMap) Compare(other *QCborMap) int {
_ret := C.QCborMap_Compare(this.h, other.cPointer())
return (int)(_ret)
return (int)(C.QCborMap_Compare(this.h, other.cPointer()))
}
func (this *QCborMap) OperatorEqual(other *QCborMap) bool {
_ret := C.QCborMap_OperatorEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap_OperatorEqual(this.h, other.cPointer()))
}
func (this *QCborMap) OperatorNotEqual(other *QCborMap) bool {
_ret := C.QCborMap_OperatorNotEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap_OperatorNotEqual(this.h, other.cPointer()))
}
func (this *QCborMap) OperatorLesser(other *QCborMap) bool {
_ret := C.QCborMap_OperatorLesser(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap_OperatorLesser(this.h, other.cPointer()))
}
func (this *QCborMap) Begin() *QCborMap__Iterator {
@ -315,8 +309,7 @@ func (this *QCborMap) ExtractWithIt(it QCborMap__ConstIterator) *QCborValue {
}
func (this *QCborMap) Empty() bool {
_ret := C.QCborMap_Empty(this.h)
return (bool)(_ret)
return (bool)(C.QCborMap_Empty(this.h))
}
func (this *QCborMap) Find(key int64) *QCborMap__Iterator {
@ -474,8 +467,7 @@ func NewQCborMap__Iterator2(param1 *QCborMap__Iterator) *QCborMap__Iterator {
}
func (this *QCborMap__Iterator) OperatorMinusGreater() *QCborValueRef {
_ret := C.QCborMap__Iterator_OperatorMinusGreater(this.h)
return newQCborValueRef_U(unsafe.Pointer(_ret))
return newQCborValueRef_U(unsafe.Pointer(C.QCborMap__Iterator_OperatorMinusGreater(this.h)))
}
func (this *QCborMap__Iterator) Key() *QCborValue {
@ -493,63 +485,51 @@ func (this *QCborMap__Iterator) Value() *QCborValueRef {
}
func (this *QCborMap__Iterator) OperatorEqual(o *QCborMap__Iterator) bool {
_ret := C.QCborMap__Iterator_OperatorEqual(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__Iterator_OperatorEqual(this.h, o.cPointer()))
}
func (this *QCborMap__Iterator) OperatorNotEqual(o *QCborMap__Iterator) bool {
_ret := C.QCborMap__Iterator_OperatorNotEqual(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__Iterator_OperatorNotEqual(this.h, o.cPointer()))
}
func (this *QCborMap__Iterator) OperatorLesser(other *QCborMap__Iterator) bool {
_ret := C.QCborMap__Iterator_OperatorLesser(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__Iterator_OperatorLesser(this.h, other.cPointer()))
}
func (this *QCborMap__Iterator) OperatorLesserOrEqual(other *QCborMap__Iterator) bool {
_ret := C.QCborMap__Iterator_OperatorLesserOrEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__Iterator_OperatorLesserOrEqual(this.h, other.cPointer()))
}
func (this *QCborMap__Iterator) OperatorGreater(other *QCborMap__Iterator) bool {
_ret := C.QCborMap__Iterator_OperatorGreater(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__Iterator_OperatorGreater(this.h, other.cPointer()))
}
func (this *QCborMap__Iterator) OperatorGreaterOrEqual(other *QCborMap__Iterator) bool {
_ret := C.QCborMap__Iterator_OperatorGreaterOrEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__Iterator_OperatorGreaterOrEqual(this.h, other.cPointer()))
}
func (this *QCborMap__Iterator) OperatorEqualWithQCborMapConstIterator(o *QCborMap__ConstIterator) bool {
_ret := C.QCborMap__Iterator_OperatorEqualWithQCborMapConstIterator(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__Iterator_OperatorEqualWithQCborMapConstIterator(this.h, o.cPointer()))
}
func (this *QCborMap__Iterator) OperatorNotEqualWithQCborMapConstIterator(o *QCborMap__ConstIterator) bool {
_ret := C.QCborMap__Iterator_OperatorNotEqualWithQCborMapConstIterator(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__Iterator_OperatorNotEqualWithQCborMapConstIterator(this.h, o.cPointer()))
}
func (this *QCborMap__Iterator) OperatorLesserWithOther(other *QCborMap__ConstIterator) bool {
_ret := C.QCborMap__Iterator_OperatorLesserWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__Iterator_OperatorLesserWithOther(this.h, other.cPointer()))
}
func (this *QCborMap__Iterator) OperatorLesserOrEqualWithOther(other *QCborMap__ConstIterator) bool {
_ret := C.QCborMap__Iterator_OperatorLesserOrEqualWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__Iterator_OperatorLesserOrEqualWithOther(this.h, other.cPointer()))
}
func (this *QCborMap__Iterator) OperatorGreaterWithOther(other *QCborMap__ConstIterator) bool {
_ret := C.QCborMap__Iterator_OperatorGreaterWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__Iterator_OperatorGreaterWithOther(this.h, other.cPointer()))
}
func (this *QCborMap__Iterator) OperatorGreaterOrEqualWithOther(other *QCborMap__ConstIterator) bool {
_ret := C.QCborMap__Iterator_OperatorGreaterOrEqualWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__Iterator_OperatorGreaterOrEqualWithOther(this.h, other.cPointer()))
}
func (this *QCborMap__Iterator) OperatorPlusPlus(param1 int) *QCborMap__Iterator {
@ -581,8 +561,7 @@ func (this *QCborMap__Iterator) OperatorMinus(j uint64) *QCborMap__Iterator {
}
func (this *QCborMap__Iterator) OperatorMinusWithQCborMapIterator(j QCborMap__Iterator) uint64 {
_ret := C.QCborMap__Iterator_OperatorMinusWithQCborMapIterator(this.h, j.cPointer())
return (uint64)(_ret)
return (uint64)(C.QCborMap__Iterator_OperatorMinusWithQCborMapIterator(this.h, j.cPointer()))
}
// Delete this object from C++ memory.
@ -634,8 +613,7 @@ func NewQCborMap__ConstIterator2(param1 *QCborMap__ConstIterator) *QCborMap__Con
}
func (this *QCborMap__ConstIterator) OperatorMinusGreater() *QCborValueRef {
_ret := C.QCborMap__ConstIterator_OperatorMinusGreater(this.h)
return newQCborValueRef_U(unsafe.Pointer(_ret))
return newQCborValueRef_U(unsafe.Pointer(C.QCborMap__ConstIterator_OperatorMinusGreater(this.h)))
}
func (this *QCborMap__ConstIterator) Key() *QCborValue {
@ -653,63 +631,51 @@ func (this *QCborMap__ConstIterator) Value() *QCborValueRef {
}
func (this *QCborMap__ConstIterator) OperatorEqual(o *QCborMap__Iterator) bool {
_ret := C.QCborMap__ConstIterator_OperatorEqual(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__ConstIterator_OperatorEqual(this.h, o.cPointer()))
}
func (this *QCborMap__ConstIterator) OperatorNotEqual(o *QCborMap__Iterator) bool {
_ret := C.QCborMap__ConstIterator_OperatorNotEqual(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__ConstIterator_OperatorNotEqual(this.h, o.cPointer()))
}
func (this *QCborMap__ConstIterator) OperatorLesser(other *QCborMap__Iterator) bool {
_ret := C.QCborMap__ConstIterator_OperatorLesser(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__ConstIterator_OperatorLesser(this.h, other.cPointer()))
}
func (this *QCborMap__ConstIterator) OperatorLesserOrEqual(other *QCborMap__Iterator) bool {
_ret := C.QCborMap__ConstIterator_OperatorLesserOrEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__ConstIterator_OperatorLesserOrEqual(this.h, other.cPointer()))
}
func (this *QCborMap__ConstIterator) OperatorGreater(other *QCborMap__Iterator) bool {
_ret := C.QCborMap__ConstIterator_OperatorGreater(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__ConstIterator_OperatorGreater(this.h, other.cPointer()))
}
func (this *QCborMap__ConstIterator) OperatorGreaterOrEqual(other *QCborMap__Iterator) bool {
_ret := C.QCborMap__ConstIterator_OperatorGreaterOrEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__ConstIterator_OperatorGreaterOrEqual(this.h, other.cPointer()))
}
func (this *QCborMap__ConstIterator) OperatorEqualWithQCborMapConstIterator(o *QCborMap__ConstIterator) bool {
_ret := C.QCborMap__ConstIterator_OperatorEqualWithQCborMapConstIterator(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__ConstIterator_OperatorEqualWithQCborMapConstIterator(this.h, o.cPointer()))
}
func (this *QCborMap__ConstIterator) OperatorNotEqualWithQCborMapConstIterator(o *QCborMap__ConstIterator) bool {
_ret := C.QCborMap__ConstIterator_OperatorNotEqualWithQCborMapConstIterator(this.h, o.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__ConstIterator_OperatorNotEqualWithQCborMapConstIterator(this.h, o.cPointer()))
}
func (this *QCborMap__ConstIterator) OperatorLesserWithOther(other *QCborMap__ConstIterator) bool {
_ret := C.QCborMap__ConstIterator_OperatorLesserWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__ConstIterator_OperatorLesserWithOther(this.h, other.cPointer()))
}
func (this *QCborMap__ConstIterator) OperatorLesserOrEqualWithOther(other *QCborMap__ConstIterator) bool {
_ret := C.QCborMap__ConstIterator_OperatorLesserOrEqualWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__ConstIterator_OperatorLesserOrEqualWithOther(this.h, other.cPointer()))
}
func (this *QCborMap__ConstIterator) OperatorGreaterWithOther(other *QCborMap__ConstIterator) bool {
_ret := C.QCborMap__ConstIterator_OperatorGreaterWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__ConstIterator_OperatorGreaterWithOther(this.h, other.cPointer()))
}
func (this *QCborMap__ConstIterator) OperatorGreaterOrEqualWithOther(other *QCborMap__ConstIterator) bool {
_ret := C.QCborMap__ConstIterator_OperatorGreaterOrEqualWithOther(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborMap__ConstIterator_OperatorGreaterOrEqualWithOther(this.h, other.cPointer()))
}
func (this *QCborMap__ConstIterator) OperatorPlusPlus(param1 int) *QCborMap__ConstIterator {
@ -741,8 +707,7 @@ func (this *QCborMap__ConstIterator) OperatorMinus(j uint64) *QCborMap__ConstIte
}
func (this *QCborMap__ConstIterator) OperatorMinusWithQCborMapConstIterator(j QCborMap__ConstIterator) uint64 {
_ret := C.QCborMap__ConstIterator_OperatorMinusWithQCborMapConstIterator(this.h, j.cPointer())
return (uint64)(_ret)
return (uint64)(C.QCborMap__ConstIterator_OperatorMinusWithQCborMapConstIterator(this.h, j.cPointer()))
}
// Delete this object from C++ memory.

View File

@ -100,8 +100,7 @@ func (this *QCborStreamReader) SetDevice(device *QIODevice) {
}
func (this *QCborStreamReader) Device() *QIODevice {
_ret := C.QCborStreamReader_Device(this.h)
return newQIODevice_U(unsafe.Pointer(_ret))
return newQIODevice_U(unsafe.Pointer(C.QCborStreamReader_Device(this.h)))
}
func (this *QCborStreamReader) AddData(data *QByteArray) {
@ -138,168 +137,135 @@ func (this *QCborStreamReader) LastError() *QCborError {
}
func (this *QCborStreamReader) CurrentOffset() int64 {
_ret := C.QCborStreamReader_CurrentOffset(this.h)
return (int64)(_ret)
return (int64)(C.QCborStreamReader_CurrentOffset(this.h))
}
func (this *QCborStreamReader) IsValid() bool {
_ret := C.QCborStreamReader_IsValid(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsValid(this.h))
}
func (this *QCborStreamReader) ContainerDepth() int {
_ret := C.QCborStreamReader_ContainerDepth(this.h)
return (int)(_ret)
return (int)(C.QCborStreamReader_ContainerDepth(this.h))
}
func (this *QCborStreamReader) ParentContainerType() QCborStreamReader__Type {
_ret := C.QCborStreamReader_ParentContainerType(this.h)
return (QCborStreamReader__Type)(_ret)
return (QCborStreamReader__Type)(C.QCborStreamReader_ParentContainerType(this.h))
}
func (this *QCborStreamReader) HasNext() bool {
_ret := C.QCborStreamReader_HasNext(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_HasNext(this.h))
}
func (this *QCborStreamReader) Next() bool {
_ret := C.QCborStreamReader_Next(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_Next(this.h))
}
func (this *QCborStreamReader) Type() QCborStreamReader__Type {
_ret := C.QCborStreamReader_Type(this.h)
return (QCborStreamReader__Type)(_ret)
return (QCborStreamReader__Type)(C.QCborStreamReader_Type(this.h))
}
func (this *QCborStreamReader) IsUnsignedInteger() bool {
_ret := C.QCborStreamReader_IsUnsignedInteger(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsUnsignedInteger(this.h))
}
func (this *QCborStreamReader) IsNegativeInteger() bool {
_ret := C.QCborStreamReader_IsNegativeInteger(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsNegativeInteger(this.h))
}
func (this *QCborStreamReader) IsInteger() bool {
_ret := C.QCborStreamReader_IsInteger(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsInteger(this.h))
}
func (this *QCborStreamReader) IsByteArray() bool {
_ret := C.QCborStreamReader_IsByteArray(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsByteArray(this.h))
}
func (this *QCborStreamReader) IsString() bool {
_ret := C.QCborStreamReader_IsString(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsString(this.h))
}
func (this *QCborStreamReader) IsArray() bool {
_ret := C.QCborStreamReader_IsArray(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsArray(this.h))
}
func (this *QCborStreamReader) IsMap() bool {
_ret := C.QCborStreamReader_IsMap(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsMap(this.h))
}
func (this *QCborStreamReader) IsTag() bool {
_ret := C.QCborStreamReader_IsTag(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsTag(this.h))
}
func (this *QCborStreamReader) IsSimpleType() bool {
_ret := C.QCborStreamReader_IsSimpleType(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsSimpleType(this.h))
}
func (this *QCborStreamReader) IsFloat16() bool {
_ret := C.QCborStreamReader_IsFloat16(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsFloat16(this.h))
}
func (this *QCborStreamReader) IsFloat() bool {
_ret := C.QCborStreamReader_IsFloat(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsFloat(this.h))
}
func (this *QCborStreamReader) IsDouble() bool {
_ret := C.QCborStreamReader_IsDouble(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsDouble(this.h))
}
func (this *QCborStreamReader) IsInvalid() bool {
_ret := C.QCborStreamReader_IsInvalid(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsInvalid(this.h))
}
func (this *QCborStreamReader) IsSimpleTypeWithSt(st QCborSimpleType) bool {
_ret := C.QCborStreamReader_IsSimpleTypeWithSt(this.h, st)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsSimpleTypeWithSt(this.h, st))
}
func (this *QCborStreamReader) IsFalse() bool {
_ret := C.QCborStreamReader_IsFalse(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsFalse(this.h))
}
func (this *QCborStreamReader) IsTrue() bool {
_ret := C.QCborStreamReader_IsTrue(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsTrue(this.h))
}
func (this *QCborStreamReader) IsBool() bool {
_ret := C.QCborStreamReader_IsBool(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsBool(this.h))
}
func (this *QCborStreamReader) IsNull() bool {
_ret := C.QCborStreamReader_IsNull(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsNull(this.h))
}
func (this *QCborStreamReader) IsUndefined() bool {
_ret := C.QCborStreamReader_IsUndefined(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsUndefined(this.h))
}
func (this *QCborStreamReader) IsLengthKnown() bool {
_ret := C.QCborStreamReader_IsLengthKnown(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsLengthKnown(this.h))
}
func (this *QCborStreamReader) Length() uint64 {
_ret := C.QCborStreamReader_Length(this.h)
return (uint64)(_ret)
return (uint64)(C.QCborStreamReader_Length(this.h))
}
func (this *QCborStreamReader) IsContainer() bool {
_ret := C.QCborStreamReader_IsContainer(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_IsContainer(this.h))
}
func (this *QCborStreamReader) EnterContainer() bool {
_ret := C.QCborStreamReader_EnterContainer(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_EnterContainer(this.h))
}
func (this *QCborStreamReader) LeaveContainer() bool {
_ret := C.QCborStreamReader_LeaveContainer(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_LeaveContainer(this.h))
}
func (this *QCborStreamReader) CurrentStringChunkSize() uint64 {
_ret := C.QCborStreamReader_CurrentStringChunkSize(this.h)
return (uint64)(_ret)
return (uint64)(C.QCborStreamReader_CurrentStringChunkSize(this.h))
}
func (this *QCborStreamReader) ToBool() bool {
_ret := C.QCborStreamReader_ToBool(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamReader_ToBool(this.h))
}
func (this *QCborStreamReader) ToTag() QCborTag {
@ -307,8 +273,7 @@ func (this *QCborStreamReader) ToTag() QCborTag {
}
func (this *QCborStreamReader) ToUnsignedInteger() uint64 {
_ret := C.QCborStreamReader_ToUnsignedInteger(this.h)
return (uint64)(_ret)
return (uint64)(C.QCborStreamReader_ToUnsignedInteger(this.h))
}
func (this *QCborStreamReader) ToNegativeInteger() QCborNegativeInteger {
@ -320,23 +285,19 @@ func (this *QCborStreamReader) ToSimpleType() QCborSimpleType {
}
func (this *QCborStreamReader) ToFloat() float32 {
_ret := C.QCborStreamReader_ToFloat(this.h)
return (float32)(_ret)
return (float32)(C.QCborStreamReader_ToFloat(this.h))
}
func (this *QCborStreamReader) ToDouble() float64 {
_ret := C.QCborStreamReader_ToDouble(this.h)
return (float64)(_ret)
return (float64)(C.QCborStreamReader_ToDouble(this.h))
}
func (this *QCborStreamReader) ToInteger() int64 {
_ret := C.QCborStreamReader_ToInteger(this.h)
return (int64)(_ret)
return (int64)(C.QCborStreamReader_ToInteger(this.h))
}
func (this *QCborStreamReader) Next1(maxRecursion int) bool {
_ret := C.QCborStreamReader_Next1(this.h, (C.int)(maxRecursion))
return (bool)(_ret)
return (bool)(C.QCborStreamReader_Next1(this.h, (C.int)(maxRecursion)))
}
// Delete this object from C++ memory.

View File

@ -52,8 +52,7 @@ func (this *QCborStreamWriter) SetDevice(device *QIODevice) {
}
func (this *QCborStreamWriter) Device() *QIODevice {
_ret := C.QCborStreamWriter_Device(this.h)
return newQIODevice_U(unsafe.Pointer(_ret))
return newQIODevice_U(unsafe.Pointer(C.QCborStreamWriter_Device(this.h)))
}
func (this *QCborStreamWriter) Append(u uint64) {
@ -139,8 +138,7 @@ func (this *QCborStreamWriter) StartArrayWithCount(count uint64) {
}
func (this *QCborStreamWriter) EndArray() bool {
_ret := C.QCborStreamWriter_EndArray(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamWriter_EndArray(this.h))
}
func (this *QCborStreamWriter) StartMap() {
@ -152,8 +150,7 @@ func (this *QCborStreamWriter) StartMapWithCount(count uint64) {
}
func (this *QCborStreamWriter) EndMap() bool {
_ret := C.QCborStreamWriter_EndMap(this.h)
return (bool)(_ret)
return (bool)(C.QCborStreamWriter_EndMap(this.h))
}
func (this *QCborStreamWriter) Append22(str string, size uint64) {

View File

@ -263,108 +263,87 @@ func (this *QCborValue) Swap(other *QCborValue) {
}
func (this *QCborValue) Type() QCborValue__Type {
_ret := C.QCborValue_Type(this.h)
return (QCborValue__Type)(_ret)
return (QCborValue__Type)(C.QCborValue_Type(this.h))
}
func (this *QCborValue) IsInteger() bool {
_ret := C.QCborValue_IsInteger(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsInteger(this.h))
}
func (this *QCborValue) IsByteArray() bool {
_ret := C.QCborValue_IsByteArray(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsByteArray(this.h))
}
func (this *QCborValue) IsString() bool {
_ret := C.QCborValue_IsString(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsString(this.h))
}
func (this *QCborValue) IsArray() bool {
_ret := C.QCborValue_IsArray(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsArray(this.h))
}
func (this *QCborValue) IsMap() bool {
_ret := C.QCborValue_IsMap(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsMap(this.h))
}
func (this *QCborValue) IsTag() bool {
_ret := C.QCborValue_IsTag(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsTag(this.h))
}
func (this *QCborValue) IsFalse() bool {
_ret := C.QCborValue_IsFalse(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsFalse(this.h))
}
func (this *QCborValue) IsTrue() bool {
_ret := C.QCborValue_IsTrue(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsTrue(this.h))
}
func (this *QCborValue) IsBool() bool {
_ret := C.QCborValue_IsBool(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsBool(this.h))
}
func (this *QCborValue) IsNull() bool {
_ret := C.QCborValue_IsNull(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsNull(this.h))
}
func (this *QCborValue) IsUndefined() bool {
_ret := C.QCborValue_IsUndefined(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsUndefined(this.h))
}
func (this *QCborValue) IsDouble() bool {
_ret := C.QCborValue_IsDouble(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsDouble(this.h))
}
func (this *QCborValue) IsDateTime() bool {
_ret := C.QCborValue_IsDateTime(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsDateTime(this.h))
}
func (this *QCborValue) IsUrl() bool {
_ret := C.QCborValue_IsUrl(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsUrl(this.h))
}
func (this *QCborValue) IsRegularExpression() bool {
_ret := C.QCborValue_IsRegularExpression(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsRegularExpression(this.h))
}
func (this *QCborValue) IsUuid() bool {
_ret := C.QCborValue_IsUuid(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsUuid(this.h))
}
func (this *QCborValue) IsInvalid() bool {
_ret := C.QCborValue_IsInvalid(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsInvalid(this.h))
}
func (this *QCborValue) IsContainer() bool {
_ret := C.QCborValue_IsContainer(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsContainer(this.h))
}
func (this *QCborValue) IsSimpleType() bool {
_ret := C.QCborValue_IsSimpleType(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_IsSimpleType(this.h))
}
func (this *QCborValue) IsSimpleTypeWithSt(st QCborSimpleType) bool {
_ret := C.QCborValue_IsSimpleTypeWithSt(this.h, st)
return (bool)(_ret)
return (bool)(C.QCborValue_IsSimpleTypeWithSt(this.h, st))
}
func (this *QCborValue) ToSimpleType() QCborSimpleType {
@ -372,18 +351,15 @@ func (this *QCborValue) ToSimpleType() QCborSimpleType {
}
func (this *QCborValue) ToInteger() int64 {
_ret := C.QCborValue_ToInteger(this.h)
return (int64)(_ret)
return (int64)(C.QCborValue_ToInteger(this.h))
}
func (this *QCborValue) ToBool() bool {
_ret := C.QCborValue_ToBool(this.h)
return (bool)(_ret)
return (bool)(C.QCborValue_ToBool(this.h))
}
func (this *QCborValue) ToDouble() float64 {
_ret := C.QCborValue_ToDouble(this.h)
return (float64)(_ret)
return (float64)(C.QCborValue_ToDouble(this.h))
}
func (this *QCborValue) Tag() QCborTag {
@ -500,23 +476,19 @@ func (this *QCborValue) OperatorSubscript5(key string) *QCborValueRef {
}
func (this *QCborValue) Compare(other *QCborValue) int {
_ret := C.QCborValue_Compare(this.h, other.cPointer())
return (int)(_ret)
return (int)(C.QCborValue_Compare(this.h, other.cPointer()))
}
func (this *QCborValue) OperatorEqual(other *QCborValue) bool {
_ret := C.QCborValue_OperatorEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborValue_OperatorEqual(this.h, other.cPointer()))
}
func (this *QCborValue) OperatorNotEqual(other *QCborValue) bool {
_ret := C.QCborValue_OperatorNotEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborValue_OperatorNotEqual(this.h, other.cPointer()))
}
func (this *QCborValue) OperatorLesser(other *QCborValue) bool {
_ret := C.QCborValue_OperatorLesser(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborValue_OperatorLesser(this.h, other.cPointer()))
}
func QCborValue_FromVariant(variant *QVariant) *QCborValue {
@ -600,18 +572,15 @@ func (this *QCborValue) ToSimpleType1(defaultValue QCborSimpleType) QCborSimpleT
}
func (this *QCborValue) ToInteger1(defaultValue int64) int64 {
_ret := C.QCborValue_ToInteger1(this.h, (C.longlong)(defaultValue))
return (int64)(_ret)
return (int64)(C.QCborValue_ToInteger1(this.h, (C.longlong)(defaultValue)))
}
func (this *QCborValue) ToBool1(defaultValue bool) bool {
_ret := C.QCborValue_ToBool1(this.h, (C.bool)(defaultValue))
return (bool)(_ret)
return (bool)(C.QCborValue_ToBool1(this.h, (C.bool)(defaultValue)))
}
func (this *QCborValue) ToDouble1(defaultValue float64) float64 {
_ret := C.QCborValue_ToDouble1(this.h, (C.double)(defaultValue))
return (float64)(_ret)
return (float64)(C.QCborValue_ToDouble1(this.h, (C.double)(defaultValue)))
}
func (this *QCborValue) Tag1(defaultValue QCborTag) QCborTag {
@ -761,108 +730,87 @@ func (this *QCborValueRef) OperatorAssignWithOther(other *QCborValueRef) {
}
func (this *QCborValueRef) Type() QCborValue__Type {
_ret := C.QCborValueRef_Type(this.h)
return (QCborValue__Type)(_ret)
return (QCborValue__Type)(C.QCborValueRef_Type(this.h))
}
func (this *QCborValueRef) IsInteger() bool {
_ret := C.QCborValueRef_IsInteger(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsInteger(this.h))
}
func (this *QCborValueRef) IsByteArray() bool {
_ret := C.QCborValueRef_IsByteArray(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsByteArray(this.h))
}
func (this *QCborValueRef) IsString() bool {
_ret := C.QCborValueRef_IsString(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsString(this.h))
}
func (this *QCborValueRef) IsArray() bool {
_ret := C.QCborValueRef_IsArray(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsArray(this.h))
}
func (this *QCborValueRef) IsMap() bool {
_ret := C.QCborValueRef_IsMap(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsMap(this.h))
}
func (this *QCborValueRef) IsTag() bool {
_ret := C.QCborValueRef_IsTag(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsTag(this.h))
}
func (this *QCborValueRef) IsFalse() bool {
_ret := C.QCborValueRef_IsFalse(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsFalse(this.h))
}
func (this *QCborValueRef) IsTrue() bool {
_ret := C.QCborValueRef_IsTrue(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsTrue(this.h))
}
func (this *QCborValueRef) IsBool() bool {
_ret := C.QCborValueRef_IsBool(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsBool(this.h))
}
func (this *QCborValueRef) IsNull() bool {
_ret := C.QCborValueRef_IsNull(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsNull(this.h))
}
func (this *QCborValueRef) IsUndefined() bool {
_ret := C.QCborValueRef_IsUndefined(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsUndefined(this.h))
}
func (this *QCborValueRef) IsDouble() bool {
_ret := C.QCborValueRef_IsDouble(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsDouble(this.h))
}
func (this *QCborValueRef) IsDateTime() bool {
_ret := C.QCborValueRef_IsDateTime(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsDateTime(this.h))
}
func (this *QCborValueRef) IsUrl() bool {
_ret := C.QCborValueRef_IsUrl(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsUrl(this.h))
}
func (this *QCborValueRef) IsRegularExpression() bool {
_ret := C.QCborValueRef_IsRegularExpression(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsRegularExpression(this.h))
}
func (this *QCborValueRef) IsUuid() bool {
_ret := C.QCborValueRef_IsUuid(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsUuid(this.h))
}
func (this *QCborValueRef) IsInvalid() bool {
_ret := C.QCborValueRef_IsInvalid(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsInvalid(this.h))
}
func (this *QCborValueRef) IsContainer() bool {
_ret := C.QCborValueRef_IsContainer(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsContainer(this.h))
}
func (this *QCborValueRef) IsSimpleType() bool {
_ret := C.QCborValueRef_IsSimpleType(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsSimpleType(this.h))
}
func (this *QCborValueRef) IsSimpleTypeWithSt(st QCborSimpleType) bool {
_ret := C.QCborValueRef_IsSimpleTypeWithSt(this.h, st)
return (bool)(_ret)
return (bool)(C.QCborValueRef_IsSimpleTypeWithSt(this.h, st))
}
func (this *QCborValueRef) Tag() QCborTag {
@ -877,18 +825,15 @@ func (this *QCborValueRef) TaggedValue() *QCborValue {
}
func (this *QCborValueRef) ToInteger() int64 {
_ret := C.QCborValueRef_ToInteger(this.h)
return (int64)(_ret)
return (int64)(C.QCborValueRef_ToInteger(this.h))
}
func (this *QCborValueRef) ToBool() bool {
_ret := C.QCborValueRef_ToBool(this.h)
return (bool)(_ret)
return (bool)(C.QCborValueRef_ToBool(this.h))
}
func (this *QCborValueRef) ToDouble() float64 {
_ret := C.QCborValueRef_ToDouble(this.h)
return (float64)(_ret)
return (float64)(C.QCborValueRef_ToDouble(this.h))
}
func (this *QCborValueRef) ToByteArray() *QByteArray {
@ -994,23 +939,19 @@ func (this *QCborValueRef) OperatorSubscript5(key string) *QCborValueRef {
}
func (this *QCborValueRef) Compare(other *QCborValue) int {
_ret := C.QCborValueRef_Compare(this.h, other.cPointer())
return (int)(_ret)
return (int)(C.QCborValueRef_Compare(this.h, other.cPointer()))
}
func (this *QCborValueRef) OperatorEqual(other *QCborValue) bool {
_ret := C.QCborValueRef_OperatorEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborValueRef_OperatorEqual(this.h, other.cPointer()))
}
func (this *QCborValueRef) OperatorNotEqual(other *QCborValue) bool {
_ret := C.QCborValueRef_OperatorNotEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborValueRef_OperatorNotEqual(this.h, other.cPointer()))
}
func (this *QCborValueRef) OperatorLesser(other *QCborValue) bool {
_ret := C.QCborValueRef_OperatorLesser(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QCborValueRef_OperatorLesser(this.h, other.cPointer()))
}
func (this *QCborValueRef) ToVariant() *QVariant {
@ -1057,18 +998,15 @@ func (this *QCborValueRef) TaggedValue1(defaultValue *QCborValue) *QCborValue {
}
func (this *QCborValueRef) ToInteger1(defaultValue int64) int64 {
_ret := C.QCborValueRef_ToInteger1(this.h, (C.longlong)(defaultValue))
return (int64)(_ret)
return (int64)(C.QCborValueRef_ToInteger1(this.h, (C.longlong)(defaultValue)))
}
func (this *QCborValueRef) ToBool1(defaultValue bool) bool {
_ret := C.QCborValueRef_ToBool1(this.h, (C.bool)(defaultValue))
return (bool)(_ret)
return (bool)(C.QCborValueRef_ToBool1(this.h, (C.bool)(defaultValue)))
}
func (this *QCborValueRef) ToDouble1(defaultValue float64) float64 {
_ret := C.QCborValueRef_ToDouble1(this.h, (C.double)(defaultValue))
return (float64)(_ret)
return (float64)(C.QCborValueRef_ToDouble1(this.h, (C.double)(defaultValue)))
}
func (this *QCborValueRef) ToByteArray1(defaultValue *QByteArray) *QByteArray {

View File

@ -390,13 +390,11 @@ func NewQLatin1Char2(param1 *QLatin1Char) *QLatin1Char {
}
func (this *QLatin1Char) ToLatin1() byte {
_ret := C.QLatin1Char_ToLatin1(this.h)
return (byte)(_ret)
return (byte)(C.QLatin1Char_ToLatin1(this.h))
}
func (this *QLatin1Char) Unicode() uint16 {
_ret := C.QLatin1Char_Unicode(this.h)
return (uint16)(_ret)
return (uint16)(C.QLatin1Char_Unicode(this.h))
}
// Delete this object from C++ memory.
@ -502,28 +500,23 @@ func NewQChar11(param1 *QChar) *QChar {
}
func (this *QChar) Category() QChar__Category {
_ret := C.QChar_Category(this.h)
return (QChar__Category)(_ret)
return (QChar__Category)(C.QChar_Category(this.h))
}
func (this *QChar) Direction() QChar__Direction {
_ret := C.QChar_Direction(this.h)
return (QChar__Direction)(_ret)
return (QChar__Direction)(C.QChar_Direction(this.h))
}
func (this *QChar) JoiningType() QChar__JoiningType {
_ret := C.QChar_JoiningType(this.h)
return (QChar__JoiningType)(_ret)
return (QChar__JoiningType)(C.QChar_JoiningType(this.h))
}
func (this *QChar) Joining() QChar__Joining {
_ret := C.QChar_Joining(this.h)
return (QChar__Joining)(_ret)
return (QChar__Joining)(C.QChar_Joining(this.h))
}
func (this *QChar) CombiningClass() byte {
_ret := C.QChar_CombiningClass(this.h)
return (byte)(_ret)
return (byte)(C.QChar_CombiningClass(this.h))
}
func (this *QChar) MirroredChar() *QChar {
@ -534,8 +527,7 @@ func (this *QChar) MirroredChar() *QChar {
}
func (this *QChar) HasMirrored() bool {
_ret := C.QChar_HasMirrored(this.h)
return (bool)(_ret)
return (bool)(C.QChar_HasMirrored(this.h))
}
func (this *QChar) Decomposition() string {
@ -546,13 +538,11 @@ func (this *QChar) Decomposition() string {
}
func (this *QChar) DecompositionTag() QChar__Decomposition {
_ret := C.QChar_DecompositionTag(this.h)
return (QChar__Decomposition)(_ret)
return (QChar__Decomposition)(C.QChar_DecompositionTag(this.h))
}
func (this *QChar) DigitValue() int {
_ret := C.QChar_DigitValue(this.h)
return (int)(_ret)
return (int)(C.QChar_DigitValue(this.h))
}
func (this *QChar) ToLower() *QChar {
@ -584,23 +574,19 @@ func (this *QChar) ToCaseFolded() *QChar {
}
func (this *QChar) Script() QChar__Script {
_ret := C.QChar_Script(this.h)
return (QChar__Script)(_ret)
return (QChar__Script)(C.QChar_Script(this.h))
}
func (this *QChar) UnicodeVersion() QChar__UnicodeVersion {
_ret := C.QChar_UnicodeVersion(this.h)
return (QChar__UnicodeVersion)(_ret)
return (QChar__UnicodeVersion)(C.QChar_UnicodeVersion(this.h))
}
func (this *QChar) ToLatin1() byte {
_ret := C.QChar_ToLatin1(this.h)
return (byte)(_ret)
return (byte)(C.QChar_ToLatin1(this.h))
}
func (this *QChar) Unicode() uint16 {
_ret := C.QChar_Unicode(this.h)
return (uint16)(_ret)
return (uint16)(C.QChar_Unicode(this.h))
}
func QChar_FromLatin1(c byte) *QChar {
@ -611,98 +597,79 @@ func QChar_FromLatin1(c byte) *QChar {
}
func (this *QChar) IsNull() bool {
_ret := C.QChar_IsNull(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsNull(this.h))
}
func (this *QChar) IsPrint() bool {
_ret := C.QChar_IsPrint(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsPrint(this.h))
}
func (this *QChar) IsSpace() bool {
_ret := C.QChar_IsSpace(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsSpace(this.h))
}
func (this *QChar) IsMark() bool {
_ret := C.QChar_IsMark(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsMark(this.h))
}
func (this *QChar) IsPunct() bool {
_ret := C.QChar_IsPunct(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsPunct(this.h))
}
func (this *QChar) IsSymbol() bool {
_ret := C.QChar_IsSymbol(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsSymbol(this.h))
}
func (this *QChar) IsLetter() bool {
_ret := C.QChar_IsLetter(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsLetter(this.h))
}
func (this *QChar) IsNumber() bool {
_ret := C.QChar_IsNumber(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsNumber(this.h))
}
func (this *QChar) IsLetterOrNumber() bool {
_ret := C.QChar_IsLetterOrNumber(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsLetterOrNumber(this.h))
}
func (this *QChar) IsDigit() bool {
_ret := C.QChar_IsDigit(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsDigit(this.h))
}
func (this *QChar) IsLower() bool {
_ret := C.QChar_IsLower(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsLower(this.h))
}
func (this *QChar) IsUpper() bool {
_ret := C.QChar_IsUpper(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsUpper(this.h))
}
func (this *QChar) IsTitleCase() bool {
_ret := C.QChar_IsTitleCase(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsTitleCase(this.h))
}
func (this *QChar) IsNonCharacter() bool {
_ret := C.QChar_IsNonCharacter(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsNonCharacter(this.h))
}
func (this *QChar) IsHighSurrogate() bool {
_ret := C.QChar_IsHighSurrogate(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsHighSurrogate(this.h))
}
func (this *QChar) IsLowSurrogate() bool {
_ret := C.QChar_IsLowSurrogate(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsLowSurrogate(this.h))
}
func (this *QChar) IsSurrogate() bool {
_ret := C.QChar_IsSurrogate(this.h)
return (bool)(_ret)
return (bool)(C.QChar_IsSurrogate(this.h))
}
func (this *QChar) Cell() byte {
_ret := C.QChar_Cell(this.h)
return (byte)(_ret)
return (byte)(C.QChar_Cell(this.h))
}
func (this *QChar) Row() byte {
_ret := C.QChar_Row(this.h)
return (byte)(_ret)
return (byte)(C.QChar_Row(this.h))
}
func (this *QChar) SetCell(acell byte) {
@ -714,83 +681,67 @@ func (this *QChar) SetRow(arow byte) {
}
func QChar_IsNonCharacterWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsNonCharacterWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsNonCharacterWithUcs4((C.uint)(ucs4)))
}
func QChar_IsHighSurrogateWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsHighSurrogateWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsHighSurrogateWithUcs4((C.uint)(ucs4)))
}
func QChar_IsLowSurrogateWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsLowSurrogateWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsLowSurrogateWithUcs4((C.uint)(ucs4)))
}
func QChar_IsSurrogateWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsSurrogateWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsSurrogateWithUcs4((C.uint)(ucs4)))
}
func QChar_RequiresSurrogates(ucs4 uint) bool {
_ret := C.QChar_RequiresSurrogates((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_RequiresSurrogates((C.uint)(ucs4)))
}
func QChar_SurrogateToUcs4(high uint16, low uint16) uint {
_ret := C.QChar_SurrogateToUcs4((C.uint16_t)(high), (C.uint16_t)(low))
return (uint)(_ret)
return (uint)(C.QChar_SurrogateToUcs4((C.uint16_t)(high), (C.uint16_t)(low)))
}
func QChar_SurrogateToUcs42(high QChar, low QChar) uint {
_ret := C.QChar_SurrogateToUcs42(high.cPointer(), low.cPointer())
return (uint)(_ret)
return (uint)(C.QChar_SurrogateToUcs42(high.cPointer(), low.cPointer()))
}
func QChar_HighSurrogate(ucs4 uint) uint16 {
_ret := C.QChar_HighSurrogate((C.uint)(ucs4))
return (uint16)(_ret)
return (uint16)(C.QChar_HighSurrogate((C.uint)(ucs4)))
}
func QChar_LowSurrogate(ucs4 uint) uint16 {
_ret := C.QChar_LowSurrogate((C.uint)(ucs4))
return (uint16)(_ret)
return (uint16)(C.QChar_LowSurrogate((C.uint)(ucs4)))
}
func QChar_CategoryWithUcs4(ucs4 uint) QChar__Category {
_ret := C.QChar_CategoryWithUcs4((C.uint)(ucs4))
return (QChar__Category)(_ret)
return (QChar__Category)(C.QChar_CategoryWithUcs4((C.uint)(ucs4)))
}
func QChar_DirectionWithUcs4(ucs4 uint) QChar__Direction {
_ret := C.QChar_DirectionWithUcs4((C.uint)(ucs4))
return (QChar__Direction)(_ret)
return (QChar__Direction)(C.QChar_DirectionWithUcs4((C.uint)(ucs4)))
}
func QChar_JoiningTypeWithUcs4(ucs4 uint) QChar__JoiningType {
_ret := C.QChar_JoiningTypeWithUcs4((C.uint)(ucs4))
return (QChar__JoiningType)(_ret)
return (QChar__JoiningType)(C.QChar_JoiningTypeWithUcs4((C.uint)(ucs4)))
}
func QChar_JoiningWithUcs4(ucs4 uint) QChar__Joining {
_ret := C.QChar_JoiningWithUcs4((C.uint)(ucs4))
return (QChar__Joining)(_ret)
return (QChar__Joining)(C.QChar_JoiningWithUcs4((C.uint)(ucs4)))
}
func QChar_CombiningClassWithUcs4(ucs4 uint) byte {
_ret := C.QChar_CombiningClassWithUcs4((C.uint)(ucs4))
return (byte)(_ret)
return (byte)(C.QChar_CombiningClassWithUcs4((C.uint)(ucs4)))
}
func QChar_MirroredCharWithUcs4(ucs4 uint) uint {
_ret := C.QChar_MirroredCharWithUcs4((C.uint)(ucs4))
return (uint)(_ret)
return (uint)(C.QChar_MirroredCharWithUcs4((C.uint)(ucs4)))
}
func QChar_HasMirroredWithUcs4(ucs4 uint) bool {
_ret := C.QChar_HasMirroredWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_HasMirroredWithUcs4((C.uint)(ucs4)))
}
func QChar_DecompositionWithUcs4(ucs4 uint) string {
@ -801,108 +752,87 @@ func QChar_DecompositionWithUcs4(ucs4 uint) string {
}
func QChar_DecompositionTagWithUcs4(ucs4 uint) QChar__Decomposition {
_ret := C.QChar_DecompositionTagWithUcs4((C.uint)(ucs4))
return (QChar__Decomposition)(_ret)
return (QChar__Decomposition)(C.QChar_DecompositionTagWithUcs4((C.uint)(ucs4)))
}
func QChar_DigitValueWithUcs4(ucs4 uint) int {
_ret := C.QChar_DigitValueWithUcs4((C.uint)(ucs4))
return (int)(_ret)
return (int)(C.QChar_DigitValueWithUcs4((C.uint)(ucs4)))
}
func QChar_ToLowerWithUcs4(ucs4 uint) uint {
_ret := C.QChar_ToLowerWithUcs4((C.uint)(ucs4))
return (uint)(_ret)
return (uint)(C.QChar_ToLowerWithUcs4((C.uint)(ucs4)))
}
func QChar_ToUpperWithUcs4(ucs4 uint) uint {
_ret := C.QChar_ToUpperWithUcs4((C.uint)(ucs4))
return (uint)(_ret)
return (uint)(C.QChar_ToUpperWithUcs4((C.uint)(ucs4)))
}
func QChar_ToTitleCaseWithUcs4(ucs4 uint) uint {
_ret := C.QChar_ToTitleCaseWithUcs4((C.uint)(ucs4))
return (uint)(_ret)
return (uint)(C.QChar_ToTitleCaseWithUcs4((C.uint)(ucs4)))
}
func QChar_ToCaseFoldedWithUcs4(ucs4 uint) uint {
_ret := C.QChar_ToCaseFoldedWithUcs4((C.uint)(ucs4))
return (uint)(_ret)
return (uint)(C.QChar_ToCaseFoldedWithUcs4((C.uint)(ucs4)))
}
func QChar_ScriptWithUcs4(ucs4 uint) QChar__Script {
_ret := C.QChar_ScriptWithUcs4((C.uint)(ucs4))
return (QChar__Script)(_ret)
return (QChar__Script)(C.QChar_ScriptWithUcs4((C.uint)(ucs4)))
}
func QChar_UnicodeVersionWithUcs4(ucs4 uint) QChar__UnicodeVersion {
_ret := C.QChar_UnicodeVersionWithUcs4((C.uint)(ucs4))
return (QChar__UnicodeVersion)(_ret)
return (QChar__UnicodeVersion)(C.QChar_UnicodeVersionWithUcs4((C.uint)(ucs4)))
}
func QChar_CurrentUnicodeVersion() QChar__UnicodeVersion {
_ret := C.QChar_CurrentUnicodeVersion()
return (QChar__UnicodeVersion)(_ret)
return (QChar__UnicodeVersion)(C.QChar_CurrentUnicodeVersion())
}
func QChar_IsPrintWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsPrintWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsPrintWithUcs4((C.uint)(ucs4)))
}
func QChar_IsSpaceWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsSpaceWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsSpaceWithUcs4((C.uint)(ucs4)))
}
func QChar_IsMarkWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsMarkWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsMarkWithUcs4((C.uint)(ucs4)))
}
func QChar_IsPunctWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsPunctWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsPunctWithUcs4((C.uint)(ucs4)))
}
func QChar_IsSymbolWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsSymbolWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsSymbolWithUcs4((C.uint)(ucs4)))
}
func QChar_IsLetterWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsLetterWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsLetterWithUcs4((C.uint)(ucs4)))
}
func QChar_IsNumberWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsNumberWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsNumberWithUcs4((C.uint)(ucs4)))
}
func QChar_IsLetterOrNumberWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsLetterOrNumberWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsLetterOrNumberWithUcs4((C.uint)(ucs4)))
}
func QChar_IsDigitWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsDigitWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsDigitWithUcs4((C.uint)(ucs4)))
}
func QChar_IsLowerWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsLowerWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsLowerWithUcs4((C.uint)(ucs4)))
}
func QChar_IsUpperWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsUpperWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsUpperWithUcs4((C.uint)(ucs4)))
}
func QChar_IsTitleCaseWithUcs4(ucs4 uint) bool {
_ret := C.QChar_IsTitleCaseWithUcs4((C.uint)(ucs4))
return (bool)(_ret)
return (bool)(C.QChar_IsTitleCaseWithUcs4((C.uint)(ucs4)))
}
// Delete this object from C++ memory.

View File

@ -66,8 +66,7 @@ func NewQCheckBox4(text string, parent *QWidget) *QCheckBox {
}
func (this *QCheckBox) MetaObject() *QMetaObject {
_ret := C.QCheckBox_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QCheckBox_MetaObject(this.h)))
}
func QCheckBox_Tr(s string) string {
@ -107,13 +106,11 @@ func (this *QCheckBox) SetTristate() {
}
func (this *QCheckBox) IsTristate() bool {
_ret := C.QCheckBox_IsTristate(this.h)
return (bool)(_ret)
return (bool)(C.QCheckBox_IsTristate(this.h))
}
func (this *QCheckBox) CheckState() CheckState {
_ret := C.QCheckBox_CheckState(this.h)
return (CheckState)(_ret)
return (CheckState)(C.QCheckBox_CheckState(this.h))
}
func (this *QCheckBox) SetCheckState(state CheckState) {
@ -135,8 +132,7 @@ func miqt_exec_callback_QCheckBox_StateChanged(cb *C.void, param1 C.int) {
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (int)(param1_ret)
slotval1 := (int)(param1)
gofunc(slotval1)
}

View File

@ -46,8 +46,7 @@ func newQClipboard_U(h unsafe.Pointer) *QClipboard {
}
func (this *QClipboard) MetaObject() *QMetaObject {
_ret := C.QClipboard_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QClipboard_MetaObject(this.h)))
}
func QClipboard_Tr(s string) string {
@ -73,28 +72,23 @@ func (this *QClipboard) Clear() {
}
func (this *QClipboard) SupportsSelection() bool {
_ret := C.QClipboard_SupportsSelection(this.h)
return (bool)(_ret)
return (bool)(C.QClipboard_SupportsSelection(this.h))
}
func (this *QClipboard) SupportsFindBuffer() bool {
_ret := C.QClipboard_SupportsFindBuffer(this.h)
return (bool)(_ret)
return (bool)(C.QClipboard_SupportsFindBuffer(this.h))
}
func (this *QClipboard) OwnsSelection() bool {
_ret := C.QClipboard_OwnsSelection(this.h)
return (bool)(_ret)
return (bool)(C.QClipboard_OwnsSelection(this.h))
}
func (this *QClipboard) OwnsClipboard() bool {
_ret := C.QClipboard_OwnsClipboard(this.h)
return (bool)(_ret)
return (bool)(C.QClipboard_OwnsClipboard(this.h))
}
func (this *QClipboard) OwnsFindBuffer() bool {
_ret := C.QClipboard_OwnsFindBuffer(this.h)
return (bool)(_ret)
return (bool)(C.QClipboard_OwnsFindBuffer(this.h))
}
func (this *QClipboard) Text() string {
@ -120,8 +114,7 @@ func (this *QClipboard) SetText(param1 string) {
}
func (this *QClipboard) MimeData() *QMimeData {
_ret := C.QClipboard_MimeData(this.h)
return newQMimeData_U(unsafe.Pointer(_ret))
return newQMimeData_U(unsafe.Pointer(C.QClipboard_MimeData(this.h)))
}
func (this *QClipboard) SetMimeData(data *QMimeData) {
@ -165,8 +158,7 @@ func miqt_exec_callback_QClipboard_Changed(cb *C.void, mode C.uintptr_t) {
}
// Convert all CABI parameters to Go parameters
mode_ret := mode
slotval1 := (QClipboard__Mode)(mode_ret)
slotval1 := (QClipboard__Mode)(mode)
gofunc(slotval1)
}
@ -293,8 +285,7 @@ func (this *QClipboard) SetText2(param1 string, mode QClipboard__Mode) {
}
func (this *QClipboard) MimeData1(mode QClipboard__Mode) *QMimeData {
_ret := C.QClipboard_MimeData1(this.h, (C.uintptr_t)(mode))
return newQMimeData_U(unsafe.Pointer(_ret))
return newQMimeData_U(unsafe.Pointer(C.QClipboard_MimeData1(this.h, (C.uintptr_t)(mode))))
}
func (this *QClipboard) SetMimeData2(data *QMimeData, mode QClipboard__Mode) {

View File

@ -50,8 +50,7 @@ func (this *QCollatorSortKey) Swap(other *QCollatorSortKey) {
}
func (this *QCollatorSortKey) Compare(key *QCollatorSortKey) int {
_ret := C.QCollatorSortKey_Compare(this.h, key.cPointer())
return (int)(_ret)
return (int)(C.QCollatorSortKey_Compare(this.h, key.cPointer()))
}
// Delete this object from C++ memory.
@ -128,8 +127,7 @@ func (this *QCollator) Locale() *QLocale {
}
func (this *QCollator) CaseSensitivity() CaseSensitivity {
_ret := C.QCollator_CaseSensitivity(this.h)
return (CaseSensitivity)(_ret)
return (CaseSensitivity)(C.QCollator_CaseSensitivity(this.h))
}
func (this *QCollator) SetCaseSensitivity(cs CaseSensitivity) {
@ -141,8 +139,7 @@ func (this *QCollator) SetNumericMode(on bool) {
}
func (this *QCollator) NumericMode() bool {
_ret := C.QCollator_NumericMode(this.h)
return (bool)(_ret)
return (bool)(C.QCollator_NumericMode(this.h))
}
func (this *QCollator) SetIgnorePunctuation(on bool) {
@ -150,8 +147,7 @@ func (this *QCollator) SetIgnorePunctuation(on bool) {
}
func (this *QCollator) IgnorePunctuation() bool {
_ret := C.QCollator_IgnorePunctuation(this.h)
return (bool)(_ret)
return (bool)(C.QCollator_IgnorePunctuation(this.h))
}
func (this *QCollator) Compare(s1 string, s2 string) int {
@ -159,13 +155,11 @@ func (this *QCollator) Compare(s1 string, s2 string) int {
defer C.free(s1_ms)
s2_ms := miqt_strdupg(s2)
defer C.free(s2_ms)
_ret := C.QCollator_Compare(this.h, (*C.struct_miqt_string)(s1_ms), (*C.struct_miqt_string)(s2_ms))
return (int)(_ret)
return (int)(C.QCollator_Compare(this.h, (*C.struct_miqt_string)(s1_ms), (*C.struct_miqt_string)(s2_ms)))
}
func (this *QCollator) Compare3(s1 *QChar, len1 int, s2 *QChar, len2 int) int {
_ret := C.QCollator_Compare3(this.h, s1.cPointer(), (C.int)(len1), s2.cPointer(), (C.int)(len2))
return (int)(_ret)
return (int)(C.QCollator_Compare3(this.h, s1.cPointer(), (C.int)(len1), s2.cPointer(), (C.int)(len2)))
}
func (this *QCollator) OperatorCall(s1 string, s2 string) bool {
@ -173,8 +167,7 @@ func (this *QCollator) OperatorCall(s1 string, s2 string) bool {
defer C.free(s1_ms)
s2_ms := miqt_strdupg(s2)
defer C.free(s2_ms)
_ret := C.QCollator_OperatorCall(this.h, (*C.struct_miqt_string)(s1_ms), (*C.struct_miqt_string)(s2_ms))
return (bool)(_ret)
return (bool)(C.QCollator_OperatorCall(this.h, (*C.struct_miqt_string)(s1_ms), (*C.struct_miqt_string)(s2_ms)))
}
func (this *QCollator) SortKey(stringVal string) *QCollatorSortKey {

View File

@ -138,8 +138,7 @@ func (this *QColor) OperatorAssignWithColor(color GlobalColor) {
}
func (this *QColor) IsValid() bool {
_ret := C.QColor_IsValid(this.h)
return (bool)(_ret)
return (bool)(C.QColor_IsValid(this.h))
}
func (this *QColor) Name() string {
@ -167,21 +166,21 @@ func QColor_ColorNames() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QColor) Spec() QColor__Spec {
_ret := C.QColor_Spec(this.h)
return (QColor__Spec)(_ret)
return (QColor__Spec)(C.QColor_Spec(this.h))
}
func (this *QColor) Alpha() int {
_ret := C.QColor_Alpha(this.h)
return (int)(_ret)
return (int)(C.QColor_Alpha(this.h))
}
func (this *QColor) SetAlpha(alpha int) {
@ -189,8 +188,7 @@ func (this *QColor) SetAlpha(alpha int) {
}
func (this *QColor) AlphaF() float64 {
_ret := C.QColor_AlphaF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_AlphaF(this.h))
}
func (this *QColor) SetAlphaF(alpha float64) {
@ -198,18 +196,15 @@ func (this *QColor) SetAlphaF(alpha float64) {
}
func (this *QColor) Red() int {
_ret := C.QColor_Red(this.h)
return (int)(_ret)
return (int)(C.QColor_Red(this.h))
}
func (this *QColor) Green() int {
_ret := C.QColor_Green(this.h)
return (int)(_ret)
return (int)(C.QColor_Green(this.h))
}
func (this *QColor) Blue() int {
_ret := C.QColor_Blue(this.h)
return (int)(_ret)
return (int)(C.QColor_Blue(this.h))
}
func (this *QColor) SetRed(red int) {
@ -225,18 +220,15 @@ func (this *QColor) SetBlue(blue int) {
}
func (this *QColor) RedF() float64 {
_ret := C.QColor_RedF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_RedF(this.h))
}
func (this *QColor) GreenF() float64 {
_ret := C.QColor_GreenF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_GreenF(this.h))
}
func (this *QColor) BlueF() float64 {
_ret := C.QColor_BlueF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_BlueF(this.h))
}
func (this *QColor) SetRedF(red float64) {
@ -279,8 +271,7 @@ func (this *QColor) SetRgba64(rgba QRgba64) {
}
func (this *QColor) Rgba() uint {
_ret := C.QColor_Rgba(this.h)
return (uint)(_ret)
return (uint)(C.QColor_Rgba(this.h))
}
func (this *QColor) SetRgba(rgba uint) {
@ -288,8 +279,7 @@ func (this *QColor) SetRgba(rgba uint) {
}
func (this *QColor) Rgb() uint {
_ret := C.QColor_Rgb(this.h)
return (uint)(_ret)
return (uint)(C.QColor_Rgb(this.h))
}
func (this *QColor) SetRgbWithRgb(rgb uint) {
@ -297,53 +287,43 @@ func (this *QColor) SetRgbWithRgb(rgb uint) {
}
func (this *QColor) Hue() int {
_ret := C.QColor_Hue(this.h)
return (int)(_ret)
return (int)(C.QColor_Hue(this.h))
}
func (this *QColor) Saturation() int {
_ret := C.QColor_Saturation(this.h)
return (int)(_ret)
return (int)(C.QColor_Saturation(this.h))
}
func (this *QColor) HsvHue() int {
_ret := C.QColor_HsvHue(this.h)
return (int)(_ret)
return (int)(C.QColor_HsvHue(this.h))
}
func (this *QColor) HsvSaturation() int {
_ret := C.QColor_HsvSaturation(this.h)
return (int)(_ret)
return (int)(C.QColor_HsvSaturation(this.h))
}
func (this *QColor) Value() int {
_ret := C.QColor_Value(this.h)
return (int)(_ret)
return (int)(C.QColor_Value(this.h))
}
func (this *QColor) HueF() float64 {
_ret := C.QColor_HueF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_HueF(this.h))
}
func (this *QColor) SaturationF() float64 {
_ret := C.QColor_SaturationF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_SaturationF(this.h))
}
func (this *QColor) HsvHueF() float64 {
_ret := C.QColor_HsvHueF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_HsvHueF(this.h))
}
func (this *QColor) HsvSaturationF() float64 {
_ret := C.QColor_HsvSaturationF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_HsvSaturationF(this.h))
}
func (this *QColor) ValueF() float64 {
_ret := C.QColor_ValueF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_ValueF(this.h))
}
func (this *QColor) GetHsv(h *int, s *int, v *int) {
@ -363,43 +343,35 @@ func (this *QColor) SetHsvF(h float64, s float64, v float64) {
}
func (this *QColor) Cyan() int {
_ret := C.QColor_Cyan(this.h)
return (int)(_ret)
return (int)(C.QColor_Cyan(this.h))
}
func (this *QColor) Magenta() int {
_ret := C.QColor_Magenta(this.h)
return (int)(_ret)
return (int)(C.QColor_Magenta(this.h))
}
func (this *QColor) Yellow() int {
_ret := C.QColor_Yellow(this.h)
return (int)(_ret)
return (int)(C.QColor_Yellow(this.h))
}
func (this *QColor) Black() int {
_ret := C.QColor_Black(this.h)
return (int)(_ret)
return (int)(C.QColor_Black(this.h))
}
func (this *QColor) CyanF() float64 {
_ret := C.QColor_CyanF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_CyanF(this.h))
}
func (this *QColor) MagentaF() float64 {
_ret := C.QColor_MagentaF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_MagentaF(this.h))
}
func (this *QColor) YellowF() float64 {
_ret := C.QColor_YellowF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_YellowF(this.h))
}
func (this *QColor) BlackF() float64 {
_ret := C.QColor_BlackF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_BlackF(this.h))
}
func (this *QColor) GetCmyk(c *int, m *int, y *int, k *int) {
@ -427,33 +399,27 @@ func (this *QColor) SetCmykF(c float64, m float64, y float64, k float64) {
}
func (this *QColor) HslHue() int {
_ret := C.QColor_HslHue(this.h)
return (int)(_ret)
return (int)(C.QColor_HslHue(this.h))
}
func (this *QColor) HslSaturation() int {
_ret := C.QColor_HslSaturation(this.h)
return (int)(_ret)
return (int)(C.QColor_HslSaturation(this.h))
}
func (this *QColor) Lightness() int {
_ret := C.QColor_Lightness(this.h)
return (int)(_ret)
return (int)(C.QColor_Lightness(this.h))
}
func (this *QColor) HslHueF() float64 {
_ret := C.QColor_HslHueF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_HslHueF(this.h))
}
func (this *QColor) HslSaturationF() float64 {
_ret := C.QColor_HslSaturationF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_HslSaturationF(this.h))
}
func (this *QColor) LightnessF() float64 {
_ret := C.QColor_LightnessF(this.h)
return (float64)(_ret)
return (float64)(C.QColor_LightnessF(this.h))
}
func (this *QColor) GetHsl(h *int, s *int, l *int) {
@ -627,20 +593,17 @@ func (this *QColor) Darker() *QColor {
}
func (this *QColor) OperatorEqual(c *QColor) bool {
_ret := C.QColor_OperatorEqual(this.h, c.cPointer())
return (bool)(_ret)
return (bool)(C.QColor_OperatorEqual(this.h, c.cPointer()))
}
func (this *QColor) OperatorNotEqual(c *QColor) bool {
_ret := C.QColor_OperatorNotEqual(this.h, c.cPointer())
return (bool)(_ret)
return (bool)(C.QColor_OperatorNotEqual(this.h, c.cPointer()))
}
func QColor_IsValidColor(name string) bool {
name_ms := miqt_strdupg(name)
defer C.free(name_ms)
_ret := C.QColor_IsValidColor((*C.struct_miqt_string)(name_ms))
return (bool)(_ret)
return (bool)(C.QColor_IsValidColor((*C.struct_miqt_string)(name_ms)))
}
func (this *QColor) GetRgb4(r *int, g *int, b *int, a *int) {

View File

@ -70,8 +70,7 @@ func NewQColorDialog4(initial *QColor, parent *QWidget) *QColorDialog {
}
func (this *QColorDialog) MetaObject() *QMetaObject {
_ret := C.QColorDialog_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QColorDialog_MetaObject(this.h)))
}
func QColorDialog_Tr(s string) string {
@ -115,8 +114,7 @@ func (this *QColorDialog) SetOption(option QColorDialog__ColorDialogOption) {
}
func (this *QColorDialog) TestOption(option QColorDialog__ColorDialogOption) bool {
_ret := C.QColorDialog_TestOption(this.h, (C.uintptr_t)(option))
return (bool)(_ret)
return (bool)(C.QColorDialog_TestOption(this.h, (C.uintptr_t)(option)))
}
func (this *QColorDialog) SetOptions(options int) {
@ -124,8 +122,7 @@ func (this *QColorDialog) SetOptions(options int) {
}
func (this *QColorDialog) Options() int {
_ret := C.QColorDialog_Options(this.h)
return (int)(_ret)
return (int)(C.QColorDialog_Options(this.h))
}
func (this *QColorDialog) SetVisible(visible bool) {
@ -140,13 +137,11 @@ func QColorDialog_GetColor() *QColor {
}
func QColorDialog_GetRgba() uint {
_ret := C.QColorDialog_GetRgba()
return (uint)(_ret)
return (uint)(C.QColorDialog_GetRgba())
}
func QColorDialog_CustomCount() int {
_ret := C.QColorDialog_CustomCount()
return (int)(_ret)
return (int)(C.QColorDialog_CustomCount())
}
func QColorDialog_CustomColor(index int) *QColor {
@ -186,8 +181,7 @@ func miqt_exec_callback_QColorDialog_CurrentColorChanged(cb *C.void, color *C.QC
}
// Convert all CABI parameters to Go parameters
color_ret := color
slotval1 := newQColor_U(unsafe.Pointer(color_ret))
slotval1 := newQColor_U(unsafe.Pointer(color))
gofunc(slotval1)
}
@ -207,8 +201,7 @@ func miqt_exec_callback_QColorDialog_ColorSelected(cb *C.void, color *C.QColor)
}
// Convert all CABI parameters to Go parameters
color_ret := color
slotval1 := newQColor_U(unsafe.Pointer(color_ret))
slotval1 := newQColor_U(unsafe.Pointer(color))
gofunc(slotval1)
}
@ -294,18 +287,15 @@ func QColorDialog_GetColor4(initial *QColor, parent *QWidget, title string, opti
}
func QColorDialog_GetRgba1(rgba uint) uint {
_ret := C.QColorDialog_GetRgba1((C.uint)(rgba))
return (uint)(_ret)
return (uint)(C.QColorDialog_GetRgba1((C.uint)(rgba)))
}
func QColorDialog_GetRgba2(rgba uint, ok *bool) uint {
_ret := C.QColorDialog_GetRgba2((C.uint)(rgba), (*C.bool)(unsafe.Pointer(ok)))
return (uint)(_ret)
return (uint)(C.QColorDialog_GetRgba2((C.uint)(rgba), (*C.bool)(unsafe.Pointer(ok))))
}
func QColorDialog_GetRgba3(rgba uint, ok *bool, parent *QWidget) uint {
_ret := C.QColorDialog_GetRgba3((C.uint)(rgba), (*C.bool)(unsafe.Pointer(ok)), parent.cPointer())
return (uint)(_ret)
return (uint)(C.QColorDialog_GetRgba3((C.uint)(rgba), (*C.bool)(unsafe.Pointer(ok)), parent.cPointer()))
}
// Delete this object from C++ memory.

View File

@ -69,23 +69,19 @@ func (this *QColormap) OperatorAssign(colormap *QColormap) {
}
func (this *QColormap) Mode() QColormap__Mode {
_ret := C.QColormap_Mode(this.h)
return (QColormap__Mode)(_ret)
return (QColormap__Mode)(C.QColormap_Mode(this.h))
}
func (this *QColormap) Depth() int {
_ret := C.QColormap_Depth(this.h)
return (int)(_ret)
return (int)(C.QColormap_Depth(this.h))
}
func (this *QColormap) Size() int {
_ret := C.QColormap_Size(this.h)
return (int)(_ret)
return (int)(C.QColormap_Size(this.h))
}
func (this *QColormap) Pixel(color *QColor) uint {
_ret := C.QColormap_Pixel(this.h, color.cPointer())
return (uint)(_ret)
return (uint)(C.QColormap_Pixel(this.h, color.cPointer()))
}
func (this *QColormap) ColorAt(pixel uint) *QColor {
@ -98,9 +94,12 @@ func (this *QColormap) ColorAt(pixel uint) *QColor {
func (this *QColormap) Colormap() []QColor {
var _ma *C.struct_miqt_array = C.QColormap_Colormap(this.h)
_ret := make([]QColor, int(_ma.len))
_outCast := (*[0xffff]*C.QColor)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QColor)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQColor(_outCast[i])
_vv_ret := _outCast[i]
_vv_goptr := newQColor(_vv_ret)
_vv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_vv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret

View File

@ -122,18 +122,15 @@ func (this *QColorSpace) Swap(colorSpace *QColorSpace) {
}
func (this *QColorSpace) Primaries() QColorSpace__Primaries {
_ret := C.QColorSpace_Primaries(this.h)
return (QColorSpace__Primaries)(_ret)
return (QColorSpace__Primaries)(C.QColorSpace_Primaries(this.h))
}
func (this *QColorSpace) TransferFunction() QColorSpace__TransferFunction {
_ret := C.QColorSpace_TransferFunction(this.h)
return (QColorSpace__TransferFunction)(_ret)
return (QColorSpace__TransferFunction)(C.QColorSpace_TransferFunction(this.h))
}
func (this *QColorSpace) Gamma() float32 {
_ret := C.QColorSpace_Gamma(this.h)
return (float32)(_ret)
return (float32)(C.QColorSpace_Gamma(this.h))
}
func (this *QColorSpace) SetTransferFunction(transferFunction QColorSpace__TransferFunction) {
@ -156,8 +153,7 @@ func (this *QColorSpace) SetPrimaries2(whitePoint *QPointF, redPoint *QPointF, g
}
func (this *QColorSpace) IsValid() bool {
_ret := C.QColorSpace_IsValid(this.h)
return (bool)(_ret)
return (bool)(C.QColorSpace_IsValid(this.h))
}
func QColorSpace_FromIccProfile(iccProfile *QByteArray) *QColorSpace {

View File

@ -56,8 +56,7 @@ func (this *QColorTransform) Swap(other *QColorTransform) {
}
func (this *QColorTransform) Map(argb uint) uint {
_ret := C.QColorTransform_Map(this.h, (C.uint)(argb))
return (uint)(_ret)
return (uint)(C.QColorTransform_Map(this.h, (C.uint)(argb)))
}
func (this *QColorTransform) MapWithRgba64(rgba64 QRgba64) *QRgba64 {

View File

@ -50,8 +50,7 @@ func NewQColumnView2(parent *QWidget) *QColumnView {
}
func (this *QColumnView) MetaObject() *QMetaObject {
_ret := C.QColumnView_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QColumnView_MetaObject(this.h)))
}
func QColumnView_Tr(s string) string {
@ -87,8 +86,7 @@ func miqt_exec_callback_QColumnView_UpdatePreviewWidget(cb *C.void, index *C.QMo
}
// Convert all CABI parameters to Go parameters
index_ret := index
slotval1 := newQModelIndex_U(unsafe.Pointer(index_ret))
slotval1 := newQModelIndex_U(unsafe.Pointer(index))
gofunc(slotval1)
}
@ -139,13 +137,11 @@ func (this *QColumnView) SetResizeGripsVisible(visible bool) {
}
func (this *QColumnView) ResizeGripsVisible() bool {
_ret := C.QColumnView_ResizeGripsVisible(this.h)
return (bool)(_ret)
return (bool)(C.QColumnView_ResizeGripsVisible(this.h))
}
func (this *QColumnView) PreviewWidget() *QWidget {
_ret := C.QColumnView_PreviewWidget(this.h)
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QColumnView_PreviewWidget(this.h)))
}
func (this *QColumnView) SetPreviewWidget(widget *QWidget) {
@ -167,7 +163,7 @@ func (this *QColumnView) SetColumnWidths(list []int) {
func (this *QColumnView) ColumnWidths() []int {
var _ma *C.struct_miqt_array = C.QColumnView_ColumnWidths(this.h)
_ret := make([]int, int(_ma.len))
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (int)(_outCast[i])
}

View File

@ -71,8 +71,7 @@ func NewQComboBox2(parent *QWidget) *QComboBox {
}
func (this *QComboBox) MetaObject() *QMetaObject {
_ret := C.QComboBox_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QComboBox_MetaObject(this.h)))
}
func QComboBox_Tr(s string) string {
@ -94,8 +93,7 @@ func QComboBox_TrUtf8(s string) string {
}
func (this *QComboBox) MaxVisibleItems() int {
_ret := C.QComboBox_MaxVisibleItems(this.h)
return (int)(_ret)
return (int)(C.QComboBox_MaxVisibleItems(this.h))
}
func (this *QComboBox) SetMaxVisibleItems(maxItems int) {
@ -103,8 +101,7 @@ func (this *QComboBox) SetMaxVisibleItems(maxItems int) {
}
func (this *QComboBox) Count() int {
_ret := C.QComboBox_Count(this.h)
return (int)(_ret)
return (int)(C.QComboBox_Count(this.h))
}
func (this *QComboBox) SetMaxCount(max int) {
@ -112,13 +109,11 @@ func (this *QComboBox) SetMaxCount(max int) {
}
func (this *QComboBox) MaxCount() int {
_ret := C.QComboBox_MaxCount(this.h)
return (int)(_ret)
return (int)(C.QComboBox_MaxCount(this.h))
}
func (this *QComboBox) AutoCompletion() bool {
_ret := C.QComboBox_AutoCompletion(this.h)
return (bool)(_ret)
return (bool)(C.QComboBox_AutoCompletion(this.h))
}
func (this *QComboBox) SetAutoCompletion(enable bool) {
@ -126,8 +121,7 @@ func (this *QComboBox) SetAutoCompletion(enable bool) {
}
func (this *QComboBox) AutoCompletionCaseSensitivity() CaseSensitivity {
_ret := C.QComboBox_AutoCompletionCaseSensitivity(this.h)
return (CaseSensitivity)(_ret)
return (CaseSensitivity)(C.QComboBox_AutoCompletionCaseSensitivity(this.h))
}
func (this *QComboBox) SetAutoCompletionCaseSensitivity(sensitivity CaseSensitivity) {
@ -135,8 +129,7 @@ func (this *QComboBox) SetAutoCompletionCaseSensitivity(sensitivity CaseSensitiv
}
func (this *QComboBox) DuplicatesEnabled() bool {
_ret := C.QComboBox_DuplicatesEnabled(this.h)
return (bool)(_ret)
return (bool)(C.QComboBox_DuplicatesEnabled(this.h))
}
func (this *QComboBox) SetDuplicatesEnabled(enable bool) {
@ -148,25 +141,21 @@ func (this *QComboBox) SetFrame(frame bool) {
}
func (this *QComboBox) HasFrame() bool {
_ret := C.QComboBox_HasFrame(this.h)
return (bool)(_ret)
return (bool)(C.QComboBox_HasFrame(this.h))
}
func (this *QComboBox) FindText(text string) int {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
_ret := C.QComboBox_FindText(this.h, (*C.struct_miqt_string)(text_ms))
return (int)(_ret)
return (int)(C.QComboBox_FindText(this.h, (*C.struct_miqt_string)(text_ms)))
}
func (this *QComboBox) FindData(data *QVariant) int {
_ret := C.QComboBox_FindData(this.h, data.cPointer())
return (int)(_ret)
return (int)(C.QComboBox_FindData(this.h, data.cPointer()))
}
func (this *QComboBox) InsertPolicy() QComboBox__InsertPolicy {
_ret := C.QComboBox_InsertPolicy(this.h)
return (QComboBox__InsertPolicy)(_ret)
return (QComboBox__InsertPolicy)(C.QComboBox_InsertPolicy(this.h))
}
func (this *QComboBox) SetInsertPolicy(policy QComboBox__InsertPolicy) {
@ -174,8 +163,7 @@ func (this *QComboBox) SetInsertPolicy(policy QComboBox__InsertPolicy) {
}
func (this *QComboBox) SizeAdjustPolicy() QComboBox__SizeAdjustPolicy {
_ret := C.QComboBox_SizeAdjustPolicy(this.h)
return (QComboBox__SizeAdjustPolicy)(_ret)
return (QComboBox__SizeAdjustPolicy)(C.QComboBox_SizeAdjustPolicy(this.h))
}
func (this *QComboBox) SetSizeAdjustPolicy(policy QComboBox__SizeAdjustPolicy) {
@ -183,8 +171,7 @@ func (this *QComboBox) SetSizeAdjustPolicy(policy QComboBox__SizeAdjustPolicy) {
}
func (this *QComboBox) MinimumContentsLength() int {
_ret := C.QComboBox_MinimumContentsLength(this.h)
return (int)(_ret)
return (int)(C.QComboBox_MinimumContentsLength(this.h))
}
func (this *QComboBox) SetMinimumContentsLength(characters int) {
@ -216,8 +203,7 @@ func (this *QComboBox) PlaceholderText() string {
}
func (this *QComboBox) IsEditable() bool {
_ret := C.QComboBox_IsEditable(this.h)
return (bool)(_ret)
return (bool)(C.QComboBox_IsEditable(this.h))
}
func (this *QComboBox) SetEditable(editable bool) {
@ -229,8 +215,7 @@ func (this *QComboBox) SetLineEdit(edit *QLineEdit) {
}
func (this *QComboBox) LineEdit() *QLineEdit {
_ret := C.QComboBox_LineEdit(this.h)
return newQLineEdit_U(unsafe.Pointer(_ret))
return newQLineEdit_U(unsafe.Pointer(C.QComboBox_LineEdit(this.h)))
}
func (this *QComboBox) SetValidator(v *QValidator) {
@ -238,8 +223,7 @@ func (this *QComboBox) SetValidator(v *QValidator) {
}
func (this *QComboBox) Validator() *QValidator {
_ret := C.QComboBox_Validator(this.h)
return newQValidator_U(unsafe.Pointer(_ret))
return newQValidator_U(unsafe.Pointer(C.QComboBox_Validator(this.h)))
}
func (this *QComboBox) SetCompleter(c *QCompleter) {
@ -247,13 +231,11 @@ func (this *QComboBox) SetCompleter(c *QCompleter) {
}
func (this *QComboBox) Completer() *QCompleter {
_ret := C.QComboBox_Completer(this.h)
return newQCompleter_U(unsafe.Pointer(_ret))
return newQCompleter_U(unsafe.Pointer(C.QComboBox_Completer(this.h)))
}
func (this *QComboBox) ItemDelegate() *QAbstractItemDelegate {
_ret := C.QComboBox_ItemDelegate(this.h)
return newQAbstractItemDelegate_U(unsafe.Pointer(_ret))
return newQAbstractItemDelegate_U(unsafe.Pointer(C.QComboBox_ItemDelegate(this.h)))
}
func (this *QComboBox) SetItemDelegate(delegate *QAbstractItemDelegate) {
@ -261,8 +243,7 @@ func (this *QComboBox) SetItemDelegate(delegate *QAbstractItemDelegate) {
}
func (this *QComboBox) Model() *QAbstractItemModel {
_ret := C.QComboBox_Model(this.h)
return newQAbstractItemModel_U(unsafe.Pointer(_ret))
return newQAbstractItemModel_U(unsafe.Pointer(C.QComboBox_Model(this.h)))
}
func (this *QComboBox) SetModel(model *QAbstractItemModel) {
@ -281,8 +262,7 @@ func (this *QComboBox) SetRootModelIndex(index *QModelIndex) {
}
func (this *QComboBox) ModelColumn() int {
_ret := C.QComboBox_ModelColumn(this.h)
return (int)(_ret)
return (int)(C.QComboBox_ModelColumn(this.h))
}
func (this *QComboBox) SetModelColumn(visibleColumn int) {
@ -290,8 +270,7 @@ func (this *QComboBox) SetModelColumn(visibleColumn int) {
}
func (this *QComboBox) CurrentIndex() int {
_ret := C.QComboBox_CurrentIndex(this.h)
return (int)(_ret)
return (int)(C.QComboBox_CurrentIndex(this.h))
}
func (this *QComboBox) CurrentText() string {
@ -342,13 +321,13 @@ func (this *QComboBox) AddItem2(icon *QIcon, text string) {
}
func (this *QComboBox) AddItems(texts []string) {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
texts_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(texts))))
defer C.free(unsafe.Pointer(texts_CArray))
for i := range texts {
single_ms := miqt_strdupg(texts[i])
defer C.free(single_ms)
texts_CArray[i] = (*C.struct_miqt_string)(single_ms)
texts_i_ms := miqt_strdupg(texts[i])
defer C.free(texts_i_ms)
texts_CArray[i] = (*C.struct_miqt_string)(texts_i_ms)
}
texts_ma := &C.struct_miqt_array{len: C.size_t(len(texts)), data: unsafe.Pointer(texts_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(texts_ma))
@ -368,13 +347,13 @@ func (this *QComboBox) InsertItem2(index int, icon *QIcon, text string) {
}
func (this *QComboBox) InsertItems(index int, texts []string) {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
texts_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(texts))))
defer C.free(unsafe.Pointer(texts_CArray))
for i := range texts {
single_ms := miqt_strdupg(texts[i])
defer C.free(single_ms)
texts_CArray[i] = (*C.struct_miqt_string)(single_ms)
texts_i_ms := miqt_strdupg(texts[i])
defer C.free(texts_i_ms)
texts_CArray[i] = (*C.struct_miqt_string)(texts_i_ms)
}
texts_ma := &C.struct_miqt_array{len: C.size_t(len(texts)), data: unsafe.Pointer(texts_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(texts_ma))
@ -404,8 +383,7 @@ func (this *QComboBox) SetItemData(index int, value *QVariant) {
}
func (this *QComboBox) View() *QAbstractItemView {
_ret := C.QComboBox_View(this.h)
return newQAbstractItemView_U(unsafe.Pointer(_ret))
return newQAbstractItemView_U(unsafe.Pointer(C.QComboBox_View(this.h)))
}
func (this *QComboBox) SetView(itemView *QAbstractItemView) {
@ -435,8 +413,7 @@ func (this *QComboBox) HidePopup() {
}
func (this *QComboBox) Event(event *QEvent) bool {
_ret := C.QComboBox_Event(this.h, event.cPointer())
return (bool)(_ret)
return (bool)(C.QComboBox_Event(this.h, event.cPointer()))
}
func (this *QComboBox) InputMethodQuery(param1 InputMethodQuery) *QVariant {
@ -517,8 +494,7 @@ func miqt_exec_callback_QComboBox_Activated(cb *C.void, index C.int) {
}
// Convert all CABI parameters to Go parameters
index_ret := index
slotval1 := (int)(index_ret)
slotval1 := (int)(index)
gofunc(slotval1)
}
@ -563,8 +539,7 @@ func miqt_exec_callback_QComboBox_Highlighted(cb *C.void, index C.int) {
}
// Convert all CABI parameters to Go parameters
index_ret := index
slotval1 := (int)(index_ret)
slotval1 := (int)(index)
gofunc(slotval1)
}
@ -609,8 +584,7 @@ func miqt_exec_callback_QComboBox_CurrentIndexChanged(cb *C.void, index C.int) {
}
// Convert all CABI parameters to Go parameters
index_ret := index
slotval1 := (int)(index_ret)
slotval1 := (int)(index)
gofunc(slotval1)
}
@ -762,18 +736,15 @@ func QComboBox_TrUtf83(s string, c string, n int) string {
func (this *QComboBox) FindText2(text string, flags int) int {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
_ret := C.QComboBox_FindText2(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags))
return (int)(_ret)
return (int)(C.QComboBox_FindText2(this.h, (*C.struct_miqt_string)(text_ms), (C.int)(flags)))
}
func (this *QComboBox) FindData2(data *QVariant, role int) int {
_ret := C.QComboBox_FindData2(this.h, data.cPointer(), (C.int)(role))
return (int)(_ret)
return (int)(C.QComboBox_FindData2(this.h, data.cPointer(), (C.int)(role)))
}
func (this *QComboBox) FindData3(data *QVariant, role int, flags int) int {
_ret := C.QComboBox_FindData3(this.h, data.cPointer(), (C.int)(role), (C.int)(flags))
return (int)(_ret)
return (int)(C.QComboBox_FindData3(this.h, data.cPointer(), (C.int)(role), (C.int)(flags)))
}
func (this *QComboBox) CurrentData1(role int) *QVariant {

View File

@ -52,13 +52,13 @@ func NewQCommandLineOption(name string) *QCommandLineOption {
// NewQCommandLineOption2 constructs a new QCommandLineOption object.
func NewQCommandLineOption2(names []string) *QCommandLineOption {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
names_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(names))))
defer C.free(unsafe.Pointer(names_CArray))
for i := range names {
single_ms := miqt_strdupg(names[i])
defer C.free(single_ms)
names_CArray[i] = (*C.struct_miqt_string)(single_ms)
names_i_ms := miqt_strdupg(names[i])
defer C.free(names_i_ms)
names_CArray[i] = (*C.struct_miqt_string)(names_i_ms)
}
names_ma := &C.struct_miqt_array{len: C.size_t(len(names)), data: unsafe.Pointer(names_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(names_ma))
@ -78,13 +78,13 @@ func NewQCommandLineOption3(name string, description string) *QCommandLineOption
// NewQCommandLineOption4 constructs a new QCommandLineOption object.
func NewQCommandLineOption4(names []string, description string) *QCommandLineOption {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
names_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(names))))
defer C.free(unsafe.Pointer(names_CArray))
for i := range names {
single_ms := miqt_strdupg(names[i])
defer C.free(single_ms)
names_CArray[i] = (*C.struct_miqt_string)(single_ms)
names_i_ms := miqt_strdupg(names[i])
defer C.free(names_i_ms)
names_CArray[i] = (*C.struct_miqt_string)(names_i_ms)
}
names_ma := &C.struct_miqt_array{len: C.size_t(len(names)), data: unsafe.Pointer(names_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(names_ma))
@ -128,13 +128,13 @@ func NewQCommandLineOption7(name string, description string, valueName string, d
// NewQCommandLineOption8 constructs a new QCommandLineOption object.
func NewQCommandLineOption8(names []string, description string, valueName string) *QCommandLineOption {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
names_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(names))))
defer C.free(unsafe.Pointer(names_CArray))
for i := range names {
single_ms := miqt_strdupg(names[i])
defer C.free(single_ms)
names_CArray[i] = (*C.struct_miqt_string)(single_ms)
names_i_ms := miqt_strdupg(names[i])
defer C.free(names_i_ms)
names_CArray[i] = (*C.struct_miqt_string)(names_i_ms)
}
names_ma := &C.struct_miqt_array{len: C.size_t(len(names)), data: unsafe.Pointer(names_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(names_ma))
@ -148,13 +148,13 @@ func NewQCommandLineOption8(names []string, description string, valueName string
// NewQCommandLineOption9 constructs a new QCommandLineOption object.
func NewQCommandLineOption9(names []string, description string, valueName string, defaultValue string) *QCommandLineOption {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
names_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(names))))
defer C.free(unsafe.Pointer(names_CArray))
for i := range names {
single_ms := miqt_strdupg(names[i])
defer C.free(single_ms)
names_CArray[i] = (*C.struct_miqt_string)(single_ms)
names_i_ms := miqt_strdupg(names[i])
defer C.free(names_i_ms)
names_CArray[i] = (*C.struct_miqt_string)(names_i_ms)
}
names_ma := &C.struct_miqt_array{len: C.size_t(len(names)), data: unsafe.Pointer(names_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(names_ma))
@ -181,8 +181,10 @@ func (this *QCommandLineOption) Names() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -221,13 +223,13 @@ func (this *QCommandLineOption) SetDefaultValue(defaultValue string) {
}
func (this *QCommandLineOption) SetDefaultValues(defaultValues []string) {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
defaultValues_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(defaultValues))))
defer C.free(unsafe.Pointer(defaultValues_CArray))
for i := range defaultValues {
single_ms := miqt_strdupg(defaultValues[i])
defer C.free(single_ms)
defaultValues_CArray[i] = (*C.struct_miqt_string)(single_ms)
defaultValues_i_ms := miqt_strdupg(defaultValues[i])
defer C.free(defaultValues_i_ms)
defaultValues_CArray[i] = (*C.struct_miqt_string)(defaultValues_i_ms)
}
defaultValues_ma := &C.struct_miqt_array{len: C.size_t(len(defaultValues)), data: unsafe.Pointer(defaultValues_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(defaultValues_ma))
@ -239,16 +241,17 @@ func (this *QCommandLineOption) DefaultValues() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QCommandLineOption) Flags() int {
_ret := C.QCommandLineOption_Flags(this.h)
return (int)(_ret)
return (int)(C.QCommandLineOption_Flags(this.h))
}
func (this *QCommandLineOption) SetFlags(aflags int) {
@ -260,8 +263,7 @@ func (this *QCommandLineOption) SetHidden(hidden bool) {
}
func (this *QCommandLineOption) IsHidden() bool {
_ret := C.QCommandLineOption_IsHidden(this.h)
return (bool)(_ret)
return (bool)(C.QCommandLineOption_IsHidden(this.h))
}
// Delete this object from C++ memory.

View File

@ -82,8 +82,7 @@ func (this *QCommandLineParser) SetOptionsAfterPositionalArgumentsMode(mode QCom
}
func (this *QCommandLineParser) AddOption(commandLineOption *QCommandLineOption) bool {
_ret := C.QCommandLineParser_AddOption(this.h, commandLineOption.cPointer())
return (bool)(_ret)
return (bool)(C.QCommandLineParser_AddOption(this.h, commandLineOption.cPointer()))
}
func (this *QCommandLineParser) AddOptions(options []QCommandLineOption) bool {
@ -95,8 +94,7 @@ func (this *QCommandLineParser) AddOptions(options []QCommandLineOption) bool {
}
options_ma := &C.struct_miqt_array{len: C.size_t(len(options)), data: unsafe.Pointer(options_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(options_ma))
_ret := C.QCommandLineParser_AddOptions(this.h, options_ma)
return (bool)(_ret)
return (bool)(C.QCommandLineParser_AddOptions(this.h, options_ma))
}
func (this *QCommandLineParser) AddVersionOption() *QCommandLineOption {
@ -139,13 +137,13 @@ func (this *QCommandLineParser) ClearPositionalArguments() {
}
func (this *QCommandLineParser) Process(arguments []string) {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
arguments_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(arguments))))
defer C.free(unsafe.Pointer(arguments_CArray))
for i := range arguments {
single_ms := miqt_strdupg(arguments[i])
defer C.free(single_ms)
arguments_CArray[i] = (*C.struct_miqt_string)(single_ms)
arguments_i_ms := miqt_strdupg(arguments[i])
defer C.free(arguments_i_ms)
arguments_CArray[i] = (*C.struct_miqt_string)(arguments_i_ms)
}
arguments_ma := &C.struct_miqt_array{len: C.size_t(len(arguments)), data: unsafe.Pointer(arguments_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(arguments_ma))
@ -157,18 +155,17 @@ func (this *QCommandLineParser) ProcessWithApp(app *QCoreApplication) {
}
func (this *QCommandLineParser) Parse(arguments []string) bool {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
arguments_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(arguments))))
defer C.free(unsafe.Pointer(arguments_CArray))
for i := range arguments {
single_ms := miqt_strdupg(arguments[i])
defer C.free(single_ms)
arguments_CArray[i] = (*C.struct_miqt_string)(single_ms)
arguments_i_ms := miqt_strdupg(arguments[i])
defer C.free(arguments_i_ms)
arguments_CArray[i] = (*C.struct_miqt_string)(arguments_i_ms)
}
arguments_ma := &C.struct_miqt_array{len: C.size_t(len(arguments)), data: unsafe.Pointer(arguments_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(arguments_ma))
_ret := C.QCommandLineParser_Parse(this.h, arguments_ma)
return (bool)(_ret)
return (bool)(C.QCommandLineParser_Parse(this.h, arguments_ma))
}
func (this *QCommandLineParser) ErrorText() string {
@ -181,8 +178,7 @@ func (this *QCommandLineParser) ErrorText() string {
func (this *QCommandLineParser) IsSet(name string) bool {
name_ms := miqt_strdupg(name)
defer C.free(name_ms)
_ret := C.QCommandLineParser_IsSet(this.h, (*C.struct_miqt_string)(name_ms))
return (bool)(_ret)
return (bool)(C.QCommandLineParser_IsSet(this.h, (*C.struct_miqt_string)(name_ms)))
}
func (this *QCommandLineParser) Value(name string) string {
@ -201,16 +197,17 @@ func (this *QCommandLineParser) Values(name string) []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QCommandLineParser) IsSetWithOption(option *QCommandLineOption) bool {
_ret := C.QCommandLineParser_IsSetWithOption(this.h, option.cPointer())
return (bool)(_ret)
return (bool)(C.QCommandLineParser_IsSetWithOption(this.h, option.cPointer()))
}
func (this *QCommandLineParser) ValueWithOption(option *QCommandLineOption) string {
@ -225,8 +222,10 @@ func (this *QCommandLineParser) ValuesWithOption(option *QCommandLineOption) []s
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -237,8 +236,10 @@ func (this *QCommandLineParser) PositionalArguments() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -249,8 +250,10 @@ func (this *QCommandLineParser) OptionNames() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -261,8 +264,10 @@ func (this *QCommandLineParser) UnknownOptionNames() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret

View File

@ -85,8 +85,7 @@ func NewQCommandLinkButton6(text string, description string, parent *QWidget) *Q
}
func (this *QCommandLinkButton) MetaObject() *QMetaObject {
_ret := C.QCommandLinkButton_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QCommandLinkButton_MetaObject(this.h)))
}
func QCommandLinkButton_Tr(s string) string {

View File

@ -43,8 +43,7 @@ func NewQCommonStyle() *QCommonStyle {
}
func (this *QCommonStyle) MetaObject() *QMetaObject {
_ret := C.QCommonStyle_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QCommonStyle_MetaObject(this.h)))
}
func QCommonStyle_Tr(s string) string {
@ -85,8 +84,7 @@ func (this *QCommonStyle) DrawComplexControl(cc QStyle__ComplexControl, opt *QSt
}
func (this *QCommonStyle) HitTestComplexControl(cc QStyle__ComplexControl, opt *QStyleOptionComplex, pt *QPoint) QStyle__SubControl {
_ret := C.QCommonStyle_HitTestComplexControl(this.h, (C.uintptr_t)(cc), opt.cPointer(), pt.cPointer())
return (QStyle__SubControl)(_ret)
return (QStyle__SubControl)(C.QCommonStyle_HitTestComplexControl(this.h, (C.uintptr_t)(cc), opt.cPointer(), pt.cPointer()))
}
func (this *QCommonStyle) SubControlRect(cc QStyle__ComplexControl, opt *QStyleOptionComplex, sc QStyle__SubControl) *QRect {
@ -104,13 +102,11 @@ func (this *QCommonStyle) SizeFromContents(ct QStyle__ContentsType, opt *QStyleO
}
func (this *QCommonStyle) PixelMetric(m QStyle__PixelMetric) int {
_ret := C.QCommonStyle_PixelMetric(this.h, (C.uintptr_t)(m))
return (int)(_ret)
return (int)(C.QCommonStyle_PixelMetric(this.h, (C.uintptr_t)(m)))
}
func (this *QCommonStyle) StyleHint(sh QStyle__StyleHint) int {
_ret := C.QCommonStyle_StyleHint(this.h, (C.uintptr_t)(sh))
return (int)(_ret)
return (int)(C.QCommonStyle_StyleHint(this.h, (C.uintptr_t)(sh)))
}
func (this *QCommonStyle) StandardIcon(standardIcon QStyle__StandardPixmap) *QIcon {
@ -135,8 +131,7 @@ func (this *QCommonStyle) GeneratedIconPixmap(iconMode QIcon__Mode, pixmap *QPix
}
func (this *QCommonStyle) LayoutSpacing(control1 QSizePolicy__ControlType, control2 QSizePolicy__ControlType, orientation Orientation) int {
_ret := C.QCommonStyle_LayoutSpacing(this.h, (C.uintptr_t)(control1), (C.uintptr_t)(control2), (C.uintptr_t)(orientation))
return (int)(_ret)
return (int)(C.QCommonStyle_LayoutSpacing(this.h, (C.uintptr_t)(control1), (C.uintptr_t)(control2), (C.uintptr_t)(orientation)))
}
func (this *QCommonStyle) Polish(param1 *QPalette) {
@ -223,8 +218,7 @@ func (this *QCommonStyle) DrawComplexControl4(cc QStyle__ComplexControl, opt *QS
}
func (this *QCommonStyle) HitTestComplexControl4(cc QStyle__ComplexControl, opt *QStyleOptionComplex, pt *QPoint, w *QWidget) QStyle__SubControl {
_ret := C.QCommonStyle_HitTestComplexControl4(this.h, (C.uintptr_t)(cc), opt.cPointer(), pt.cPointer(), w.cPointer())
return (QStyle__SubControl)(_ret)
return (QStyle__SubControl)(C.QCommonStyle_HitTestComplexControl4(this.h, (C.uintptr_t)(cc), opt.cPointer(), pt.cPointer(), w.cPointer()))
}
func (this *QCommonStyle) SubControlRect4(cc QStyle__ComplexControl, opt *QStyleOptionComplex, sc QStyle__SubControl, w *QWidget) *QRect {
@ -242,28 +236,23 @@ func (this *QCommonStyle) SizeFromContents4(ct QStyle__ContentsType, opt *QStyle
}
func (this *QCommonStyle) PixelMetric2(m QStyle__PixelMetric, opt *QStyleOption) int {
_ret := C.QCommonStyle_PixelMetric2(this.h, (C.uintptr_t)(m), opt.cPointer())
return (int)(_ret)
return (int)(C.QCommonStyle_PixelMetric2(this.h, (C.uintptr_t)(m), opt.cPointer()))
}
func (this *QCommonStyle) PixelMetric3(m QStyle__PixelMetric, opt *QStyleOption, widget *QWidget) int {
_ret := C.QCommonStyle_PixelMetric3(this.h, (C.uintptr_t)(m), opt.cPointer(), widget.cPointer())
return (int)(_ret)
return (int)(C.QCommonStyle_PixelMetric3(this.h, (C.uintptr_t)(m), opt.cPointer(), widget.cPointer()))
}
func (this *QCommonStyle) StyleHint2(sh QStyle__StyleHint, opt *QStyleOption) int {
_ret := C.QCommonStyle_StyleHint2(this.h, (C.uintptr_t)(sh), opt.cPointer())
return (int)(_ret)
return (int)(C.QCommonStyle_StyleHint2(this.h, (C.uintptr_t)(sh), opt.cPointer()))
}
func (this *QCommonStyle) StyleHint3(sh QStyle__StyleHint, opt *QStyleOption, w *QWidget) int {
_ret := C.QCommonStyle_StyleHint3(this.h, (C.uintptr_t)(sh), opt.cPointer(), w.cPointer())
return (int)(_ret)
return (int)(C.QCommonStyle_StyleHint3(this.h, (C.uintptr_t)(sh), opt.cPointer(), w.cPointer()))
}
func (this *QCommonStyle) StyleHint4(sh QStyle__StyleHint, opt *QStyleOption, w *QWidget, shret *QStyleHintReturn) int {
_ret := C.QCommonStyle_StyleHint4(this.h, (C.uintptr_t)(sh), opt.cPointer(), w.cPointer(), shret.cPointer())
return (int)(_ret)
return (int)(C.QCommonStyle_StyleHint4(this.h, (C.uintptr_t)(sh), opt.cPointer(), w.cPointer(), shret.cPointer()))
}
func (this *QCommonStyle) StandardIcon2(standardIcon QStyle__StandardPixmap, opt *QStyleOption) *QIcon {
@ -295,13 +284,11 @@ func (this *QCommonStyle) StandardPixmap3(sp QStyle__StandardPixmap, opt *QStyle
}
func (this *QCommonStyle) LayoutSpacing4(control1 QSizePolicy__ControlType, control2 QSizePolicy__ControlType, orientation Orientation, option *QStyleOption) int {
_ret := C.QCommonStyle_LayoutSpacing4(this.h, (C.uintptr_t)(control1), (C.uintptr_t)(control2), (C.uintptr_t)(orientation), option.cPointer())
return (int)(_ret)
return (int)(C.QCommonStyle_LayoutSpacing4(this.h, (C.uintptr_t)(control1), (C.uintptr_t)(control2), (C.uintptr_t)(orientation), option.cPointer()))
}
func (this *QCommonStyle) LayoutSpacing5(control1 QSizePolicy__ControlType, control2 QSizePolicy__ControlType, orientation Orientation, option *QStyleOption, widget *QWidget) int {
_ret := C.QCommonStyle_LayoutSpacing5(this.h, (C.uintptr_t)(control1), (C.uintptr_t)(control2), (C.uintptr_t)(orientation), option.cPointer(), widget.cPointer())
return (int)(_ret)
return (int)(C.QCommonStyle_LayoutSpacing5(this.h, (C.uintptr_t)(control1), (C.uintptr_t)(control2), (C.uintptr_t)(orientation), option.cPointer(), widget.cPointer()))
}
// Delete this object from C++ memory.

View File

@ -67,13 +67,13 @@ func NewQCompleter2(model *QAbstractItemModel) *QCompleter {
// NewQCompleter3 constructs a new QCompleter object.
func NewQCompleter3(completions []string) *QCompleter {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
completions_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(completions))))
defer C.free(unsafe.Pointer(completions_CArray))
for i := range completions {
single_ms := miqt_strdupg(completions[i])
defer C.free(single_ms)
completions_CArray[i] = (*C.struct_miqt_string)(single_ms)
completions_i_ms := miqt_strdupg(completions[i])
defer C.free(completions_i_ms)
completions_CArray[i] = (*C.struct_miqt_string)(completions_i_ms)
}
completions_ma := &C.struct_miqt_array{len: C.size_t(len(completions)), data: unsafe.Pointer(completions_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(completions_ma))
@ -95,13 +95,13 @@ func NewQCompleter5(model *QAbstractItemModel, parent *QObject) *QCompleter {
// NewQCompleter6 constructs a new QCompleter object.
func NewQCompleter6(completions []string, parent *QObject) *QCompleter {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
completions_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(completions))))
defer C.free(unsafe.Pointer(completions_CArray))
for i := range completions {
single_ms := miqt_strdupg(completions[i])
defer C.free(single_ms)
completions_CArray[i] = (*C.struct_miqt_string)(single_ms)
completions_i_ms := miqt_strdupg(completions[i])
defer C.free(completions_i_ms)
completions_CArray[i] = (*C.struct_miqt_string)(completions_i_ms)
}
completions_ma := &C.struct_miqt_array{len: C.size_t(len(completions)), data: unsafe.Pointer(completions_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(completions_ma))
@ -110,8 +110,7 @@ func NewQCompleter6(completions []string, parent *QObject) *QCompleter {
}
func (this *QCompleter) MetaObject() *QMetaObject {
_ret := C.QCompleter_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QCompleter_MetaObject(this.h)))
}
func QCompleter_Tr(s string) string {
@ -137,8 +136,7 @@ func (this *QCompleter) SetWidget(widget *QWidget) {
}
func (this *QCompleter) Widget() *QWidget {
_ret := C.QCompleter_Widget(this.h)
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QCompleter_Widget(this.h)))
}
func (this *QCompleter) SetModel(c *QAbstractItemModel) {
@ -146,8 +144,7 @@ func (this *QCompleter) SetModel(c *QAbstractItemModel) {
}
func (this *QCompleter) Model() *QAbstractItemModel {
_ret := C.QCompleter_Model(this.h)
return newQAbstractItemModel_U(unsafe.Pointer(_ret))
return newQAbstractItemModel_U(unsafe.Pointer(C.QCompleter_Model(this.h)))
}
func (this *QCompleter) SetCompletionMode(mode QCompleter__CompletionMode) {
@ -155,8 +152,7 @@ func (this *QCompleter) SetCompletionMode(mode QCompleter__CompletionMode) {
}
func (this *QCompleter) CompletionMode() QCompleter__CompletionMode {
_ret := C.QCompleter_CompletionMode(this.h)
return (QCompleter__CompletionMode)(_ret)
return (QCompleter__CompletionMode)(C.QCompleter_CompletionMode(this.h))
}
func (this *QCompleter) SetFilterMode(filterMode int) {
@ -164,13 +160,11 @@ func (this *QCompleter) SetFilterMode(filterMode int) {
}
func (this *QCompleter) FilterMode() int {
_ret := C.QCompleter_FilterMode(this.h)
return (int)(_ret)
return (int)(C.QCompleter_FilterMode(this.h))
}
func (this *QCompleter) Popup() *QAbstractItemView {
_ret := C.QCompleter_Popup(this.h)
return newQAbstractItemView_U(unsafe.Pointer(_ret))
return newQAbstractItemView_U(unsafe.Pointer(C.QCompleter_Popup(this.h)))
}
func (this *QCompleter) SetPopup(popup *QAbstractItemView) {
@ -182,8 +176,7 @@ func (this *QCompleter) SetCaseSensitivity(caseSensitivity CaseSensitivity) {
}
func (this *QCompleter) CaseSensitivity() CaseSensitivity {
_ret := C.QCompleter_CaseSensitivity(this.h)
return (CaseSensitivity)(_ret)
return (CaseSensitivity)(C.QCompleter_CaseSensitivity(this.h))
}
func (this *QCompleter) SetModelSorting(sorting QCompleter__ModelSorting) {
@ -191,8 +184,7 @@ func (this *QCompleter) SetModelSorting(sorting QCompleter__ModelSorting) {
}
func (this *QCompleter) ModelSorting() QCompleter__ModelSorting {
_ret := C.QCompleter_ModelSorting(this.h)
return (QCompleter__ModelSorting)(_ret)
return (QCompleter__ModelSorting)(C.QCompleter_ModelSorting(this.h))
}
func (this *QCompleter) SetCompletionColumn(column int) {
@ -200,8 +192,7 @@ func (this *QCompleter) SetCompletionColumn(column int) {
}
func (this *QCompleter) CompletionColumn() int {
_ret := C.QCompleter_CompletionColumn(this.h)
return (int)(_ret)
return (int)(C.QCompleter_CompletionColumn(this.h))
}
func (this *QCompleter) SetCompletionRole(role int) {
@ -209,18 +200,15 @@ func (this *QCompleter) SetCompletionRole(role int) {
}
func (this *QCompleter) CompletionRole() int {
_ret := C.QCompleter_CompletionRole(this.h)
return (int)(_ret)
return (int)(C.QCompleter_CompletionRole(this.h))
}
func (this *QCompleter) WrapAround() bool {
_ret := C.QCompleter_WrapAround(this.h)
return (bool)(_ret)
return (bool)(C.QCompleter_WrapAround(this.h))
}
func (this *QCompleter) MaxVisibleItems() int {
_ret := C.QCompleter_MaxVisibleItems(this.h)
return (int)(_ret)
return (int)(C.QCompleter_MaxVisibleItems(this.h))
}
func (this *QCompleter) SetMaxVisibleItems(maxItems int) {
@ -228,18 +216,15 @@ func (this *QCompleter) SetMaxVisibleItems(maxItems int) {
}
func (this *QCompleter) CompletionCount() int {
_ret := C.QCompleter_CompletionCount(this.h)
return (int)(_ret)
return (int)(C.QCompleter_CompletionCount(this.h))
}
func (this *QCompleter) SetCurrentRow(row int) bool {
_ret := C.QCompleter_SetCurrentRow(this.h, (C.int)(row))
return (bool)(_ret)
return (bool)(C.QCompleter_SetCurrentRow(this.h, (C.int)(row)))
}
func (this *QCompleter) CurrentRow() int {
_ret := C.QCompleter_CurrentRow(this.h)
return (int)(_ret)
return (int)(C.QCompleter_CurrentRow(this.h))
}
func (this *QCompleter) CurrentIndex() *QModelIndex {
@ -257,8 +242,7 @@ func (this *QCompleter) CurrentCompletion() string {
}
func (this *QCompleter) CompletionModel() *QAbstractItemModel {
_ret := C.QCompleter_CompletionModel(this.h)
return newQAbstractItemModel_U(unsafe.Pointer(_ret))
return newQAbstractItemModel_U(unsafe.Pointer(C.QCompleter_CompletionModel(this.h)))
}
func (this *QCompleter) CompletionPrefix() string {
@ -296,8 +280,10 @@ func (this *QCompleter) SplitPath(path string) []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -343,8 +329,7 @@ func miqt_exec_callback_QCompleter_ActivatedWithIndex(cb *C.void, index *C.QMode
}
// Convert all CABI parameters to Go parameters
index_ret := index
slotval1 := newQModelIndex_U(unsafe.Pointer(index_ret))
slotval1 := newQModelIndex_U(unsafe.Pointer(index))
gofunc(slotval1)
}
@ -389,8 +374,7 @@ func miqt_exec_callback_QCompleter_HighlightedWithIndex(cb *C.void, index *C.QMo
}
// Convert all CABI parameters to Go parameters
index_ret := index
slotval1 := newQModelIndex_U(unsafe.Pointer(index_ret))
slotval1 := newQModelIndex_U(unsafe.Pointer(index))
gofunc(slotval1)
}

View File

@ -49,8 +49,7 @@ func NewQConcatenateTablesProxyModel2(parent *QObject) *QConcatenateTablesProxyM
}
func (this *QConcatenateTablesProxyModel) MetaObject() *QMetaObject {
_ret := C.QConcatenateTablesProxyModel_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QConcatenateTablesProxyModel_MetaObject(this.h)))
}
func QConcatenateTablesProxyModel_Tr(s string) string {
@ -74,9 +73,9 @@ func QConcatenateTablesProxyModel_TrUtf8(s string) string {
func (this *QConcatenateTablesProxyModel) SourceModels() []*QAbstractItemModel {
var _ma *C.struct_miqt_array = C.QConcatenateTablesProxyModel_SourceModels(this.h)
_ret := make([]*QAbstractItemModel, int(_ma.len))
_outCast := (*[0xffff]*C.QAbstractItemModel)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QAbstractItemModel)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQAbstractItemModel(_outCast[i])
_ret[i] = newQAbstractItemModel_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -112,13 +111,11 @@ func (this *QConcatenateTablesProxyModel) Data(index *QModelIndex) *QVariant {
}
func (this *QConcatenateTablesProxyModel) SetData(index *QModelIndex, value *QVariant) bool {
_ret := C.QConcatenateTablesProxyModel_SetData(this.h, index.cPointer(), value.cPointer())
return (bool)(_ret)
return (bool)(C.QConcatenateTablesProxyModel_SetData(this.h, index.cPointer(), value.cPointer()))
}
func (this *QConcatenateTablesProxyModel) Flags(index *QModelIndex) int {
_ret := C.QConcatenateTablesProxyModel_Flags(this.h, index.cPointer())
return (int)(_ret)
return (int)(C.QConcatenateTablesProxyModel_Flags(this.h, index.cPointer()))
}
func (this *QConcatenateTablesProxyModel) Index(row int, column int) *QModelIndex {
@ -136,8 +133,7 @@ func (this *QConcatenateTablesProxyModel) Parent(index *QModelIndex) *QModelInde
}
func (this *QConcatenateTablesProxyModel) RowCount() int {
_ret := C.QConcatenateTablesProxyModel_RowCount(this.h)
return (int)(_ret)
return (int)(C.QConcatenateTablesProxyModel_RowCount(this.h))
}
func (this *QConcatenateTablesProxyModel) HeaderData(section int, orientation Orientation) *QVariant {
@ -148,8 +144,7 @@ func (this *QConcatenateTablesProxyModel) HeaderData(section int, orientation Or
}
func (this *QConcatenateTablesProxyModel) ColumnCount() int {
_ret := C.QConcatenateTablesProxyModel_ColumnCount(this.h)
return (int)(_ret)
return (int)(C.QConcatenateTablesProxyModel_ColumnCount(this.h))
}
func (this *QConcatenateTablesProxyModel) MimeTypes() []string {
@ -157,8 +152,10 @@ func (this *QConcatenateTablesProxyModel) MimeTypes() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -173,18 +170,15 @@ func (this *QConcatenateTablesProxyModel) MimeData(indexes []QModelIndex) *QMime
}
indexes_ma := &C.struct_miqt_array{len: C.size_t(len(indexes)), data: unsafe.Pointer(indexes_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(indexes_ma))
_ret := C.QConcatenateTablesProxyModel_MimeData(this.h, indexes_ma)
return newQMimeData_U(unsafe.Pointer(_ret))
return newQMimeData_U(unsafe.Pointer(C.QConcatenateTablesProxyModel_MimeData(this.h, indexes_ma)))
}
func (this *QConcatenateTablesProxyModel) CanDropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool {
_ret := C.QConcatenateTablesProxyModel_CanDropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QConcatenateTablesProxyModel_CanDropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QConcatenateTablesProxyModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool {
_ret := C.QConcatenateTablesProxyModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QConcatenateTablesProxyModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QConcatenateTablesProxyModel) Span(index *QModelIndex) *QSize {
@ -246,8 +240,7 @@ func (this *QConcatenateTablesProxyModel) Data2(index *QModelIndex, role int) *Q
}
func (this *QConcatenateTablesProxyModel) SetData3(index *QModelIndex, value *QVariant, role int) bool {
_ret := C.QConcatenateTablesProxyModel_SetData3(this.h, index.cPointer(), value.cPointer(), (C.int)(role))
return (bool)(_ret)
return (bool)(C.QConcatenateTablesProxyModel_SetData3(this.h, index.cPointer(), value.cPointer(), (C.int)(role)))
}
func (this *QConcatenateTablesProxyModel) Index3(row int, column int, parent *QModelIndex) *QModelIndex {
@ -258,8 +251,7 @@ func (this *QConcatenateTablesProxyModel) Index3(row int, column int, parent *QM
}
func (this *QConcatenateTablesProxyModel) RowCount1(parent *QModelIndex) int {
_ret := C.QConcatenateTablesProxyModel_RowCount1(this.h, parent.cPointer())
return (int)(_ret)
return (int)(C.QConcatenateTablesProxyModel_RowCount1(this.h, parent.cPointer()))
}
func (this *QConcatenateTablesProxyModel) HeaderData3(section int, orientation Orientation, role int) *QVariant {
@ -270,8 +262,7 @@ func (this *QConcatenateTablesProxyModel) HeaderData3(section int, orientation O
}
func (this *QConcatenateTablesProxyModel) ColumnCount1(parent *QModelIndex) int {
_ret := C.QConcatenateTablesProxyModel_ColumnCount1(this.h, parent.cPointer())
return (int)(_ret)
return (int)(C.QConcatenateTablesProxyModel_ColumnCount1(this.h, parent.cPointer()))
}
// Delete this object from C++ memory.

View File

@ -36,8 +36,7 @@ func newQContiguousCacheData_U(h unsafe.Pointer) *QContiguousCacheData {
}
func QContiguousCacheData_AllocateData(size int, alignment int) *QContiguousCacheData {
_ret := C.QContiguousCacheData_AllocateData((C.int)(size), (C.int)(alignment))
return newQContiguousCacheData_U(unsafe.Pointer(_ret))
return newQContiguousCacheData_U(unsafe.Pointer(C.QContiguousCacheData_AllocateData((C.int)(size), (C.int)(alignment))))
}
func QContiguousCacheData_FreeData(data *QContiguousCacheData) {

View File

@ -70,8 +70,7 @@ func NewQCoreApplication2(args []string, param3 int) *QCoreApplication {
}
func (this *QCoreApplication) MetaObject() *QMetaObject {
_ret := C.QCoreApplication_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QCoreApplication_MetaObject(this.h)))
}
func QCoreApplication_Tr(s string) string {
@ -97,8 +96,10 @@ func QCoreApplication_Arguments() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -109,8 +110,7 @@ func QCoreApplication_SetAttribute(attribute ApplicationAttribute) {
}
func QCoreApplication_TestAttribute(attribute ApplicationAttribute) bool {
_ret := C.QCoreApplication_TestAttribute((C.uintptr_t)(attribute))
return (bool)(_ret)
return (bool)(C.QCoreApplication_TestAttribute((C.uintptr_t)(attribute)))
}
func QCoreApplication_SetOrganizationDomain(orgDomain string) {
@ -170,18 +170,15 @@ func QCoreApplication_SetSetuidAllowed(allow bool) {
}
func QCoreApplication_IsSetuidAllowed() bool {
_ret := C.QCoreApplication_IsSetuidAllowed()
return (bool)(_ret)
return (bool)(C.QCoreApplication_IsSetuidAllowed())
}
func QCoreApplication_Instance() *QCoreApplication {
_ret := C.QCoreApplication_Instance()
return newQCoreApplication_U(unsafe.Pointer(_ret))
return newQCoreApplication_U(unsafe.Pointer(C.QCoreApplication_Instance()))
}
func QCoreApplication_Exec() int {
_ret := C.QCoreApplication_Exec()
return (int)(_ret)
return (int)(C.QCoreApplication_Exec())
}
func QCoreApplication_ProcessEvents() {
@ -197,8 +194,7 @@ func QCoreApplication_Exit() {
}
func QCoreApplication_SendEvent(receiver *QObject, event *QEvent) bool {
_ret := C.QCoreApplication_SendEvent(receiver.cPointer(), event.cPointer())
return (bool)(_ret)
return (bool)(C.QCoreApplication_SendEvent(receiver.cPointer(), event.cPointer()))
}
func QCoreApplication_PostEvent(receiver *QObject, event *QEvent) {
@ -214,13 +210,11 @@ func QCoreApplication_RemovePostedEvents(receiver *QObject) {
}
func QCoreApplication_HasPendingEvents() bool {
_ret := C.QCoreApplication_HasPendingEvents()
return (bool)(_ret)
return (bool)(C.QCoreApplication_HasPendingEvents())
}
func QCoreApplication_EventDispatcher() *QAbstractEventDispatcher {
_ret := C.QCoreApplication_EventDispatcher()
return newQAbstractEventDispatcher_U(unsafe.Pointer(_ret))
return newQAbstractEventDispatcher_U(unsafe.Pointer(C.QCoreApplication_EventDispatcher()))
}
func QCoreApplication_SetEventDispatcher(eventDispatcher *QAbstractEventDispatcher) {
@ -228,18 +222,15 @@ func QCoreApplication_SetEventDispatcher(eventDispatcher *QAbstractEventDispatch
}
func (this *QCoreApplication) Notify(param1 *QObject, param2 *QEvent) bool {
_ret := C.QCoreApplication_Notify(this.h, param1.cPointer(), param2.cPointer())
return (bool)(_ret)
return (bool)(C.QCoreApplication_Notify(this.h, param1.cPointer(), param2.cPointer()))
}
func QCoreApplication_StartingUp() bool {
_ret := C.QCoreApplication_StartingUp()
return (bool)(_ret)
return (bool)(C.QCoreApplication_StartingUp())
}
func QCoreApplication_ClosingDown() bool {
_ret := C.QCoreApplication_ClosingDown()
return (bool)(_ret)
return (bool)(C.QCoreApplication_ClosingDown())
}
func QCoreApplication_ApplicationDirPath() string {
@ -257,18 +248,17 @@ func QCoreApplication_ApplicationFilePath() string {
}
func QCoreApplication_ApplicationPid() int64 {
_ret := C.QCoreApplication_ApplicationPid()
return (int64)(_ret)
return (int64)(C.QCoreApplication_ApplicationPid())
}
func QCoreApplication_SetLibraryPaths(libraryPaths []string) {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
libraryPaths_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(libraryPaths))))
defer C.free(unsafe.Pointer(libraryPaths_CArray))
for i := range libraryPaths {
single_ms := miqt_strdupg(libraryPaths[i])
defer C.free(single_ms)
libraryPaths_CArray[i] = (*C.struct_miqt_string)(single_ms)
libraryPaths_i_ms := miqt_strdupg(libraryPaths[i])
defer C.free(libraryPaths_i_ms)
libraryPaths_CArray[i] = (*C.struct_miqt_string)(libraryPaths_i_ms)
}
libraryPaths_ma := &C.struct_miqt_array{len: C.size_t(len(libraryPaths)), data: unsafe.Pointer(libraryPaths_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(libraryPaths_ma))
@ -280,8 +270,10 @@ func QCoreApplication_LibraryPaths() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -300,13 +292,11 @@ func QCoreApplication_RemoveLibraryPath(param1 string) {
}
func QCoreApplication_InstallTranslator(messageFile *QTranslator) bool {
_ret := C.QCoreApplication_InstallTranslator(messageFile.cPointer())
return (bool)(_ret)
return (bool)(C.QCoreApplication_InstallTranslator(messageFile.cPointer()))
}
func QCoreApplication_RemoveTranslator(messageFile *QTranslator) bool {
_ret := C.QCoreApplication_RemoveTranslator(messageFile.cPointer())
return (bool)(_ret)
return (bool)(C.QCoreApplication_RemoveTranslator(messageFile.cPointer()))
}
func QCoreApplication_Translate(context string, key string) string {
@ -333,8 +323,7 @@ func (this *QCoreApplication) RemoveNativeEventFilter(filterObj *QAbstractNative
}
func QCoreApplication_IsQuitLockEnabled() bool {
_ret := C.QCoreApplication_IsQuitLockEnabled()
return (bool)(_ret)
return (bool)(C.QCoreApplication_IsQuitLockEnabled())
}
func QCoreApplication_SetQuitLockEnabled(enabled bool) {

View File

@ -229,13 +229,11 @@ func (this *QEvent) OperatorAssign(other *QEvent) {
}
func (this *QEvent) Type() QEvent__Type {
_ret := C.QEvent_Type(this.h)
return (QEvent__Type)(_ret)
return (QEvent__Type)(C.QEvent_Type(this.h))
}
func (this *QEvent) Spontaneous() bool {
_ret := C.QEvent_Spontaneous(this.h)
return (bool)(_ret)
return (bool)(C.QEvent_Spontaneous(this.h))
}
func (this *QEvent) SetAccepted(accepted bool) {
@ -243,8 +241,7 @@ func (this *QEvent) SetAccepted(accepted bool) {
}
func (this *QEvent) IsAccepted() bool {
_ret := C.QEvent_IsAccepted(this.h)
return (bool)(_ret)
return (bool)(C.QEvent_IsAccepted(this.h))
}
func (this *QEvent) Accept() {
@ -256,13 +253,11 @@ func (this *QEvent) Ignore() {
}
func QEvent_RegisterEventType() int {
_ret := C.QEvent_RegisterEventType()
return (int)(_ret)
return (int)(C.QEvent_RegisterEventType())
}
func QEvent_RegisterEventType1(hint int) int {
_ret := C.QEvent_RegisterEventType1((C.int)(hint))
return (int)(_ret)
return (int)(C.QEvent_RegisterEventType1((C.int)(hint)))
}
// Delete this object from C++ memory.
@ -315,8 +310,7 @@ func NewQTimerEvent2(param1 *QTimerEvent) *QTimerEvent {
}
func (this *QTimerEvent) TimerId() int {
_ret := C.QTimerEvent_TimerId(this.h)
return (int)(_ret)
return (int)(C.QTimerEvent_TimerId(this.h))
}
// Delete this object from C++ memory.
@ -369,23 +363,19 @@ func NewQChildEvent2(param1 *QChildEvent) *QChildEvent {
}
func (this *QChildEvent) Child() *QObject {
_ret := C.QChildEvent_Child(this.h)
return newQObject_U(unsafe.Pointer(_ret))
return newQObject_U(unsafe.Pointer(C.QChildEvent_Child(this.h)))
}
func (this *QChildEvent) Added() bool {
_ret := C.QChildEvent_Added(this.h)
return (bool)(_ret)
return (bool)(C.QChildEvent_Added(this.h))
}
func (this *QChildEvent) Polished() bool {
_ret := C.QChildEvent_Polished(this.h)
return (bool)(_ret)
return (bool)(C.QChildEvent_Polished(this.h))
}
func (this *QChildEvent) Removed() bool {
_ret := C.QChildEvent_Removed(this.h)
return (bool)(_ret)
return (bool)(C.QChildEvent_Removed(this.h))
}
// Delete this object from C++ memory.
@ -494,8 +484,7 @@ func NewQDeferredDeleteEvent2(param1 *QDeferredDeleteEvent) *QDeferredDeleteEven
}
func (this *QDeferredDeleteEvent) LoopLevel() int {
_ret := C.QDeferredDeleteEvent_LoopLevel(this.h)
return (int)(_ret)
return (int)(C.QDeferredDeleteEvent_LoopLevel(this.h))
}
// Delete this object from C++ memory.

View File

@ -80,8 +80,7 @@ func (this *QCryptographicHash) AddDataWithData(data *QByteArray) {
}
func (this *QCryptographicHash) AddDataWithDevice(device *QIODevice) bool {
_ret := C.QCryptographicHash_AddDataWithDevice(this.h, device.cPointer())
return (bool)(_ret)
return (bool)(C.QCryptographicHash_AddDataWithDevice(this.h, device.cPointer()))
}
func (this *QCryptographicHash) Result() *QByteArray {
@ -99,8 +98,7 @@ func QCryptographicHash_Hash(data *QByteArray, method QCryptographicHash__Algori
}
func QCryptographicHash_HashLength(method QCryptographicHash__Algorithm) int {
_ret := C.QCryptographicHash_HashLength((C.uintptr_t)(method))
return (int)(_ret)
return (int)(C.QCryptographicHash_HashLength((C.uintptr_t)(method)))
}
// Delete this object from C++ memory.

View File

@ -98,8 +98,7 @@ func (this *QCursor) Swap(other *QCursor) {
}
func (this *QCursor) Shape() CursorShape {
_ret := C.QCursor_Shape(this.h)
return (CursorShape)(_ret)
return (CursorShape)(C.QCursor_Shape(this.h))
}
func (this *QCursor) SetShape(newShape CursorShape) {
@ -107,13 +106,11 @@ func (this *QCursor) SetShape(newShape CursorShape) {
}
func (this *QCursor) Bitmap() *QBitmap {
_ret := C.QCursor_Bitmap(this.h)
return newQBitmap_U(unsafe.Pointer(_ret))
return newQBitmap_U(unsafe.Pointer(C.QCursor_Bitmap(this.h)))
}
func (this *QCursor) Mask() *QBitmap {
_ret := C.QCursor_Mask(this.h)
return newQBitmap_U(unsafe.Pointer(_ret))
return newQBitmap_U(unsafe.Pointer(C.QCursor_Mask(this.h)))
}
func (this *QCursor) BitmapWithQtReturnByValueConstant(param1 ReturnByValueConstant) *QBitmap {

View File

@ -121,8 +121,7 @@ func NewQDataStream4(param1 *QByteArray) *QDataStream {
}
func (this *QDataStream) Device() *QIODevice {
_ret := C.QDataStream_Device(this.h)
return newQIODevice_U(unsafe.Pointer(_ret))
return newQIODevice_U(unsafe.Pointer(C.QDataStream_Device(this.h)))
}
func (this *QDataStream) SetDevice(device *QIODevice) {
@ -134,13 +133,11 @@ func (this *QDataStream) UnsetDevice() {
}
func (this *QDataStream) AtEnd() bool {
_ret := C.QDataStream_AtEnd(this.h)
return (bool)(_ret)
return (bool)(C.QDataStream_AtEnd(this.h))
}
func (this *QDataStream) Status() QDataStream__Status {
_ret := C.QDataStream_Status(this.h)
return (QDataStream__Status)(_ret)
return (QDataStream__Status)(C.QDataStream_Status(this.h))
}
func (this *QDataStream) SetStatus(status QDataStream__Status) {
@ -152,8 +149,7 @@ func (this *QDataStream) ResetStatus() {
}
func (this *QDataStream) FloatingPointPrecision() QDataStream__FloatingPointPrecision {
_ret := C.QDataStream_FloatingPointPrecision(this.h)
return (QDataStream__FloatingPointPrecision)(_ret)
return (QDataStream__FloatingPointPrecision)(C.QDataStream_FloatingPointPrecision(this.h))
}
func (this *QDataStream) SetFloatingPointPrecision(precision QDataStream__FloatingPointPrecision) {
@ -161,8 +157,7 @@ func (this *QDataStream) SetFloatingPointPrecision(precision QDataStream__Floati
}
func (this *QDataStream) ByteOrder() QDataStream__ByteOrder {
_ret := C.QDataStream_ByteOrder(this.h)
return (QDataStream__ByteOrder)(_ret)
return (QDataStream__ByteOrder)(C.QDataStream_ByteOrder(this.h))
}
func (this *QDataStream) SetByteOrder(byteOrder QDataStream__ByteOrder) {
@ -170,8 +165,7 @@ func (this *QDataStream) SetByteOrder(byteOrder QDataStream__ByteOrder) {
}
func (this *QDataStream) Version() int {
_ret := C.QDataStream_Version(this.h)
return (int)(_ret)
return (int)(C.QDataStream_Version(this.h))
}
func (this *QDataStream) SetVersion(version int) {
@ -281,15 +275,13 @@ func (this *QDataStream) OperatorShiftLeftWithStr(str string) {
func (this *QDataStream) ReadBytes(param1 string, lenVal *uint) *QDataStream {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
_ret := C.QDataStream_ReadBytes(this.h, param1_Cstring, (*C.uint)(unsafe.Pointer(lenVal)))
return newQDataStream_U(unsafe.Pointer(_ret))
return newQDataStream_U(unsafe.Pointer(C.QDataStream_ReadBytes(this.h, param1_Cstring, (*C.uint)(unsafe.Pointer(lenVal)))))
}
func (this *QDataStream) ReadRawData(param1 string, lenVal int) int {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
_ret := C.QDataStream_ReadRawData(this.h, param1_Cstring, (C.int)(lenVal))
return (int)(_ret)
return (int)(C.QDataStream_ReadRawData(this.h, param1_Cstring, (C.int)(lenVal)))
}
func (this *QDataStream) WriteBytes(param1 string, lenVal uint) {
@ -301,13 +293,11 @@ func (this *QDataStream) WriteBytes(param1 string, lenVal uint) {
func (this *QDataStream) WriteRawData(param1 string, lenVal int) int {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
_ret := C.QDataStream_WriteRawData(this.h, param1_Cstring, (C.int)(lenVal))
return (int)(_ret)
return (int)(C.QDataStream_WriteRawData(this.h, param1_Cstring, (C.int)(lenVal)))
}
func (this *QDataStream) SkipRawData(lenVal int) int {
_ret := C.QDataStream_SkipRawData(this.h, (C.int)(lenVal))
return (int)(_ret)
return (int)(C.QDataStream_SkipRawData(this.h, (C.int)(lenVal)))
}
func (this *QDataStream) StartTransaction() {
@ -315,8 +305,7 @@ func (this *QDataStream) StartTransaction() {
}
func (this *QDataStream) CommitTransaction() bool {
_ret := C.QDataStream_CommitTransaction(this.h)
return (bool)(_ret)
return (bool)(C.QDataStream_CommitTransaction(this.h))
}
func (this *QDataStream) RollbackTransaction() {

View File

@ -57,8 +57,7 @@ func NewQDataWidgetMapper2(parent *QObject) *QDataWidgetMapper {
}
func (this *QDataWidgetMapper) MetaObject() *QMetaObject {
_ret := C.QDataWidgetMapper_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QDataWidgetMapper_MetaObject(this.h)))
}
func QDataWidgetMapper_Tr(s string) string {
@ -84,8 +83,7 @@ func (this *QDataWidgetMapper) SetModel(model *QAbstractItemModel) {
}
func (this *QDataWidgetMapper) Model() *QAbstractItemModel {
_ret := C.QDataWidgetMapper_Model(this.h)
return newQAbstractItemModel_U(unsafe.Pointer(_ret))
return newQAbstractItemModel_U(unsafe.Pointer(C.QDataWidgetMapper_Model(this.h)))
}
func (this *QDataWidgetMapper) SetItemDelegate(delegate *QAbstractItemDelegate) {
@ -93,8 +91,7 @@ func (this *QDataWidgetMapper) SetItemDelegate(delegate *QAbstractItemDelegate)
}
func (this *QDataWidgetMapper) ItemDelegate() *QAbstractItemDelegate {
_ret := C.QDataWidgetMapper_ItemDelegate(this.h)
return newQAbstractItemDelegate_U(unsafe.Pointer(_ret))
return newQAbstractItemDelegate_U(unsafe.Pointer(C.QDataWidgetMapper_ItemDelegate(this.h)))
}
func (this *QDataWidgetMapper) SetRootIndex(index *QModelIndex) {
@ -113,8 +110,7 @@ func (this *QDataWidgetMapper) SetOrientation(aOrientation Orientation) {
}
func (this *QDataWidgetMapper) Orientation() Orientation {
_ret := C.QDataWidgetMapper_Orientation(this.h)
return (Orientation)(_ret)
return (Orientation)(C.QDataWidgetMapper_Orientation(this.h))
}
func (this *QDataWidgetMapper) SetSubmitPolicy(policy QDataWidgetMapper__SubmitPolicy) {
@ -122,8 +118,7 @@ func (this *QDataWidgetMapper) SetSubmitPolicy(policy QDataWidgetMapper__SubmitP
}
func (this *QDataWidgetMapper) SubmitPolicy() QDataWidgetMapper__SubmitPolicy {
_ret := C.QDataWidgetMapper_SubmitPolicy(this.h)
return (QDataWidgetMapper__SubmitPolicy)(_ret)
return (QDataWidgetMapper__SubmitPolicy)(C.QDataWidgetMapper_SubmitPolicy(this.h))
}
func (this *QDataWidgetMapper) AddMapping(widget *QWidget, section int) {
@ -139,8 +134,7 @@ func (this *QDataWidgetMapper) RemoveMapping(widget *QWidget) {
}
func (this *QDataWidgetMapper) MappedSection(widget *QWidget) int {
_ret := C.QDataWidgetMapper_MappedSection(this.h, widget.cPointer())
return (int)(_ret)
return (int)(C.QDataWidgetMapper_MappedSection(this.h, widget.cPointer()))
}
func (this *QDataWidgetMapper) MappedPropertyName(widget *QWidget) *QByteArray {
@ -151,8 +145,7 @@ func (this *QDataWidgetMapper) MappedPropertyName(widget *QWidget) *QByteArray {
}
func (this *QDataWidgetMapper) MappedWidgetAt(section int) *QWidget {
_ret := C.QDataWidgetMapper_MappedWidgetAt(this.h, (C.int)(section))
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QDataWidgetMapper_MappedWidgetAt(this.h, (C.int)(section))))
}
func (this *QDataWidgetMapper) ClearMapping() {
@ -160,8 +153,7 @@ func (this *QDataWidgetMapper) ClearMapping() {
}
func (this *QDataWidgetMapper) CurrentIndex() int {
_ret := C.QDataWidgetMapper_CurrentIndex(this.h)
return (int)(_ret)
return (int)(C.QDataWidgetMapper_CurrentIndex(this.h))
}
func (this *QDataWidgetMapper) Revert() {
@ -169,8 +161,7 @@ func (this *QDataWidgetMapper) Revert() {
}
func (this *QDataWidgetMapper) Submit() bool {
_ret := C.QDataWidgetMapper_Submit(this.h)
return (bool)(_ret)
return (bool)(C.QDataWidgetMapper_Submit(this.h))
}
func (this *QDataWidgetMapper) ToFirst() {
@ -212,8 +203,7 @@ func miqt_exec_callback_QDataWidgetMapper_CurrentIndexChanged(cb *C.void, index
}
// Convert all CABI parameters to Go parameters
index_ret := index
slotval1 := (int)(index_ret)
slotval1 := (int)(index)
gofunc(slotval1)
}

View File

@ -74,88 +74,71 @@ func NewQDate4(param1 *QDate) *QDate {
}
func (this *QDate) IsNull() bool {
_ret := C.QDate_IsNull(this.h)
return (bool)(_ret)
return (bool)(C.QDate_IsNull(this.h))
}
func (this *QDate) IsValid() bool {
_ret := C.QDate_IsValid(this.h)
return (bool)(_ret)
return (bool)(C.QDate_IsValid(this.h))
}
func (this *QDate) Year() int {
_ret := C.QDate_Year(this.h)
return (int)(_ret)
return (int)(C.QDate_Year(this.h))
}
func (this *QDate) Month() int {
_ret := C.QDate_Month(this.h)
return (int)(_ret)
return (int)(C.QDate_Month(this.h))
}
func (this *QDate) Day() int {
_ret := C.QDate_Day(this.h)
return (int)(_ret)
return (int)(C.QDate_Day(this.h))
}
func (this *QDate) DayOfWeek() int {
_ret := C.QDate_DayOfWeek(this.h)
return (int)(_ret)
return (int)(C.QDate_DayOfWeek(this.h))
}
func (this *QDate) DayOfYear() int {
_ret := C.QDate_DayOfYear(this.h)
return (int)(_ret)
return (int)(C.QDate_DayOfYear(this.h))
}
func (this *QDate) DaysInMonth() int {
_ret := C.QDate_DaysInMonth(this.h)
return (int)(_ret)
return (int)(C.QDate_DaysInMonth(this.h))
}
func (this *QDate) DaysInYear() int {
_ret := C.QDate_DaysInYear(this.h)
return (int)(_ret)
return (int)(C.QDate_DaysInYear(this.h))
}
func (this *QDate) WeekNumber() int {
_ret := C.QDate_WeekNumber(this.h)
return (int)(_ret)
return (int)(C.QDate_WeekNumber(this.h))
}
func (this *QDate) YearWithCal(cal QCalendar) int {
_ret := C.QDate_YearWithCal(this.h, cal.cPointer())
return (int)(_ret)
return (int)(C.QDate_YearWithCal(this.h, cal.cPointer()))
}
func (this *QDate) MonthWithCal(cal QCalendar) int {
_ret := C.QDate_MonthWithCal(this.h, cal.cPointer())
return (int)(_ret)
return (int)(C.QDate_MonthWithCal(this.h, cal.cPointer()))
}
func (this *QDate) DayWithCal(cal QCalendar) int {
_ret := C.QDate_DayWithCal(this.h, cal.cPointer())
return (int)(_ret)
return (int)(C.QDate_DayWithCal(this.h, cal.cPointer()))
}
func (this *QDate) DayOfWeekWithCal(cal QCalendar) int {
_ret := C.QDate_DayOfWeekWithCal(this.h, cal.cPointer())
return (int)(_ret)
return (int)(C.QDate_DayOfWeekWithCal(this.h, cal.cPointer()))
}
func (this *QDate) DayOfYearWithCal(cal QCalendar) int {
_ret := C.QDate_DayOfYearWithCal(this.h, cal.cPointer())
return (int)(_ret)
return (int)(C.QDate_DayOfYearWithCal(this.h, cal.cPointer()))
}
func (this *QDate) DaysInMonthWithCal(cal QCalendar) int {
_ret := C.QDate_DaysInMonthWithCal(this.h, cal.cPointer())
return (int)(_ret)
return (int)(C.QDate_DaysInMonthWithCal(this.h, cal.cPointer()))
}
func (this *QDate) DaysInYearWithCal(cal QCalendar) int {
_ret := C.QDate_DaysInYearWithCal(this.h, cal.cPointer())
return (int)(_ret)
return (int)(C.QDate_DaysInYearWithCal(this.h, cal.cPointer()))
}
func (this *QDate) StartOfDay() *QDateTime {
@ -247,13 +230,11 @@ func (this *QDate) ToString3(format string, cal QCalendar) string {
}
func (this *QDate) SetDate(year int, month int, day int) bool {
_ret := C.QDate_SetDate(this.h, (C.int)(year), (C.int)(month), (C.int)(day))
return (bool)(_ret)
return (bool)(C.QDate_SetDate(this.h, (C.int)(year), (C.int)(month), (C.int)(day)))
}
func (this *QDate) SetDate2(year int, month int, day int, cal QCalendar) bool {
_ret := C.QDate_SetDate2(this.h, (C.int)(year), (C.int)(month), (C.int)(day), cal.cPointer())
return (bool)(_ret)
return (bool)(C.QDate_SetDate2(this.h, (C.int)(year), (C.int)(month), (C.int)(day), cal.cPointer()))
}
func (this *QDate) GetDate(year *int, month *int, day *int) {
@ -300,38 +281,31 @@ func (this *QDate) AddYears2(years int, cal QCalendar) *QDate {
}
func (this *QDate) DaysTo(param1 *QDate) int64 {
_ret := C.QDate_DaysTo(this.h, param1.cPointer())
return (int64)(_ret)
return (int64)(C.QDate_DaysTo(this.h, param1.cPointer()))
}
func (this *QDate) OperatorEqual(other *QDate) bool {
_ret := C.QDate_OperatorEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QDate_OperatorEqual(this.h, other.cPointer()))
}
func (this *QDate) OperatorNotEqual(other *QDate) bool {
_ret := C.QDate_OperatorNotEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QDate_OperatorNotEqual(this.h, other.cPointer()))
}
func (this *QDate) OperatorLesser(other *QDate) bool {
_ret := C.QDate_OperatorLesser(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QDate_OperatorLesser(this.h, other.cPointer()))
}
func (this *QDate) OperatorLesserOrEqual(other *QDate) bool {
_ret := C.QDate_OperatorLesserOrEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QDate_OperatorLesserOrEqual(this.h, other.cPointer()))
}
func (this *QDate) OperatorGreater(other *QDate) bool {
_ret := C.QDate_OperatorGreater(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QDate_OperatorGreater(this.h, other.cPointer()))
}
func (this *QDate) OperatorGreaterOrEqual(other *QDate) bool {
_ret := C.QDate_OperatorGreaterOrEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QDate_OperatorGreaterOrEqual(this.h, other.cPointer()))
}
func QDate_CurrentDate() *QDate {
@ -373,13 +347,11 @@ func QDate_FromString3(s string, format string, cal QCalendar) *QDate {
}
func QDate_IsValid2(y int, m int, d int) bool {
_ret := C.QDate_IsValid2((C.int)(y), (C.int)(m), (C.int)(d))
return (bool)(_ret)
return (bool)(C.QDate_IsValid2((C.int)(y), (C.int)(m), (C.int)(d)))
}
func QDate_IsLeapYear(year int) bool {
_ret := C.QDate_IsLeapYear((C.int)(year))
return (bool)(_ret)
return (bool)(C.QDate_IsLeapYear((C.int)(year)))
}
func QDate_FromJulianDay(jd_ int64) *QDate {
@ -390,13 +362,11 @@ func QDate_FromJulianDay(jd_ int64) *QDate {
}
func (this *QDate) ToJulianDay() int64 {
_ret := C.QDate_ToJulianDay(this.h)
return (int64)(_ret)
return (int64)(C.QDate_ToJulianDay(this.h))
}
func (this *QDate) WeekNumber1(yearNum *int) int {
_ret := C.QDate_WeekNumber1(this.h, (*C.int)(unsafe.Pointer(yearNum)))
return (int)(_ret)
return (int)(C.QDate_WeekNumber1(this.h, (*C.int)(unsafe.Pointer(yearNum))))
}
func (this *QDate) StartOfDay1(spec TimeSpec) *QDateTime {
@ -538,33 +508,27 @@ func NewQTime5(h int, m int, s int, ms int) *QTime {
}
func (this *QTime) IsNull() bool {
_ret := C.QTime_IsNull(this.h)
return (bool)(_ret)
return (bool)(C.QTime_IsNull(this.h))
}
func (this *QTime) IsValid() bool {
_ret := C.QTime_IsValid(this.h)
return (bool)(_ret)
return (bool)(C.QTime_IsValid(this.h))
}
func (this *QTime) Hour() int {
_ret := C.QTime_Hour(this.h)
return (int)(_ret)
return (int)(C.QTime_Hour(this.h))
}
func (this *QTime) Minute() int {
_ret := C.QTime_Minute(this.h)
return (int)(_ret)
return (int)(C.QTime_Minute(this.h))
}
func (this *QTime) Second() int {
_ret := C.QTime_Second(this.h)
return (int)(_ret)
return (int)(C.QTime_Second(this.h))
}
func (this *QTime) Msec() int {
_ret := C.QTime_Msec(this.h)
return (int)(_ret)
return (int)(C.QTime_Msec(this.h))
}
func (this *QTime) ToString() string {
@ -584,8 +548,7 @@ func (this *QTime) ToStringWithFormat(format string) string {
}
func (this *QTime) SetHMS(h int, m int, s int) bool {
_ret := C.QTime_SetHMS(this.h, (C.int)(h), (C.int)(m), (C.int)(s))
return (bool)(_ret)
return (bool)(C.QTime_SetHMS(this.h, (C.int)(h), (C.int)(m), (C.int)(s)))
}
func (this *QTime) AddSecs(secs int) *QTime {
@ -596,8 +559,7 @@ func (this *QTime) AddSecs(secs int) *QTime {
}
func (this *QTime) SecsTo(param1 *QTime) int {
_ret := C.QTime_SecsTo(this.h, param1.cPointer())
return (int)(_ret)
return (int)(C.QTime_SecsTo(this.h, param1.cPointer()))
}
func (this *QTime) AddMSecs(ms int) *QTime {
@ -608,38 +570,31 @@ func (this *QTime) AddMSecs(ms int) *QTime {
}
func (this *QTime) MsecsTo(param1 *QTime) int {
_ret := C.QTime_MsecsTo(this.h, param1.cPointer())
return (int)(_ret)
return (int)(C.QTime_MsecsTo(this.h, param1.cPointer()))
}
func (this *QTime) OperatorEqual(other *QTime) bool {
_ret := C.QTime_OperatorEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QTime_OperatorEqual(this.h, other.cPointer()))
}
func (this *QTime) OperatorNotEqual(other *QTime) bool {
_ret := C.QTime_OperatorNotEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QTime_OperatorNotEqual(this.h, other.cPointer()))
}
func (this *QTime) OperatorLesser(other *QTime) bool {
_ret := C.QTime_OperatorLesser(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QTime_OperatorLesser(this.h, other.cPointer()))
}
func (this *QTime) OperatorLesserOrEqual(other *QTime) bool {
_ret := C.QTime_OperatorLesserOrEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QTime_OperatorLesserOrEqual(this.h, other.cPointer()))
}
func (this *QTime) OperatorGreater(other *QTime) bool {
_ret := C.QTime_OperatorGreater(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QTime_OperatorGreater(this.h, other.cPointer()))
}
func (this *QTime) OperatorGreaterOrEqual(other *QTime) bool {
_ret := C.QTime_OperatorGreaterOrEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QTime_OperatorGreaterOrEqual(this.h, other.cPointer()))
}
func QTime_FromMSecsSinceStartOfDay(msecs int) *QTime {
@ -650,8 +605,7 @@ func QTime_FromMSecsSinceStartOfDay(msecs int) *QTime {
}
func (this *QTime) MsecsSinceStartOfDay() int {
_ret := C.QTime_MsecsSinceStartOfDay(this.h)
return (int)(_ret)
return (int)(C.QTime_MsecsSinceStartOfDay(this.h))
}
func QTime_CurrentTime() *QTime {
@ -682,8 +636,7 @@ func QTime_FromString2(s string, format string) *QTime {
}
func QTime_IsValid2(h int, m int, s int) bool {
_ret := C.QTime_IsValid2((C.int)(h), (C.int)(m), (C.int)(s))
return (bool)(_ret)
return (bool)(C.QTime_IsValid2((C.int)(h), (C.int)(m), (C.int)(s)))
}
func (this *QTime) Start() {
@ -691,13 +644,11 @@ func (this *QTime) Start() {
}
func (this *QTime) Restart() int {
_ret := C.QTime_Restart(this.h)
return (int)(_ret)
return (int)(C.QTime_Restart(this.h))
}
func (this *QTime) Elapsed() int {
_ret := C.QTime_Elapsed(this.h)
return (int)(_ret)
return (int)(C.QTime_Elapsed(this.h))
}
func (this *QTime) ToString1(f DateFormat) string {
@ -708,8 +659,7 @@ func (this *QTime) ToString1(f DateFormat) string {
}
func (this *QTime) SetHMS4(h int, m int, s int, ms int) bool {
_ret := C.QTime_SetHMS4(this.h, (C.int)(h), (C.int)(m), (C.int)(s), (C.int)(ms))
return (bool)(_ret)
return (bool)(C.QTime_SetHMS4(this.h, (C.int)(h), (C.int)(m), (C.int)(s), (C.int)(ms)))
}
func QTime_FromString22(s string, f DateFormat) *QTime {
@ -722,8 +672,7 @@ func QTime_FromString22(s string, f DateFormat) *QTime {
}
func QTime_IsValid4(h int, m int, s int, ms int) bool {
_ret := C.QTime_IsValid4((C.int)(h), (C.int)(m), (C.int)(s), (C.int)(ms))
return (bool)(_ret)
return (bool)(C.QTime_IsValid4((C.int)(h), (C.int)(m), (C.int)(s), (C.int)(ms)))
}
// Delete this object from C++ memory.
@ -807,13 +756,11 @@ func (this *QDateTime) Swap(other *QDateTime) {
}
func (this *QDateTime) IsNull() bool {
_ret := C.QDateTime_IsNull(this.h)
return (bool)(_ret)
return (bool)(C.QDateTime_IsNull(this.h))
}
func (this *QDateTime) IsValid() bool {
_ret := C.QDateTime_IsValid(this.h)
return (bool)(_ret)
return (bool)(C.QDateTime_IsValid(this.h))
}
func (this *QDateTime) Date() *QDate {
@ -831,13 +778,11 @@ func (this *QDateTime) Time() *QTime {
}
func (this *QDateTime) TimeSpec() TimeSpec {
_ret := C.QDateTime_TimeSpec(this.h)
return (TimeSpec)(_ret)
return (TimeSpec)(C.QDateTime_TimeSpec(this.h))
}
func (this *QDateTime) OffsetFromUtc() int {
_ret := C.QDateTime_OffsetFromUtc(this.h)
return (int)(_ret)
return (int)(C.QDateTime_OffsetFromUtc(this.h))
}
func (this *QDateTime) TimeZone() *QTimeZone {
@ -855,18 +800,15 @@ func (this *QDateTime) TimeZoneAbbreviation() string {
}
func (this *QDateTime) IsDaylightTime() bool {
_ret := C.QDateTime_IsDaylightTime(this.h)
return (bool)(_ret)
return (bool)(C.QDateTime_IsDaylightTime(this.h))
}
func (this *QDateTime) ToMSecsSinceEpoch() int64 {
_ret := C.QDateTime_ToMSecsSinceEpoch(this.h)
return (int64)(_ret)
return (int64)(C.QDateTime_ToMSecsSinceEpoch(this.h))
}
func (this *QDateTime) ToSecsSinceEpoch() int64 {
_ret := C.QDateTime_ToSecsSinceEpoch(this.h)
return (int64)(_ret)
return (int64)(C.QDateTime_ToSecsSinceEpoch(this.h))
}
func (this *QDateTime) SetDate(date *QDate) {
@ -993,48 +935,39 @@ func (this *QDateTime) ToTimeZone(toZone *QTimeZone) *QDateTime {
}
func (this *QDateTime) DaysTo(param1 *QDateTime) int64 {
_ret := C.QDateTime_DaysTo(this.h, param1.cPointer())
return (int64)(_ret)
return (int64)(C.QDateTime_DaysTo(this.h, param1.cPointer()))
}
func (this *QDateTime) SecsTo(param1 *QDateTime) int64 {
_ret := C.QDateTime_SecsTo(this.h, param1.cPointer())
return (int64)(_ret)
return (int64)(C.QDateTime_SecsTo(this.h, param1.cPointer()))
}
func (this *QDateTime) MsecsTo(param1 *QDateTime) int64 {
_ret := C.QDateTime_MsecsTo(this.h, param1.cPointer())
return (int64)(_ret)
return (int64)(C.QDateTime_MsecsTo(this.h, param1.cPointer()))
}
func (this *QDateTime) OperatorEqual(other *QDateTime) bool {
_ret := C.QDateTime_OperatorEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QDateTime_OperatorEqual(this.h, other.cPointer()))
}
func (this *QDateTime) OperatorNotEqual(other *QDateTime) bool {
_ret := C.QDateTime_OperatorNotEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QDateTime_OperatorNotEqual(this.h, other.cPointer()))
}
func (this *QDateTime) OperatorLesser(other *QDateTime) bool {
_ret := C.QDateTime_OperatorLesser(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QDateTime_OperatorLesser(this.h, other.cPointer()))
}
func (this *QDateTime) OperatorLesserOrEqual(other *QDateTime) bool {
_ret := C.QDateTime_OperatorLesserOrEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QDateTime_OperatorLesserOrEqual(this.h, other.cPointer()))
}
func (this *QDateTime) OperatorGreater(other *QDateTime) bool {
_ret := C.QDateTime_OperatorGreater(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QDateTime_OperatorGreater(this.h, other.cPointer()))
}
func (this *QDateTime) OperatorGreaterOrEqual(other *QDateTime) bool {
_ret := C.QDateTime_OperatorGreaterOrEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QDateTime_OperatorGreaterOrEqual(this.h, other.cPointer()))
}
func (this *QDateTime) SetUtcOffset(seconds int) {
@ -1042,8 +975,7 @@ func (this *QDateTime) SetUtcOffset(seconds int) {
}
func (this *QDateTime) UtcOffset() int {
_ret := C.QDateTime_UtcOffset(this.h)
return (int)(_ret)
return (int)(C.QDateTime_UtcOffset(this.h))
}
func QDateTime_CurrentDateTime() *QDateTime {
@ -1092,8 +1024,7 @@ func QDateTime_FromString3(s string, format string, cal QCalendar) *QDateTime {
}
func (this *QDateTime) ToTimeT() uint {
_ret := C.QDateTime_ToTimeT(this.h)
return (uint)(_ret)
return (uint)(C.QDateTime_ToTimeT(this.h))
}
func (this *QDateTime) SetTimeT(secsSince1Jan1970UTC uint) {
@ -1157,13 +1088,11 @@ func QDateTime_FromSecsSinceEpoch2(secs int64, timeZone *QTimeZone) *QDateTime {
}
func QDateTime_CurrentMSecsSinceEpoch() int64 {
_ret := C.QDateTime_CurrentMSecsSinceEpoch()
return (int64)(_ret)
return (int64)(C.QDateTime_CurrentMSecsSinceEpoch())
}
func QDateTime_CurrentSecsSinceEpoch() int64 {
_ret := C.QDateTime_CurrentSecsSinceEpoch()
return (int64)(_ret)
return (int64)(C.QDateTime_CurrentSecsSinceEpoch())
}
func (this *QDateTime) ToString1(format DateFormat) string {

View File

@ -102,8 +102,7 @@ func NewQDateTimeEdit8(t *QTime, parent *QWidget) *QDateTimeEdit {
}
func (this *QDateTimeEdit) MetaObject() *QMetaObject {
_ret := C.QDateTimeEdit_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QDateTimeEdit_MetaObject(this.h)))
}
func QDateTimeEdit_Tr(s string) string {
@ -259,18 +258,15 @@ func (this *QDateTimeEdit) SetTimeRange(min *QTime, max *QTime) {
}
func (this *QDateTimeEdit) DisplayedSections() int {
_ret := C.QDateTimeEdit_DisplayedSections(this.h)
return (int)(_ret)
return (int)(C.QDateTimeEdit_DisplayedSections(this.h))
}
func (this *QDateTimeEdit) CurrentSection() QDateTimeEdit__Section {
_ret := C.QDateTimeEdit_CurrentSection(this.h)
return (QDateTimeEdit__Section)(_ret)
return (QDateTimeEdit__Section)(C.QDateTimeEdit_CurrentSection(this.h))
}
func (this *QDateTimeEdit) SectionAt(index int) QDateTimeEdit__Section {
_ret := C.QDateTimeEdit_SectionAt(this.h, (C.int)(index))
return (QDateTimeEdit__Section)(_ret)
return (QDateTimeEdit__Section)(C.QDateTimeEdit_SectionAt(this.h, (C.int)(index)))
}
func (this *QDateTimeEdit) SetCurrentSection(section QDateTimeEdit__Section) {
@ -278,8 +274,7 @@ func (this *QDateTimeEdit) SetCurrentSection(section QDateTimeEdit__Section) {
}
func (this *QDateTimeEdit) CurrentSectionIndex() int {
_ret := C.QDateTimeEdit_CurrentSectionIndex(this.h)
return (int)(_ret)
return (int)(C.QDateTimeEdit_CurrentSectionIndex(this.h))
}
func (this *QDateTimeEdit) SetCurrentSectionIndex(index int) {
@ -287,8 +282,7 @@ func (this *QDateTimeEdit) SetCurrentSectionIndex(index int) {
}
func (this *QDateTimeEdit) CalendarWidget() *QCalendarWidget {
_ret := C.QDateTimeEdit_CalendarWidget(this.h)
return newQCalendarWidget_U(unsafe.Pointer(_ret))
return newQCalendarWidget_U(unsafe.Pointer(C.QDateTimeEdit_CalendarWidget(this.h)))
}
func (this *QDateTimeEdit) SetCalendarWidget(calendarWidget *QCalendarWidget) {
@ -296,8 +290,7 @@ func (this *QDateTimeEdit) SetCalendarWidget(calendarWidget *QCalendarWidget) {
}
func (this *QDateTimeEdit) SectionCount() int {
_ret := C.QDateTimeEdit_SectionCount(this.h)
return (int)(_ret)
return (int)(C.QDateTimeEdit_SectionCount(this.h))
}
func (this *QDateTimeEdit) SetSelectedSection(section QDateTimeEdit__Section) {
@ -325,8 +318,7 @@ func (this *QDateTimeEdit) SetDisplayFormat(format string) {
}
func (this *QDateTimeEdit) CalendarPopup() bool {
_ret := C.QDateTimeEdit_CalendarPopup(this.h)
return (bool)(_ret)
return (bool)(C.QDateTimeEdit_CalendarPopup(this.h))
}
func (this *QDateTimeEdit) SetCalendarPopup(enable bool) {
@ -334,8 +326,7 @@ func (this *QDateTimeEdit) SetCalendarPopup(enable bool) {
}
func (this *QDateTimeEdit) TimeSpec() TimeSpec {
_ret := C.QDateTimeEdit_TimeSpec(this.h)
return (TimeSpec)(_ret)
return (TimeSpec)(C.QDateTimeEdit_TimeSpec(this.h))
}
func (this *QDateTimeEdit) SetTimeSpec(spec TimeSpec) {
@ -358,8 +349,7 @@ func (this *QDateTimeEdit) StepBy(steps int) {
}
func (this *QDateTimeEdit) Event(event *QEvent) bool {
_ret := C.QDateTimeEdit_Event(this.h, event.cPointer())
return (bool)(_ret)
return (bool)(C.QDateTimeEdit_Event(this.h, event.cPointer()))
}
func (this *QDateTimeEdit) DateTimeChanged(dateTime *QDateTime) {
@ -377,8 +367,7 @@ func miqt_exec_callback_QDateTimeEdit_DateTimeChanged(cb *C.void, dateTime *C.QD
}
// Convert all CABI parameters to Go parameters
dateTime_ret := dateTime
slotval1 := newQDateTime_U(unsafe.Pointer(dateTime_ret))
slotval1 := newQDateTime_U(unsafe.Pointer(dateTime))
gofunc(slotval1)
}
@ -398,8 +387,7 @@ func miqt_exec_callback_QDateTimeEdit_TimeChanged(cb *C.void, time *C.QTime) {
}
// Convert all CABI parameters to Go parameters
time_ret := time
slotval1 := newQTime_U(unsafe.Pointer(time_ret))
slotval1 := newQTime_U(unsafe.Pointer(time))
gofunc(slotval1)
}
@ -419,8 +407,7 @@ func miqt_exec_callback_QDateTimeEdit_DateChanged(cb *C.void, date *C.QDate) {
}
// Convert all CABI parameters to Go parameters
date_ret := date
slotval1 := newQDate_U(unsafe.Pointer(date_ret))
slotval1 := newQDate_U(unsafe.Pointer(date))
gofunc(slotval1)
}
@ -543,8 +530,7 @@ func NewQTimeEdit4(time *QTime, parent *QWidget) *QTimeEdit {
}
func (this *QTimeEdit) MetaObject() *QMetaObject {
_ret := C.QTimeEdit_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QTimeEdit_MetaObject(this.h)))
}
func QTimeEdit_Tr(s string) string {
@ -580,8 +566,7 @@ func miqt_exec_callback_QTimeEdit_UserTimeChanged(cb *C.void, time *C.QTime) {
}
// Convert all CABI parameters to Go parameters
time_ret := time
slotval1 := newQTime_U(unsafe.Pointer(time_ret))
slotval1 := newQTime_U(unsafe.Pointer(time))
gofunc(slotval1)
}
@ -692,8 +677,7 @@ func NewQDateEdit4(date *QDate, parent *QWidget) *QDateEdit {
}
func (this *QDateEdit) MetaObject() *QMetaObject {
_ret := C.QDateEdit_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QDateEdit_MetaObject(this.h)))
}
func QDateEdit_Tr(s string) string {
@ -729,8 +713,7 @@ func miqt_exec_callback_QDateEdit_UserDateChanged(cb *C.void, date *C.QDate) {
}
// Convert all CABI parameters to Go parameters
date_ret := date
slotval1 := newQDate_U(unsafe.Pointer(date_ret))
slotval1 := newQDate_U(unsafe.Pointer(date))
gofunc(slotval1)
}

View File

@ -88,18 +88,15 @@ func (this *QDeadlineTimer) Swap(other *QDeadlineTimer) {
}
func (this *QDeadlineTimer) IsForever() bool {
_ret := C.QDeadlineTimer_IsForever(this.h)
return (bool)(_ret)
return (bool)(C.QDeadlineTimer_IsForever(this.h))
}
func (this *QDeadlineTimer) HasExpired() bool {
_ret := C.QDeadlineTimer_HasExpired(this.h)
return (bool)(_ret)
return (bool)(C.QDeadlineTimer_HasExpired(this.h))
}
func (this *QDeadlineTimer) TimerType() TimerType {
_ret := C.QDeadlineTimer_TimerType(this.h)
return (TimerType)(_ret)
return (TimerType)(C.QDeadlineTimer_TimerType(this.h))
}
func (this *QDeadlineTimer) SetTimerType(typeVal TimerType) {
@ -107,13 +104,11 @@ func (this *QDeadlineTimer) SetTimerType(typeVal TimerType) {
}
func (this *QDeadlineTimer) RemainingTime() int64 {
_ret := C.QDeadlineTimer_RemainingTime(this.h)
return (int64)(_ret)
return (int64)(C.QDeadlineTimer_RemainingTime(this.h))
}
func (this *QDeadlineTimer) RemainingTimeNSecs() int64 {
_ret := C.QDeadlineTimer_RemainingTimeNSecs(this.h)
return (int64)(_ret)
return (int64)(C.QDeadlineTimer_RemainingTimeNSecs(this.h))
}
func (this *QDeadlineTimer) SetRemainingTime(msecs int64) {
@ -125,13 +120,11 @@ func (this *QDeadlineTimer) SetPreciseRemainingTime(secs int64) {
}
func (this *QDeadlineTimer) Deadline() int64 {
_ret := C.QDeadlineTimer_Deadline(this.h)
return (int64)(_ret)
return (int64)(C.QDeadlineTimer_Deadline(this.h))
}
func (this *QDeadlineTimer) DeadlineNSecs() int64 {
_ret := C.QDeadlineTimer_DeadlineNSecs(this.h)
return (int64)(_ret)
return (int64)(C.QDeadlineTimer_DeadlineNSecs(this.h))
}
func (this *QDeadlineTimer) SetDeadline(msecs int64) {
@ -157,13 +150,11 @@ func QDeadlineTimer_Current() *QDeadlineTimer {
}
func (this *QDeadlineTimer) OperatorPlusAssign(msecs int64) *QDeadlineTimer {
_ret := C.QDeadlineTimer_OperatorPlusAssign(this.h, (C.longlong)(msecs))
return newQDeadlineTimer_U(unsafe.Pointer(_ret))
return newQDeadlineTimer_U(unsafe.Pointer(C.QDeadlineTimer_OperatorPlusAssign(this.h, (C.longlong)(msecs))))
}
func (this *QDeadlineTimer) OperatorMinusAssign(msecs int64) *QDeadlineTimer {
_ret := C.QDeadlineTimer_OperatorMinusAssign(this.h, (C.longlong)(msecs))
return newQDeadlineTimer_U(unsafe.Pointer(_ret))
return newQDeadlineTimer_U(unsafe.Pointer(C.QDeadlineTimer_OperatorMinusAssign(this.h, (C.longlong)(msecs))))
}
func (this *QDeadlineTimer) OperatorAssign(param1 *QDeadlineTimer) {

View File

@ -64,33 +64,27 @@ func (this *QDebug) Swap(other *QDebug) {
}
func (this *QDebug) ResetFormat() *QDebug {
_ret := C.QDebug_ResetFormat(this.h)
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_ResetFormat(this.h)))
}
func (this *QDebug) Space() *QDebug {
_ret := C.QDebug_Space(this.h)
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_Space(this.h)))
}
func (this *QDebug) Nospace() *QDebug {
_ret := C.QDebug_Nospace(this.h)
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_Nospace(this.h)))
}
func (this *QDebug) MaybeSpace() *QDebug {
_ret := C.QDebug_MaybeSpace(this.h)
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_MaybeSpace(this.h)))
}
func (this *QDebug) Verbosity(verbosityLevel int) *QDebug {
_ret := C.QDebug_Verbosity(this.h, (C.int)(verbosityLevel))
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_Verbosity(this.h, (C.int)(verbosityLevel))))
}
func (this *QDebug) Verbosity2() int {
_ret := C.QDebug_Verbosity2(this.h)
return (int)(_ret)
return (int)(C.QDebug_Verbosity2(this.h))
}
func (this *QDebug) SetVerbosity(verbosityLevel int) {
@ -98,8 +92,7 @@ func (this *QDebug) SetVerbosity(verbosityLevel int) {
}
func (this *QDebug) AutoInsertSpaces() bool {
_ret := C.QDebug_AutoInsertSpaces(this.h)
return (bool)(_ret)
return (bool)(C.QDebug_AutoInsertSpaces(this.h))
}
func (this *QDebug) SetAutoInsertSpaces(b bool) {
@ -107,107 +100,87 @@ func (this *QDebug) SetAutoInsertSpaces(b bool) {
}
func (this *QDebug) Quote() *QDebug {
_ret := C.QDebug_Quote(this.h)
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_Quote(this.h)))
}
func (this *QDebug) Noquote() *QDebug {
_ret := C.QDebug_Noquote(this.h)
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_Noquote(this.h)))
}
func (this *QDebug) MaybeQuote() *QDebug {
_ret := C.QDebug_MaybeQuote(this.h)
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_MaybeQuote(this.h)))
}
func (this *QDebug) OperatorShiftLeft(t QChar) *QDebug {
_ret := C.QDebug_OperatorShiftLeft(this.h, t.cPointer())
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeft(this.h, t.cPointer())))
}
func (this *QDebug) OperatorShiftLeftWithBool(t bool) *QDebug {
_ret := C.QDebug_OperatorShiftLeftWithBool(this.h, (C.bool)(t))
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithBool(this.h, (C.bool)(t))))
}
func (this *QDebug) OperatorShiftLeftWithChar(t byte) *QDebug {
_ret := C.QDebug_OperatorShiftLeftWithChar(this.h, (C.char)(t))
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithChar(this.h, (C.char)(t))))
}
func (this *QDebug) OperatorShiftLeftWithShort(t int16) *QDebug {
_ret := C.QDebug_OperatorShiftLeftWithShort(this.h, (C.int16_t)(t))
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithShort(this.h, (C.int16_t)(t))))
}
func (this *QDebug) OperatorShiftLeftWithUnsignedshort(t uint16) *QDebug {
_ret := C.QDebug_OperatorShiftLeftWithUnsignedshort(this.h, (C.uint16_t)(t))
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithUnsignedshort(this.h, (C.uint16_t)(t))))
}
func (this *QDebug) OperatorShiftLeftWithInt(t int) *QDebug {
_ret := C.QDebug_OperatorShiftLeftWithInt(this.h, (C.int)(t))
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithInt(this.h, (C.int)(t))))
}
func (this *QDebug) OperatorShiftLeftWithUnsignedint(t uint) *QDebug {
_ret := C.QDebug_OperatorShiftLeftWithUnsignedint(this.h, (C.uint)(t))
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithUnsignedint(this.h, (C.uint)(t))))
}
func (this *QDebug) OperatorShiftLeftWithLong(t int64) *QDebug {
_ret := C.QDebug_OperatorShiftLeftWithLong(this.h, (C.long)(t))
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithLong(this.h, (C.long)(t))))
}
func (this *QDebug) OperatorShiftLeftWithUnsignedlong(t uint64) *QDebug {
_ret := C.QDebug_OperatorShiftLeftWithUnsignedlong(this.h, (C.ulong)(t))
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithUnsignedlong(this.h, (C.ulong)(t))))
}
func (this *QDebug) OperatorShiftLeftWithQint64(t int64) *QDebug {
_ret := C.QDebug_OperatorShiftLeftWithQint64(this.h, (C.longlong)(t))
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithQint64(this.h, (C.longlong)(t))))
}
func (this *QDebug) OperatorShiftLeftWithQuint64(t uint64) *QDebug {
_ret := C.QDebug_OperatorShiftLeftWithQuint64(this.h, (C.ulonglong)(t))
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithQuint64(this.h, (C.ulonglong)(t))))
}
func (this *QDebug) OperatorShiftLeftWithFloat(t float32) *QDebug {
_ret := C.QDebug_OperatorShiftLeftWithFloat(this.h, (C.float)(t))
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithFloat(this.h, (C.float)(t))))
}
func (this *QDebug) OperatorShiftLeftWithDouble(t float64) *QDebug {
_ret := C.QDebug_OperatorShiftLeftWithDouble(this.h, (C.double)(t))
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithDouble(this.h, (C.double)(t))))
}
func (this *QDebug) OperatorShiftLeft2(t string) *QDebug {
t_Cstring := C.CString(t)
defer C.free(unsafe.Pointer(t_Cstring))
_ret := C.QDebug_OperatorShiftLeft2(this.h, t_Cstring)
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeft2(this.h, t_Cstring)))
}
func (this *QDebug) OperatorShiftLeftWithQString(t string) *QDebug {
t_ms := miqt_strdupg(t)
defer C.free(t_ms)
_ret := C.QDebug_OperatorShiftLeftWithQString(this.h, (*C.struct_miqt_string)(t_ms))
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithQString(this.h, (*C.struct_miqt_string)(t_ms))))
}
func (this *QDebug) OperatorShiftLeftWithQByteArray(t *QByteArray) *QDebug {
_ret := C.QDebug_OperatorShiftLeftWithQByteArray(this.h, t.cPointer())
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithQByteArray(this.h, t.cPointer())))
}
func (this *QDebug) MaybeQuote1(c byte) *QDebug {
_ret := C.QDebug_MaybeQuote1(this.h, (C.char)(c))
return newQDebug_U(unsafe.Pointer(_ret))
return newQDebug_U(unsafe.Pointer(C.QDebug_MaybeQuote1(this.h, (C.char)(c))))
}
// Delete this object from C++ memory.
@ -289,43 +262,35 @@ func newQNoDebug_U(h unsafe.Pointer) *QNoDebug {
}
func (this *QNoDebug) Space() *QNoDebug {
_ret := C.QNoDebug_Space(this.h)
return newQNoDebug_U(unsafe.Pointer(_ret))
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_Space(this.h)))
}
func (this *QNoDebug) Nospace() *QNoDebug {
_ret := C.QNoDebug_Nospace(this.h)
return newQNoDebug_U(unsafe.Pointer(_ret))
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_Nospace(this.h)))
}
func (this *QNoDebug) MaybeSpace() *QNoDebug {
_ret := C.QNoDebug_MaybeSpace(this.h)
return newQNoDebug_U(unsafe.Pointer(_ret))
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_MaybeSpace(this.h)))
}
func (this *QNoDebug) Quote() *QNoDebug {
_ret := C.QNoDebug_Quote(this.h)
return newQNoDebug_U(unsafe.Pointer(_ret))
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_Quote(this.h)))
}
func (this *QNoDebug) Noquote() *QNoDebug {
_ret := C.QNoDebug_Noquote(this.h)
return newQNoDebug_U(unsafe.Pointer(_ret))
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_Noquote(this.h)))
}
func (this *QNoDebug) MaybeQuote() *QNoDebug {
_ret := C.QNoDebug_MaybeQuote(this.h)
return newQNoDebug_U(unsafe.Pointer(_ret))
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_MaybeQuote(this.h)))
}
func (this *QNoDebug) Verbosity(param1 int) *QNoDebug {
_ret := C.QNoDebug_Verbosity(this.h, (C.int)(param1))
return newQNoDebug_U(unsafe.Pointer(_ret))
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_Verbosity(this.h, (C.int)(param1))))
}
func (this *QNoDebug) MaybeQuote1(param1 byte) *QNoDebug {
_ret := C.QNoDebug_MaybeQuote1(this.h, (C.char)(param1))
return newQNoDebug_U(unsafe.Pointer(_ret))
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_MaybeQuote1(this.h, (C.char)(param1))))
}
// Delete this object from C++ memory.

View File

@ -36,8 +36,7 @@ func newQDesktopServices_U(h unsafe.Pointer) *QDesktopServices {
}
func QDesktopServices_OpenUrl(url *QUrl) bool {
_ret := C.QDesktopServices_OpenUrl(url.cPointer())
return (bool)(_ret)
return (bool)(C.QDesktopServices_OpenUrl(url.cPointer()))
}
func QDesktopServices_SetUrlHandler(scheme string, receiver *QObject, method string) {

View File

@ -44,8 +44,7 @@ func NewQDesktopWidget() *QDesktopWidget {
}
func (this *QDesktopWidget) MetaObject() *QMetaObject {
_ret := C.QDesktopWidget_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QDesktopWidget_MetaObject(this.h)))
}
func QDesktopWidget_Tr(s string) string {
@ -67,8 +66,7 @@ func QDesktopWidget_TrUtf8(s string) string {
}
func (this *QDesktopWidget) ScreenNumber() int {
_ret := C.QDesktopWidget_ScreenNumber(this.h)
return (int)(_ret)
return (int)(C.QDesktopWidget_ScreenNumber(this.h))
}
func (this *QDesktopWidget) ScreenGeometry(widget *QWidget) *QRect {
@ -86,33 +84,27 @@ func (this *QDesktopWidget) AvailableGeometry(widget *QWidget) *QRect {
}
func (this *QDesktopWidget) IsVirtualDesktop() bool {
_ret := C.QDesktopWidget_IsVirtualDesktop(this.h)
return (bool)(_ret)
return (bool)(C.QDesktopWidget_IsVirtualDesktop(this.h))
}
func (this *QDesktopWidget) NumScreens() int {
_ret := C.QDesktopWidget_NumScreens(this.h)
return (int)(_ret)
return (int)(C.QDesktopWidget_NumScreens(this.h))
}
func (this *QDesktopWidget) ScreenCount() int {
_ret := C.QDesktopWidget_ScreenCount(this.h)
return (int)(_ret)
return (int)(C.QDesktopWidget_ScreenCount(this.h))
}
func (this *QDesktopWidget) PrimaryScreen() int {
_ret := C.QDesktopWidget_PrimaryScreen(this.h)
return (int)(_ret)
return (int)(C.QDesktopWidget_PrimaryScreen(this.h))
}
func (this *QDesktopWidget) ScreenNumberWithQPoint(param1 *QPoint) int {
_ret := C.QDesktopWidget_ScreenNumberWithQPoint(this.h, param1.cPointer())
return (int)(_ret)
return (int)(C.QDesktopWidget_ScreenNumberWithQPoint(this.h, param1.cPointer()))
}
func (this *QDesktopWidget) Screen() *QWidget {
_ret := C.QDesktopWidget_Screen(this.h)
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QDesktopWidget_Screen(this.h)))
}
func (this *QDesktopWidget) ScreenGeometry2() *QRect {
@ -158,8 +150,7 @@ func miqt_exec_callback_QDesktopWidget_Resized(cb *C.void, param1 C.int) {
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (int)(param1_ret)
slotval1 := (int)(param1)
gofunc(slotval1)
}
@ -179,8 +170,7 @@ func miqt_exec_callback_QDesktopWidget_WorkAreaResized(cb *C.void, param1 C.int)
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (int)(param1_ret)
slotval1 := (int)(param1)
gofunc(slotval1)
}
@ -200,8 +190,7 @@ func miqt_exec_callback_QDesktopWidget_ScreenCountChanged(cb *C.void, param1 C.i
}
// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (int)(param1_ret)
slotval1 := (int)(param1)
gofunc(slotval1)
}
@ -268,13 +257,11 @@ func QDesktopWidget_TrUtf83(s string, c string, n int) string {
}
func (this *QDesktopWidget) ScreenNumber1(widget *QWidget) int {
_ret := C.QDesktopWidget_ScreenNumber1(this.h, widget.cPointer())
return (int)(_ret)
return (int)(C.QDesktopWidget_ScreenNumber1(this.h, widget.cPointer()))
}
func (this *QDesktopWidget) Screen1(screen int) *QWidget {
_ret := C.QDesktopWidget_Screen1(this.h, (C.int)(screen))
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QDesktopWidget_Screen1(this.h, (C.int)(screen))))
}
func (this *QDesktopWidget) ScreenGeometry1(screen int) *QRect {

View File

@ -49,8 +49,7 @@ func NewQDial2(parent *QWidget) *QDial {
}
func (this *QDial) MetaObject() *QMetaObject {
_ret := C.QDial_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QDial_MetaObject(this.h)))
}
func QDial_Tr(s string) string {
@ -72,13 +71,11 @@ func QDial_TrUtf8(s string) string {
}
func (this *QDial) Wrapping() bool {
_ret := C.QDial_Wrapping(this.h)
return (bool)(_ret)
return (bool)(C.QDial_Wrapping(this.h))
}
func (this *QDial) NotchSize() int {
_ret := C.QDial_NotchSize(this.h)
return (int)(_ret)
return (int)(C.QDial_NotchSize(this.h))
}
func (this *QDial) SetNotchTarget(target float64) {
@ -86,13 +83,11 @@ func (this *QDial) SetNotchTarget(target float64) {
}
func (this *QDial) NotchTarget() float64 {
_ret := C.QDial_NotchTarget(this.h)
return (float64)(_ret)
return (float64)(C.QDial_NotchTarget(this.h))
}
func (this *QDial) NotchesVisible() bool {
_ret := C.QDial_NotchesVisible(this.h)
return (bool)(_ret)
return (bool)(C.QDial_NotchesVisible(this.h))
}
func (this *QDial) SizeHint() *QSize {

View File

@ -63,8 +63,7 @@ func NewQDialog3(parent *QWidget, f int) *QDialog {
}
func (this *QDialog) MetaObject() *QMetaObject {
_ret := C.QDialog_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QDialog_MetaObject(this.h)))
}
func QDialog_Tr(s string) string {
@ -86,8 +85,7 @@ func QDialog_TrUtf8(s string) string {
}
func (this *QDialog) Result() int {
_ret := C.QDialog_Result(this.h)
return (int)(_ret)
return (int)(C.QDialog_Result(this.h))
}
func (this *QDialog) SetVisible(visible bool) {
@ -99,8 +97,7 @@ func (this *QDialog) SetOrientation(orientation Orientation) {
}
func (this *QDialog) Orientation() Orientation {
_ret := C.QDialog_Orientation(this.h)
return (Orientation)(_ret)
return (Orientation)(C.QDialog_Orientation(this.h))
}
func (this *QDialog) SetExtension(extension *QWidget) {
@ -108,8 +105,7 @@ func (this *QDialog) SetExtension(extension *QWidget) {
}
func (this *QDialog) Extension() *QWidget {
_ret := C.QDialog_Extension(this.h)
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QDialog_Extension(this.h)))
}
func (this *QDialog) SizeHint() *QSize {
@ -131,8 +127,7 @@ func (this *QDialog) SetSizeGripEnabled(sizeGripEnabled bool) {
}
func (this *QDialog) IsSizeGripEnabled() bool {
_ret := C.QDialog_IsSizeGripEnabled(this.h)
return (bool)(_ret)
return (bool)(C.QDialog_IsSizeGripEnabled(this.h))
}
func (this *QDialog) SetModal(modal bool) {
@ -158,8 +153,7 @@ func miqt_exec_callback_QDialog_Finished(cb *C.void, result C.int) {
}
// Convert all CABI parameters to Go parameters
result_ret := result
slotval1 := (int)(result_ret)
slotval1 := (int)(result)
gofunc(slotval1)
}
@ -203,8 +197,7 @@ func (this *QDialog) Open() {
}
func (this *QDialog) Exec() int {
_ret := C.QDialog_Exec(this.h)
return (int)(_ret)
return (int)(C.QDialog_Exec(this.h))
}
func (this *QDialog) Done(param1 int) {

View File

@ -138,8 +138,7 @@ func NewQDialogButtonBox8(buttons int, orientation Orientation, parent *QWidget)
}
func (this *QDialogButtonBox) MetaObject() *QMetaObject {
_ret := C.QDialogButtonBox_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QDialogButtonBox_MetaObject(this.h)))
}
func QDialogButtonBox_Tr(s string) string {
@ -165,8 +164,7 @@ func (this *QDialogButtonBox) SetOrientation(orientation Orientation) {
}
func (this *QDialogButtonBox) Orientation() Orientation {
_ret := C.QDialogButtonBox_Orientation(this.h)
return (Orientation)(_ret)
return (Orientation)(C.QDialogButtonBox_Orientation(this.h))
}
func (this *QDialogButtonBox) AddButton(button *QAbstractButton, role QDialogButtonBox__ButtonRole) {
@ -176,13 +174,11 @@ func (this *QDialogButtonBox) AddButton(button *QAbstractButton, role QDialogBut
func (this *QDialogButtonBox) AddButton2(text string, role QDialogButtonBox__ButtonRole) *QPushButton {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
_ret := C.QDialogButtonBox_AddButton2(this.h, (*C.struct_miqt_string)(text_ms), (C.uintptr_t)(role))
return newQPushButton_U(unsafe.Pointer(_ret))
return newQPushButton_U(unsafe.Pointer(C.QDialogButtonBox_AddButton2(this.h, (*C.struct_miqt_string)(text_ms), (C.uintptr_t)(role))))
}
func (this *QDialogButtonBox) AddButtonWithButton(button QDialogButtonBox__StandardButton) *QPushButton {
_ret := C.QDialogButtonBox_AddButtonWithButton(this.h, (C.uintptr_t)(button))
return newQPushButton_U(unsafe.Pointer(_ret))
return newQPushButton_U(unsafe.Pointer(C.QDialogButtonBox_AddButtonWithButton(this.h, (C.uintptr_t)(button))))
}
func (this *QDialogButtonBox) RemoveButton(button *QAbstractButton) {
@ -196,17 +192,16 @@ func (this *QDialogButtonBox) Clear() {
func (this *QDialogButtonBox) Buttons() []*QAbstractButton {
var _ma *C.struct_miqt_array = C.QDialogButtonBox_Buttons(this.h)
_ret := make([]*QAbstractButton, int(_ma.len))
_outCast := (*[0xffff]*C.QAbstractButton)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QAbstractButton)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQAbstractButton(_outCast[i])
_ret[i] = newQAbstractButton_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QDialogButtonBox) ButtonRole(button *QAbstractButton) QDialogButtonBox__ButtonRole {
_ret := C.QDialogButtonBox_ButtonRole(this.h, button.cPointer())
return (QDialogButtonBox__ButtonRole)(_ret)
return (QDialogButtonBox__ButtonRole)(C.QDialogButtonBox_ButtonRole(this.h, button.cPointer()))
}
func (this *QDialogButtonBox) SetStandardButtons(buttons int) {
@ -214,18 +209,15 @@ func (this *QDialogButtonBox) SetStandardButtons(buttons int) {
}
func (this *QDialogButtonBox) StandardButtons() int {
_ret := C.QDialogButtonBox_StandardButtons(this.h)
return (int)(_ret)
return (int)(C.QDialogButtonBox_StandardButtons(this.h))
}
func (this *QDialogButtonBox) StandardButton(button *QAbstractButton) QDialogButtonBox__StandardButton {
_ret := C.QDialogButtonBox_StandardButton(this.h, button.cPointer())
return (QDialogButtonBox__StandardButton)(_ret)
return (QDialogButtonBox__StandardButton)(C.QDialogButtonBox_StandardButton(this.h, button.cPointer()))
}
func (this *QDialogButtonBox) Button(which QDialogButtonBox__StandardButton) *QPushButton {
_ret := C.QDialogButtonBox_Button(this.h, (C.uintptr_t)(which))
return newQPushButton_U(unsafe.Pointer(_ret))
return newQPushButton_U(unsafe.Pointer(C.QDialogButtonBox_Button(this.h, (C.uintptr_t)(which))))
}
func (this *QDialogButtonBox) SetCenterButtons(center bool) {
@ -233,8 +225,7 @@ func (this *QDialogButtonBox) SetCenterButtons(center bool) {
}
func (this *QDialogButtonBox) CenterButtons() bool {
_ret := C.QDialogButtonBox_CenterButtons(this.h)
return (bool)(_ret)
return (bool)(C.QDialogButtonBox_CenterButtons(this.h))
}
func (this *QDialogButtonBox) Clicked(button *QAbstractButton) {
@ -252,8 +243,7 @@ func miqt_exec_callback_QDialogButtonBox_Clicked(cb *C.void, button *C.QAbstract
}
// Convert all CABI parameters to Go parameters
button_ret := button
slotval1 := newQAbstractButton_U(unsafe.Pointer(button_ret))
slotval1 := newQAbstractButton_U(unsafe.Pointer(button))
gofunc(slotval1)
}

View File

@ -177,13 +177,13 @@ func QDir_AddResourceSearchPath(path string) {
func QDir_SetSearchPaths(prefix string, searchPaths []string) {
prefix_ms := miqt_strdupg(prefix)
defer C.free(prefix_ms)
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
searchPaths_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(searchPaths))))
defer C.free(unsafe.Pointer(searchPaths_CArray))
for i := range searchPaths {
single_ms := miqt_strdupg(searchPaths[i])
defer C.free(single_ms)
searchPaths_CArray[i] = (*C.struct_miqt_string)(single_ms)
searchPaths_i_ms := miqt_strdupg(searchPaths[i])
defer C.free(searchPaths_i_ms)
searchPaths_CArray[i] = (*C.struct_miqt_string)(searchPaths_i_ms)
}
searchPaths_ma := &C.struct_miqt_array{len: C.size_t(len(searchPaths)), data: unsafe.Pointer(searchPaths_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(searchPaths_ma))
@ -205,8 +205,10 @@ func QDir_SearchPaths(prefix string) []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -267,13 +269,11 @@ func QDir_FromNativeSeparators(pathName string) string {
func (this *QDir) Cd(dirName string) bool {
dirName_ms := miqt_strdupg(dirName)
defer C.free(dirName_ms)
_ret := C.QDir_Cd(this.h, (*C.struct_miqt_string)(dirName_ms))
return (bool)(_ret)
return (bool)(C.QDir_Cd(this.h, (*C.struct_miqt_string)(dirName_ms)))
}
func (this *QDir) CdUp() bool {
_ret := C.QDir_CdUp(this.h)
return (bool)(_ret)
return (bool)(C.QDir_CdUp(this.h))
}
func (this *QDir) NameFilters() []string {
@ -281,21 +281,23 @@ func (this *QDir) NameFilters() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QDir) SetNameFilters(nameFilters []string) {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
for i := range nameFilters {
single_ms := miqt_strdupg(nameFilters[i])
defer C.free(single_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(single_ms)
nameFilters_i_ms := miqt_strdupg(nameFilters[i])
defer C.free(nameFilters_i_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(nameFilters_i_ms)
}
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
@ -303,8 +305,7 @@ func (this *QDir) SetNameFilters(nameFilters []string) {
}
func (this *QDir) Filter() int {
_ret := C.QDir_Filter(this.h)
return (int)(_ret)
return (int)(C.QDir_Filter(this.h))
}
func (this *QDir) SetFilter(filter int) {
@ -312,8 +313,7 @@ func (this *QDir) SetFilter(filter int) {
}
func (this *QDir) Sorting() int {
_ret := C.QDir_Sorting(this.h)
return (int)(_ret)
return (int)(C.QDir_Sorting(this.h))
}
func (this *QDir) SetSorting(sort int) {
@ -321,13 +321,11 @@ func (this *QDir) SetSorting(sort int) {
}
func (this *QDir) Count() uint {
_ret := C.QDir_Count(this.h)
return (uint)(_ret)
return (uint)(C.QDir_Count(this.h))
}
func (this *QDir) IsEmpty() bool {
_ret := C.QDir_IsEmpty(this.h)
return (bool)(_ret)
return (bool)(C.QDir_IsEmpty(this.h))
}
func (this *QDir) OperatorSubscript(param1 int) string {
@ -344,8 +342,10 @@ func QDir_NameFiltersFromString(nameFilter string) []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -356,21 +356,23 @@ func (this *QDir) EntryList() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QDir) EntryListWithNameFilters(nameFilters []string) []string {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
for i := range nameFilters {
single_ms := miqt_strdupg(nameFilters[i])
defer C.free(single_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(single_ms)
nameFilters_i_ms := miqt_strdupg(nameFilters[i])
defer C.free(nameFilters_i_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(nameFilters_i_ms)
}
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
@ -378,8 +380,10 @@ func (this *QDir) EntryListWithNameFilters(nameFilters []string) []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -388,30 +392,36 @@ func (this *QDir) EntryListWithNameFilters(nameFilters []string) []string {
func (this *QDir) EntryInfoList() []QFileInfo {
var _ma *C.struct_miqt_array = C.QDir_EntryInfoList(this.h)
_ret := make([]QFileInfo, int(_ma.len))
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQFileInfo(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQFileInfo(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QDir) EntryInfoListWithNameFilters(nameFilters []string) []QFileInfo {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
for i := range nameFilters {
single_ms := miqt_strdupg(nameFilters[i])
defer C.free(single_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(single_ms)
nameFilters_i_ms := miqt_strdupg(nameFilters[i])
defer C.free(nameFilters_i_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(nameFilters_i_ms)
}
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
var _ma *C.struct_miqt_array = C.QDir_EntryInfoListWithNameFilters(this.h, nameFilters_ma)
_ret := make([]QFileInfo, int(_ma.len))
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQFileInfo(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQFileInfo(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -420,95 +430,79 @@ func (this *QDir) EntryInfoListWithNameFilters(nameFilters []string) []QFileInfo
func (this *QDir) Mkdir(dirName string) bool {
dirName_ms := miqt_strdupg(dirName)
defer C.free(dirName_ms)
_ret := C.QDir_Mkdir(this.h, (*C.struct_miqt_string)(dirName_ms))
return (bool)(_ret)
return (bool)(C.QDir_Mkdir(this.h, (*C.struct_miqt_string)(dirName_ms)))
}
func (this *QDir) Rmdir(dirName string) bool {
dirName_ms := miqt_strdupg(dirName)
defer C.free(dirName_ms)
_ret := C.QDir_Rmdir(this.h, (*C.struct_miqt_string)(dirName_ms))
return (bool)(_ret)
return (bool)(C.QDir_Rmdir(this.h, (*C.struct_miqt_string)(dirName_ms)))
}
func (this *QDir) Mkpath(dirPath string) bool {
dirPath_ms := miqt_strdupg(dirPath)
defer C.free(dirPath_ms)
_ret := C.QDir_Mkpath(this.h, (*C.struct_miqt_string)(dirPath_ms))
return (bool)(_ret)
return (bool)(C.QDir_Mkpath(this.h, (*C.struct_miqt_string)(dirPath_ms)))
}
func (this *QDir) Rmpath(dirPath string) bool {
dirPath_ms := miqt_strdupg(dirPath)
defer C.free(dirPath_ms)
_ret := C.QDir_Rmpath(this.h, (*C.struct_miqt_string)(dirPath_ms))
return (bool)(_ret)
return (bool)(C.QDir_Rmpath(this.h, (*C.struct_miqt_string)(dirPath_ms)))
}
func (this *QDir) RemoveRecursively() bool {
_ret := C.QDir_RemoveRecursively(this.h)
return (bool)(_ret)
return (bool)(C.QDir_RemoveRecursively(this.h))
}
func (this *QDir) IsReadable() bool {
_ret := C.QDir_IsReadable(this.h)
return (bool)(_ret)
return (bool)(C.QDir_IsReadable(this.h))
}
func (this *QDir) Exists() bool {
_ret := C.QDir_Exists(this.h)
return (bool)(_ret)
return (bool)(C.QDir_Exists(this.h))
}
func (this *QDir) IsRoot() bool {
_ret := C.QDir_IsRoot(this.h)
return (bool)(_ret)
return (bool)(C.QDir_IsRoot(this.h))
}
func QDir_IsRelativePath(path string) bool {
path_ms := miqt_strdupg(path)
defer C.free(path_ms)
_ret := C.QDir_IsRelativePath((*C.struct_miqt_string)(path_ms))
return (bool)(_ret)
return (bool)(C.QDir_IsRelativePath((*C.struct_miqt_string)(path_ms)))
}
func QDir_IsAbsolutePath(path string) bool {
path_ms := miqt_strdupg(path)
defer C.free(path_ms)
_ret := C.QDir_IsAbsolutePath((*C.struct_miqt_string)(path_ms))
return (bool)(_ret)
return (bool)(C.QDir_IsAbsolutePath((*C.struct_miqt_string)(path_ms)))
}
func (this *QDir) IsRelative() bool {
_ret := C.QDir_IsRelative(this.h)
return (bool)(_ret)
return (bool)(C.QDir_IsRelative(this.h))
}
func (this *QDir) IsAbsolute() bool {
_ret := C.QDir_IsAbsolute(this.h)
return (bool)(_ret)
return (bool)(C.QDir_IsAbsolute(this.h))
}
func (this *QDir) MakeAbsolute() bool {
_ret := C.QDir_MakeAbsolute(this.h)
return (bool)(_ret)
return (bool)(C.QDir_MakeAbsolute(this.h))
}
func (this *QDir) OperatorEqual(dir *QDir) bool {
_ret := C.QDir_OperatorEqual(this.h, dir.cPointer())
return (bool)(_ret)
return (bool)(C.QDir_OperatorEqual(this.h, dir.cPointer()))
}
func (this *QDir) OperatorNotEqual(dir *QDir) bool {
_ret := C.QDir_OperatorNotEqual(this.h, dir.cPointer())
return (bool)(_ret)
return (bool)(C.QDir_OperatorNotEqual(this.h, dir.cPointer()))
}
func (this *QDir) Remove(fileName string) bool {
fileName_ms := miqt_strdupg(fileName)
defer C.free(fileName_ms)
_ret := C.QDir_Remove(this.h, (*C.struct_miqt_string)(fileName_ms))
return (bool)(_ret)
return (bool)(C.QDir_Remove(this.h, (*C.struct_miqt_string)(fileName_ms)))
}
func (this *QDir) Rename(oldName string, newName string) bool {
@ -516,23 +510,24 @@ func (this *QDir) Rename(oldName string, newName string) bool {
defer C.free(oldName_ms)
newName_ms := miqt_strdupg(newName)
defer C.free(newName_ms)
_ret := C.QDir_Rename(this.h, (*C.struct_miqt_string)(oldName_ms), (*C.struct_miqt_string)(newName_ms))
return (bool)(_ret)
return (bool)(C.QDir_Rename(this.h, (*C.struct_miqt_string)(oldName_ms), (*C.struct_miqt_string)(newName_ms)))
}
func (this *QDir) ExistsWithName(name string) bool {
name_ms := miqt_strdupg(name)
defer C.free(name_ms)
_ret := C.QDir_ExistsWithName(this.h, (*C.struct_miqt_string)(name_ms))
return (bool)(_ret)
return (bool)(C.QDir_ExistsWithName(this.h, (*C.struct_miqt_string)(name_ms)))
}
func QDir_Drives() []QFileInfo {
var _ma *C.struct_miqt_array = C.QDir_Drives()
_ret := make([]QFileInfo, int(_ma.len))
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQFileInfo(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQFileInfo(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -555,8 +550,7 @@ func QDir_Separator() *QChar {
func QDir_SetCurrent(path string) bool {
path_ms := miqt_strdupg(path)
defer C.free(path_ms)
_ret := C.QDir_SetCurrent((*C.struct_miqt_string)(path_ms))
return (bool)(_ret)
return (bool)(C.QDir_SetCurrent((*C.struct_miqt_string)(path_ms)))
}
func QDir_Current() *QDir {
@ -616,20 +610,19 @@ func QDir_TempPath() string {
}
func QDir_Match(filters []string, fileName string) bool {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
filters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(filters))))
defer C.free(unsafe.Pointer(filters_CArray))
for i := range filters {
single_ms := miqt_strdupg(filters[i])
defer C.free(single_ms)
filters_CArray[i] = (*C.struct_miqt_string)(single_ms)
filters_i_ms := miqt_strdupg(filters[i])
defer C.free(filters_i_ms)
filters_CArray[i] = (*C.struct_miqt_string)(filters_i_ms)
}
filters_ma := &C.struct_miqt_array{len: C.size_t(len(filters)), data: unsafe.Pointer(filters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(filters_ma))
fileName_ms := miqt_strdupg(fileName)
defer C.free(fileName_ms)
_ret := C.QDir_Match(filters_ma, (*C.struct_miqt_string)(fileName_ms))
return (bool)(_ret)
return (bool)(C.QDir_Match(filters_ma, (*C.struct_miqt_string)(fileName_ms)))
}
func QDir_Match2(filter string, fileName string) bool {
@ -637,8 +630,7 @@ func QDir_Match2(filter string, fileName string) bool {
defer C.free(filter_ms)
fileName_ms := miqt_strdupg(fileName)
defer C.free(fileName_ms)
_ret := C.QDir_Match2((*C.struct_miqt_string)(filter_ms), (*C.struct_miqt_string)(fileName_ms))
return (bool)(_ret)
return (bool)(C.QDir_Match2((*C.struct_miqt_string)(filter_ms), (*C.struct_miqt_string)(fileName_ms)))
}
func QDir_CleanPath(path string) string {
@ -655,8 +647,7 @@ func (this *QDir) Refresh() {
}
func (this *QDir) IsEmpty1(filters int) bool {
_ret := C.QDir_IsEmpty1(this.h, (C.int)(filters))
return (bool)(_ret)
return (bool)(C.QDir_IsEmpty1(this.h, (C.int)(filters)))
}
func (this *QDir) EntryList1(filters int) []string {
@ -664,8 +655,10 @@ func (this *QDir) EntryList1(filters int) []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -676,21 +669,23 @@ func (this *QDir) EntryList2(filters int, sort int) []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QDir) EntryList22(nameFilters []string, filters int) []string {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
for i := range nameFilters {
single_ms := miqt_strdupg(nameFilters[i])
defer C.free(single_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(single_ms)
nameFilters_i_ms := miqt_strdupg(nameFilters[i])
defer C.free(nameFilters_i_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(nameFilters_i_ms)
}
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
@ -698,21 +693,23 @@ func (this *QDir) EntryList22(nameFilters []string, filters int) []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QDir) EntryList3(nameFilters []string, filters int, sort int) []string {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
for i := range nameFilters {
single_ms := miqt_strdupg(nameFilters[i])
defer C.free(single_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(single_ms)
nameFilters_i_ms := miqt_strdupg(nameFilters[i])
defer C.free(nameFilters_i_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(nameFilters_i_ms)
}
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
@ -720,8 +717,10 @@ func (this *QDir) EntryList3(nameFilters []string, filters int, sort int) []stri
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -730,9 +729,12 @@ func (this *QDir) EntryList3(nameFilters []string, filters int, sort int) []stri
func (this *QDir) EntryInfoList1(filters int) []QFileInfo {
var _ma *C.struct_miqt_array = C.QDir_EntryInfoList1(this.h, (C.int)(filters))
_ret := make([]QFileInfo, int(_ma.len))
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQFileInfo(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQFileInfo(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -741,51 +743,60 @@ func (this *QDir) EntryInfoList1(filters int) []QFileInfo {
func (this *QDir) EntryInfoList2(filters int, sort int) []QFileInfo {
var _ma *C.struct_miqt_array = C.QDir_EntryInfoList2(this.h, (C.int)(filters), (C.int)(sort))
_ret := make([]QFileInfo, int(_ma.len))
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQFileInfo(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQFileInfo(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QDir) EntryInfoList22(nameFilters []string, filters int) []QFileInfo {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
for i := range nameFilters {
single_ms := miqt_strdupg(nameFilters[i])
defer C.free(single_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(single_ms)
nameFilters_i_ms := miqt_strdupg(nameFilters[i])
defer C.free(nameFilters_i_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(nameFilters_i_ms)
}
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
var _ma *C.struct_miqt_array = C.QDir_EntryInfoList22(this.h, nameFilters_ma, (C.int)(filters))
_ret := make([]QFileInfo, int(_ma.len))
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQFileInfo(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQFileInfo(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QDir) EntryInfoList3(nameFilters []string, filters int, sort int) []QFileInfo {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
for i := range nameFilters {
single_ms := miqt_strdupg(nameFilters[i])
defer C.free(single_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(single_ms)
nameFilters_i_ms := miqt_strdupg(nameFilters[i])
defer C.free(nameFilters_i_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(nameFilters_i_ms)
}
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
var _ma *C.struct_miqt_array = C.QDir_EntryInfoList3(this.h, nameFilters_ma, (C.int)(filters), (C.int)(sort))
_ret := make([]QFileInfo, int(_ma.len))
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QFileInfo)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQFileInfo(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQFileInfo(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret

View File

@ -69,13 +69,13 @@ func NewQDirIterator3(path string, filter int) *QDirIterator {
func NewQDirIterator4(path string, nameFilters []string) *QDirIterator {
path_ms := miqt_strdupg(path)
defer C.free(path_ms)
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
for i := range nameFilters {
single_ms := miqt_strdupg(nameFilters[i])
defer C.free(single_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(single_ms)
nameFilters_i_ms := miqt_strdupg(nameFilters[i])
defer C.free(nameFilters_i_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(nameFilters_i_ms)
}
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
@ -109,13 +109,13 @@ func NewQDirIterator7(path string, filter int, flags int) *QDirIterator {
func NewQDirIterator8(path string, nameFilters []string, filters int) *QDirIterator {
path_ms := miqt_strdupg(path)
defer C.free(path_ms)
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
for i := range nameFilters {
single_ms := miqt_strdupg(nameFilters[i])
defer C.free(single_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(single_ms)
nameFilters_i_ms := miqt_strdupg(nameFilters[i])
defer C.free(nameFilters_i_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(nameFilters_i_ms)
}
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
@ -127,13 +127,13 @@ func NewQDirIterator8(path string, nameFilters []string, filters int) *QDirItera
func NewQDirIterator9(path string, nameFilters []string, filters int, flags int) *QDirIterator {
path_ms := miqt_strdupg(path)
defer C.free(path_ms)
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
for i := range nameFilters {
single_ms := miqt_strdupg(nameFilters[i])
defer C.free(single_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(single_ms)
nameFilters_i_ms := miqt_strdupg(nameFilters[i])
defer C.free(nameFilters_i_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(nameFilters_i_ms)
}
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
@ -149,8 +149,7 @@ func (this *QDirIterator) Next() string {
}
func (this *QDirIterator) HasNext() bool {
_ret := C.QDirIterator_HasNext(this.h)
return (bool)(_ret)
return (bool)(C.QDirIterator_HasNext(this.h))
}
func (this *QDirIterator) FileName() string {

View File

@ -46,13 +46,13 @@ func newQDirModel_U(h unsafe.Pointer) *QDirModel {
// NewQDirModel constructs a new QDirModel object.
func NewQDirModel(nameFilters []string, filters int, sort int) *QDirModel {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
for i := range nameFilters {
single_ms := miqt_strdupg(nameFilters[i])
defer C.free(single_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(single_ms)
nameFilters_i_ms := miqt_strdupg(nameFilters[i])
defer C.free(nameFilters_i_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(nameFilters_i_ms)
}
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
@ -68,13 +68,13 @@ func NewQDirModel2() *QDirModel {
// NewQDirModel3 constructs a new QDirModel object.
func NewQDirModel3(nameFilters []string, filters int, sort int, parent *QObject) *QDirModel {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
nameFilters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(nameFilters))))
defer C.free(unsafe.Pointer(nameFilters_CArray))
for i := range nameFilters {
single_ms := miqt_strdupg(nameFilters[i])
defer C.free(single_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(single_ms)
nameFilters_i_ms := miqt_strdupg(nameFilters[i])
defer C.free(nameFilters_i_ms)
nameFilters_CArray[i] = (*C.struct_miqt_string)(nameFilters_i_ms)
}
nameFilters_ma := &C.struct_miqt_array{len: C.size_t(len(nameFilters)), data: unsafe.Pointer(nameFilters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(nameFilters_ma))
@ -89,8 +89,7 @@ func NewQDirModel4(parent *QObject) *QDirModel {
}
func (this *QDirModel) MetaObject() *QMetaObject {
_ret := C.QDirModel_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QDirModel_MetaObject(this.h)))
}
func QDirModel_Tr(s string) string {
@ -126,13 +125,11 @@ func (this *QDirModel) Parent(child *QModelIndex) *QModelIndex {
}
func (this *QDirModel) RowCount() int {
_ret := C.QDirModel_RowCount(this.h)
return (int)(_ret)
return (int)(C.QDirModel_RowCount(this.h))
}
func (this *QDirModel) ColumnCount() int {
_ret := C.QDirModel_ColumnCount(this.h)
return (int)(_ret)
return (int)(C.QDirModel_ColumnCount(this.h))
}
func (this *QDirModel) Data(index *QModelIndex) *QVariant {
@ -143,8 +140,7 @@ func (this *QDirModel) Data(index *QModelIndex) *QVariant {
}
func (this *QDirModel) SetData(index *QModelIndex, value *QVariant) bool {
_ret := C.QDirModel_SetData(this.h, index.cPointer(), value.cPointer())
return (bool)(_ret)
return (bool)(C.QDirModel_SetData(this.h, index.cPointer(), value.cPointer()))
}
func (this *QDirModel) HeaderData(section int, orientation Orientation) *QVariant {
@ -155,13 +151,11 @@ func (this *QDirModel) HeaderData(section int, orientation Orientation) *QVarian
}
func (this *QDirModel) HasChildren() bool {
_ret := C.QDirModel_HasChildren(this.h)
return (bool)(_ret)
return (bool)(C.QDirModel_HasChildren(this.h))
}
func (this *QDirModel) Flags(index *QModelIndex) int {
_ret := C.QDirModel_Flags(this.h, index.cPointer())
return (int)(_ret)
return (int)(C.QDirModel_Flags(this.h, index.cPointer()))
}
func (this *QDirModel) Sort(column int) {
@ -173,8 +167,10 @@ func (this *QDirModel) MimeTypes() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -189,18 +185,15 @@ func (this *QDirModel) MimeData(indexes []QModelIndex) *QMimeData {
}
indexes_ma := &C.struct_miqt_array{len: C.size_t(len(indexes)), data: unsafe.Pointer(indexes_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(indexes_ma))
_ret := C.QDirModel_MimeData(this.h, indexes_ma)
return newQMimeData_U(unsafe.Pointer(_ret))
return newQMimeData_U(unsafe.Pointer(C.QDirModel_MimeData(this.h, indexes_ma)))
}
func (this *QDirModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool {
_ret := C.QDirModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QDirModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QDirModel) SupportedDropActions() int {
_ret := C.QDirModel_SupportedDropActions(this.h)
return (int)(_ret)
return (int)(C.QDirModel_SupportedDropActions(this.h))
}
func (this *QDirModel) SetIconProvider(provider *QFileIconProvider) {
@ -208,18 +201,17 @@ func (this *QDirModel) SetIconProvider(provider *QFileIconProvider) {
}
func (this *QDirModel) IconProvider() *QFileIconProvider {
_ret := C.QDirModel_IconProvider(this.h)
return newQFileIconProvider_U(unsafe.Pointer(_ret))
return newQFileIconProvider_U(unsafe.Pointer(C.QDirModel_IconProvider(this.h)))
}
func (this *QDirModel) SetNameFilters(filters []string) {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
filters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(filters))))
defer C.free(unsafe.Pointer(filters_CArray))
for i := range filters {
single_ms := miqt_strdupg(filters[i])
defer C.free(single_ms)
filters_CArray[i] = (*C.struct_miqt_string)(single_ms)
filters_i_ms := miqt_strdupg(filters[i])
defer C.free(filters_i_ms)
filters_CArray[i] = (*C.struct_miqt_string)(filters_i_ms)
}
filters_ma := &C.struct_miqt_array{len: C.size_t(len(filters)), data: unsafe.Pointer(filters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(filters_ma))
@ -231,8 +223,10 @@ func (this *QDirModel) NameFilters() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -243,8 +237,7 @@ func (this *QDirModel) SetFilter(filters int) {
}
func (this *QDirModel) Filter() int {
_ret := C.QDirModel_Filter(this.h)
return (int)(_ret)
return (int)(C.QDirModel_Filter(this.h))
}
func (this *QDirModel) SetSorting(sort int) {
@ -252,8 +245,7 @@ func (this *QDirModel) SetSorting(sort int) {
}
func (this *QDirModel) Sorting() int {
_ret := C.QDirModel_Sorting(this.h)
return (int)(_ret)
return (int)(C.QDirModel_Sorting(this.h))
}
func (this *QDirModel) SetResolveSymlinks(enable bool) {
@ -261,8 +253,7 @@ func (this *QDirModel) SetResolveSymlinks(enable bool) {
}
func (this *QDirModel) ResolveSymlinks() bool {
_ret := C.QDirModel_ResolveSymlinks(this.h)
return (bool)(_ret)
return (bool)(C.QDirModel_ResolveSymlinks(this.h))
}
func (this *QDirModel) SetReadOnly(enable bool) {
@ -270,8 +261,7 @@ func (this *QDirModel) SetReadOnly(enable bool) {
}
func (this *QDirModel) IsReadOnly() bool {
_ret := C.QDirModel_IsReadOnly(this.h)
return (bool)(_ret)
return (bool)(C.QDirModel_IsReadOnly(this.h))
}
func (this *QDirModel) SetLazyChildCount(enable bool) {
@ -279,8 +269,7 @@ func (this *QDirModel) SetLazyChildCount(enable bool) {
}
func (this *QDirModel) LazyChildCount() bool {
_ret := C.QDirModel_LazyChildCount(this.h)
return (bool)(_ret)
return (bool)(C.QDirModel_LazyChildCount(this.h))
}
func (this *QDirModel) IndexWithPath(path string) *QModelIndex {
@ -293,8 +282,7 @@ func (this *QDirModel) IndexWithPath(path string) *QModelIndex {
}
func (this *QDirModel) IsDir(index *QModelIndex) bool {
_ret := C.QDirModel_IsDir(this.h, index.cPointer())
return (bool)(_ret)
return (bool)(C.QDirModel_IsDir(this.h, index.cPointer()))
}
func (this *QDirModel) Mkdir(parent *QModelIndex, name string) *QModelIndex {
@ -307,13 +295,11 @@ func (this *QDirModel) Mkdir(parent *QModelIndex, name string) *QModelIndex {
}
func (this *QDirModel) Rmdir(index *QModelIndex) bool {
_ret := C.QDirModel_Rmdir(this.h, index.cPointer())
return (bool)(_ret)
return (bool)(C.QDirModel_Rmdir(this.h, index.cPointer()))
}
func (this *QDirModel) Remove(index *QModelIndex) bool {
_ret := C.QDirModel_Remove(this.h, index.cPointer())
return (bool)(_ret)
return (bool)(C.QDirModel_Remove(this.h, index.cPointer()))
}
func (this *QDirModel) FilePath(index *QModelIndex) string {
@ -400,13 +386,11 @@ func (this *QDirModel) Index3(row int, column int, parent *QModelIndex) *QModelI
}
func (this *QDirModel) RowCount1(parent *QModelIndex) int {
_ret := C.QDirModel_RowCount1(this.h, parent.cPointer())
return (int)(_ret)
return (int)(C.QDirModel_RowCount1(this.h, parent.cPointer()))
}
func (this *QDirModel) ColumnCount1(parent *QModelIndex) int {
_ret := C.QDirModel_ColumnCount1(this.h, parent.cPointer())
return (int)(_ret)
return (int)(C.QDirModel_ColumnCount1(this.h, parent.cPointer()))
}
func (this *QDirModel) Data2(index *QModelIndex, role int) *QVariant {
@ -417,8 +401,7 @@ func (this *QDirModel) Data2(index *QModelIndex, role int) *QVariant {
}
func (this *QDirModel) SetData3(index *QModelIndex, value *QVariant, role int) bool {
_ret := C.QDirModel_SetData3(this.h, index.cPointer(), value.cPointer(), (C.int)(role))
return (bool)(_ret)
return (bool)(C.QDirModel_SetData3(this.h, index.cPointer(), value.cPointer(), (C.int)(role)))
}
func (this *QDirModel) HeaderData3(section int, orientation Orientation, role int) *QVariant {
@ -429,8 +412,7 @@ func (this *QDirModel) HeaderData3(section int, orientation Orientation, role in
}
func (this *QDirModel) HasChildren1(index *QModelIndex) bool {
_ret := C.QDirModel_HasChildren1(this.h, index.cPointer())
return (bool)(_ret)
return (bool)(C.QDirModel_HasChildren1(this.h, index.cPointer()))
}
func (this *QDirModel) Sort2(column int, order SortOrder) {

View File

@ -93,8 +93,7 @@ func NewQDockWidget6(parent *QWidget, flags int) *QDockWidget {
}
func (this *QDockWidget) MetaObject() *QMetaObject {
_ret := C.QDockWidget_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QDockWidget_MetaObject(this.h)))
}
func QDockWidget_Tr(s string) string {
@ -116,8 +115,7 @@ func QDockWidget_TrUtf8(s string) string {
}
func (this *QDockWidget) Widget() *QWidget {
_ret := C.QDockWidget_Widget(this.h)
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QDockWidget_Widget(this.h)))
}
func (this *QDockWidget) SetWidget(widget *QWidget) {
@ -129,8 +127,7 @@ func (this *QDockWidget) SetFeatures(features int) {
}
func (this *QDockWidget) Features() int {
_ret := C.QDockWidget_Features(this.h)
return (int)(_ret)
return (int)(C.QDockWidget_Features(this.h))
}
func (this *QDockWidget) SetFloating(floating bool) {
@ -138,8 +135,7 @@ func (this *QDockWidget) SetFloating(floating bool) {
}
func (this *QDockWidget) IsFloating() bool {
_ret := C.QDockWidget_IsFloating(this.h)
return (bool)(_ret)
return (bool)(C.QDockWidget_IsFloating(this.h))
}
func (this *QDockWidget) SetAllowedAreas(areas int) {
@ -147,8 +143,7 @@ func (this *QDockWidget) SetAllowedAreas(areas int) {
}
func (this *QDockWidget) AllowedAreas() int {
_ret := C.QDockWidget_AllowedAreas(this.h)
return (int)(_ret)
return (int)(C.QDockWidget_AllowedAreas(this.h))
}
func (this *QDockWidget) SetTitleBarWidget(widget *QWidget) {
@ -156,18 +151,15 @@ func (this *QDockWidget) SetTitleBarWidget(widget *QWidget) {
}
func (this *QDockWidget) TitleBarWidget() *QWidget {
_ret := C.QDockWidget_TitleBarWidget(this.h)
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QDockWidget_TitleBarWidget(this.h)))
}
func (this *QDockWidget) IsAreaAllowed(area DockWidgetArea) bool {
_ret := C.QDockWidget_IsAreaAllowed(this.h, (C.uintptr_t)(area))
return (bool)(_ret)
return (bool)(C.QDockWidget_IsAreaAllowed(this.h, (C.uintptr_t)(area)))
}
func (this *QDockWidget) ToggleViewAction() *QAction {
_ret := C.QDockWidget_ToggleViewAction(this.h)
return newQAction_U(unsafe.Pointer(_ret))
return newQAction_U(unsafe.Pointer(C.QDockWidget_ToggleViewAction(this.h)))
}
func (this *QDockWidget) FeaturesChanged(features int) {
@ -185,8 +177,7 @@ func miqt_exec_callback_QDockWidget_FeaturesChanged(cb *C.void, features C.int)
}
// Convert all CABI parameters to Go parameters
features_ret := features
slotval1 := (int)(features_ret)
slotval1 := (int)(features)
gofunc(slotval1)
}
@ -206,8 +197,7 @@ func miqt_exec_callback_QDockWidget_TopLevelChanged(cb *C.void, topLevel C.bool)
}
// Convert all CABI parameters to Go parameters
topLevel_ret := topLevel
slotval1 := (bool)(topLevel_ret)
slotval1 := (bool)(topLevel)
gofunc(slotval1)
}
@ -227,8 +217,7 @@ func miqt_exec_callback_QDockWidget_AllowedAreasChanged(cb *C.void, allowedAreas
}
// Convert all CABI parameters to Go parameters
allowedAreas_ret := allowedAreas
slotval1 := (int)(allowedAreas_ret)
slotval1 := (int)(allowedAreas)
gofunc(slotval1)
}
@ -248,8 +237,7 @@ func miqt_exec_callback_QDockWidget_VisibilityChanged(cb *C.void, visible C.bool
}
// Convert all CABI parameters to Go parameters
visible_ret := visible
slotval1 := (bool)(visible_ret)
slotval1 := (bool)(visible)
gofunc(slotval1)
}
@ -269,8 +257,7 @@ func miqt_exec_callback_QDockWidget_DockLocationChanged(cb *C.void, area C.uintp
}
// Convert all CABI parameters to Go parameters
area_ret := area
slotval1 := (DockWidgetArea)(area_ret)
slotval1 := (DockWidgetArea)(area)
gofunc(slotval1)
}

View File

@ -44,8 +44,7 @@ func NewQDrag(dragSource *QObject) *QDrag {
}
func (this *QDrag) MetaObject() *QMetaObject {
_ret := C.QDrag_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QDrag_MetaObject(this.h)))
}
func QDrag_Tr(s string) string {
@ -71,8 +70,7 @@ func (this *QDrag) SetMimeData(data *QMimeData) {
}
func (this *QDrag) MimeData() *QMimeData {
_ret := C.QDrag_MimeData(this.h)
return newQMimeData_U(unsafe.Pointer(_ret))
return newQMimeData_U(unsafe.Pointer(C.QDrag_MimeData(this.h)))
}
func (this *QDrag) SetPixmap(pixmap *QPixmap) {
@ -98,28 +96,23 @@ func (this *QDrag) HotSpot() *QPoint {
}
func (this *QDrag) Source() *QObject {
_ret := C.QDrag_Source(this.h)
return newQObject_U(unsafe.Pointer(_ret))
return newQObject_U(unsafe.Pointer(C.QDrag_Source(this.h)))
}
func (this *QDrag) Target() *QObject {
_ret := C.QDrag_Target(this.h)
return newQObject_U(unsafe.Pointer(_ret))
return newQObject_U(unsafe.Pointer(C.QDrag_Target(this.h)))
}
func (this *QDrag) Start() DropAction {
_ret := C.QDrag_Start(this.h)
return (DropAction)(_ret)
return (DropAction)(C.QDrag_Start(this.h))
}
func (this *QDrag) Exec() DropAction {
_ret := C.QDrag_Exec(this.h)
return (DropAction)(_ret)
return (DropAction)(C.QDrag_Exec(this.h))
}
func (this *QDrag) Exec2(supportedActions int, defaultAction DropAction) DropAction {
_ret := C.QDrag_Exec2(this.h, (C.int)(supportedActions), (C.uintptr_t)(defaultAction))
return (DropAction)(_ret)
return (DropAction)(C.QDrag_Exec2(this.h, (C.int)(supportedActions), (C.uintptr_t)(defaultAction)))
}
func (this *QDrag) SetDragCursor(cursor *QPixmap, action DropAction) {
@ -134,13 +127,11 @@ func (this *QDrag) DragCursor(action DropAction) *QPixmap {
}
func (this *QDrag) SupportedActions() int {
_ret := C.QDrag_SupportedActions(this.h)
return (int)(_ret)
return (int)(C.QDrag_SupportedActions(this.h))
}
func (this *QDrag) DefaultAction() DropAction {
_ret := C.QDrag_DefaultAction(this.h)
return (DropAction)(_ret)
return (DropAction)(C.QDrag_DefaultAction(this.h))
}
func QDrag_Cancel() {
@ -162,8 +153,7 @@ func miqt_exec_callback_QDrag_ActionChanged(cb *C.void, action C.uintptr_t) {
}
// Convert all CABI parameters to Go parameters
action_ret := action
slotval1 := (DropAction)(action_ret)
slotval1 := (DropAction)(action)
gofunc(slotval1)
}
@ -183,8 +173,7 @@ func miqt_exec_callback_QDrag_TargetChanged(cb *C.void, newTarget *C.QObject) {
}
// Convert all CABI parameters to Go parameters
newTarget_ret := newTarget
slotval1 := newQObject_U(unsafe.Pointer(newTarget_ret))
slotval1 := newQObject_U(unsafe.Pointer(newTarget))
gofunc(slotval1)
}
@ -234,13 +223,11 @@ func QDrag_TrUtf83(s string, c string, n int) string {
}
func (this *QDrag) Start1(supportedActions int) DropAction {
_ret := C.QDrag_Start1(this.h, (C.int)(supportedActions))
return (DropAction)(_ret)
return (DropAction)(C.QDrag_Start1(this.h, (C.int)(supportedActions)))
}
func (this *QDrag) Exec1(supportedActions int) DropAction {
_ret := C.QDrag_Exec1(this.h, (C.int)(supportedActions))
return (DropAction)(_ret)
return (DropAction)(C.QDrag_Exec1(this.h, (C.int)(supportedActions)))
}
// Delete this object from C++ memory.

View File

@ -116,18 +116,15 @@ func (this *QEasingCurve) Swap(other *QEasingCurve) {
}
func (this *QEasingCurve) OperatorEqual(other *QEasingCurve) bool {
_ret := C.QEasingCurve_OperatorEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QEasingCurve_OperatorEqual(this.h, other.cPointer()))
}
func (this *QEasingCurve) OperatorNotEqual(other *QEasingCurve) bool {
_ret := C.QEasingCurve_OperatorNotEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QEasingCurve_OperatorNotEqual(this.h, other.cPointer()))
}
func (this *QEasingCurve) Amplitude() float64 {
_ret := C.QEasingCurve_Amplitude(this.h)
return (float64)(_ret)
return (float64)(C.QEasingCurve_Amplitude(this.h))
}
func (this *QEasingCurve) SetAmplitude(amplitude float64) {
@ -135,8 +132,7 @@ func (this *QEasingCurve) SetAmplitude(amplitude float64) {
}
func (this *QEasingCurve) Period() float64 {
_ret := C.QEasingCurve_Period(this.h)
return (float64)(_ret)
return (float64)(C.QEasingCurve_Period(this.h))
}
func (this *QEasingCurve) SetPeriod(period float64) {
@ -144,8 +140,7 @@ func (this *QEasingCurve) SetPeriod(period float64) {
}
func (this *QEasingCurve) Overshoot() float64 {
_ret := C.QEasingCurve_Overshoot(this.h)
return (float64)(_ret)
return (float64)(C.QEasingCurve_Overshoot(this.h))
}
func (this *QEasingCurve) SetOvershoot(overshoot float64) {
@ -163,17 +158,19 @@ func (this *QEasingCurve) AddTCBSegment(nextPoint *QPointF, t float64, c float64
func (this *QEasingCurve) ToCubicSpline() []QPointF {
var _ma *C.struct_miqt_array = C.QEasingCurve_ToCubicSpline(this.h)
_ret := make([]QPointF, int(_ma.len))
_outCast := (*[0xffff]*C.QPointF)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QPointF)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQPointF(_outCast[i])
_vv_ret := _outCast[i]
_vv_goptr := newQPointF(_vv_ret)
_vv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_vv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QEasingCurve) Type() QEasingCurve__Type {
_ret := C.QEasingCurve_Type(this.h)
return (QEasingCurve__Type)(_ret)
return (QEasingCurve__Type)(C.QEasingCurve_Type(this.h))
}
func (this *QEasingCurve) SetType(typeVal QEasingCurve__Type) {
@ -181,8 +178,7 @@ func (this *QEasingCurve) SetType(typeVal QEasingCurve__Type) {
}
func (this *QEasingCurve) ValueForProgress(progress float64) float64 {
_ret := C.QEasingCurve_ValueForProgress(this.h, (C.double)(progress))
return (float64)(_ret)
return (float64)(C.QEasingCurve_ValueForProgress(this.h, (C.double)(progress)))
}
// Delete this object from C++ memory.

View File

@ -52,13 +52,11 @@ func NewQElapsedTimer() *QElapsedTimer {
}
func QElapsedTimer_ClockType() QElapsedTimer__ClockType {
_ret := C.QElapsedTimer_ClockType()
return (QElapsedTimer__ClockType)(_ret)
return (QElapsedTimer__ClockType)(C.QElapsedTimer_ClockType())
}
func QElapsedTimer_IsMonotonic() bool {
_ret := C.QElapsedTimer_IsMonotonic()
return (bool)(_ret)
return (bool)(C.QElapsedTimer_IsMonotonic())
}
func (this *QElapsedTimer) Start() {
@ -66,8 +64,7 @@ func (this *QElapsedTimer) Start() {
}
func (this *QElapsedTimer) Restart() int64 {
_ret := C.QElapsedTimer_Restart(this.h)
return (int64)(_ret)
return (int64)(C.QElapsedTimer_Restart(this.h))
}
func (this *QElapsedTimer) Invalidate() {
@ -75,48 +72,39 @@ func (this *QElapsedTimer) Invalidate() {
}
func (this *QElapsedTimer) IsValid() bool {
_ret := C.QElapsedTimer_IsValid(this.h)
return (bool)(_ret)
return (bool)(C.QElapsedTimer_IsValid(this.h))
}
func (this *QElapsedTimer) NsecsElapsed() int64 {
_ret := C.QElapsedTimer_NsecsElapsed(this.h)
return (int64)(_ret)
return (int64)(C.QElapsedTimer_NsecsElapsed(this.h))
}
func (this *QElapsedTimer) Elapsed() int64 {
_ret := C.QElapsedTimer_Elapsed(this.h)
return (int64)(_ret)
return (int64)(C.QElapsedTimer_Elapsed(this.h))
}
func (this *QElapsedTimer) HasExpired(timeout int64) bool {
_ret := C.QElapsedTimer_HasExpired(this.h, (C.longlong)(timeout))
return (bool)(_ret)
return (bool)(C.QElapsedTimer_HasExpired(this.h, (C.longlong)(timeout)))
}
func (this *QElapsedTimer) MsecsSinceReference() int64 {
_ret := C.QElapsedTimer_MsecsSinceReference(this.h)
return (int64)(_ret)
return (int64)(C.QElapsedTimer_MsecsSinceReference(this.h))
}
func (this *QElapsedTimer) MsecsTo(other *QElapsedTimer) int64 {
_ret := C.QElapsedTimer_MsecsTo(this.h, other.cPointer())
return (int64)(_ret)
return (int64)(C.QElapsedTimer_MsecsTo(this.h, other.cPointer()))
}
func (this *QElapsedTimer) SecsTo(other *QElapsedTimer) int64 {
_ret := C.QElapsedTimer_SecsTo(this.h, other.cPointer())
return (int64)(_ret)
return (int64)(C.QElapsedTimer_SecsTo(this.h, other.cPointer()))
}
func (this *QElapsedTimer) OperatorEqual(other *QElapsedTimer) bool {
_ret := C.QElapsedTimer_OperatorEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QElapsedTimer_OperatorEqual(this.h, other.cPointer()))
}
func (this *QElapsedTimer) OperatorNotEqual(other *QElapsedTimer) bool {
_ret := C.QElapsedTimer_OperatorNotEqual(this.h, other.cPointer())
return (bool)(_ret)
return (bool)(C.QElapsedTimer_OperatorNotEqual(this.h, other.cPointer()))
}
// Delete this object from C++ memory.

View File

@ -49,8 +49,7 @@ func NewQErrorMessage2(parent *QWidget) *QErrorMessage {
}
func (this *QErrorMessage) MetaObject() *QMetaObject {
_ret := C.QErrorMessage_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QErrorMessage_MetaObject(this.h)))
}
func QErrorMessage_Tr(s string) string {
@ -72,8 +71,7 @@ func QErrorMessage_TrUtf8(s string) string {
}
func QErrorMessage_QtHandler() *QErrorMessage {
_ret := C.QErrorMessage_QtHandler()
return newQErrorMessage_U(unsafe.Pointer(_ret))
return newQErrorMessage_U(unsafe.Pointer(C.QErrorMessage_QtHandler()))
}
func (this *QErrorMessage) ShowMessage(message string) {

View File

@ -115,8 +115,7 @@ func NewQInputEvent3(typeVal QEvent__Type, modifiers int) *QInputEvent {
}
func (this *QInputEvent) Modifiers() int {
_ret := C.QInputEvent_Modifiers(this.h)
return (int)(_ret)
return (int)(C.QInputEvent_Modifiers(this.h))
}
func (this *QInputEvent) SetModifiers(amodifiers int) {
@ -124,8 +123,7 @@ func (this *QInputEvent) SetModifiers(amodifiers int) {
}
func (this *QInputEvent) Timestamp() uint64 {
_ret := C.QInputEvent_Timestamp(this.h)
return (uint64)(_ret)
return (uint64)(C.QInputEvent_Timestamp(this.h))
}
func (this *QInputEvent) SetTimestamp(atimestamp uint64) {
@ -196,38 +194,31 @@ func (this *QEnterEvent) GlobalPos() *QPoint {
}
func (this *QEnterEvent) X() int {
_ret := C.QEnterEvent_X(this.h)
return (int)(_ret)
return (int)(C.QEnterEvent_X(this.h))
}
func (this *QEnterEvent) Y() int {
_ret := C.QEnterEvent_Y(this.h)
return (int)(_ret)
return (int)(C.QEnterEvent_Y(this.h))
}
func (this *QEnterEvent) GlobalX() int {
_ret := C.QEnterEvent_GlobalX(this.h)
return (int)(_ret)
return (int)(C.QEnterEvent_GlobalX(this.h))
}
func (this *QEnterEvent) GlobalY() int {
_ret := C.QEnterEvent_GlobalY(this.h)
return (int)(_ret)
return (int)(C.QEnterEvent_GlobalY(this.h))
}
func (this *QEnterEvent) LocalPos() *QPointF {
_ret := C.QEnterEvent_LocalPos(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QEnterEvent_LocalPos(this.h)))
}
func (this *QEnterEvent) WindowPos() *QPointF {
_ret := C.QEnterEvent_WindowPos(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QEnterEvent_WindowPos(this.h)))
}
func (this *QEnterEvent) ScreenPos() *QPointF {
_ret := C.QEnterEvent_ScreenPos(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QEnterEvent_ScreenPos(this.h)))
}
// Delete this object from C++ memory.
@ -312,48 +303,39 @@ func (this *QMouseEvent) GlobalPos() *QPoint {
}
func (this *QMouseEvent) X() int {
_ret := C.QMouseEvent_X(this.h)
return (int)(_ret)
return (int)(C.QMouseEvent_X(this.h))
}
func (this *QMouseEvent) Y() int {
_ret := C.QMouseEvent_Y(this.h)
return (int)(_ret)
return (int)(C.QMouseEvent_Y(this.h))
}
func (this *QMouseEvent) GlobalX() int {
_ret := C.QMouseEvent_GlobalX(this.h)
return (int)(_ret)
return (int)(C.QMouseEvent_GlobalX(this.h))
}
func (this *QMouseEvent) GlobalY() int {
_ret := C.QMouseEvent_GlobalY(this.h)
return (int)(_ret)
return (int)(C.QMouseEvent_GlobalY(this.h))
}
func (this *QMouseEvent) LocalPos() *QPointF {
_ret := C.QMouseEvent_LocalPos(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QMouseEvent_LocalPos(this.h)))
}
func (this *QMouseEvent) WindowPos() *QPointF {
_ret := C.QMouseEvent_WindowPos(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QMouseEvent_WindowPos(this.h)))
}
func (this *QMouseEvent) ScreenPos() *QPointF {
_ret := C.QMouseEvent_ScreenPos(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QMouseEvent_ScreenPos(this.h)))
}
func (this *QMouseEvent) Button() MouseButton {
_ret := C.QMouseEvent_Button(this.h)
return (MouseButton)(_ret)
return (MouseButton)(C.QMouseEvent_Button(this.h))
}
func (this *QMouseEvent) Buttons() int {
_ret := C.QMouseEvent_Buttons(this.h)
return (int)(_ret)
return (int)(C.QMouseEvent_Buttons(this.h))
}
func (this *QMouseEvent) SetLocalPos(localPosition *QPointF) {
@ -361,13 +343,11 @@ func (this *QMouseEvent) SetLocalPos(localPosition *QPointF) {
}
func (this *QMouseEvent) Source() MouseEventSource {
_ret := C.QMouseEvent_Source(this.h)
return (MouseEventSource)(_ret)
return (MouseEventSource)(C.QMouseEvent_Source(this.h))
}
func (this *QMouseEvent) Flags() int {
_ret := C.QMouseEvent_Flags(this.h)
return (int)(_ret)
return (int)(C.QMouseEvent_Flags(this.h))
}
// Delete this object from C++ memory.
@ -440,13 +420,11 @@ func (this *QHoverEvent) OldPos() *QPoint {
}
func (this *QHoverEvent) PosF() *QPointF {
_ret := C.QHoverEvent_PosF(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QHoverEvent_PosF(this.h)))
}
func (this *QHoverEvent) OldPosF() *QPointF {
_ret := C.QHoverEvent_OldPosF(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QHoverEvent_OldPosF(this.h)))
}
// Delete this object from C++ memory.
@ -567,13 +545,11 @@ func (this *QWheelEvent) AngleDelta() *QPoint {
}
func (this *QWheelEvent) Delta() int {
_ret := C.QWheelEvent_Delta(this.h)
return (int)(_ret)
return (int)(C.QWheelEvent_Delta(this.h))
}
func (this *QWheelEvent) Orientation() Orientation {
_ret := C.QWheelEvent_Orientation(this.h)
return (Orientation)(_ret)
return (Orientation)(C.QWheelEvent_Orientation(this.h))
}
func (this *QWheelEvent) Pos() *QPoint {
@ -591,33 +567,27 @@ func (this *QWheelEvent) GlobalPos() *QPoint {
}
func (this *QWheelEvent) X() int {
_ret := C.QWheelEvent_X(this.h)
return (int)(_ret)
return (int)(C.QWheelEvent_X(this.h))
}
func (this *QWheelEvent) Y() int {
_ret := C.QWheelEvent_Y(this.h)
return (int)(_ret)
return (int)(C.QWheelEvent_Y(this.h))
}
func (this *QWheelEvent) GlobalX() int {
_ret := C.QWheelEvent_GlobalX(this.h)
return (int)(_ret)
return (int)(C.QWheelEvent_GlobalX(this.h))
}
func (this *QWheelEvent) GlobalY() int {
_ret := C.QWheelEvent_GlobalY(this.h)
return (int)(_ret)
return (int)(C.QWheelEvent_GlobalY(this.h))
}
func (this *QWheelEvent) PosF() *QPointF {
_ret := C.QWheelEvent_PosF(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QWheelEvent_PosF(this.h)))
}
func (this *QWheelEvent) GlobalPosF() *QPointF {
_ret := C.QWheelEvent_GlobalPosF(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QWheelEvent_GlobalPosF(this.h)))
}
func (this *QWheelEvent) Position() *QPointF {
@ -635,23 +605,19 @@ func (this *QWheelEvent) GlobalPosition() *QPointF {
}
func (this *QWheelEvent) Buttons() int {
_ret := C.QWheelEvent_Buttons(this.h)
return (int)(_ret)
return (int)(C.QWheelEvent_Buttons(this.h))
}
func (this *QWheelEvent) Phase() ScrollPhase {
_ret := C.QWheelEvent_Phase(this.h)
return (ScrollPhase)(_ret)
return (ScrollPhase)(C.QWheelEvent_Phase(this.h))
}
func (this *QWheelEvent) Inverted() bool {
_ret := C.QWheelEvent_Inverted(this.h)
return (bool)(_ret)
return (bool)(C.QWheelEvent_Inverted(this.h))
}
func (this *QWheelEvent) Source() MouseEventSource {
_ret := C.QWheelEvent_Source(this.h)
return (MouseEventSource)(_ret)
return (MouseEventSource)(C.QWheelEvent_Source(this.h))
}
// Delete this object from C++ memory.
@ -724,103 +690,83 @@ func (this *QTabletEvent) GlobalPos() *QPoint {
}
func (this *QTabletEvent) PosF() *QPointF {
_ret := C.QTabletEvent_PosF(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QTabletEvent_PosF(this.h)))
}
func (this *QTabletEvent) GlobalPosF() *QPointF {
_ret := C.QTabletEvent_GlobalPosF(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QTabletEvent_GlobalPosF(this.h)))
}
func (this *QTabletEvent) X() int {
_ret := C.QTabletEvent_X(this.h)
return (int)(_ret)
return (int)(C.QTabletEvent_X(this.h))
}
func (this *QTabletEvent) Y() int {
_ret := C.QTabletEvent_Y(this.h)
return (int)(_ret)
return (int)(C.QTabletEvent_Y(this.h))
}
func (this *QTabletEvent) GlobalX() int {
_ret := C.QTabletEvent_GlobalX(this.h)
return (int)(_ret)
return (int)(C.QTabletEvent_GlobalX(this.h))
}
func (this *QTabletEvent) GlobalY() int {
_ret := C.QTabletEvent_GlobalY(this.h)
return (int)(_ret)
return (int)(C.QTabletEvent_GlobalY(this.h))
}
func (this *QTabletEvent) HiResGlobalX() float64 {
_ret := C.QTabletEvent_HiResGlobalX(this.h)
return (float64)(_ret)
return (float64)(C.QTabletEvent_HiResGlobalX(this.h))
}
func (this *QTabletEvent) HiResGlobalY() float64 {
_ret := C.QTabletEvent_HiResGlobalY(this.h)
return (float64)(_ret)
return (float64)(C.QTabletEvent_HiResGlobalY(this.h))
}
func (this *QTabletEvent) Device() QTabletEvent__TabletDevice {
_ret := C.QTabletEvent_Device(this.h)
return (QTabletEvent__TabletDevice)(_ret)
return (QTabletEvent__TabletDevice)(C.QTabletEvent_Device(this.h))
}
func (this *QTabletEvent) DeviceType() QTabletEvent__TabletDevice {
_ret := C.QTabletEvent_DeviceType(this.h)
return (QTabletEvent__TabletDevice)(_ret)
return (QTabletEvent__TabletDevice)(C.QTabletEvent_DeviceType(this.h))
}
func (this *QTabletEvent) PointerType() QTabletEvent__PointerType {
_ret := C.QTabletEvent_PointerType(this.h)
return (QTabletEvent__PointerType)(_ret)
return (QTabletEvent__PointerType)(C.QTabletEvent_PointerType(this.h))
}
func (this *QTabletEvent) UniqueId() int64 {
_ret := C.QTabletEvent_UniqueId(this.h)
return (int64)(_ret)
return (int64)(C.QTabletEvent_UniqueId(this.h))
}
func (this *QTabletEvent) Pressure() float64 {
_ret := C.QTabletEvent_Pressure(this.h)
return (float64)(_ret)
return (float64)(C.QTabletEvent_Pressure(this.h))
}
func (this *QTabletEvent) Z() int {
_ret := C.QTabletEvent_Z(this.h)
return (int)(_ret)
return (int)(C.QTabletEvent_Z(this.h))
}
func (this *QTabletEvent) TangentialPressure() float64 {
_ret := C.QTabletEvent_TangentialPressure(this.h)
return (float64)(_ret)
return (float64)(C.QTabletEvent_TangentialPressure(this.h))
}
func (this *QTabletEvent) Rotation() float64 {
_ret := C.QTabletEvent_Rotation(this.h)
return (float64)(_ret)
return (float64)(C.QTabletEvent_Rotation(this.h))
}
func (this *QTabletEvent) XTilt() int {
_ret := C.QTabletEvent_XTilt(this.h)
return (int)(_ret)
return (int)(C.QTabletEvent_XTilt(this.h))
}
func (this *QTabletEvent) YTilt() int {
_ret := C.QTabletEvent_YTilt(this.h)
return (int)(_ret)
return (int)(C.QTabletEvent_YTilt(this.h))
}
func (this *QTabletEvent) Button() MouseButton {
_ret := C.QTabletEvent_Button(this.h)
return (MouseButton)(_ret)
return (MouseButton)(C.QTabletEvent_Button(this.h))
}
func (this *QTabletEvent) Buttons() int {
_ret := C.QTabletEvent_Buttons(this.h)
return (int)(_ret)
return (int)(C.QTabletEvent_Buttons(this.h))
}
// Delete this object from C++ memory.
@ -879,13 +825,11 @@ func NewQNativeGestureEvent3(param1 *QNativeGestureEvent) *QNativeGestureEvent {
}
func (this *QNativeGestureEvent) GestureType() NativeGestureType {
_ret := C.QNativeGestureEvent_GestureType(this.h)
return (NativeGestureType)(_ret)
return (NativeGestureType)(C.QNativeGestureEvent_GestureType(this.h))
}
func (this *QNativeGestureEvent) Value() float64 {
_ret := C.QNativeGestureEvent_Value(this.h)
return (float64)(_ret)
return (float64)(C.QNativeGestureEvent_Value(this.h))
}
func (this *QNativeGestureEvent) Pos() *QPoint {
@ -903,23 +847,19 @@ func (this *QNativeGestureEvent) GlobalPos() *QPoint {
}
func (this *QNativeGestureEvent) LocalPos() *QPointF {
_ret := C.QNativeGestureEvent_LocalPos(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QNativeGestureEvent_LocalPos(this.h)))
}
func (this *QNativeGestureEvent) WindowPos() *QPointF {
_ret := C.QNativeGestureEvent_WindowPos(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QNativeGestureEvent_WindowPos(this.h)))
}
func (this *QNativeGestureEvent) ScreenPos() *QPointF {
_ret := C.QNativeGestureEvent_ScreenPos(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QNativeGestureEvent_ScreenPos(this.h)))
}
func (this *QNativeGestureEvent) Device() *QTouchDevice {
_ret := C.QNativeGestureEvent_Device(this.h)
return newQTouchDevice_U(unsafe.Pointer(_ret))
return newQTouchDevice_U(unsafe.Pointer(C.QNativeGestureEvent_Device(this.h)))
}
// Delete this object from C++ memory.
@ -1026,18 +966,15 @@ func NewQKeyEvent9(typeVal QEvent__Type, key int, modifiers int, nativeScanCode
}
func (this *QKeyEvent) Key() int {
_ret := C.QKeyEvent_Key(this.h)
return (int)(_ret)
return (int)(C.QKeyEvent_Key(this.h))
}
func (this *QKeyEvent) Matches(key QKeySequence__StandardKey) bool {
_ret := C.QKeyEvent_Matches(this.h, (C.uintptr_t)(key))
return (bool)(_ret)
return (bool)(C.QKeyEvent_Matches(this.h, (C.uintptr_t)(key)))
}
func (this *QKeyEvent) Modifiers() int {
_ret := C.QKeyEvent_Modifiers(this.h)
return (int)(_ret)
return (int)(C.QKeyEvent_Modifiers(this.h))
}
func (this *QKeyEvent) Text() string {
@ -1048,28 +985,23 @@ func (this *QKeyEvent) Text() string {
}
func (this *QKeyEvent) IsAutoRepeat() bool {
_ret := C.QKeyEvent_IsAutoRepeat(this.h)
return (bool)(_ret)
return (bool)(C.QKeyEvent_IsAutoRepeat(this.h))
}
func (this *QKeyEvent) Count() int {
_ret := C.QKeyEvent_Count(this.h)
return (int)(_ret)
return (int)(C.QKeyEvent_Count(this.h))
}
func (this *QKeyEvent) NativeScanCode() uint {
_ret := C.QKeyEvent_NativeScanCode(this.h)
return (uint)(_ret)
return (uint)(C.QKeyEvent_NativeScanCode(this.h))
}
func (this *QKeyEvent) NativeVirtualKey() uint {
_ret := C.QKeyEvent_NativeVirtualKey(this.h)
return (uint)(_ret)
return (uint)(C.QKeyEvent_NativeVirtualKey(this.h))
}
func (this *QKeyEvent) NativeModifiers() uint {
_ret := C.QKeyEvent_NativeModifiers(this.h)
return (uint)(_ret)
return (uint)(C.QKeyEvent_NativeModifiers(this.h))
}
// Delete this object from C++ memory.
@ -1128,18 +1060,15 @@ func NewQFocusEvent3(typeVal QEvent__Type, reason FocusReason) *QFocusEvent {
}
func (this *QFocusEvent) GotFocus() bool {
_ret := C.QFocusEvent_GotFocus(this.h)
return (bool)(_ret)
return (bool)(C.QFocusEvent_GotFocus(this.h))
}
func (this *QFocusEvent) LostFocus() bool {
_ret := C.QFocusEvent_LostFocus(this.h)
return (bool)(_ret)
return (bool)(C.QFocusEvent_LostFocus(this.h))
}
func (this *QFocusEvent) Reason() FocusReason {
_ret := C.QFocusEvent_Reason(this.h)
return (FocusReason)(_ret)
return (FocusReason)(C.QFocusEvent_Reason(this.h))
}
// Delete this object from C++ memory.
@ -1198,13 +1127,11 @@ func NewQPaintEvent3(param1 *QPaintEvent) *QPaintEvent {
}
func (this *QPaintEvent) Rect() *QRect {
_ret := C.QPaintEvent_Rect(this.h)
return newQRect_U(unsafe.Pointer(_ret))
return newQRect_U(unsafe.Pointer(C.QPaintEvent_Rect(this.h)))
}
func (this *QPaintEvent) Region() *QRegion {
_ret := C.QPaintEvent_Region(this.h)
return newQRegion_U(unsafe.Pointer(_ret))
return newQRegion_U(unsafe.Pointer(C.QPaintEvent_Region(this.h)))
}
// Delete this object from C++ memory.
@ -1257,13 +1184,11 @@ func NewQMoveEvent2(param1 *QMoveEvent) *QMoveEvent {
}
func (this *QMoveEvent) Pos() *QPoint {
_ret := C.QMoveEvent_Pos(this.h)
return newQPoint_U(unsafe.Pointer(_ret))
return newQPoint_U(unsafe.Pointer(C.QMoveEvent_Pos(this.h)))
}
func (this *QMoveEvent) OldPos() *QPoint {
_ret := C.QMoveEvent_OldPos(this.h)
return newQPoint_U(unsafe.Pointer(_ret))
return newQPoint_U(unsafe.Pointer(C.QMoveEvent_OldPos(this.h)))
}
// Delete this object from C++ memory.
@ -1316,8 +1241,7 @@ func NewQExposeEvent2(param1 *QExposeEvent) *QExposeEvent {
}
func (this *QExposeEvent) Region() *QRegion {
_ret := C.QExposeEvent_Region(this.h)
return newQRegion_U(unsafe.Pointer(_ret))
return newQRegion_U(unsafe.Pointer(C.QExposeEvent_Region(this.h)))
}
// Delete this object from C++ memory.
@ -1370,8 +1294,7 @@ func NewQPlatformSurfaceEvent2(param1 *QPlatformSurfaceEvent) *QPlatformSurfaceE
}
func (this *QPlatformSurfaceEvent) SurfaceEventType() QPlatformSurfaceEvent__SurfaceEventType {
_ret := C.QPlatformSurfaceEvent_SurfaceEventType(this.h)
return (QPlatformSurfaceEvent__SurfaceEventType)(_ret)
return (QPlatformSurfaceEvent__SurfaceEventType)(C.QPlatformSurfaceEvent_SurfaceEventType(this.h))
}
// Delete this object from C++ memory.
@ -1424,13 +1347,11 @@ func NewQResizeEvent2(param1 *QResizeEvent) *QResizeEvent {
}
func (this *QResizeEvent) Size() *QSize {
_ret := C.QResizeEvent_Size(this.h)
return newQSize_U(unsafe.Pointer(_ret))
return newQSize_U(unsafe.Pointer(C.QResizeEvent_Size(this.h)))
}
func (this *QResizeEvent) OldSize() *QSize {
_ret := C.QResizeEvent_OldSize(this.h)
return newQSize_U(unsafe.Pointer(_ret))
return newQSize_U(unsafe.Pointer(C.QResizeEvent_OldSize(this.h)))
}
// Delete this object from C++ memory.
@ -1707,38 +1628,31 @@ func NewQContextMenuEvent4(param1 *QContextMenuEvent) *QContextMenuEvent {
}
func (this *QContextMenuEvent) X() int {
_ret := C.QContextMenuEvent_X(this.h)
return (int)(_ret)
return (int)(C.QContextMenuEvent_X(this.h))
}
func (this *QContextMenuEvent) Y() int {
_ret := C.QContextMenuEvent_Y(this.h)
return (int)(_ret)
return (int)(C.QContextMenuEvent_Y(this.h))
}
func (this *QContextMenuEvent) GlobalX() int {
_ret := C.QContextMenuEvent_GlobalX(this.h)
return (int)(_ret)
return (int)(C.QContextMenuEvent_GlobalX(this.h))
}
func (this *QContextMenuEvent) GlobalY() int {
_ret := C.QContextMenuEvent_GlobalY(this.h)
return (int)(_ret)
return (int)(C.QContextMenuEvent_GlobalY(this.h))
}
func (this *QContextMenuEvent) Pos() *QPoint {
_ret := C.QContextMenuEvent_Pos(this.h)
return newQPoint_U(unsafe.Pointer(_ret))
return newQPoint_U(unsafe.Pointer(C.QContextMenuEvent_Pos(this.h)))
}
func (this *QContextMenuEvent) GlobalPos() *QPoint {
_ret := C.QContextMenuEvent_GlobalPos(this.h)
return newQPoint_U(unsafe.Pointer(_ret))
return newQPoint_U(unsafe.Pointer(C.QContextMenuEvent_GlobalPos(this.h)))
}
func (this *QContextMenuEvent) Reason() QContextMenuEvent__Reason {
_ret := C.QContextMenuEvent_Reason(this.h)
return (QContextMenuEvent__Reason)(_ret)
return (QContextMenuEvent__Reason)(C.QContextMenuEvent_Reason(this.h))
}
// Delete this object from C++ memory.
@ -1827,13 +1741,11 @@ func (this *QInputMethodEvent) CommitString() string {
}
func (this *QInputMethodEvent) ReplacementStart() int {
_ret := C.QInputMethodEvent_ReplacementStart(this.h)
return (int)(_ret)
return (int)(C.QInputMethodEvent_ReplacementStart(this.h))
}
func (this *QInputMethodEvent) ReplacementLength() int {
_ret := C.QInputMethodEvent_ReplacementLength(this.h)
return (int)(_ret)
return (int)(C.QInputMethodEvent_ReplacementLength(this.h))
}
func (this *QInputMethodEvent) SetCommitString2(commitString string, replaceFrom int) {
@ -1898,8 +1810,7 @@ func NewQInputMethodQueryEvent2(param1 *QInputMethodQueryEvent) *QInputMethodQue
}
func (this *QInputMethodQueryEvent) Queries() int {
_ret := C.QInputMethodQueryEvent_Queries(this.h)
return (int)(_ret)
return (int)(C.QInputMethodQueryEvent_Queries(this.h))
}
func (this *QInputMethodQueryEvent) SetValue(query InputMethodQuery, value *QVariant) {
@ -1976,28 +1887,23 @@ func (this *QDropEvent) Pos() *QPoint {
}
func (this *QDropEvent) PosF() *QPointF {
_ret := C.QDropEvent_PosF(this.h)
return newQPointF_U(unsafe.Pointer(_ret))
return newQPointF_U(unsafe.Pointer(C.QDropEvent_PosF(this.h)))
}
func (this *QDropEvent) MouseButtons() int {
_ret := C.QDropEvent_MouseButtons(this.h)
return (int)(_ret)
return (int)(C.QDropEvent_MouseButtons(this.h))
}
func (this *QDropEvent) KeyboardModifiers() int {
_ret := C.QDropEvent_KeyboardModifiers(this.h)
return (int)(_ret)
return (int)(C.QDropEvent_KeyboardModifiers(this.h))
}
func (this *QDropEvent) PossibleActions() int {
_ret := C.QDropEvent_PossibleActions(this.h)
return (int)(_ret)
return (int)(C.QDropEvent_PossibleActions(this.h))
}
func (this *QDropEvent) ProposedAction() DropAction {
_ret := C.QDropEvent_ProposedAction(this.h)
return (DropAction)(_ret)
return (DropAction)(C.QDropEvent_ProposedAction(this.h))
}
func (this *QDropEvent) AcceptProposedAction() {
@ -2005,8 +1911,7 @@ func (this *QDropEvent) AcceptProposedAction() {
}
func (this *QDropEvent) DropAction() DropAction {
_ret := C.QDropEvent_DropAction(this.h)
return (DropAction)(_ret)
return (DropAction)(C.QDropEvent_DropAction(this.h))
}
func (this *QDropEvent) SetDropAction(action DropAction) {
@ -2014,13 +1919,11 @@ func (this *QDropEvent) SetDropAction(action DropAction) {
}
func (this *QDropEvent) Source() *QObject {
_ret := C.QDropEvent_Source(this.h)
return newQObject_U(unsafe.Pointer(_ret))
return newQObject_U(unsafe.Pointer(C.QDropEvent_Source(this.h)))
}
func (this *QDropEvent) MimeData() *QMimeData {
_ret := C.QDropEvent_MimeData(this.h)
return newQMimeData_U(unsafe.Pointer(_ret))
return newQMimeData_U(unsafe.Pointer(C.QDropEvent_MimeData(this.h)))
}
// Delete this object from C++ memory.
@ -2257,33 +2160,27 @@ func NewQHelpEvent2(param1 *QHelpEvent) *QHelpEvent {
}
func (this *QHelpEvent) X() int {
_ret := C.QHelpEvent_X(this.h)
return (int)(_ret)
return (int)(C.QHelpEvent_X(this.h))
}
func (this *QHelpEvent) Y() int {
_ret := C.QHelpEvent_Y(this.h)
return (int)(_ret)
return (int)(C.QHelpEvent_Y(this.h))
}
func (this *QHelpEvent) GlobalX() int {
_ret := C.QHelpEvent_GlobalX(this.h)
return (int)(_ret)
return (int)(C.QHelpEvent_GlobalX(this.h))
}
func (this *QHelpEvent) GlobalY() int {
_ret := C.QHelpEvent_GlobalY(this.h)
return (int)(_ret)
return (int)(C.QHelpEvent_GlobalY(this.h))
}
func (this *QHelpEvent) Pos() *QPoint {
_ret := C.QHelpEvent_Pos(this.h)
return newQPoint_U(unsafe.Pointer(_ret))
return newQPoint_U(unsafe.Pointer(C.QHelpEvent_Pos(this.h)))
}
func (this *QHelpEvent) GlobalPos() *QPoint {
_ret := C.QHelpEvent_GlobalPos(this.h)
return newQPoint_U(unsafe.Pointer(_ret))
return newQPoint_U(unsafe.Pointer(C.QHelpEvent_GlobalPos(this.h)))
}
// Delete this object from C++ memory.
@ -2458,13 +2355,11 @@ func NewQActionEvent3(typeVal int, action *QAction, before *QAction) *QActionEve
}
func (this *QActionEvent) Action() *QAction {
_ret := C.QActionEvent_Action(this.h)
return newQAction_U(unsafe.Pointer(_ret))
return newQAction_U(unsafe.Pointer(C.QActionEvent_Action(this.h)))
}
func (this *QActionEvent) Before() *QAction {
_ret := C.QActionEvent_Before(this.h)
return newQAction_U(unsafe.Pointer(_ret))
return newQAction_U(unsafe.Pointer(C.QActionEvent_Before(this.h)))
}
func (this *QActionEvent) OperatorAssign(param1 *QActionEvent) {
@ -2543,8 +2438,7 @@ func (this *QFileOpenEvent) Url() *QUrl {
}
func (this *QFileOpenEvent) OpenFile(file *QFile, flags int) bool {
_ret := C.QFileOpenEvent_OpenFile(this.h, file.cPointer(), (C.int)(flags))
return (bool)(_ret)
return (bool)(C.QFileOpenEvent_OpenFile(this.h, file.cPointer(), (C.int)(flags)))
}
// Delete this object from C++ memory.
@ -2597,8 +2491,7 @@ func NewQToolBarChangeEvent2(param1 *QToolBarChangeEvent) *QToolBarChangeEvent {
}
func (this *QToolBarChangeEvent) Toggle() bool {
_ret := C.QToolBarChangeEvent_Toggle(this.h)
return (bool)(_ret)
return (bool)(C.QToolBarChangeEvent_Toggle(this.h))
}
// Delete this object from C++ memory.
@ -2657,18 +2550,15 @@ func NewQShortcutEvent3(key *QKeySequence, id int, ambiguous bool) *QShortcutEve
}
func (this *QShortcutEvent) Key() *QKeySequence {
_ret := C.QShortcutEvent_Key(this.h)
return newQKeySequence_U(unsafe.Pointer(_ret))
return newQKeySequence_U(unsafe.Pointer(C.QShortcutEvent_Key(this.h)))
}
func (this *QShortcutEvent) ShortcutId() int {
_ret := C.QShortcutEvent_ShortcutId(this.h)
return (int)(_ret)
return (int)(C.QShortcutEvent_ShortcutId(this.h))
}
func (this *QShortcutEvent) IsAmbiguous() bool {
_ret := C.QShortcutEvent_IsAmbiguous(this.h)
return (bool)(_ret)
return (bool)(C.QShortcutEvent_IsAmbiguous(this.h))
}
// Delete this object from C++ memory.
@ -2727,13 +2617,11 @@ func NewQWindowStateChangeEvent3(aOldState int, isOverride bool) *QWindowStateCh
}
func (this *QWindowStateChangeEvent) OldState() int {
_ret := C.QWindowStateChangeEvent_OldState(this.h)
return (int)(_ret)
return (int)(C.QWindowStateChangeEvent_OldState(this.h))
}
func (this *QWindowStateChangeEvent) IsOverride() bool {
_ret := C.QWindowStateChangeEvent_IsOverride(this.h)
return (bool)(_ret)
return (bool)(C.QWindowStateChangeEvent_IsOverride(this.h))
}
// Delete this object from C++ memory.
@ -2792,13 +2680,11 @@ func QPointingDeviceUniqueId_FromNumericId(id int64) *QPointingDeviceUniqueId {
}
func (this *QPointingDeviceUniqueId) IsValid() bool {
_ret := C.QPointingDeviceUniqueId_IsValid(this.h)
return (bool)(_ret)
return (bool)(C.QPointingDeviceUniqueId_IsValid(this.h))
}
func (this *QPointingDeviceUniqueId) NumericId() int64 {
_ret := C.QPointingDeviceUniqueId_NumericId(this.h)
return (int64)(_ret)
return (int64)(C.QPointingDeviceUniqueId_NumericId(this.h))
}
// Delete this object from C++ memory.
@ -2883,23 +2769,19 @@ func NewQTouchEvent6(eventType QEvent__Type, device *QTouchDevice, modifiers int
}
func (this *QTouchEvent) Window() *QWindow {
_ret := C.QTouchEvent_Window(this.h)
return newQWindow_U(unsafe.Pointer(_ret))
return newQWindow_U(unsafe.Pointer(C.QTouchEvent_Window(this.h)))
}
func (this *QTouchEvent) Target() *QObject {
_ret := C.QTouchEvent_Target(this.h)
return newQObject_U(unsafe.Pointer(_ret))
return newQObject_U(unsafe.Pointer(C.QTouchEvent_Target(this.h)))
}
func (this *QTouchEvent) TouchPointStates() int {
_ret := C.QTouchEvent_TouchPointStates(this.h)
return (int)(_ret)
return (int)(C.QTouchEvent_TouchPointStates(this.h))
}
func (this *QTouchEvent) Device() *QTouchDevice {
_ret := C.QTouchEvent_Device(this.h)
return newQTouchDevice_U(unsafe.Pointer(_ret))
return newQTouchDevice_U(unsafe.Pointer(C.QTouchEvent_Device(this.h)))
}
func (this *QTouchEvent) SetWindow(awindow *QWindow) {
@ -3083,8 +2965,7 @@ func (this *QScrollEvent) OvershootDistance() *QPointF {
}
func (this *QScrollEvent) ScrollState() QScrollEvent__ScrollState {
_ret := C.QScrollEvent_ScrollState(this.h)
return (QScrollEvent__ScrollState)(_ret)
return (QScrollEvent__ScrollState)(C.QScrollEvent_ScrollState(this.h))
}
// Delete this object from C++ memory.
@ -3137,13 +3018,11 @@ func NewQScreenOrientationChangeEvent2(param1 *QScreenOrientationChangeEvent) *Q
}
func (this *QScreenOrientationChangeEvent) Screen() *QScreen {
_ret := C.QScreenOrientationChangeEvent_Screen(this.h)
return newQScreen_U(unsafe.Pointer(_ret))
return newQScreen_U(unsafe.Pointer(C.QScreenOrientationChangeEvent_Screen(this.h)))
}
func (this *QScreenOrientationChangeEvent) Orientation() ScreenOrientation {
_ret := C.QScreenOrientationChangeEvent_Orientation(this.h)
return (ScreenOrientation)(_ret)
return (ScreenOrientation)(C.QScreenOrientationChangeEvent_Orientation(this.h))
}
// Delete this object from C++ memory.
@ -3196,8 +3075,7 @@ func NewQApplicationStateChangeEvent2(param1 *QApplicationStateChangeEvent) *QAp
}
func (this *QApplicationStateChangeEvent) ApplicationState() ApplicationState {
_ret := C.QApplicationStateChangeEvent_ApplicationState(this.h)
return (ApplicationState)(_ret)
return (ApplicationState)(C.QApplicationStateChangeEvent_ApplicationState(this.h))
}
// Delete this object from C++ memory.
@ -3313,8 +3191,7 @@ func (this *QTouchEvent__TouchPoint) Swap(other *QTouchEvent__TouchPoint) {
}
func (this *QTouchEvent__TouchPoint) Id() int {
_ret := C.QTouchEvent__TouchPoint_Id(this.h)
return (int)(_ret)
return (int)(C.QTouchEvent__TouchPoint_Id(this.h))
}
func (this *QTouchEvent__TouchPoint) UniqueId() *QPointingDeviceUniqueId {
@ -3325,8 +3202,7 @@ func (this *QTouchEvent__TouchPoint) UniqueId() *QPointingDeviceUniqueId {
}
func (this *QTouchEvent__TouchPoint) State() TouchPointState {
_ret := C.QTouchEvent__TouchPoint_State(this.h)
return (TouchPointState)(_ret)
return (TouchPointState)(C.QTouchEvent__TouchPoint_State(this.h))
}
func (this *QTouchEvent__TouchPoint) Pos() *QPointF {
@ -3447,13 +3323,11 @@ func (this *QTouchEvent__TouchPoint) SetScreenRect(screenRect *QRectF) {
}
func (this *QTouchEvent__TouchPoint) Pressure() float64 {
_ret := C.QTouchEvent__TouchPoint_Pressure(this.h)
return (float64)(_ret)
return (float64)(C.QTouchEvent__TouchPoint_Pressure(this.h))
}
func (this *QTouchEvent__TouchPoint) Rotation() float64 {
_ret := C.QTouchEvent__TouchPoint_Rotation(this.h)
return (float64)(_ret)
return (float64)(C.QTouchEvent__TouchPoint_Rotation(this.h))
}
func (this *QTouchEvent__TouchPoint) EllipseDiameters() *QSizeF {
@ -3471,16 +3345,18 @@ func (this *QTouchEvent__TouchPoint) Velocity() *QVector2D {
}
func (this *QTouchEvent__TouchPoint) Flags() int {
_ret := C.QTouchEvent__TouchPoint_Flags(this.h)
return (int)(_ret)
return (int)(C.QTouchEvent__TouchPoint_Flags(this.h))
}
func (this *QTouchEvent__TouchPoint) RawScreenPositions() []QPointF {
var _ma *C.struct_miqt_array = C.QTouchEvent__TouchPoint_RawScreenPositions(this.h)
_ret := make([]QPointF, int(_ma.len))
_outCast := (*[0xffff]*C.QPointF)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QPointF)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQPointF(_outCast[i])
_vv_ret := _outCast[i]
_vv_goptr := newQPointF(_vv_ret)
_vv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_vv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret

View File

@ -61,8 +61,7 @@ func NewQEventLoop2(parent *QObject) *QEventLoop {
}
func (this *QEventLoop) MetaObject() *QMetaObject {
_ret := C.QEventLoop_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QEventLoop_MetaObject(this.h)))
}
func QEventLoop_Tr(s string) string {
@ -84,8 +83,7 @@ func QEventLoop_TrUtf8(s string) string {
}
func (this *QEventLoop) ProcessEvents() bool {
_ret := C.QEventLoop_ProcessEvents(this.h)
return (bool)(_ret)
return (bool)(C.QEventLoop_ProcessEvents(this.h))
}
func (this *QEventLoop) ProcessEvents2(flags int, maximumTime int) {
@ -93,8 +91,7 @@ func (this *QEventLoop) ProcessEvents2(flags int, maximumTime int) {
}
func (this *QEventLoop) Exec() int {
_ret := C.QEventLoop_Exec(this.h)
return (int)(_ret)
return (int)(C.QEventLoop_Exec(this.h))
}
func (this *QEventLoop) Exit() {
@ -102,8 +99,7 @@ func (this *QEventLoop) Exit() {
}
func (this *QEventLoop) IsRunning() bool {
_ret := C.QEventLoop_IsRunning(this.h)
return (bool)(_ret)
return (bool)(C.QEventLoop_IsRunning(this.h))
}
func (this *QEventLoop) WakeUp() {
@ -111,8 +107,7 @@ func (this *QEventLoop) WakeUp() {
}
func (this *QEventLoop) Event(event *QEvent) bool {
_ret := C.QEventLoop_Event(this.h, event.cPointer())
return (bool)(_ret)
return (bool)(C.QEventLoop_Event(this.h, event.cPointer()))
}
func (this *QEventLoop) Quit() {
@ -164,13 +159,11 @@ func QEventLoop_TrUtf83(s string, c string, n int) string {
}
func (this *QEventLoop) ProcessEvents1(flags int) bool {
_ret := C.QEventLoop_ProcessEvents1(this.h, (C.int)(flags))
return (bool)(_ret)
return (bool)(C.QEventLoop_ProcessEvents1(this.h, (C.int)(flags)))
}
func (this *QEventLoop) Exec1(flags int) int {
_ret := C.QEventLoop_Exec1(this.h, (C.int)(flags))
return (int)(_ret)
return (int)(C.QEventLoop_Exec1(this.h, (C.int)(flags)))
}
func (this *QEventLoop) Exit1(returnCode int) {

View File

@ -61,8 +61,7 @@ func NewQEventTransition4(object *QObject, typeVal QEvent__Type, sourceState *QS
}
func (this *QEventTransition) MetaObject() *QMetaObject {
_ret := C.QEventTransition_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QEventTransition_MetaObject(this.h)))
}
func QEventTransition_Tr(s string) string {
@ -84,8 +83,7 @@ func QEventTransition_TrUtf8(s string) string {
}
func (this *QEventTransition) EventSource() *QObject {
_ret := C.QEventTransition_EventSource(this.h)
return newQObject_U(unsafe.Pointer(_ret))
return newQObject_U(unsafe.Pointer(C.QEventTransition_EventSource(this.h)))
}
func (this *QEventTransition) SetEventSource(object *QObject) {
@ -93,8 +91,7 @@ func (this *QEventTransition) SetEventSource(object *QObject) {
}
func (this *QEventTransition) EventType() QEvent__Type {
_ret := C.QEventTransition_EventType(this.h)
return (QEvent__Type)(_ret)
return (QEvent__Type)(C.QEventTransition_EventType(this.h))
}
func (this *QEventTransition) SetEventType(typeVal QEvent__Type) {

View File

@ -94,8 +94,7 @@ func NewQtPrivate__ExceptionStore(param1 *QtPrivate__ExceptionStore) *QtPrivate_
}
func (this *QtPrivate__ExceptionStore) HasException() bool {
_ret := C.QtPrivate__ExceptionStore_HasException(this.h)
return (bool)(_ret)
return (bool)(C.QtPrivate__ExceptionStore_HasException(this.h))
}
func (this *QtPrivate__ExceptionStore) Exception() *QtPrivate__ExceptionHolder {
@ -110,8 +109,7 @@ func (this *QtPrivate__ExceptionStore) ThrowPossibleException() {
}
func (this *QtPrivate__ExceptionStore) HasThrown() bool {
_ret := C.QtPrivate__ExceptionStore_HasThrown(this.h)
return (bool)(_ret)
return (bool)(C.QtPrivate__ExceptionStore_HasThrown(this.h))
}
// Delete this object from C++ memory.

View File

@ -40,8 +40,10 @@ func (this *QFactoryInterface) Keys() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret

View File

@ -65,8 +65,7 @@ func NewQFile4(name string, parent *QObject) *QFile {
}
func (this *QFile) MetaObject() *QMetaObject {
_ret := C.QFile_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QFile_MetaObject(this.h)))
}
func QFile_Tr(s string) string {
@ -126,15 +125,13 @@ func QFile_DecodeNameWithLocalFileName(localFileName string) string {
}
func (this *QFile) Exists() bool {
_ret := C.QFile_Exists(this.h)
return (bool)(_ret)
return (bool)(C.QFile_Exists(this.h))
}
func QFile_ExistsWithFileName(fileName string) bool {
fileName_ms := miqt_strdupg(fileName)
defer C.free(fileName_ms)
_ret := C.QFile_ExistsWithFileName((*C.struct_miqt_string)(fileName_ms))
return (bool)(_ret)
return (bool)(C.QFile_ExistsWithFileName((*C.struct_miqt_string)(fileName_ms)))
}
func (this *QFile) ReadLink() string {
@ -170,34 +167,29 @@ func QFile_SymLinkTargetWithFileName(fileName string) string {
}
func (this *QFile) Remove() bool {
_ret := C.QFile_Remove(this.h)
return (bool)(_ret)
return (bool)(C.QFile_Remove(this.h))
}
func QFile_RemoveWithFileName(fileName string) bool {
fileName_ms := miqt_strdupg(fileName)
defer C.free(fileName_ms)
_ret := C.QFile_RemoveWithFileName((*C.struct_miqt_string)(fileName_ms))
return (bool)(_ret)
return (bool)(C.QFile_RemoveWithFileName((*C.struct_miqt_string)(fileName_ms)))
}
func (this *QFile) MoveToTrash() bool {
_ret := C.QFile_MoveToTrash(this.h)
return (bool)(_ret)
return (bool)(C.QFile_MoveToTrash(this.h))
}
func QFile_MoveToTrashWithFileName(fileName string) bool {
fileName_ms := miqt_strdupg(fileName)
defer C.free(fileName_ms)
_ret := C.QFile_MoveToTrashWithFileName((*C.struct_miqt_string)(fileName_ms))
return (bool)(_ret)
return (bool)(C.QFile_MoveToTrashWithFileName((*C.struct_miqt_string)(fileName_ms)))
}
func (this *QFile) Rename(newName string) bool {
newName_ms := miqt_strdupg(newName)
defer C.free(newName_ms)
_ret := C.QFile_Rename(this.h, (*C.struct_miqt_string)(newName_ms))
return (bool)(_ret)
return (bool)(C.QFile_Rename(this.h, (*C.struct_miqt_string)(newName_ms)))
}
func QFile_Rename2(oldName string, newName string) bool {
@ -205,15 +197,13 @@ func QFile_Rename2(oldName string, newName string) bool {
defer C.free(oldName_ms)
newName_ms := miqt_strdupg(newName)
defer C.free(newName_ms)
_ret := C.QFile_Rename2((*C.struct_miqt_string)(oldName_ms), (*C.struct_miqt_string)(newName_ms))
return (bool)(_ret)
return (bool)(C.QFile_Rename2((*C.struct_miqt_string)(oldName_ms), (*C.struct_miqt_string)(newName_ms)))
}
func (this *QFile) Link(newName string) bool {
newName_ms := miqt_strdupg(newName)
defer C.free(newName_ms)
_ret := C.QFile_Link(this.h, (*C.struct_miqt_string)(newName_ms))
return (bool)(_ret)
return (bool)(C.QFile_Link(this.h, (*C.struct_miqt_string)(newName_ms)))
}
func QFile_Link2(oldname string, newName string) bool {
@ -221,15 +211,13 @@ func QFile_Link2(oldname string, newName string) bool {
defer C.free(oldname_ms)
newName_ms := miqt_strdupg(newName)
defer C.free(newName_ms)
_ret := C.QFile_Link2((*C.struct_miqt_string)(oldname_ms), (*C.struct_miqt_string)(newName_ms))
return (bool)(_ret)
return (bool)(C.QFile_Link2((*C.struct_miqt_string)(oldname_ms), (*C.struct_miqt_string)(newName_ms)))
}
func (this *QFile) Copy(newName string) bool {
newName_ms := miqt_strdupg(newName)
defer C.free(newName_ms)
_ret := C.QFile_Copy(this.h, (*C.struct_miqt_string)(newName_ms))
return (bool)(_ret)
return (bool)(C.QFile_Copy(this.h, (*C.struct_miqt_string)(newName_ms)))
}
func QFile_Copy2(fileName string, newName string) bool {
@ -237,59 +225,49 @@ func QFile_Copy2(fileName string, newName string) bool {
defer C.free(fileName_ms)
newName_ms := miqt_strdupg(newName)
defer C.free(newName_ms)
_ret := C.QFile_Copy2((*C.struct_miqt_string)(fileName_ms), (*C.struct_miqt_string)(newName_ms))
return (bool)(_ret)
return (bool)(C.QFile_Copy2((*C.struct_miqt_string)(fileName_ms), (*C.struct_miqt_string)(newName_ms)))
}
func (this *QFile) Open(flags int) bool {
_ret := C.QFile_Open(this.h, (C.int)(flags))
return (bool)(_ret)
return (bool)(C.QFile_Open(this.h, (C.int)(flags)))
}
func (this *QFile) Open3(fd int, ioFlags int) bool {
_ret := C.QFile_Open3(this.h, (C.int)(fd), (C.int)(ioFlags))
return (bool)(_ret)
return (bool)(C.QFile_Open3(this.h, (C.int)(fd), (C.int)(ioFlags)))
}
func (this *QFile) Size() int64 {
_ret := C.QFile_Size(this.h)
return (int64)(_ret)
return (int64)(C.QFile_Size(this.h))
}
func (this *QFile) Resize(sz int64) bool {
_ret := C.QFile_Resize(this.h, (C.longlong)(sz))
return (bool)(_ret)
return (bool)(C.QFile_Resize(this.h, (C.longlong)(sz)))
}
func QFile_Resize2(filename string, sz int64) bool {
filename_ms := miqt_strdupg(filename)
defer C.free(filename_ms)
_ret := C.QFile_Resize2((*C.struct_miqt_string)(filename_ms), (C.longlong)(sz))
return (bool)(_ret)
return (bool)(C.QFile_Resize2((*C.struct_miqt_string)(filename_ms), (C.longlong)(sz)))
}
func (this *QFile) Permissions() int {
_ret := C.QFile_Permissions(this.h)
return (int)(_ret)
return (int)(C.QFile_Permissions(this.h))
}
func QFile_PermissionsWithFilename(filename string) int {
filename_ms := miqt_strdupg(filename)
defer C.free(filename_ms)
_ret := C.QFile_PermissionsWithFilename((*C.struct_miqt_string)(filename_ms))
return (int)(_ret)
return (int)(C.QFile_PermissionsWithFilename((*C.struct_miqt_string)(filename_ms)))
}
func (this *QFile) SetPermissions(permissionSpec int) bool {
_ret := C.QFile_SetPermissions(this.h, (C.int)(permissionSpec))
return (bool)(_ret)
return (bool)(C.QFile_SetPermissions(this.h, (C.int)(permissionSpec)))
}
func QFile_SetPermissions2(filename string, permissionSpec int) bool {
filename_ms := miqt_strdupg(filename)
defer C.free(filename_ms)
_ret := C.QFile_SetPermissions2((*C.struct_miqt_string)(filename_ms), (C.int)(permissionSpec))
return (bool)(_ret)
return (bool)(C.QFile_SetPermissions2((*C.struct_miqt_string)(filename_ms), (C.int)(permissionSpec)))
}
func QFile_Tr2(s string, c string) string {
@ -337,8 +315,7 @@ func QFile_TrUtf83(s string, c string, n int) string {
}
func (this *QFile) Open33(fd int, ioFlags int, handleFlags int) bool {
_ret := C.QFile_Open33(this.h, (C.int)(fd), (C.int)(ioFlags), (C.int)(handleFlags))
return (bool)(_ret)
return (bool)(C.QFile_Open33(this.h, (C.int)(fd), (C.int)(ioFlags), (C.int)(handleFlags)))
}
// Delete this object from C++ memory.

View File

@ -97,8 +97,7 @@ func newQFileDevice_U(h unsafe.Pointer) *QFileDevice {
}
func (this *QFileDevice) MetaObject() *QMetaObject {
_ret := C.QFileDevice_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QFileDevice_MetaObject(this.h)))
}
func QFileDevice_Tr(s string) string {
@ -120,8 +119,7 @@ func QFileDevice_TrUtf8(s string) string {
}
func (this *QFileDevice) Error() QFileDevice__FileError {
_ret := C.QFileDevice_Error(this.h)
return (QFileDevice__FileError)(_ret)
return (QFileDevice__FileError)(C.QFileDevice_Error(this.h))
}
func (this *QFileDevice) UnsetError() {
@ -133,13 +131,11 @@ func (this *QFileDevice) Close() {
}
func (this *QFileDevice) IsSequential() bool {
_ret := C.QFileDevice_IsSequential(this.h)
return (bool)(_ret)
return (bool)(C.QFileDevice_IsSequential(this.h))
}
func (this *QFileDevice) Handle() int {
_ret := C.QFileDevice_Handle(this.h)
return (int)(_ret)
return (int)(C.QFileDevice_Handle(this.h))
}
func (this *QFileDevice) FileName() string {
@ -150,53 +146,43 @@ func (this *QFileDevice) FileName() string {
}
func (this *QFileDevice) Pos() int64 {
_ret := C.QFileDevice_Pos(this.h)
return (int64)(_ret)
return (int64)(C.QFileDevice_Pos(this.h))
}
func (this *QFileDevice) Seek(offset int64) bool {
_ret := C.QFileDevice_Seek(this.h, (C.longlong)(offset))
return (bool)(_ret)
return (bool)(C.QFileDevice_Seek(this.h, (C.longlong)(offset)))
}
func (this *QFileDevice) AtEnd() bool {
_ret := C.QFileDevice_AtEnd(this.h)
return (bool)(_ret)
return (bool)(C.QFileDevice_AtEnd(this.h))
}
func (this *QFileDevice) Flush() bool {
_ret := C.QFileDevice_Flush(this.h)
return (bool)(_ret)
return (bool)(C.QFileDevice_Flush(this.h))
}
func (this *QFileDevice) Size() int64 {
_ret := C.QFileDevice_Size(this.h)
return (int64)(_ret)
return (int64)(C.QFileDevice_Size(this.h))
}
func (this *QFileDevice) Resize(sz int64) bool {
_ret := C.QFileDevice_Resize(this.h, (C.longlong)(sz))
return (bool)(_ret)
return (bool)(C.QFileDevice_Resize(this.h, (C.longlong)(sz)))
}
func (this *QFileDevice) Permissions() int {
_ret := C.QFileDevice_Permissions(this.h)
return (int)(_ret)
return (int)(C.QFileDevice_Permissions(this.h))
}
func (this *QFileDevice) SetPermissions(permissionSpec int) bool {
_ret := C.QFileDevice_SetPermissions(this.h, (C.int)(permissionSpec))
return (bool)(_ret)
return (bool)(C.QFileDevice_SetPermissions(this.h, (C.int)(permissionSpec)))
}
func (this *QFileDevice) Map(offset int64, size int64) *byte {
_ret := C.QFileDevice_Map(this.h, (C.longlong)(offset), (C.longlong)(size))
return (*byte)(_ret)
return (*byte)(C.QFileDevice_Map(this.h, (C.longlong)(offset), (C.longlong)(size)))
}
func (this *QFileDevice) Unmap(address *byte) bool {
_ret := C.QFileDevice_Unmap(this.h, (*C.uchar)(unsafe.Pointer(address)))
return (bool)(_ret)
return (bool)(C.QFileDevice_Unmap(this.h, (*C.uchar)(unsafe.Pointer(address))))
}
func (this *QFileDevice) FileTime(time QFileDevice__FileTime) *QDateTime {
@ -207,8 +193,7 @@ func (this *QFileDevice) FileTime(time QFileDevice__FileTime) *QDateTime {
}
func (this *QFileDevice) SetFileTime(newDate *QDateTime, fileTime QFileDevice__FileTime) bool {
_ret := C.QFileDevice_SetFileTime(this.h, newDate.cPointer(), (C.uintptr_t)(fileTime))
return (bool)(_ret)
return (bool)(C.QFileDevice_SetFileTime(this.h, newDate.cPointer(), (C.uintptr_t)(fileTime)))
}
func QFileDevice_Tr2(s string, c string) string {
@ -256,8 +241,7 @@ func QFileDevice_TrUtf83(s string, c string, n int) string {
}
func (this *QFileDevice) Map3(offset int64, size int64, flags QFileDevice__MemoryMapFlags) *byte {
_ret := C.QFileDevice_Map3(this.h, (C.longlong)(offset), (C.longlong)(size), (C.uintptr_t)(flags))
return (*byte)(_ret)
return (*byte)(C.QFileDevice_Map3(this.h, (C.longlong)(offset), (C.longlong)(size), (C.uintptr_t)(flags)))
}
// Delete this object from C++ memory.

View File

@ -133,8 +133,7 @@ func NewQFileDialog6(parent *QWidget, caption string, directory string, filter s
}
func (this *QFileDialog) MetaObject() *QMetaObject {
_ret := C.QFileDialog_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QFileDialog_MetaObject(this.h)))
}
func QFileDialog_Tr(s string) string {
@ -194,8 +193,10 @@ func (this *QFileDialog) SelectedFiles() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -208,9 +209,12 @@ func (this *QFileDialog) SelectUrl(url *QUrl) {
func (this *QFileDialog) SelectedUrls() []QUrl {
var _ma *C.struct_miqt_array = C.QFileDialog_SelectedUrls(this.h)
_ret := make([]QUrl, int(_ma.len))
_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQUrl(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQUrl(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -221,8 +225,7 @@ func (this *QFileDialog) SetNameFilterDetailsVisible(enabled bool) {
}
func (this *QFileDialog) IsNameFilterDetailsVisible() bool {
_ret := C.QFileDialog_IsNameFilterDetailsVisible(this.h)
return (bool)(_ret)
return (bool)(C.QFileDialog_IsNameFilterDetailsVisible(this.h))
}
func (this *QFileDialog) SetNameFilter(filter string) {
@ -232,13 +235,13 @@ func (this *QFileDialog) SetNameFilter(filter string) {
}
func (this *QFileDialog) SetNameFilters(filters []string) {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
filters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(filters))))
defer C.free(unsafe.Pointer(filters_CArray))
for i := range filters {
single_ms := miqt_strdupg(filters[i])
defer C.free(single_ms)
filters_CArray[i] = (*C.struct_miqt_string)(single_ms)
filters_i_ms := miqt_strdupg(filters[i])
defer C.free(filters_i_ms)
filters_CArray[i] = (*C.struct_miqt_string)(filters_i_ms)
}
filters_ma := &C.struct_miqt_array{len: C.size_t(len(filters)), data: unsafe.Pointer(filters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(filters_ma))
@ -250,8 +253,10 @@ func (this *QFileDialog) NameFilters() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -278,13 +283,13 @@ func (this *QFileDialog) SelectedNameFilter() string {
}
func (this *QFileDialog) SetMimeTypeFilters(filters []string) {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
filters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(filters))))
defer C.free(unsafe.Pointer(filters_CArray))
for i := range filters {
single_ms := miqt_strdupg(filters[i])
defer C.free(single_ms)
filters_CArray[i] = (*C.struct_miqt_string)(single_ms)
filters_i_ms := miqt_strdupg(filters[i])
defer C.free(filters_i_ms)
filters_CArray[i] = (*C.struct_miqt_string)(filters_i_ms)
}
filters_ma := &C.struct_miqt_array{len: C.size_t(len(filters)), data: unsafe.Pointer(filters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(filters_ma))
@ -296,8 +301,10 @@ func (this *QFileDialog) MimeTypeFilters() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -310,8 +317,7 @@ func (this *QFileDialog) SelectMimeTypeFilter(filter string) {
}
func (this *QFileDialog) Filter() int {
_ret := C.QFileDialog_Filter(this.h)
return (int)(_ret)
return (int)(C.QFileDialog_Filter(this.h))
}
func (this *QFileDialog) SetFilter(filters int) {
@ -323,8 +329,7 @@ func (this *QFileDialog) SetViewMode(mode QFileDialog__ViewMode) {
}
func (this *QFileDialog) ViewMode() QFileDialog__ViewMode {
_ret := C.QFileDialog_ViewMode(this.h)
return (QFileDialog__ViewMode)(_ret)
return (QFileDialog__ViewMode)(C.QFileDialog_ViewMode(this.h))
}
func (this *QFileDialog) SetFileMode(mode QFileDialog__FileMode) {
@ -332,8 +337,7 @@ func (this *QFileDialog) SetFileMode(mode QFileDialog__FileMode) {
}
func (this *QFileDialog) FileMode() QFileDialog__FileMode {
_ret := C.QFileDialog_FileMode(this.h)
return (QFileDialog__FileMode)(_ret)
return (QFileDialog__FileMode)(C.QFileDialog_FileMode(this.h))
}
func (this *QFileDialog) SetAcceptMode(mode QFileDialog__AcceptMode) {
@ -341,8 +345,7 @@ func (this *QFileDialog) SetAcceptMode(mode QFileDialog__AcceptMode) {
}
func (this *QFileDialog) AcceptMode() QFileDialog__AcceptMode {
_ret := C.QFileDialog_AcceptMode(this.h)
return (QFileDialog__AcceptMode)(_ret)
return (QFileDialog__AcceptMode)(C.QFileDialog_AcceptMode(this.h))
}
func (this *QFileDialog) SetReadOnly(enabled bool) {
@ -350,8 +353,7 @@ func (this *QFileDialog) SetReadOnly(enabled bool) {
}
func (this *QFileDialog) IsReadOnly() bool {
_ret := C.QFileDialog_IsReadOnly(this.h)
return (bool)(_ret)
return (bool)(C.QFileDialog_IsReadOnly(this.h))
}
func (this *QFileDialog) SetResolveSymlinks(enabled bool) {
@ -359,8 +361,7 @@ func (this *QFileDialog) SetResolveSymlinks(enabled bool) {
}
func (this *QFileDialog) ResolveSymlinks() bool {
_ret := C.QFileDialog_ResolveSymlinks(this.h)
return (bool)(_ret)
return (bool)(C.QFileDialog_ResolveSymlinks(this.h))
}
func (this *QFileDialog) SetSidebarUrls(urls []QUrl) {
@ -378,9 +379,12 @@ func (this *QFileDialog) SetSidebarUrls(urls []QUrl) {
func (this *QFileDialog) SidebarUrls() []QUrl {
var _ma *C.struct_miqt_array = C.QFileDialog_SidebarUrls(this.h)
_ret := make([]QUrl, int(_ma.len))
_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQUrl(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQUrl(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -394,8 +398,7 @@ func (this *QFileDialog) SaveState() *QByteArray {
}
func (this *QFileDialog) RestoreState(state *QByteArray) bool {
_ret := C.QFileDialog_RestoreState(this.h, state.cPointer())
return (bool)(_ret)
return (bool)(C.QFileDialog_RestoreState(this.h, state.cPointer()))
}
func (this *QFileDialog) SetConfirmOverwrite(enabled bool) {
@ -403,8 +406,7 @@ func (this *QFileDialog) SetConfirmOverwrite(enabled bool) {
}
func (this *QFileDialog) ConfirmOverwrite() bool {
_ret := C.QFileDialog_ConfirmOverwrite(this.h)
return (bool)(_ret)
return (bool)(C.QFileDialog_ConfirmOverwrite(this.h))
}
func (this *QFileDialog) SetDefaultSuffix(suffix string) {
@ -421,13 +423,13 @@ func (this *QFileDialog) DefaultSuffix() string {
}
func (this *QFileDialog) SetHistory(paths []string) {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
paths_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(paths))))
defer C.free(unsafe.Pointer(paths_CArray))
for i := range paths {
single_ms := miqt_strdupg(paths[i])
defer C.free(single_ms)
paths_CArray[i] = (*C.struct_miqt_string)(single_ms)
paths_i_ms := miqt_strdupg(paths[i])
defer C.free(paths_i_ms)
paths_CArray[i] = (*C.struct_miqt_string)(paths_i_ms)
}
paths_ma := &C.struct_miqt_array{len: C.size_t(len(paths)), data: unsafe.Pointer(paths_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(paths_ma))
@ -439,8 +441,10 @@ func (this *QFileDialog) History() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -451,8 +455,7 @@ func (this *QFileDialog) SetItemDelegate(delegate *QAbstractItemDelegate) {
}
func (this *QFileDialog) ItemDelegate() *QAbstractItemDelegate {
_ret := C.QFileDialog_ItemDelegate(this.h)
return newQAbstractItemDelegate_U(unsafe.Pointer(_ret))
return newQAbstractItemDelegate_U(unsafe.Pointer(C.QFileDialog_ItemDelegate(this.h)))
}
func (this *QFileDialog) SetIconProvider(provider *QFileIconProvider) {
@ -460,8 +463,7 @@ func (this *QFileDialog) SetIconProvider(provider *QFileIconProvider) {
}
func (this *QFileDialog) IconProvider() *QFileIconProvider {
_ret := C.QFileDialog_IconProvider(this.h)
return newQFileIconProvider_U(unsafe.Pointer(_ret))
return newQFileIconProvider_U(unsafe.Pointer(C.QFileDialog_IconProvider(this.h)))
}
func (this *QFileDialog) SetLabelText(label QFileDialog__DialogLabel, text string) {
@ -478,13 +480,13 @@ func (this *QFileDialog) LabelText(label QFileDialog__DialogLabel) string {
}
func (this *QFileDialog) SetSupportedSchemes(schemes []string) {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
schemes_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(schemes))))
defer C.free(unsafe.Pointer(schemes_CArray))
for i := range schemes {
single_ms := miqt_strdupg(schemes[i])
defer C.free(single_ms)
schemes_CArray[i] = (*C.struct_miqt_string)(single_ms)
schemes_i_ms := miqt_strdupg(schemes[i])
defer C.free(schemes_i_ms)
schemes_CArray[i] = (*C.struct_miqt_string)(schemes_i_ms)
}
schemes_ma := &C.struct_miqt_array{len: C.size_t(len(schemes)), data: unsafe.Pointer(schemes_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(schemes_ma))
@ -496,8 +498,10 @@ func (this *QFileDialog) SupportedSchemes() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -508,8 +512,7 @@ func (this *QFileDialog) SetProxyModel(model *QAbstractProxyModel) {
}
func (this *QFileDialog) ProxyModel() *QAbstractProxyModel {
_ret := C.QFileDialog_ProxyModel(this.h)
return newQAbstractProxyModel_U(unsafe.Pointer(_ret))
return newQAbstractProxyModel_U(unsafe.Pointer(C.QFileDialog_ProxyModel(this.h)))
}
func (this *QFileDialog) SetOption(option QFileDialog__Option) {
@ -517,8 +520,7 @@ func (this *QFileDialog) SetOption(option QFileDialog__Option) {
}
func (this *QFileDialog) TestOption(option QFileDialog__Option) bool {
_ret := C.QFileDialog_TestOption(this.h, (C.uintptr_t)(option))
return (bool)(_ret)
return (bool)(C.QFileDialog_TestOption(this.h, (C.uintptr_t)(option)))
}
func (this *QFileDialog) SetOptions(options int) {
@ -526,8 +528,7 @@ func (this *QFileDialog) SetOptions(options int) {
}
func (this *QFileDialog) Options() int {
_ret := C.QFileDialog_Options(this.h)
return (int)(_ret)
return (int)(C.QFileDialog_Options(this.h))
}
func (this *QFileDialog) SetVisible(visible bool) {
@ -560,13 +561,13 @@ func miqt_exec_callback_QFileDialog_FileSelected(cb *C.void, file *C.struct_miqt
}
func (this *QFileDialog) FilesSelected(files []string) {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
files_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(files))))
defer C.free(unsafe.Pointer(files_CArray))
for i := range files {
single_ms := miqt_strdupg(files[i])
defer C.free(single_ms)
files_CArray[i] = (*C.struct_miqt_string)(single_ms)
files_i_ms := miqt_strdupg(files[i])
defer C.free(files_i_ms)
files_CArray[i] = (*C.struct_miqt_string)(files_i_ms)
}
files_ma := &C.struct_miqt_array{len: C.size_t(len(files)), data: unsafe.Pointer(files_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(files_ma))
@ -586,10 +587,12 @@ func miqt_exec_callback_QFileDialog_FilesSelected(cb *C.void, files *C.struct_mi
// Convert all CABI parameters to Go parameters
var files_ma *C.struct_miqt_array = files
files_ret := make([]string, int(files_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(files_ma.data)) // hey ya
files_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(files_ma.data)) // hey ya
for i := 0; i < int(files_ma.len); i++ {
files_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var files_lv_ms *C.struct_miqt_string = files_outCast[i]
files_lv_ret := C.GoStringN(&files_lv_ms.data, C.int(int64(files_lv_ms.len)))
C.free(unsafe.Pointer(files_lv_ms))
files_ret[i] = files_lv_ret
}
C.free(unsafe.Pointer(files_ma))
slotval1 := files_ret
@ -662,8 +665,7 @@ func miqt_exec_callback_QFileDialog_UrlSelected(cb *C.void, url *C.QUrl) {
}
// Convert all CABI parameters to Go parameters
url_ret := url
slotval1 := newQUrl_U(unsafe.Pointer(url_ret))
slotval1 := newQUrl_U(unsafe.Pointer(url))
gofunc(slotval1)
}
@ -693,9 +695,12 @@ func miqt_exec_callback_QFileDialog_UrlsSelected(cb *C.void, urls *C.struct_miqt
// Convert all CABI parameters to Go parameters
var urls_ma *C.struct_miqt_array = urls
urls_ret := make([]QUrl, int(urls_ma.len))
_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(urls_ma.data)) // mrs jackson
urls_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(urls_ma.data)) // hey ya
for i := 0; i < int(urls_ma.len); i++ {
urls_ret[i] = *newQUrl(_outCast[i])
urls_lv_ret := urls_outCast[i]
urls_lv_goptr := newQUrl(urls_lv_ret)
urls_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
urls_ret[i] = *urls_lv_goptr
}
C.free(unsafe.Pointer(urls_ma))
slotval1 := urls_ret
@ -718,8 +723,7 @@ func miqt_exec_callback_QFileDialog_CurrentUrlChanged(cb *C.void, url *C.QUrl) {
}
// Convert all CABI parameters to Go parameters
url_ret := url
slotval1 := newQUrl_U(unsafe.Pointer(url_ret))
slotval1 := newQUrl_U(unsafe.Pointer(url))
gofunc(slotval1)
}
@ -739,8 +743,7 @@ func miqt_exec_callback_QFileDialog_DirectoryUrlEntered(cb *C.void, directory *C
}
// Convert all CABI parameters to Go parameters
directory_ret := directory
slotval1 := newQUrl_U(unsafe.Pointer(directory_ret))
slotval1 := newQUrl_U(unsafe.Pointer(directory))
gofunc(slotval1)
}
@ -817,8 +820,10 @@ func QFileDialog_GetOpenFileNames() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -827,9 +832,12 @@ func QFileDialog_GetOpenFileNames() []string {
func QFileDialog_GetOpenFileUrls() []QUrl {
var _ma *C.struct_miqt_array = C.QFileDialog_GetOpenFileUrls()
_ret := make([]QUrl, int(_ma.len))
_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQUrl(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQUrl(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -1114,13 +1122,13 @@ func QFileDialog_GetExistingDirectoryUrl4(parent *QWidget, caption string, dir *
func QFileDialog_GetExistingDirectoryUrl5(parent *QWidget, caption string, dir *QUrl, options int, supportedSchemes []string) *QUrl {
caption_ms := miqt_strdupg(caption)
defer C.free(caption_ms)
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
supportedSchemes_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(supportedSchemes))))
defer C.free(unsafe.Pointer(supportedSchemes_CArray))
for i := range supportedSchemes {
single_ms := miqt_strdupg(supportedSchemes[i])
defer C.free(single_ms)
supportedSchemes_CArray[i] = (*C.struct_miqt_string)(single_ms)
supportedSchemes_i_ms := miqt_strdupg(supportedSchemes[i])
defer C.free(supportedSchemes_i_ms)
supportedSchemes_CArray[i] = (*C.struct_miqt_string)(supportedSchemes_i_ms)
}
supportedSchemes_ma := &C.struct_miqt_array{len: C.size_t(len(supportedSchemes)), data: unsafe.Pointer(supportedSchemes_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(supportedSchemes_ma))
@ -1135,8 +1143,10 @@ func QFileDialog_GetOpenFileNames1(parent *QWidget) []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -1149,8 +1159,10 @@ func QFileDialog_GetOpenFileNames2(parent *QWidget, caption string) []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -1165,8 +1177,10 @@ func QFileDialog_GetOpenFileNames3(parent *QWidget, caption string, dir string)
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -1183,8 +1197,10 @@ func QFileDialog_GetOpenFileNames4(parent *QWidget, caption string, dir string,
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -1193,9 +1209,12 @@ func QFileDialog_GetOpenFileNames4(parent *QWidget, caption string, dir string,
func QFileDialog_GetOpenFileUrls1(parent *QWidget) []QUrl {
var _ma *C.struct_miqt_array = C.QFileDialog_GetOpenFileUrls1(parent.cPointer())
_ret := make([]QUrl, int(_ma.len))
_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQUrl(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQUrl(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -1206,9 +1225,12 @@ func QFileDialog_GetOpenFileUrls2(parent *QWidget, caption string) []QUrl {
defer C.free(caption_ms)
var _ma *C.struct_miqt_array = C.QFileDialog_GetOpenFileUrls2(parent.cPointer(), (*C.struct_miqt_string)(caption_ms))
_ret := make([]QUrl, int(_ma.len))
_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQUrl(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQUrl(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -1219,9 +1241,12 @@ func QFileDialog_GetOpenFileUrls3(parent *QWidget, caption string, dir *QUrl) []
defer C.free(caption_ms)
var _ma *C.struct_miqt_array = C.QFileDialog_GetOpenFileUrls3(parent.cPointer(), (*C.struct_miqt_string)(caption_ms), dir.cPointer())
_ret := make([]QUrl, int(_ma.len))
_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQUrl(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQUrl(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -1234,9 +1259,12 @@ func QFileDialog_GetOpenFileUrls4(parent *QWidget, caption string, dir *QUrl, fi
defer C.free(filter_ms)
var _ma *C.struct_miqt_array = C.QFileDialog_GetOpenFileUrls4(parent.cPointer(), (*C.struct_miqt_string)(caption_ms), dir.cPointer(), (*C.struct_miqt_string)(filter_ms))
_ret := make([]QUrl, int(_ma.len))
_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]*C.QUrl)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQUrl(_outCast[i])
_lv_ret := _outCast[i]
_lv_goptr := newQUrl(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
C.free(unsafe.Pointer(_ma))
return _ret

View File

@ -85,8 +85,7 @@ func (this *QFileIconProvider) SetOptions(options int) {
}
func (this *QFileIconProvider) Options() int {
_ret := C.QFileIconProvider_Options(this.h)
return (int)(_ret)
return (int)(C.QFileIconProvider_Options(this.h))
}
// Delete this object from C++ memory.

View File

@ -78,13 +78,11 @@ func (this *QFileInfo) Swap(other *QFileInfo) {
}
func (this *QFileInfo) OperatorEqual(fileinfo *QFileInfo) bool {
_ret := C.QFileInfo_OperatorEqual(this.h, fileinfo.cPointer())
return (bool)(_ret)
return (bool)(C.QFileInfo_OperatorEqual(this.h, fileinfo.cPointer()))
}
func (this *QFileInfo) OperatorNotEqual(fileinfo *QFileInfo) bool {
_ret := C.QFileInfo_OperatorNotEqual(this.h, fileinfo.cPointer())
return (bool)(_ret)
return (bool)(C.QFileInfo_OperatorNotEqual(this.h, fileinfo.cPointer()))
}
func (this *QFileInfo) SetFile(file string) {
@ -104,15 +102,13 @@ func (this *QFileInfo) SetFile2(dir *QDir, file string) {
}
func (this *QFileInfo) Exists() bool {
_ret := C.QFileInfo_Exists(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_Exists(this.h))
}
func QFileInfo_ExistsWithFile(file string) bool {
file_ms := miqt_strdupg(file)
defer C.free(file_ms)
_ret := C.QFileInfo_ExistsWithFile((*C.struct_miqt_string)(file_ms))
return (bool)(_ret)
return (bool)(C.QFileInfo_ExistsWithFile((*C.struct_miqt_string)(file_ms)))
}
func (this *QFileInfo) Refresh() {
@ -218,83 +214,67 @@ func (this *QFileInfo) AbsoluteDir() *QDir {
}
func (this *QFileInfo) IsReadable() bool {
_ret := C.QFileInfo_IsReadable(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_IsReadable(this.h))
}
func (this *QFileInfo) IsWritable() bool {
_ret := C.QFileInfo_IsWritable(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_IsWritable(this.h))
}
func (this *QFileInfo) IsExecutable() bool {
_ret := C.QFileInfo_IsExecutable(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_IsExecutable(this.h))
}
func (this *QFileInfo) IsHidden() bool {
_ret := C.QFileInfo_IsHidden(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_IsHidden(this.h))
}
func (this *QFileInfo) IsNativePath() bool {
_ret := C.QFileInfo_IsNativePath(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_IsNativePath(this.h))
}
func (this *QFileInfo) IsRelative() bool {
_ret := C.QFileInfo_IsRelative(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_IsRelative(this.h))
}
func (this *QFileInfo) IsAbsolute() bool {
_ret := C.QFileInfo_IsAbsolute(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_IsAbsolute(this.h))
}
func (this *QFileInfo) MakeAbsolute() bool {
_ret := C.QFileInfo_MakeAbsolute(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_MakeAbsolute(this.h))
}
func (this *QFileInfo) IsFile() bool {
_ret := C.QFileInfo_IsFile(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_IsFile(this.h))
}
func (this *QFileInfo) IsDir() bool {
_ret := C.QFileInfo_IsDir(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_IsDir(this.h))
}
func (this *QFileInfo) IsSymLink() bool {
_ret := C.QFileInfo_IsSymLink(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_IsSymLink(this.h))
}
func (this *QFileInfo) IsSymbolicLink() bool {
_ret := C.QFileInfo_IsSymbolicLink(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_IsSymbolicLink(this.h))
}
func (this *QFileInfo) IsShortcut() bool {
_ret := C.QFileInfo_IsShortcut(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_IsShortcut(this.h))
}
func (this *QFileInfo) IsJunction() bool {
_ret := C.QFileInfo_IsJunction(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_IsJunction(this.h))
}
func (this *QFileInfo) IsRoot() bool {
_ret := C.QFileInfo_IsRoot(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_IsRoot(this.h))
}
func (this *QFileInfo) IsBundle() bool {
_ret := C.QFileInfo_IsBundle(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_IsBundle(this.h))
}
func (this *QFileInfo) ReadLink() string {
@ -319,8 +299,7 @@ func (this *QFileInfo) Owner() string {
}
func (this *QFileInfo) OwnerId() uint {
_ret := C.QFileInfo_OwnerId(this.h)
return (uint)(_ret)
return (uint)(C.QFileInfo_OwnerId(this.h))
}
func (this *QFileInfo) Group() string {
@ -331,23 +310,19 @@ func (this *QFileInfo) Group() string {
}
func (this *QFileInfo) GroupId() uint {
_ret := C.QFileInfo_GroupId(this.h)
return (uint)(_ret)
return (uint)(C.QFileInfo_GroupId(this.h))
}
func (this *QFileInfo) Permission(permissions int) bool {
_ret := C.QFileInfo_Permission(this.h, (C.int)(permissions))
return (bool)(_ret)
return (bool)(C.QFileInfo_Permission(this.h, (C.int)(permissions)))
}
func (this *QFileInfo) Permissions() int {
_ret := C.QFileInfo_Permissions(this.h)
return (int)(_ret)
return (int)(C.QFileInfo_Permissions(this.h))
}
func (this *QFileInfo) Size() int64 {
_ret := C.QFileInfo_Size(this.h)
return (int64)(_ret)
return (int64)(C.QFileInfo_Size(this.h))
}
func (this *QFileInfo) Created() *QDateTime {
@ -393,8 +368,7 @@ func (this *QFileInfo) FileTime(time uintptr) *QDateTime {
}
func (this *QFileInfo) Caching() bool {
_ret := C.QFileInfo_Caching(this.h)
return (bool)(_ret)
return (bool)(C.QFileInfo_Caching(this.h))
}
func (this *QFileInfo) SetCaching(on bool) {

View File

@ -49,8 +49,7 @@ func NewQFileSelector2(parent *QObject) *QFileSelector {
}
func (this *QFileSelector) MetaObject() *QMetaObject {
_ret := C.QFileSelector_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QFileSelector_MetaObject(this.h)))
}
func QFileSelector_Tr(s string) string {
@ -92,21 +91,23 @@ func (this *QFileSelector) ExtraSelectors() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QFileSelector) SetExtraSelectors(list []string) {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
list_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(list))))
defer C.free(unsafe.Pointer(list_CArray))
for i := range list {
single_ms := miqt_strdupg(list[i])
defer C.free(single_ms)
list_CArray[i] = (*C.struct_miqt_string)(single_ms)
list_i_ms := miqt_strdupg(list[i])
defer C.free(list_i_ms)
list_CArray[i] = (*C.struct_miqt_string)(list_i_ms)
}
list_ma := &C.struct_miqt_array{len: C.size_t(len(list)), data: unsafe.Pointer(list_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(list_ma))
@ -118,8 +119,10 @@ func (this *QFileSelector) AllSelectors() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret

View File

@ -67,8 +67,7 @@ func NewQFileSystemModel2(parent *QObject) *QFileSystemModel {
}
func (this *QFileSystemModel) MetaObject() *QMetaObject {
_ret := C.QFileSystemModel_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QFileSystemModel_MetaObject(this.h)))
}
func QFileSystemModel_Tr(s string) string {
@ -207,13 +206,11 @@ func (this *QFileSystemModel) Sibling(row int, column int, idx *QModelIndex) *QM
}
func (this *QFileSystemModel) HasChildren() bool {
_ret := C.QFileSystemModel_HasChildren(this.h)
return (bool)(_ret)
return (bool)(C.QFileSystemModel_HasChildren(this.h))
}
func (this *QFileSystemModel) CanFetchMore(parent *QModelIndex) bool {
_ret := C.QFileSystemModel_CanFetchMore(this.h, parent.cPointer())
return (bool)(_ret)
return (bool)(C.QFileSystemModel_CanFetchMore(this.h, parent.cPointer()))
}
func (this *QFileSystemModel) FetchMore(parent *QModelIndex) {
@ -221,13 +218,11 @@ func (this *QFileSystemModel) FetchMore(parent *QModelIndex) {
}
func (this *QFileSystemModel) RowCount() int {
_ret := C.QFileSystemModel_RowCount(this.h)
return (int)(_ret)
return (int)(C.QFileSystemModel_RowCount(this.h))
}
func (this *QFileSystemModel) ColumnCount() int {
_ret := C.QFileSystemModel_ColumnCount(this.h)
return (int)(_ret)
return (int)(C.QFileSystemModel_ColumnCount(this.h))
}
func (this *QFileSystemModel) MyComputer() *QVariant {
@ -245,8 +240,7 @@ func (this *QFileSystemModel) Data(index *QModelIndex) *QVariant {
}
func (this *QFileSystemModel) SetData(index *QModelIndex, value *QVariant) bool {
_ret := C.QFileSystemModel_SetData(this.h, index.cPointer(), value.cPointer())
return (bool)(_ret)
return (bool)(C.QFileSystemModel_SetData(this.h, index.cPointer(), value.cPointer()))
}
func (this *QFileSystemModel) HeaderData(section int, orientation Orientation) *QVariant {
@ -257,8 +251,7 @@ func (this *QFileSystemModel) HeaderData(section int, orientation Orientation) *
}
func (this *QFileSystemModel) Flags(index *QModelIndex) int {
_ret := C.QFileSystemModel_Flags(this.h, index.cPointer())
return (int)(_ret)
return (int)(C.QFileSystemModel_Flags(this.h, index.cPointer()))
}
func (this *QFileSystemModel) Sort(column int) {
@ -270,8 +263,10 @@ func (this *QFileSystemModel) MimeTypes() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -286,18 +281,15 @@ func (this *QFileSystemModel) MimeData(indexes []QModelIndex) *QMimeData {
}
indexes_ma := &C.struct_miqt_array{len: C.size_t(len(indexes)), data: unsafe.Pointer(indexes_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(indexes_ma))
_ret := C.QFileSystemModel_MimeData(this.h, indexes_ma)
return newQMimeData_U(unsafe.Pointer(_ret))
return newQMimeData_U(unsafe.Pointer(C.QFileSystemModel_MimeData(this.h, indexes_ma)))
}
func (this *QFileSystemModel) DropMimeData(data *QMimeData, action DropAction, row int, column int, parent *QModelIndex) bool {
_ret := C.QFileSystemModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer())
return (bool)(_ret)
return (bool)(C.QFileSystemModel_DropMimeData(this.h, data.cPointer(), (C.uintptr_t)(action), (C.int)(row), (C.int)(column), parent.cPointer()))
}
func (this *QFileSystemModel) SupportedDropActions() int {
_ret := C.QFileSystemModel_SupportedDropActions(this.h)
return (int)(_ret)
return (int)(C.QFileSystemModel_SupportedDropActions(this.h))
}
func (this *QFileSystemModel) SetRootPath(path string) *QModelIndex {
@ -328,8 +320,7 @@ func (this *QFileSystemModel) SetIconProvider(provider *QFileIconProvider) {
}
func (this *QFileSystemModel) IconProvider() *QFileIconProvider {
_ret := C.QFileSystemModel_IconProvider(this.h)
return newQFileIconProvider_U(unsafe.Pointer(_ret))
return newQFileIconProvider_U(unsafe.Pointer(C.QFileSystemModel_IconProvider(this.h)))
}
func (this *QFileSystemModel) SetFilter(filters int) {
@ -337,8 +328,7 @@ func (this *QFileSystemModel) SetFilter(filters int) {
}
func (this *QFileSystemModel) Filter() int {
_ret := C.QFileSystemModel_Filter(this.h)
return (int)(_ret)
return (int)(C.QFileSystemModel_Filter(this.h))
}
func (this *QFileSystemModel) SetResolveSymlinks(enable bool) {
@ -346,8 +336,7 @@ func (this *QFileSystemModel) SetResolveSymlinks(enable bool) {
}
func (this *QFileSystemModel) ResolveSymlinks() bool {
_ret := C.QFileSystemModel_ResolveSymlinks(this.h)
return (bool)(_ret)
return (bool)(C.QFileSystemModel_ResolveSymlinks(this.h))
}
func (this *QFileSystemModel) SetReadOnly(enable bool) {
@ -355,8 +344,7 @@ func (this *QFileSystemModel) SetReadOnly(enable bool) {
}
func (this *QFileSystemModel) IsReadOnly() bool {
_ret := C.QFileSystemModel_IsReadOnly(this.h)
return (bool)(_ret)
return (bool)(C.QFileSystemModel_IsReadOnly(this.h))
}
func (this *QFileSystemModel) SetNameFilterDisables(enable bool) {
@ -364,18 +352,17 @@ func (this *QFileSystemModel) SetNameFilterDisables(enable bool) {
}
func (this *QFileSystemModel) NameFilterDisables() bool {
_ret := C.QFileSystemModel_NameFilterDisables(this.h)
return (bool)(_ret)
return (bool)(C.QFileSystemModel_NameFilterDisables(this.h))
}
func (this *QFileSystemModel) SetNameFilters(filters []string) {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
filters_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(filters))))
defer C.free(unsafe.Pointer(filters_CArray))
for i := range filters {
single_ms := miqt_strdupg(filters[i])
defer C.free(single_ms)
filters_CArray[i] = (*C.struct_miqt_string)(single_ms)
filters_i_ms := miqt_strdupg(filters[i])
defer C.free(filters_i_ms)
filters_CArray[i] = (*C.struct_miqt_string)(filters_i_ms)
}
filters_ma := &C.struct_miqt_array{len: C.size_t(len(filters)), data: unsafe.Pointer(filters_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(filters_ma))
@ -387,8 +374,10 @@ func (this *QFileSystemModel) NameFilters() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -399,8 +388,7 @@ func (this *QFileSystemModel) SetOption(option QFileSystemModel__Option) {
}
func (this *QFileSystemModel) TestOption(option QFileSystemModel__Option) bool {
_ret := C.QFileSystemModel_TestOption(this.h, (C.uintptr_t)(option))
return (bool)(_ret)
return (bool)(C.QFileSystemModel_TestOption(this.h, (C.uintptr_t)(option)))
}
func (this *QFileSystemModel) SetOptions(options int) {
@ -408,8 +396,7 @@ func (this *QFileSystemModel) SetOptions(options int) {
}
func (this *QFileSystemModel) Options() int {
_ret := C.QFileSystemModel_Options(this.h)
return (int)(_ret)
return (int)(C.QFileSystemModel_Options(this.h))
}
func (this *QFileSystemModel) FilePath(index *QModelIndex) string {
@ -420,13 +407,11 @@ func (this *QFileSystemModel) FilePath(index *QModelIndex) string {
}
func (this *QFileSystemModel) IsDir(index *QModelIndex) bool {
_ret := C.QFileSystemModel_IsDir(this.h, index.cPointer())
return (bool)(_ret)
return (bool)(C.QFileSystemModel_IsDir(this.h, index.cPointer()))
}
func (this *QFileSystemModel) Size(index *QModelIndex) int64 {
_ret := C.QFileSystemModel_Size(this.h, index.cPointer())
return (int64)(_ret)
return (int64)(C.QFileSystemModel_Size(this.h, index.cPointer()))
}
func (this *QFileSystemModel) Type(index *QModelIndex) string {
@ -453,8 +438,7 @@ func (this *QFileSystemModel) Mkdir(parent *QModelIndex, name string) *QModelInd
}
func (this *QFileSystemModel) Rmdir(index *QModelIndex) bool {
_ret := C.QFileSystemModel_Rmdir(this.h, index.cPointer())
return (bool)(_ret)
return (bool)(C.QFileSystemModel_Rmdir(this.h, index.cPointer()))
}
func (this *QFileSystemModel) FileName(index *QModelIndex) string {
@ -472,8 +456,7 @@ func (this *QFileSystemModel) FileIcon(index *QModelIndex) *QIcon {
}
func (this *QFileSystemModel) Permissions(index *QModelIndex) int {
_ret := C.QFileSystemModel_Permissions(this.h, index.cPointer())
return (int)(_ret)
return (int)(C.QFileSystemModel_Permissions(this.h, index.cPointer()))
}
func (this *QFileSystemModel) FileInfo(index *QModelIndex) *QFileInfo {
@ -484,8 +467,7 @@ func (this *QFileSystemModel) FileInfo(index *QModelIndex) *QFileInfo {
}
func (this *QFileSystemModel) Remove(index *QModelIndex) bool {
_ret := C.QFileSystemModel_Remove(this.h, index.cPointer())
return (bool)(_ret)
return (bool)(C.QFileSystemModel_Remove(this.h, index.cPointer()))
}
func QFileSystemModel_Tr2(s string, c string) string {
@ -549,18 +531,15 @@ func (this *QFileSystemModel) Index2(path string, column int) *QModelIndex {
}
func (this *QFileSystemModel) HasChildren1(parent *QModelIndex) bool {
_ret := C.QFileSystemModel_HasChildren1(this.h, parent.cPointer())
return (bool)(_ret)
return (bool)(C.QFileSystemModel_HasChildren1(this.h, parent.cPointer()))
}
func (this *QFileSystemModel) RowCount1(parent *QModelIndex) int {
_ret := C.QFileSystemModel_RowCount1(this.h, parent.cPointer())
return (int)(_ret)
return (int)(C.QFileSystemModel_RowCount1(this.h, parent.cPointer()))
}
func (this *QFileSystemModel) ColumnCount1(parent *QModelIndex) int {
_ret := C.QFileSystemModel_ColumnCount1(this.h, parent.cPointer())
return (int)(_ret)
return (int)(C.QFileSystemModel_ColumnCount1(this.h, parent.cPointer()))
}
func (this *QFileSystemModel) MyComputer1(role int) *QVariant {
@ -578,8 +557,7 @@ func (this *QFileSystemModel) Data2(index *QModelIndex, role int) *QVariant {
}
func (this *QFileSystemModel) SetData3(index *QModelIndex, value *QVariant, role int) bool {
_ret := C.QFileSystemModel_SetData3(this.h, index.cPointer(), value.cPointer(), (C.int)(role))
return (bool)(_ret)
return (bool)(C.QFileSystemModel_SetData3(this.h, index.cPointer(), value.cPointer(), (C.int)(role)))
}
func (this *QFileSystemModel) HeaderData3(section int, orientation Orientation, role int) *QVariant {

View File

@ -44,13 +44,13 @@ func NewQFileSystemWatcher() *QFileSystemWatcher {
// NewQFileSystemWatcher2 constructs a new QFileSystemWatcher object.
func NewQFileSystemWatcher2(paths []string) *QFileSystemWatcher {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
paths_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(paths))))
defer C.free(unsafe.Pointer(paths_CArray))
for i := range paths {
single_ms := miqt_strdupg(paths[i])
defer C.free(single_ms)
paths_CArray[i] = (*C.struct_miqt_string)(single_ms)
paths_i_ms := miqt_strdupg(paths[i])
defer C.free(paths_i_ms)
paths_CArray[i] = (*C.struct_miqt_string)(paths_i_ms)
}
paths_ma := &C.struct_miqt_array{len: C.size_t(len(paths)), data: unsafe.Pointer(paths_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(paths_ma))
@ -66,13 +66,13 @@ func NewQFileSystemWatcher3(parent *QObject) *QFileSystemWatcher {
// NewQFileSystemWatcher4 constructs a new QFileSystemWatcher object.
func NewQFileSystemWatcher4(paths []string, parent *QObject) *QFileSystemWatcher {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
paths_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(paths))))
defer C.free(unsafe.Pointer(paths_CArray))
for i := range paths {
single_ms := miqt_strdupg(paths[i])
defer C.free(single_ms)
paths_CArray[i] = (*C.struct_miqt_string)(single_ms)
paths_i_ms := miqt_strdupg(paths[i])
defer C.free(paths_i_ms)
paths_CArray[i] = (*C.struct_miqt_string)(paths_i_ms)
}
paths_ma := &C.struct_miqt_array{len: C.size_t(len(paths)), data: unsafe.Pointer(paths_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(paths_ma))
@ -81,8 +81,7 @@ func NewQFileSystemWatcher4(paths []string, parent *QObject) *QFileSystemWatcher
}
func (this *QFileSystemWatcher) MetaObject() *QMetaObject {
_ret := C.QFileSystemWatcher_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QFileSystemWatcher_MetaObject(this.h)))
}
func QFileSystemWatcher_Tr(s string) string {
@ -106,18 +105,17 @@ func QFileSystemWatcher_TrUtf8(s string) string {
func (this *QFileSystemWatcher) AddPath(file string) bool {
file_ms := miqt_strdupg(file)
defer C.free(file_ms)
_ret := C.QFileSystemWatcher_AddPath(this.h, (*C.struct_miqt_string)(file_ms))
return (bool)(_ret)
return (bool)(C.QFileSystemWatcher_AddPath(this.h, (*C.struct_miqt_string)(file_ms)))
}
func (this *QFileSystemWatcher) AddPaths(files []string) []string {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
files_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(files))))
defer C.free(unsafe.Pointer(files_CArray))
for i := range files {
single_ms := miqt_strdupg(files[i])
defer C.free(single_ms)
files_CArray[i] = (*C.struct_miqt_string)(single_ms)
files_i_ms := miqt_strdupg(files[i])
defer C.free(files_i_ms)
files_CArray[i] = (*C.struct_miqt_string)(files_i_ms)
}
files_ma := &C.struct_miqt_array{len: C.size_t(len(files)), data: unsafe.Pointer(files_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(files_ma))
@ -125,8 +123,10 @@ func (this *QFileSystemWatcher) AddPaths(files []string) []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -135,18 +135,17 @@ func (this *QFileSystemWatcher) AddPaths(files []string) []string {
func (this *QFileSystemWatcher) RemovePath(file string) bool {
file_ms := miqt_strdupg(file)
defer C.free(file_ms)
_ret := C.QFileSystemWatcher_RemovePath(this.h, (*C.struct_miqt_string)(file_ms))
return (bool)(_ret)
return (bool)(C.QFileSystemWatcher_RemovePath(this.h, (*C.struct_miqt_string)(file_ms)))
}
func (this *QFileSystemWatcher) RemovePaths(files []string) []string {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
files_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(files))))
defer C.free(unsafe.Pointer(files_CArray))
for i := range files {
single_ms := miqt_strdupg(files[i])
defer C.free(single_ms)
files_CArray[i] = (*C.struct_miqt_string)(single_ms)
files_i_ms := miqt_strdupg(files[i])
defer C.free(files_i_ms)
files_CArray[i] = (*C.struct_miqt_string)(files_i_ms)
}
files_ma := &C.struct_miqt_array{len: C.size_t(len(files)), data: unsafe.Pointer(files_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(files_ma))
@ -154,8 +153,10 @@ func (this *QFileSystemWatcher) RemovePaths(files []string) []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -166,8 +167,10 @@ func (this *QFileSystemWatcher) Files() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -178,8 +181,10 @@ func (this *QFileSystemWatcher) Directories() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret

View File

@ -49,8 +49,7 @@ func NewQFinalState2(parent *QState) *QFinalState {
}
func (this *QFinalState) MetaObject() *QMetaObject {
_ret := C.QFinalState_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QFinalState_MetaObject(this.h)))
}
func QFinalState_Tr(s string) string {

View File

@ -48,28 +48,23 @@ func Newqfloat162(f float32) *qfloat16 {
}
func (this *qfloat16) IsInf() bool {
_ret := C.qfloat16_IsInf(this.h)
return (bool)(_ret)
return (bool)(C.qfloat16_IsInf(this.h))
}
func (this *qfloat16) IsNaN() bool {
_ret := C.qfloat16_IsNaN(this.h)
return (bool)(_ret)
return (bool)(C.qfloat16_IsNaN(this.h))
}
func (this *qfloat16) IsFinite() bool {
_ret := C.qfloat16_IsFinite(this.h)
return (bool)(_ret)
return (bool)(C.qfloat16_IsFinite(this.h))
}
func (this *qfloat16) FpClassify() int {
_ret := C.qfloat16_FpClassify(this.h)
return (int)(_ret)
return (int)(C.qfloat16_FpClassify(this.h))
}
func (this *qfloat16) IsNormal() bool {
_ret := C.qfloat16_IsNormal(this.h)
return (bool)(_ret)
return (bool)(C.qfloat16_IsNormal(this.h))
}
// Delete this object from C++ memory.

View File

@ -49,8 +49,7 @@ func NewQFocusFrame2(parent *QWidget) *QFocusFrame {
}
func (this *QFocusFrame) MetaObject() *QMetaObject {
_ret := C.QFocusFrame_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QFocusFrame_MetaObject(this.h)))
}
func QFocusFrame_Tr(s string) string {
@ -76,8 +75,7 @@ func (this *QFocusFrame) SetWidget(widget *QWidget) {
}
func (this *QFocusFrame) Widget() *QWidget {
_ret := C.QFocusFrame_Widget(this.h)
return newQWidget_U(unsafe.Pointer(_ret))
return newQWidget_U(unsafe.Pointer(C.QFocusFrame_Widget(this.h)))
}
func QFocusFrame_Tr2(s string, c string) string {

View File

@ -238,21 +238,23 @@ func (this *QFont) Families() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QFont) SetFamilies(families []string) {
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
families_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(families))))
defer C.free(unsafe.Pointer(families_CArray))
for i := range families {
single_ms := miqt_strdupg(families[i])
defer C.free(single_ms)
families_CArray[i] = (*C.struct_miqt_string)(single_ms)
families_i_ms := miqt_strdupg(families[i])
defer C.free(families_i_ms)
families_CArray[i] = (*C.struct_miqt_string)(families_i_ms)
}
families_ma := &C.struct_miqt_array{len: C.size_t(len(families)), data: unsafe.Pointer(families_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(families_ma))
@ -273,8 +275,7 @@ func (this *QFont) SetStyleName(styleName string) {
}
func (this *QFont) PointSize() int {
_ret := C.QFont_PointSize(this.h)
return (int)(_ret)
return (int)(C.QFont_PointSize(this.h))
}
func (this *QFont) SetPointSize(pointSize int) {
@ -282,8 +283,7 @@ func (this *QFont) SetPointSize(pointSize int) {
}
func (this *QFont) PointSizeF() float64 {
_ret := C.QFont_PointSizeF(this.h)
return (float64)(_ret)
return (float64)(C.QFont_PointSizeF(this.h))
}
func (this *QFont) SetPointSizeF(pointSizeF float64) {
@ -291,8 +291,7 @@ func (this *QFont) SetPointSizeF(pointSizeF float64) {
}
func (this *QFont) PixelSize() int {
_ret := C.QFont_PixelSize(this.h)
return (int)(_ret)
return (int)(C.QFont_PixelSize(this.h))
}
func (this *QFont) SetPixelSize(pixelSize int) {
@ -300,8 +299,7 @@ func (this *QFont) SetPixelSize(pixelSize int) {
}
func (this *QFont) Weight() int {
_ret := C.QFont_Weight(this.h)
return (int)(_ret)
return (int)(C.QFont_Weight(this.h))
}
func (this *QFont) SetWeight(weight int) {
@ -309,8 +307,7 @@ func (this *QFont) SetWeight(weight int) {
}
func (this *QFont) Bold() bool {
_ret := C.QFont_Bold(this.h)
return (bool)(_ret)
return (bool)(C.QFont_Bold(this.h))
}
func (this *QFont) SetBold(bold bool) {
@ -322,13 +319,11 @@ func (this *QFont) SetStyle(style QFont__Style) {
}
func (this *QFont) Style() QFont__Style {
_ret := C.QFont_Style(this.h)
return (QFont__Style)(_ret)
return (QFont__Style)(C.QFont_Style(this.h))
}
func (this *QFont) Italic() bool {
_ret := C.QFont_Italic(this.h)
return (bool)(_ret)
return (bool)(C.QFont_Italic(this.h))
}
func (this *QFont) SetItalic(b bool) {
@ -336,8 +331,7 @@ func (this *QFont) SetItalic(b bool) {
}
func (this *QFont) Underline() bool {
_ret := C.QFont_Underline(this.h)
return (bool)(_ret)
return (bool)(C.QFont_Underline(this.h))
}
func (this *QFont) SetUnderline(underline bool) {
@ -345,8 +339,7 @@ func (this *QFont) SetUnderline(underline bool) {
}
func (this *QFont) Overline() bool {
_ret := C.QFont_Overline(this.h)
return (bool)(_ret)
return (bool)(C.QFont_Overline(this.h))
}
func (this *QFont) SetOverline(overline bool) {
@ -354,8 +347,7 @@ func (this *QFont) SetOverline(overline bool) {
}
func (this *QFont) StrikeOut() bool {
_ret := C.QFont_StrikeOut(this.h)
return (bool)(_ret)
return (bool)(C.QFont_StrikeOut(this.h))
}
func (this *QFont) SetStrikeOut(strikeOut bool) {
@ -363,8 +355,7 @@ func (this *QFont) SetStrikeOut(strikeOut bool) {
}
func (this *QFont) FixedPitch() bool {
_ret := C.QFont_FixedPitch(this.h)
return (bool)(_ret)
return (bool)(C.QFont_FixedPitch(this.h))
}
func (this *QFont) SetFixedPitch(fixedPitch bool) {
@ -372,8 +363,7 @@ func (this *QFont) SetFixedPitch(fixedPitch bool) {
}
func (this *QFont) Kerning() bool {
_ret := C.QFont_Kerning(this.h)
return (bool)(_ret)
return (bool)(C.QFont_Kerning(this.h))
}
func (this *QFont) SetKerning(kerning bool) {
@ -381,13 +371,11 @@ func (this *QFont) SetKerning(kerning bool) {
}
func (this *QFont) StyleHint() QFont__StyleHint {
_ret := C.QFont_StyleHint(this.h)
return (QFont__StyleHint)(_ret)
return (QFont__StyleHint)(C.QFont_StyleHint(this.h))
}
func (this *QFont) StyleStrategy() QFont__StyleStrategy {
_ret := C.QFont_StyleStrategy(this.h)
return (QFont__StyleStrategy)(_ret)
return (QFont__StyleStrategy)(C.QFont_StyleStrategy(this.h))
}
func (this *QFont) SetStyleHint(param1 QFont__StyleHint) {
@ -399,8 +387,7 @@ func (this *QFont) SetStyleStrategy(s QFont__StyleStrategy) {
}
func (this *QFont) Stretch() int {
_ret := C.QFont_Stretch(this.h)
return (int)(_ret)
return (int)(C.QFont_Stretch(this.h))
}
func (this *QFont) SetStretch(stretch int) {
@ -408,13 +395,11 @@ func (this *QFont) SetStretch(stretch int) {
}
func (this *QFont) LetterSpacing() float64 {
_ret := C.QFont_LetterSpacing(this.h)
return (float64)(_ret)
return (float64)(C.QFont_LetterSpacing(this.h))
}
func (this *QFont) LetterSpacingType() QFont__SpacingType {
_ret := C.QFont_LetterSpacingType(this.h)
return (QFont__SpacingType)(_ret)
return (QFont__SpacingType)(C.QFont_LetterSpacingType(this.h))
}
func (this *QFont) SetLetterSpacing(typeVal QFont__SpacingType, spacing float64) {
@ -422,8 +407,7 @@ func (this *QFont) SetLetterSpacing(typeVal QFont__SpacingType, spacing float64)
}
func (this *QFont) WordSpacing() float64 {
_ret := C.QFont_WordSpacing(this.h)
return (float64)(_ret)
return (float64)(C.QFont_WordSpacing(this.h))
}
func (this *QFont) SetWordSpacing(spacing float64) {
@ -435,8 +419,7 @@ func (this *QFont) SetCapitalization(capitalization QFont__Capitalization) {
}
func (this *QFont) Capitalization() QFont__Capitalization {
_ret := C.QFont_Capitalization(this.h)
return (QFont__Capitalization)(_ret)
return (QFont__Capitalization)(C.QFont_Capitalization(this.h))
}
func (this *QFont) SetHintingPreference(hintingPreference QFont__HintingPreference) {
@ -444,13 +427,11 @@ func (this *QFont) SetHintingPreference(hintingPreference QFont__HintingPreferen
}
func (this *QFont) HintingPreference() QFont__HintingPreference {
_ret := C.QFont_HintingPreference(this.h)
return (QFont__HintingPreference)(_ret)
return (QFont__HintingPreference)(C.QFont_HintingPreference(this.h))
}
func (this *QFont) RawMode() bool {
_ret := C.QFont_RawMode(this.h)
return (bool)(_ret)
return (bool)(C.QFont_RawMode(this.h))
}
func (this *QFont) SetRawMode(rawMode bool) {
@ -458,8 +439,7 @@ func (this *QFont) SetRawMode(rawMode bool) {
}
func (this *QFont) ExactMatch() bool {
_ret := C.QFont_ExactMatch(this.h)
return (bool)(_ret)
return (bool)(C.QFont_ExactMatch(this.h))
}
func (this *QFont) OperatorAssign(param1 *QFont) {
@ -467,23 +447,19 @@ func (this *QFont) OperatorAssign(param1 *QFont) {
}
func (this *QFont) OperatorEqual(param1 *QFont) bool {
_ret := C.QFont_OperatorEqual(this.h, param1.cPointer())
return (bool)(_ret)
return (bool)(C.QFont_OperatorEqual(this.h, param1.cPointer()))
}
func (this *QFont) OperatorNotEqual(param1 *QFont) bool {
_ret := C.QFont_OperatorNotEqual(this.h, param1.cPointer())
return (bool)(_ret)
return (bool)(C.QFont_OperatorNotEqual(this.h, param1.cPointer()))
}
func (this *QFont) OperatorLesser(param1 *QFont) bool {
_ret := C.QFont_OperatorLesser(this.h, param1.cPointer())
return (bool)(_ret)
return (bool)(C.QFont_OperatorLesser(this.h, param1.cPointer()))
}
func (this *QFont) IsCopyOf(param1 *QFont) bool {
_ret := C.QFont_IsCopyOf(this.h, param1.cPointer())
return (bool)(_ret)
return (bool)(C.QFont_IsCopyOf(this.h, param1.cPointer()))
}
func (this *QFont) SetRawName(rawName string) {
@ -516,8 +492,7 @@ func (this *QFont) ToString() string {
func (this *QFont) FromString(param1 string) bool {
param1_ms := miqt_strdupg(param1)
defer C.free(param1_ms)
_ret := C.QFont_FromString(this.h, (*C.struct_miqt_string)(param1_ms))
return (bool)(_ret)
return (bool)(C.QFont_FromString(this.h, (*C.struct_miqt_string)(param1_ms)))
}
func QFont_Substitute(param1 string) string {
@ -536,8 +511,10 @@ func QFont_Substitutes(param1 string) []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -548,8 +525,10 @@ func QFont_Substitutions() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -566,13 +545,13 @@ func QFont_InsertSubstitution(param1 string, param2 string) {
func QFont_InsertSubstitutions(param1 string, param2 []string) {
param1_ms := miqt_strdupg(param1)
defer C.free(param1_ms)
// For the C ABI, malloc two C arrays; raw char* pointers and their lengths
// For the C ABI, malloc a C array of raw pointers
param2_CArray := (*[0xffff]*C.struct_miqt_string)(C.malloc(C.size_t(8 * len(param2))))
defer C.free(unsafe.Pointer(param2_CArray))
for i := range param2 {
single_ms := miqt_strdupg(param2[i])
defer C.free(single_ms)
param2_CArray[i] = (*C.struct_miqt_string)(single_ms)
param2_i_ms := miqt_strdupg(param2[i])
defer C.free(param2_i_ms)
param2_CArray[i] = (*C.struct_miqt_string)(param2_i_ms)
}
param2_ma := &C.struct_miqt_array{len: C.size_t(len(param2)), data: unsafe.Pointer(param2_CArray)}
defer runtime.KeepAlive(unsafe.Pointer(param2_ma))
@ -626,8 +605,7 @@ func (this *QFont) Resolve(param1 *QFont) *QFont {
}
func (this *QFont) Resolve2() uint {
_ret := C.QFont_Resolve2(this.h)
return (uint)(_ret)
return (uint)(C.QFont_Resolve2(this.h))
}
func (this *QFont) ResolveWithMask(mask uint) {

View File

@ -60,8 +60,7 @@ func NewQFontComboBox2(parent *QWidget) *QFontComboBox {
}
func (this *QFontComboBox) MetaObject() *QMetaObject {
_ret := C.QFontComboBox_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QFontComboBox_MetaObject(this.h)))
}
func QFontComboBox_Tr(s string) string {
@ -87,8 +86,7 @@ func (this *QFontComboBox) SetWritingSystem(writingSystem QFontDatabase__Writing
}
func (this *QFontComboBox) WritingSystem() QFontDatabase__WritingSystem {
_ret := C.QFontComboBox_WritingSystem(this.h)
return (QFontDatabase__WritingSystem)(_ret)
return (QFontDatabase__WritingSystem)(C.QFontComboBox_WritingSystem(this.h))
}
func (this *QFontComboBox) SetFontFilters(filters int) {
@ -96,8 +94,7 @@ func (this *QFontComboBox) SetFontFilters(filters int) {
}
func (this *QFontComboBox) FontFilters() int {
_ret := C.QFontComboBox_FontFilters(this.h)
return (int)(_ret)
return (int)(C.QFontComboBox_FontFilters(this.h))
}
func (this *QFontComboBox) CurrentFont() *QFont {
@ -133,8 +130,7 @@ func miqt_exec_callback_QFontComboBox_CurrentFontChanged(cb *C.void, f *C.QFont)
}
// Convert all CABI parameters to Go parameters
f_ret := f
slotval1 := newQFont_U(unsafe.Pointer(f_ret))
slotval1 := newQFont_U(unsafe.Pointer(f))
gofunc(slotval1)
}

View File

@ -94,7 +94,7 @@ func NewQFontDatabase() *QFontDatabase {
func QFontDatabase_StandardSizes() []int {
var _ma *C.struct_miqt_array = C.QFontDatabase_StandardSizes()
_ret := make([]int, int(_ma.len))
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (int)(_outCast[i])
}
@ -105,7 +105,7 @@ func QFontDatabase_StandardSizes() []int {
func (this *QFontDatabase) WritingSystems() []QFontDatabase__WritingSystem {
var _ma *C.struct_miqt_array = C.QFontDatabase_WritingSystems(this.h)
_ret := make([]QFontDatabase__WritingSystem, int(_ma.len))
_outCast := (*[0xffff]C.uintptr_t)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]C.uintptr_t)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (QFontDatabase__WritingSystem)(_outCast[i])
}
@ -118,7 +118,7 @@ func (this *QFontDatabase) WritingSystemsWithFamily(family string) []QFontDataba
defer C.free(family_ms)
var _ma *C.struct_miqt_array = C.QFontDatabase_WritingSystemsWithFamily(this.h, (*C.struct_miqt_string)(family_ms))
_ret := make([]QFontDatabase__WritingSystem, int(_ma.len))
_outCast := (*[0xffff]C.uintptr_t)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]C.uintptr_t)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (QFontDatabase__WritingSystem)(_outCast[i])
}
@ -131,8 +131,10 @@ func (this *QFontDatabase) Families() []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -145,8 +147,10 @@ func (this *QFontDatabase) Styles(family string) []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -157,7 +161,7 @@ func (this *QFontDatabase) PointSizes(family string) []int {
defer C.free(family_ms)
var _ma *C.struct_miqt_array = C.QFontDatabase_PointSizes(this.h, (*C.struct_miqt_string)(family_ms))
_ret := make([]int, int(_ma.len))
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (int)(_outCast[i])
}
@ -172,7 +176,7 @@ func (this *QFontDatabase) SmoothSizes(family string, style string) []int {
defer C.free(style_ms)
var _ma *C.struct_miqt_array = C.QFontDatabase_SmoothSizes(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms))
_ret := make([]int, int(_ma.len))
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (int)(_outCast[i])
}
@ -208,29 +212,25 @@ func (this *QFontDatabase) Font(family string, style string, pointSize int) *QFo
func (this *QFontDatabase) IsBitmapScalable(family string) bool {
family_ms := miqt_strdupg(family)
defer C.free(family_ms)
_ret := C.QFontDatabase_IsBitmapScalable(this.h, (*C.struct_miqt_string)(family_ms))
return (bool)(_ret)
return (bool)(C.QFontDatabase_IsBitmapScalable(this.h, (*C.struct_miqt_string)(family_ms)))
}
func (this *QFontDatabase) IsSmoothlyScalable(family string) bool {
family_ms := miqt_strdupg(family)
defer C.free(family_ms)
_ret := C.QFontDatabase_IsSmoothlyScalable(this.h, (*C.struct_miqt_string)(family_ms))
return (bool)(_ret)
return (bool)(C.QFontDatabase_IsSmoothlyScalable(this.h, (*C.struct_miqt_string)(family_ms)))
}
func (this *QFontDatabase) IsScalable(family string) bool {
family_ms := miqt_strdupg(family)
defer C.free(family_ms)
_ret := C.QFontDatabase_IsScalable(this.h, (*C.struct_miqt_string)(family_ms))
return (bool)(_ret)
return (bool)(C.QFontDatabase_IsScalable(this.h, (*C.struct_miqt_string)(family_ms)))
}
func (this *QFontDatabase) IsFixedPitch(family string) bool {
family_ms := miqt_strdupg(family)
defer C.free(family_ms)
_ret := C.QFontDatabase_IsFixedPitch(this.h, (*C.struct_miqt_string)(family_ms))
return (bool)(_ret)
return (bool)(C.QFontDatabase_IsFixedPitch(this.h, (*C.struct_miqt_string)(family_ms)))
}
func (this *QFontDatabase) Italic(family string, style string) bool {
@ -238,8 +238,7 @@ func (this *QFontDatabase) Italic(family string, style string) bool {
defer C.free(family_ms)
style_ms := miqt_strdupg(style)
defer C.free(style_ms)
_ret := C.QFontDatabase_Italic(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms))
return (bool)(_ret)
return (bool)(C.QFontDatabase_Italic(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms)))
}
func (this *QFontDatabase) Bold(family string, style string) bool {
@ -247,8 +246,7 @@ func (this *QFontDatabase) Bold(family string, style string) bool {
defer C.free(family_ms)
style_ms := miqt_strdupg(style)
defer C.free(style_ms)
_ret := C.QFontDatabase_Bold(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms))
return (bool)(_ret)
return (bool)(C.QFontDatabase_Bold(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms)))
}
func (this *QFontDatabase) Weight(family string, style string) int {
@ -256,22 +254,19 @@ func (this *QFontDatabase) Weight(family string, style string) int {
defer C.free(family_ms)
style_ms := miqt_strdupg(style)
defer C.free(style_ms)
_ret := C.QFontDatabase_Weight(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms))
return (int)(_ret)
return (int)(C.QFontDatabase_Weight(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms)))
}
func (this *QFontDatabase) HasFamily(family string) bool {
family_ms := miqt_strdupg(family)
defer C.free(family_ms)
_ret := C.QFontDatabase_HasFamily(this.h, (*C.struct_miqt_string)(family_ms))
return (bool)(_ret)
return (bool)(C.QFontDatabase_HasFamily(this.h, (*C.struct_miqt_string)(family_ms)))
}
func (this *QFontDatabase) IsPrivateFamily(family string) bool {
family_ms := miqt_strdupg(family)
defer C.free(family_ms)
_ret := C.QFontDatabase_IsPrivateFamily(this.h, (*C.struct_miqt_string)(family_ms))
return (bool)(_ret)
return (bool)(C.QFontDatabase_IsPrivateFamily(this.h, (*C.struct_miqt_string)(family_ms)))
}
func QFontDatabase_WritingSystemName(writingSystem QFontDatabase__WritingSystem) string {
@ -291,13 +286,11 @@ func QFontDatabase_WritingSystemSample(writingSystem QFontDatabase__WritingSyste
func QFontDatabase_AddApplicationFont(fileName string) int {
fileName_ms := miqt_strdupg(fileName)
defer C.free(fileName_ms)
_ret := C.QFontDatabase_AddApplicationFont((*C.struct_miqt_string)(fileName_ms))
return (int)(_ret)
return (int)(C.QFontDatabase_AddApplicationFont((*C.struct_miqt_string)(fileName_ms)))
}
func QFontDatabase_AddApplicationFontFromData(fontData *QByteArray) int {
_ret := C.QFontDatabase_AddApplicationFontFromData(fontData.cPointer())
return (int)(_ret)
return (int)(C.QFontDatabase_AddApplicationFontFromData(fontData.cPointer()))
}
func QFontDatabase_ApplicationFontFamilies(id int) []string {
@ -305,26 +298,25 @@ func QFontDatabase_ApplicationFontFamilies(id int) []string {
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func QFontDatabase_RemoveApplicationFont(id int) bool {
_ret := C.QFontDatabase_RemoveApplicationFont((C.int)(id))
return (bool)(_ret)
return (bool)(C.QFontDatabase_RemoveApplicationFont((C.int)(id)))
}
func QFontDatabase_RemoveAllApplicationFonts() bool {
_ret := C.QFontDatabase_RemoveAllApplicationFonts()
return (bool)(_ret)
return (bool)(C.QFontDatabase_RemoveAllApplicationFonts())
}
func QFontDatabase_SupportsThreadedFontRendering() bool {
_ret := C.QFontDatabase_SupportsThreadedFontRendering()
return (bool)(_ret)
return (bool)(C.QFontDatabase_SupportsThreadedFontRendering())
}
func QFontDatabase_SystemFont(typeVal QFontDatabase__SystemFont) *QFont {
@ -339,8 +331,10 @@ func (this *QFontDatabase) Families1(writingSystem QFontDatabase__WritingSystem)
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]*C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = C.GoStringN(&_outCast[i].data, C.int(int64(_outCast[i].len)))
C.free(unsafe.Pointer(_outCast[i])) // free the inner miqt_string*
var _lv_ms *C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(&_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
@ -353,7 +347,7 @@ func (this *QFontDatabase) PointSizes2(family string, style string) []int {
defer C.free(style_ms)
var _ma *C.struct_miqt_array = C.QFontDatabase_PointSizes2(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms))
_ret := make([]int, int(_ma.len))
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // mrs jackson
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (int)(_outCast[i])
}
@ -366,8 +360,7 @@ func (this *QFontDatabase) IsBitmapScalable2(family string, style string) bool {
defer C.free(family_ms)
style_ms := miqt_strdupg(style)
defer C.free(style_ms)
_ret := C.QFontDatabase_IsBitmapScalable2(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms))
return (bool)(_ret)
return (bool)(C.QFontDatabase_IsBitmapScalable2(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms)))
}
func (this *QFontDatabase) IsSmoothlyScalable2(family string, style string) bool {
@ -375,8 +368,7 @@ func (this *QFontDatabase) IsSmoothlyScalable2(family string, style string) bool
defer C.free(family_ms)
style_ms := miqt_strdupg(style)
defer C.free(style_ms)
_ret := C.QFontDatabase_IsSmoothlyScalable2(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms))
return (bool)(_ret)
return (bool)(C.QFontDatabase_IsSmoothlyScalable2(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms)))
}
func (this *QFontDatabase) IsScalable2(family string, style string) bool {
@ -384,8 +376,7 @@ func (this *QFontDatabase) IsScalable2(family string, style string) bool {
defer C.free(family_ms)
style_ms := miqt_strdupg(style)
defer C.free(style_ms)
_ret := C.QFontDatabase_IsScalable2(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms))
return (bool)(_ret)
return (bool)(C.QFontDatabase_IsScalable2(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms)))
}
func (this *QFontDatabase) IsFixedPitch2(family string, style string) bool {
@ -393,8 +384,7 @@ func (this *QFontDatabase) IsFixedPitch2(family string, style string) bool {
defer C.free(family_ms)
style_ms := miqt_strdupg(style)
defer C.free(style_ms)
_ret := C.QFontDatabase_IsFixedPitch2(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms))
return (bool)(_ret)
return (bool)(C.QFontDatabase_IsFixedPitch2(this.h, (*C.struct_miqt_string)(family_ms), (*C.struct_miqt_string)(style_ms)))
}
// Delete this object from C++ memory.

View File

@ -73,8 +73,7 @@ func NewQFontDialog4(initial *QFont, parent *QWidget) *QFontDialog {
}
func (this *QFontDialog) MetaObject() *QMetaObject {
_ret := C.QFontDialog_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
return newQMetaObject_U(unsafe.Pointer(C.QFontDialog_MetaObject(this.h)))
}
func QFontDialog_Tr(s string) string {
@ -118,8 +117,7 @@ func (this *QFontDialog) SetOption(option QFontDialog__FontDialogOption) {
}
func (this *QFontDialog) TestOption(option QFontDialog__FontDialogOption) bool {
_ret := C.QFontDialog_TestOption(this.h, (C.uintptr_t)(option))
return (bool)(_ret)
return (bool)(C.QFontDialog_TestOption(this.h, (C.uintptr_t)(option)))
}
func (this *QFontDialog) SetOptions(options int) {
@ -127,8 +125,7 @@ func (this *QFontDialog) SetOptions(options int) {
}
func (this *QFontDialog) Options() int {
_ret := C.QFontDialog_Options(this.h)
return (int)(_ret)
return (int)(C.QFontDialog_Options(this.h))
}
func (this *QFontDialog) SetVisible(visible bool) {
@ -164,8 +161,7 @@ func miqt_exec_callback_QFontDialog_CurrentFontChanged(cb *C.void, font *C.QFont
}
// Convert all CABI parameters to Go parameters
font_ret := font
slotval1 := newQFont_U(unsafe.Pointer(font_ret))
slotval1 := newQFont_U(unsafe.Pointer(font))
gofunc(slotval1)
}
@ -185,8 +181,7 @@ func miqt_exec_callback_QFontDialog_FontSelected(cb *C.void, font *C.QFont) {
}
// Convert all CABI parameters to Go parameters
font_ret := font
slotval1 := newQFont_U(unsafe.Pointer(font_ret))
slotval1 := newQFont_U(unsafe.Pointer(font))
gofunc(slotval1)
}

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