package qt6 /* #include "gen_qaccessible.h" #include */ import "C" import ( "runtime" "runtime/cgo" "unsafe" ) type QAccessibleTableModelChangeEvent__ModelChangeType int const ( QAccessibleTableModelChangeEvent__ModelReset QAccessibleTableModelChangeEvent__ModelChangeType = 0 QAccessibleTableModelChangeEvent__DataChanged QAccessibleTableModelChangeEvent__ModelChangeType = 1 QAccessibleTableModelChangeEvent__RowsInserted QAccessibleTableModelChangeEvent__ModelChangeType = 2 QAccessibleTableModelChangeEvent__ColumnsInserted QAccessibleTableModelChangeEvent__ModelChangeType = 3 QAccessibleTableModelChangeEvent__RowsRemoved QAccessibleTableModelChangeEvent__ModelChangeType = 4 QAccessibleTableModelChangeEvent__ColumnsRemoved QAccessibleTableModelChangeEvent__ModelChangeType = 5 ) type QAccessibleInterface struct { h *C.QAccessibleInterface isSubclass bool } func (this *QAccessibleInterface) cPointer() *C.QAccessibleInterface { if this == nil { return nil } return this.h } func (this *QAccessibleInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleInterface constructs the type using only CGO pointers. func newQAccessibleInterface(h *C.QAccessibleInterface) *QAccessibleInterface { if h == nil { return nil } return &QAccessibleInterface{h: h} } // UnsafeNewQAccessibleInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleInterface(h unsafe.Pointer) *QAccessibleInterface { return newQAccessibleInterface((*C.QAccessibleInterface)(h)) } func (this *QAccessibleInterface) IsValid() bool { return (bool)(C.QAccessibleInterface_IsValid(this.h)) } func (this *QAccessibleInterface) Object() *QObject { return newQObject(C.QAccessibleInterface_Object(this.h)) } func (this *QAccessibleInterface) Window() *QWindow { return newQWindow(C.QAccessibleInterface_Window(this.h)) } func (this *QAccessibleInterface) Relations(match QAccessible__RelationFlag) []struct { First *QAccessibleInterface Second QAccessible__RelationFlag } { var _ma C.struct_miqt_array = C.QAccessibleInterface_Relations(this.h, (C.int)(match)) _ret := make([]struct { First *QAccessibleInterface Second QAccessible__RelationFlag }, int(_ma.len)) _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { var _lv_mm C.struct_miqt_map = _outCast[i] _lv_First_CArray := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_lv_mm.keys)) _lv_Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_lv_mm.values)) _lv_entry_First := newQAccessibleInterface(_lv_First_CArray[0]) _lv_entry_Second := (QAccessible__RelationFlag)(_lv_Second_CArray[0]) _ret[i] = struct { First *QAccessibleInterface Second QAccessible__RelationFlag }{First: _lv_entry_First, Second: _lv_entry_Second} } return _ret } func (this *QAccessibleInterface) FocusChild() *QAccessibleInterface { return newQAccessibleInterface(C.QAccessibleInterface_FocusChild(this.h)) } func (this *QAccessibleInterface) ChildAt(x int, y int) *QAccessibleInterface { return newQAccessibleInterface(C.QAccessibleInterface_ChildAt(this.h, (C.int)(x), (C.int)(y))) } func (this *QAccessibleInterface) Parent() *QAccessibleInterface { return newQAccessibleInterface(C.QAccessibleInterface_Parent(this.h)) } func (this *QAccessibleInterface) Child(index int) *QAccessibleInterface { return newQAccessibleInterface(C.QAccessibleInterface_Child(this.h, (C.int)(index))) } func (this *QAccessibleInterface) ChildCount() int { return (int)(C.QAccessibleInterface_ChildCount(this.h)) } func (this *QAccessibleInterface) IndexOfChild(param1 *QAccessibleInterface) int { return (int)(C.QAccessibleInterface_IndexOfChild(this.h, param1.cPointer())) } func (this *QAccessibleInterface) Text(t QAccessible__Text) string { var _ms C.struct_miqt_string = C.QAccessibleInterface_Text(this.h, (C.int)(t)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleInterface) SetText(t QAccessible__Text, text string) { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) C.QAccessibleInterface_SetText(this.h, (C.int)(t), text_ms) } func (this *QAccessibleInterface) Rect() *QRect { _goptr := newQRect(C.QAccessibleInterface_Rect(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleInterface) Role() QAccessible__Role { return (QAccessible__Role)(C.QAccessibleInterface_Role(this.h)) } func (this *QAccessibleInterface) State() *QAccessible__State { _goptr := newQAccessible__State(C.QAccessibleInterface_State(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleInterface) ForegroundColor() *QColor { _goptr := newQColor(C.QAccessibleInterface_ForegroundColor(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleInterface) BackgroundColor() *QColor { _goptr := newQColor(C.QAccessibleInterface_BackgroundColor(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleInterface) TextInterface() *QAccessibleTextInterface { return newQAccessibleTextInterface(C.QAccessibleInterface_TextInterface(this.h)) } func (this *QAccessibleInterface) EditableTextInterface() *QAccessibleEditableTextInterface { return newQAccessibleEditableTextInterface(C.QAccessibleInterface_EditableTextInterface(this.h)) } func (this *QAccessibleInterface) ValueInterface() *QAccessibleValueInterface { return newQAccessibleValueInterface(C.QAccessibleInterface_ValueInterface(this.h)) } func (this *QAccessibleInterface) ActionInterface() *QAccessibleActionInterface { return newQAccessibleActionInterface(C.QAccessibleInterface_ActionInterface(this.h)) } func (this *QAccessibleInterface) ImageInterface() *QAccessibleImageInterface { return newQAccessibleImageInterface(C.QAccessibleInterface_ImageInterface(this.h)) } func (this *QAccessibleInterface) TableInterface() *QAccessibleTableInterface { return newQAccessibleTableInterface(C.QAccessibleInterface_TableInterface(this.h)) } func (this *QAccessibleInterface) TableCellInterface() *QAccessibleTableCellInterface { return newQAccessibleTableCellInterface(C.QAccessibleInterface_TableCellInterface(this.h)) } func (this *QAccessibleInterface) HyperlinkInterface() *QAccessibleHyperlinkInterface { return newQAccessibleHyperlinkInterface(C.QAccessibleInterface_HyperlinkInterface(this.h)) } func (this *QAccessibleInterface) VirtualHook(id int, data unsafe.Pointer) { C.QAccessibleInterface_VirtualHook(this.h, (C.int)(id), data) } func (this *QAccessibleInterface) InterfaceCast(param1 QAccessible__InterfaceType) unsafe.Pointer { return (unsafe.Pointer)(C.QAccessibleInterface_InterfaceCast(this.h, (C.int)(param1))) } type QAccessibleTextInterface struct { h *C.QAccessibleTextInterface isSubclass bool } func (this *QAccessibleTextInterface) cPointer() *C.QAccessibleTextInterface { if this == nil { return nil } return this.h } func (this *QAccessibleTextInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTextInterface constructs the type using only CGO pointers. func newQAccessibleTextInterface(h *C.QAccessibleTextInterface) *QAccessibleTextInterface { if h == nil { return nil } return &QAccessibleTextInterface{h: h} } // UnsafeNewQAccessibleTextInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTextInterface(h unsafe.Pointer) *QAccessibleTextInterface { return newQAccessibleTextInterface((*C.QAccessibleTextInterface)(h)) } func (this *QAccessibleTextInterface) Selection(selectionIndex int, startOffset *int, endOffset *int) { C.QAccessibleTextInterface_Selection(this.h, (C.int)(selectionIndex), (*C.int)(unsafe.Pointer(startOffset)), (*C.int)(unsafe.Pointer(endOffset))) } func (this *QAccessibleTextInterface) SelectionCount() int { return (int)(C.QAccessibleTextInterface_SelectionCount(this.h)) } func (this *QAccessibleTextInterface) AddSelection(startOffset int, endOffset int) { C.QAccessibleTextInterface_AddSelection(this.h, (C.int)(startOffset), (C.int)(endOffset)) } func (this *QAccessibleTextInterface) RemoveSelection(selectionIndex int) { C.QAccessibleTextInterface_RemoveSelection(this.h, (C.int)(selectionIndex)) } func (this *QAccessibleTextInterface) SetSelection(selectionIndex int, startOffset int, endOffset int) { C.QAccessibleTextInterface_SetSelection(this.h, (C.int)(selectionIndex), (C.int)(startOffset), (C.int)(endOffset)) } func (this *QAccessibleTextInterface) CursorPosition() int { return (int)(C.QAccessibleTextInterface_CursorPosition(this.h)) } func (this *QAccessibleTextInterface) SetCursorPosition(position int) { C.QAccessibleTextInterface_SetCursorPosition(this.h, (C.int)(position)) } func (this *QAccessibleTextInterface) Text(startOffset int, endOffset int) string { var _ms C.struct_miqt_string = C.QAccessibleTextInterface_Text(this.h, (C.int)(startOffset), (C.int)(endOffset)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleTextInterface) TextBeforeOffset(offset int, boundaryType QAccessible__TextBoundaryType, startOffset *int, endOffset *int) string { var _ms C.struct_miqt_string = C.QAccessibleTextInterface_TextBeforeOffset(this.h, (C.int)(offset), (C.int)(boundaryType), (*C.int)(unsafe.Pointer(startOffset)), (*C.int)(unsafe.Pointer(endOffset))) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleTextInterface) TextAfterOffset(offset int, boundaryType QAccessible__TextBoundaryType, startOffset *int, endOffset *int) string { var _ms C.struct_miqt_string = C.QAccessibleTextInterface_TextAfterOffset(this.h, (C.int)(offset), (C.int)(boundaryType), (*C.int)(unsafe.Pointer(startOffset)), (*C.int)(unsafe.Pointer(endOffset))) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleTextInterface) TextAtOffset(offset int, boundaryType QAccessible__TextBoundaryType, startOffset *int, endOffset *int) string { var _ms C.struct_miqt_string = C.QAccessibleTextInterface_TextAtOffset(this.h, (C.int)(offset), (C.int)(boundaryType), (*C.int)(unsafe.Pointer(startOffset)), (*C.int)(unsafe.Pointer(endOffset))) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleTextInterface) CharacterCount() int { return (int)(C.QAccessibleTextInterface_CharacterCount(this.h)) } func (this *QAccessibleTextInterface) CharacterRect(offset int) *QRect { _goptr := newQRect(C.QAccessibleTextInterface_CharacterRect(this.h, (C.int)(offset))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleTextInterface) OffsetAtPoint(point *QPoint) int { return (int)(C.QAccessibleTextInterface_OffsetAtPoint(this.h, point.cPointer())) } func (this *QAccessibleTextInterface) ScrollToSubstring(startIndex int, endIndex int) { C.QAccessibleTextInterface_ScrollToSubstring(this.h, (C.int)(startIndex), (C.int)(endIndex)) } func (this *QAccessibleTextInterface) Attributes(offset int, startOffset *int, endOffset *int) string { var _ms C.struct_miqt_string = C.QAccessibleTextInterface_Attributes(this.h, (C.int)(offset), (*C.int)(unsafe.Pointer(startOffset)), (*C.int)(unsafe.Pointer(endOffset))) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleTextInterface) OperatorAssign(param1 *QAccessibleTextInterface) { C.QAccessibleTextInterface_OperatorAssign(this.h, param1.cPointer()) } // Delete this object from C++ memory. func (this *QAccessibleTextInterface) Delete() { C.QAccessibleTextInterface_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTextInterface) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTextInterface) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleEditableTextInterface struct { h *C.QAccessibleEditableTextInterface isSubclass bool } func (this *QAccessibleEditableTextInterface) cPointer() *C.QAccessibleEditableTextInterface { if this == nil { return nil } return this.h } func (this *QAccessibleEditableTextInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleEditableTextInterface constructs the type using only CGO pointers. func newQAccessibleEditableTextInterface(h *C.QAccessibleEditableTextInterface) *QAccessibleEditableTextInterface { if h == nil { return nil } return &QAccessibleEditableTextInterface{h: h} } // UnsafeNewQAccessibleEditableTextInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleEditableTextInterface(h unsafe.Pointer) *QAccessibleEditableTextInterface { return newQAccessibleEditableTextInterface((*C.QAccessibleEditableTextInterface)(h)) } func (this *QAccessibleEditableTextInterface) DeleteText(startOffset int, endOffset int) { C.QAccessibleEditableTextInterface_DeleteText(this.h, (C.int)(startOffset), (C.int)(endOffset)) } func (this *QAccessibleEditableTextInterface) InsertText(offset int, text string) { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) C.QAccessibleEditableTextInterface_InsertText(this.h, (C.int)(offset), text_ms) } func (this *QAccessibleEditableTextInterface) ReplaceText(startOffset int, endOffset int, text string) { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) C.QAccessibleEditableTextInterface_ReplaceText(this.h, (C.int)(startOffset), (C.int)(endOffset), text_ms) } func (this *QAccessibleEditableTextInterface) OperatorAssign(param1 *QAccessibleEditableTextInterface) { C.QAccessibleEditableTextInterface_OperatorAssign(this.h, param1.cPointer()) } // Delete this object from C++ memory. func (this *QAccessibleEditableTextInterface) Delete() { C.QAccessibleEditableTextInterface_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleEditableTextInterface) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleEditableTextInterface) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleValueInterface struct { h *C.QAccessibleValueInterface isSubclass bool } func (this *QAccessibleValueInterface) cPointer() *C.QAccessibleValueInterface { if this == nil { return nil } return this.h } func (this *QAccessibleValueInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleValueInterface constructs the type using only CGO pointers. func newQAccessibleValueInterface(h *C.QAccessibleValueInterface) *QAccessibleValueInterface { if h == nil { return nil } return &QAccessibleValueInterface{h: h} } // UnsafeNewQAccessibleValueInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleValueInterface(h unsafe.Pointer) *QAccessibleValueInterface { return newQAccessibleValueInterface((*C.QAccessibleValueInterface)(h)) } func (this *QAccessibleValueInterface) CurrentValue() *QVariant { _goptr := newQVariant(C.QAccessibleValueInterface_CurrentValue(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleValueInterface) SetCurrentValue(value *QVariant) { C.QAccessibleValueInterface_SetCurrentValue(this.h, value.cPointer()) } func (this *QAccessibleValueInterface) MaximumValue() *QVariant { _goptr := newQVariant(C.QAccessibleValueInterface_MaximumValue(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleValueInterface) MinimumValue() *QVariant { _goptr := newQVariant(C.QAccessibleValueInterface_MinimumValue(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleValueInterface) MinimumStepSize() *QVariant { _goptr := newQVariant(C.QAccessibleValueInterface_MinimumStepSize(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleValueInterface) OperatorAssign(param1 *QAccessibleValueInterface) { C.QAccessibleValueInterface_OperatorAssign(this.h, param1.cPointer()) } // Delete this object from C++ memory. func (this *QAccessibleValueInterface) Delete() { C.QAccessibleValueInterface_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleValueInterface) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleValueInterface) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTableCellInterface struct { h *C.QAccessibleTableCellInterface isSubclass bool } func (this *QAccessibleTableCellInterface) cPointer() *C.QAccessibleTableCellInterface { if this == nil { return nil } return this.h } func (this *QAccessibleTableCellInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTableCellInterface constructs the type using only CGO pointers. func newQAccessibleTableCellInterface(h *C.QAccessibleTableCellInterface) *QAccessibleTableCellInterface { if h == nil { return nil } return &QAccessibleTableCellInterface{h: h} } // UnsafeNewQAccessibleTableCellInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTableCellInterface(h unsafe.Pointer) *QAccessibleTableCellInterface { return newQAccessibleTableCellInterface((*C.QAccessibleTableCellInterface)(h)) } func (this *QAccessibleTableCellInterface) IsSelected() bool { 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)) // hey ya for i := 0; i < int(_ma.len); i++ { _ret[i] = newQAccessibleInterface(_outCast[i]) } return _ret } 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)) // hey ya for i := 0; i < int(_ma.len); i++ { _ret[i] = newQAccessibleInterface(_outCast[i]) } return _ret } func (this *QAccessibleTableCellInterface) ColumnIndex() int { return (int)(C.QAccessibleTableCellInterface_ColumnIndex(this.h)) } func (this *QAccessibleTableCellInterface) RowIndex() int { return (int)(C.QAccessibleTableCellInterface_RowIndex(this.h)) } func (this *QAccessibleTableCellInterface) ColumnExtent() int { return (int)(C.QAccessibleTableCellInterface_ColumnExtent(this.h)) } func (this *QAccessibleTableCellInterface) RowExtent() int { return (int)(C.QAccessibleTableCellInterface_RowExtent(this.h)) } func (this *QAccessibleTableCellInterface) Table() *QAccessibleInterface { return newQAccessibleInterface(C.QAccessibleTableCellInterface_Table(this.h)) } func (this *QAccessibleTableCellInterface) OperatorAssign(param1 *QAccessibleTableCellInterface) { C.QAccessibleTableCellInterface_OperatorAssign(this.h, param1.cPointer()) } // Delete this object from C++ memory. func (this *QAccessibleTableCellInterface) Delete() { C.QAccessibleTableCellInterface_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTableCellInterface) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTableCellInterface) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTableInterface struct { h *C.QAccessibleTableInterface isSubclass bool } func (this *QAccessibleTableInterface) cPointer() *C.QAccessibleTableInterface { if this == nil { return nil } return this.h } func (this *QAccessibleTableInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTableInterface constructs the type using only CGO pointers. func newQAccessibleTableInterface(h *C.QAccessibleTableInterface) *QAccessibleTableInterface { if h == nil { return nil } return &QAccessibleTableInterface{h: h} } // UnsafeNewQAccessibleTableInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTableInterface(h unsafe.Pointer) *QAccessibleTableInterface { return newQAccessibleTableInterface((*C.QAccessibleTableInterface)(h)) } func (this *QAccessibleTableInterface) Caption() *QAccessibleInterface { return newQAccessibleInterface(C.QAccessibleTableInterface_Caption(this.h)) } func (this *QAccessibleTableInterface) Summary() *QAccessibleInterface { return newQAccessibleInterface(C.QAccessibleTableInterface_Summary(this.h)) } func (this *QAccessibleTableInterface) CellAt(row int, column int) *QAccessibleInterface { return newQAccessibleInterface(C.QAccessibleTableInterface_CellAt(this.h, (C.int)(row), (C.int)(column))) } func (this *QAccessibleTableInterface) SelectedCellCount() int { 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)) // hey ya for i := 0; i < int(_ma.len); i++ { _ret[i] = newQAccessibleInterface(_outCast[i]) } return _ret } func (this *QAccessibleTableInterface) ColumnDescription(column int) string { var _ms C.struct_miqt_string = C.QAccessibleTableInterface_ColumnDescription(this.h, (C.int)(column)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleTableInterface) RowDescription(row int) string { var _ms C.struct_miqt_string = C.QAccessibleTableInterface_RowDescription(this.h, (C.int)(row)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleTableInterface) SelectedColumnCount() int { return (int)(C.QAccessibleTableInterface_SelectedColumnCount(this.h)) } func (this *QAccessibleTableInterface) SelectedRowCount() int { return (int)(C.QAccessibleTableInterface_SelectedRowCount(this.h)) } func (this *QAccessibleTableInterface) ColumnCount() int { return (int)(C.QAccessibleTableInterface_ColumnCount(this.h)) } func (this *QAccessibleTableInterface) RowCount() int { 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)) // hey ya for i := 0; i < int(_ma.len); i++ { _ret[i] = (int)(_outCast[i]) } return _ret } 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)) // hey ya for i := 0; i < int(_ma.len); i++ { _ret[i] = (int)(_outCast[i]) } return _ret } func (this *QAccessibleTableInterface) IsColumnSelected(column int) bool { return (bool)(C.QAccessibleTableInterface_IsColumnSelected(this.h, (C.int)(column))) } func (this *QAccessibleTableInterface) IsRowSelected(row int) bool { return (bool)(C.QAccessibleTableInterface_IsRowSelected(this.h, (C.int)(row))) } func (this *QAccessibleTableInterface) SelectRow(row int) bool { return (bool)(C.QAccessibleTableInterface_SelectRow(this.h, (C.int)(row))) } func (this *QAccessibleTableInterface) SelectColumn(column int) bool { return (bool)(C.QAccessibleTableInterface_SelectColumn(this.h, (C.int)(column))) } func (this *QAccessibleTableInterface) UnselectRow(row int) bool { return (bool)(C.QAccessibleTableInterface_UnselectRow(this.h, (C.int)(row))) } func (this *QAccessibleTableInterface) UnselectColumn(column int) bool { return (bool)(C.QAccessibleTableInterface_UnselectColumn(this.h, (C.int)(column))) } func (this *QAccessibleTableInterface) ModelChange(event *QAccessibleTableModelChangeEvent) { C.QAccessibleTableInterface_ModelChange(this.h, event.cPointer()) } // Delete this object from C++ memory. func (this *QAccessibleTableInterface) Delete() { C.QAccessibleTableInterface_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTableInterface) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTableInterface) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleActionInterface struct { h *C.QAccessibleActionInterface isSubclass bool } func (this *QAccessibleActionInterface) cPointer() *C.QAccessibleActionInterface { if this == nil { return nil } return this.h } func (this *QAccessibleActionInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleActionInterface constructs the type using only CGO pointers. func newQAccessibleActionInterface(h *C.QAccessibleActionInterface) *QAccessibleActionInterface { if h == nil { return nil } return &QAccessibleActionInterface{h: h} } // UnsafeNewQAccessibleActionInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleActionInterface(h unsafe.Pointer) *QAccessibleActionInterface { return newQAccessibleActionInterface((*C.QAccessibleActionInterface)(h)) } func QAccessibleActionInterface_Tr(sourceText string) string { sourceText_Cstring := C.CString(sourceText) defer C.free(unsafe.Pointer(sourceText_Cstring)) var _ms C.struct_miqt_string = C.QAccessibleActionInterface_Tr(sourceText_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleActionInterface) ActionNames() []string { var _ma C.struct_miqt_array = C.QAccessibleActionInterface_ActionNames(this.h) _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++ { 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.data)) _ret[i] = _lv_ret } return _ret } func (this *QAccessibleActionInterface) LocalizedActionName(name string) string { name_ms := C.struct_miqt_string{} name_ms.data = C.CString(name) name_ms.len = C.size_t(len(name)) defer C.free(unsafe.Pointer(name_ms.data)) var _ms C.struct_miqt_string = C.QAccessibleActionInterface_LocalizedActionName(this.h, name_ms) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleActionInterface) LocalizedActionDescription(name string) string { name_ms := C.struct_miqt_string{} name_ms.data = C.CString(name) name_ms.len = C.size_t(len(name)) defer C.free(unsafe.Pointer(name_ms.data)) var _ms C.struct_miqt_string = C.QAccessibleActionInterface_LocalizedActionDescription(this.h, name_ms) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleActionInterface) DoAction(actionName string) { actionName_ms := C.struct_miqt_string{} actionName_ms.data = C.CString(actionName) actionName_ms.len = C.size_t(len(actionName)) defer C.free(unsafe.Pointer(actionName_ms.data)) C.QAccessibleActionInterface_DoAction(this.h, actionName_ms) } func (this *QAccessibleActionInterface) KeyBindingsForAction(actionName string) []string { actionName_ms := C.struct_miqt_string{} actionName_ms.data = C.CString(actionName) actionName_ms.len = C.size_t(len(actionName)) defer C.free(unsafe.Pointer(actionName_ms.data)) var _ma C.struct_miqt_array = C.QAccessibleActionInterface_KeyBindingsForAction(this.h, actionName_ms) _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++ { 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.data)) _ret[i] = _lv_ret } return _ret } func QAccessibleActionInterface_PressAction() string { var _ms C.struct_miqt_string = C.QAccessibleActionInterface_PressAction() _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QAccessibleActionInterface_IncreaseAction() string { var _ms C.struct_miqt_string = C.QAccessibleActionInterface_IncreaseAction() _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QAccessibleActionInterface_DecreaseAction() string { var _ms C.struct_miqt_string = C.QAccessibleActionInterface_DecreaseAction() _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QAccessibleActionInterface_ShowMenuAction() string { var _ms C.struct_miqt_string = C.QAccessibleActionInterface_ShowMenuAction() _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QAccessibleActionInterface_SetFocusAction() string { var _ms C.struct_miqt_string = C.QAccessibleActionInterface_SetFocusAction() _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QAccessibleActionInterface_ToggleAction() string { var _ms C.struct_miqt_string = C.QAccessibleActionInterface_ToggleAction() _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QAccessibleActionInterface_ScrollLeftAction() string { var _ms C.struct_miqt_string = C.QAccessibleActionInterface_ScrollLeftAction() _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QAccessibleActionInterface_ScrollRightAction() string { var _ms C.struct_miqt_string = C.QAccessibleActionInterface_ScrollRightAction() _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QAccessibleActionInterface_ScrollUpAction() string { var _ms C.struct_miqt_string = C.QAccessibleActionInterface_ScrollUpAction() _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QAccessibleActionInterface_ScrollDownAction() string { var _ms C.struct_miqt_string = C.QAccessibleActionInterface_ScrollDownAction() _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QAccessibleActionInterface_NextPageAction() string { var _ms C.struct_miqt_string = C.QAccessibleActionInterface_NextPageAction() _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QAccessibleActionInterface_PreviousPageAction() string { var _ms C.struct_miqt_string = C.QAccessibleActionInterface_PreviousPageAction() _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleActionInterface) OperatorAssign(param1 *QAccessibleActionInterface) { C.QAccessibleActionInterface_OperatorAssign(this.h, param1.cPointer()) } func QAccessibleActionInterface_Tr2(sourceText string, disambiguation string) string { sourceText_Cstring := C.CString(sourceText) defer C.free(unsafe.Pointer(sourceText_Cstring)) disambiguation_Cstring := C.CString(disambiguation) defer C.free(unsafe.Pointer(disambiguation_Cstring)) var _ms C.struct_miqt_string = C.QAccessibleActionInterface_Tr2(sourceText_Cstring, disambiguation_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QAccessibleActionInterface_Tr3(sourceText string, disambiguation string, n int) string { sourceText_Cstring := C.CString(sourceText) defer C.free(unsafe.Pointer(sourceText_Cstring)) disambiguation_Cstring := C.CString(disambiguation) defer C.free(unsafe.Pointer(disambiguation_Cstring)) var _ms C.struct_miqt_string = C.QAccessibleActionInterface_Tr3(sourceText_Cstring, disambiguation_Cstring, (C.int)(n)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } // Delete this object from C++ memory. func (this *QAccessibleActionInterface) Delete() { C.QAccessibleActionInterface_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleActionInterface) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleActionInterface) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleImageInterface struct { h *C.QAccessibleImageInterface isSubclass bool } func (this *QAccessibleImageInterface) cPointer() *C.QAccessibleImageInterface { if this == nil { return nil } return this.h } func (this *QAccessibleImageInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleImageInterface constructs the type using only CGO pointers. func newQAccessibleImageInterface(h *C.QAccessibleImageInterface) *QAccessibleImageInterface { if h == nil { return nil } return &QAccessibleImageInterface{h: h} } // UnsafeNewQAccessibleImageInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleImageInterface(h unsafe.Pointer) *QAccessibleImageInterface { return newQAccessibleImageInterface((*C.QAccessibleImageInterface)(h)) } func (this *QAccessibleImageInterface) ImageDescription() string { var _ms C.struct_miqt_string = C.QAccessibleImageInterface_ImageDescription(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleImageInterface) ImageSize() *QSize { _goptr := newQSize(C.QAccessibleImageInterface_ImageSize(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleImageInterface) ImagePosition() *QPoint { _goptr := newQPoint(C.QAccessibleImageInterface_ImagePosition(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleImageInterface) OperatorAssign(param1 *QAccessibleImageInterface) { C.QAccessibleImageInterface_OperatorAssign(this.h, param1.cPointer()) } // Delete this object from C++ memory. func (this *QAccessibleImageInterface) Delete() { C.QAccessibleImageInterface_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleImageInterface) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleImageInterface) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleHyperlinkInterface struct { h *C.QAccessibleHyperlinkInterface isSubclass bool } func (this *QAccessibleHyperlinkInterface) cPointer() *C.QAccessibleHyperlinkInterface { if this == nil { return nil } return this.h } func (this *QAccessibleHyperlinkInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleHyperlinkInterface constructs the type using only CGO pointers. func newQAccessibleHyperlinkInterface(h *C.QAccessibleHyperlinkInterface) *QAccessibleHyperlinkInterface { if h == nil { return nil } return &QAccessibleHyperlinkInterface{h: h} } // UnsafeNewQAccessibleHyperlinkInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleHyperlinkInterface(h unsafe.Pointer) *QAccessibleHyperlinkInterface { return newQAccessibleHyperlinkInterface((*C.QAccessibleHyperlinkInterface)(h)) } func (this *QAccessibleHyperlinkInterface) Anchor() string { var _ms C.struct_miqt_string = C.QAccessibleHyperlinkInterface_Anchor(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleHyperlinkInterface) AnchorTarget() string { var _ms C.struct_miqt_string = C.QAccessibleHyperlinkInterface_AnchorTarget(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleHyperlinkInterface) StartIndex() int { return (int)(C.QAccessibleHyperlinkInterface_StartIndex(this.h)) } func (this *QAccessibleHyperlinkInterface) EndIndex() int { return (int)(C.QAccessibleHyperlinkInterface_EndIndex(this.h)) } func (this *QAccessibleHyperlinkInterface) IsValid() bool { return (bool)(C.QAccessibleHyperlinkInterface_IsValid(this.h)) } func (this *QAccessibleHyperlinkInterface) OperatorAssign(param1 *QAccessibleHyperlinkInterface) { C.QAccessibleHyperlinkInterface_OperatorAssign(this.h, param1.cPointer()) } // Delete this object from C++ memory. func (this *QAccessibleHyperlinkInterface) Delete() { C.QAccessibleHyperlinkInterface_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleHyperlinkInterface) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleHyperlinkInterface) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleEvent struct { h *C.QAccessibleEvent isSubclass bool } func (this *QAccessibleEvent) cPointer() *C.QAccessibleEvent { if this == nil { return nil } return this.h } func (this *QAccessibleEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleEvent constructs the type using only CGO pointers. func newQAccessibleEvent(h *C.QAccessibleEvent) *QAccessibleEvent { if h == nil { return nil } return &QAccessibleEvent{h: h} } // UnsafeNewQAccessibleEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleEvent(h unsafe.Pointer) *QAccessibleEvent { return newQAccessibleEvent((*C.QAccessibleEvent)(h)) } // NewQAccessibleEvent constructs a new QAccessibleEvent object. func NewQAccessibleEvent(obj *QObject, typ QAccessible__Event) *QAccessibleEvent { ret := newQAccessibleEvent(C.QAccessibleEvent_new(obj.cPointer(), (C.int)(typ))) ret.isSubclass = true return ret } // NewQAccessibleEvent2 constructs a new QAccessibleEvent object. func NewQAccessibleEvent2(iface *QAccessibleInterface, typ QAccessible__Event) *QAccessibleEvent { ret := newQAccessibleEvent(C.QAccessibleEvent_new2(iface.cPointer(), (C.int)(typ))) ret.isSubclass = true return ret } func (this *QAccessibleEvent) Type() QAccessible__Event { return (QAccessible__Event)(C.QAccessibleEvent_Type(this.h)) } func (this *QAccessibleEvent) Object() *QObject { return newQObject(C.QAccessibleEvent_Object(this.h)) } func (this *QAccessibleEvent) UniqueId() uint { return (uint)(C.QAccessibleEvent_UniqueId(this.h)) } func (this *QAccessibleEvent) SetChild(chld int) { C.QAccessibleEvent_SetChild(this.h, (C.int)(chld)) } func (this *QAccessibleEvent) Child() int { return (int)(C.QAccessibleEvent_Child(this.h)) } func (this *QAccessibleEvent) AccessibleInterface() *QAccessibleInterface { return newQAccessibleInterface(C.QAccessibleEvent_AccessibleInterface(this.h)) } func (this *QAccessibleEvent) callVirtualBase_AccessibleInterface() *QAccessibleInterface { return newQAccessibleInterface(C.QAccessibleEvent_virtualbase_AccessibleInterface(unsafe.Pointer(this.h))) } func (this *QAccessibleEvent) OnAccessibleInterface(slot func(super func() *QAccessibleInterface) *QAccessibleInterface) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QAccessibleEvent_override_virtual_AccessibleInterface(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAccessibleEvent_AccessibleInterface func miqt_exec_callback_QAccessibleEvent_AccessibleInterface(self *C.QAccessibleEvent, cb C.intptr_t) *C.QAccessibleInterface { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QAccessibleInterface) *QAccessibleInterface) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QAccessibleEvent{h: self}).callVirtualBase_AccessibleInterface) return virtualReturn.cPointer() } // Delete this object from C++ memory. func (this *QAccessibleEvent) Delete() { C.QAccessibleEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleStateChangeEvent struct { h *C.QAccessibleStateChangeEvent isSubclass bool *QAccessibleEvent } func (this *QAccessibleStateChangeEvent) cPointer() *C.QAccessibleStateChangeEvent { if this == nil { return nil } return this.h } func (this *QAccessibleStateChangeEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleStateChangeEvent constructs the type using only CGO pointers. func newQAccessibleStateChangeEvent(h *C.QAccessibleStateChangeEvent) *QAccessibleStateChangeEvent { if h == nil { return nil } var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleStateChangeEvent_virtbase(h, &outptr_QAccessibleEvent) return &QAccessibleStateChangeEvent{h: h, QAccessibleEvent: newQAccessibleEvent(outptr_QAccessibleEvent)} } // UnsafeNewQAccessibleStateChangeEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleStateChangeEvent(h unsafe.Pointer) *QAccessibleStateChangeEvent { return newQAccessibleStateChangeEvent((*C.QAccessibleStateChangeEvent)(h)) } // NewQAccessibleStateChangeEvent constructs a new QAccessibleStateChangeEvent object. func NewQAccessibleStateChangeEvent(obj *QObject, state QAccessible__State) *QAccessibleStateChangeEvent { ret := newQAccessibleStateChangeEvent(C.QAccessibleStateChangeEvent_new(obj.cPointer(), state.cPointer())) ret.isSubclass = true return ret } // NewQAccessibleStateChangeEvent2 constructs a new QAccessibleStateChangeEvent object. func NewQAccessibleStateChangeEvent2(iface *QAccessibleInterface, state QAccessible__State) *QAccessibleStateChangeEvent { ret := newQAccessibleStateChangeEvent(C.QAccessibleStateChangeEvent_new2(iface.cPointer(), state.cPointer())) ret.isSubclass = true return ret } func (this *QAccessibleStateChangeEvent) ChangedStates() *QAccessible__State { _goptr := newQAccessible__State(C.QAccessibleStateChangeEvent_ChangedStates(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleStateChangeEvent) callVirtualBase_AccessibleInterface() *QAccessibleInterface { return newQAccessibleInterface(C.QAccessibleStateChangeEvent_virtualbase_AccessibleInterface(unsafe.Pointer(this.h))) } func (this *QAccessibleStateChangeEvent) OnAccessibleInterface(slot func(super func() *QAccessibleInterface) *QAccessibleInterface) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QAccessibleStateChangeEvent_override_virtual_AccessibleInterface(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAccessibleStateChangeEvent_AccessibleInterface func miqt_exec_callback_QAccessibleStateChangeEvent_AccessibleInterface(self *C.QAccessibleStateChangeEvent, cb C.intptr_t) *C.QAccessibleInterface { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QAccessibleInterface) *QAccessibleInterface) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QAccessibleStateChangeEvent{h: self}).callVirtualBase_AccessibleInterface) return virtualReturn.cPointer() } // Delete this object from C++ memory. func (this *QAccessibleStateChangeEvent) Delete() { C.QAccessibleStateChangeEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleStateChangeEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleStateChangeEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTextCursorEvent struct { h *C.QAccessibleTextCursorEvent isSubclass bool *QAccessibleEvent } func (this *QAccessibleTextCursorEvent) cPointer() *C.QAccessibleTextCursorEvent { if this == nil { return nil } return this.h } func (this *QAccessibleTextCursorEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTextCursorEvent constructs the type using only CGO pointers. func newQAccessibleTextCursorEvent(h *C.QAccessibleTextCursorEvent) *QAccessibleTextCursorEvent { if h == nil { return nil } var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleTextCursorEvent_virtbase(h, &outptr_QAccessibleEvent) return &QAccessibleTextCursorEvent{h: h, QAccessibleEvent: newQAccessibleEvent(outptr_QAccessibleEvent)} } // UnsafeNewQAccessibleTextCursorEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTextCursorEvent(h unsafe.Pointer) *QAccessibleTextCursorEvent { return newQAccessibleTextCursorEvent((*C.QAccessibleTextCursorEvent)(h)) } // NewQAccessibleTextCursorEvent constructs a new QAccessibleTextCursorEvent object. func NewQAccessibleTextCursorEvent(obj *QObject, cursorPos int) *QAccessibleTextCursorEvent { ret := newQAccessibleTextCursorEvent(C.QAccessibleTextCursorEvent_new(obj.cPointer(), (C.int)(cursorPos))) ret.isSubclass = true return ret } // NewQAccessibleTextCursorEvent2 constructs a new QAccessibleTextCursorEvent object. func NewQAccessibleTextCursorEvent2(iface *QAccessibleInterface, cursorPos int) *QAccessibleTextCursorEvent { ret := newQAccessibleTextCursorEvent(C.QAccessibleTextCursorEvent_new2(iface.cPointer(), (C.int)(cursorPos))) ret.isSubclass = true return ret } func (this *QAccessibleTextCursorEvent) SetCursorPosition(position int) { C.QAccessibleTextCursorEvent_SetCursorPosition(this.h, (C.int)(position)) } func (this *QAccessibleTextCursorEvent) CursorPosition() int { return (int)(C.QAccessibleTextCursorEvent_CursorPosition(this.h)) } func (this *QAccessibleTextCursorEvent) callVirtualBase_AccessibleInterface() *QAccessibleInterface { return newQAccessibleInterface(C.QAccessibleTextCursorEvent_virtualbase_AccessibleInterface(unsafe.Pointer(this.h))) } func (this *QAccessibleTextCursorEvent) OnAccessibleInterface(slot func(super func() *QAccessibleInterface) *QAccessibleInterface) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QAccessibleTextCursorEvent_override_virtual_AccessibleInterface(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAccessibleTextCursorEvent_AccessibleInterface func miqt_exec_callback_QAccessibleTextCursorEvent_AccessibleInterface(self *C.QAccessibleTextCursorEvent, cb C.intptr_t) *C.QAccessibleInterface { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QAccessibleInterface) *QAccessibleInterface) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QAccessibleTextCursorEvent{h: self}).callVirtualBase_AccessibleInterface) return virtualReturn.cPointer() } // Delete this object from C++ memory. func (this *QAccessibleTextCursorEvent) Delete() { C.QAccessibleTextCursorEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTextCursorEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTextCursorEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTextSelectionEvent struct { h *C.QAccessibleTextSelectionEvent isSubclass bool *QAccessibleTextCursorEvent } func (this *QAccessibleTextSelectionEvent) cPointer() *C.QAccessibleTextSelectionEvent { if this == nil { return nil } return this.h } func (this *QAccessibleTextSelectionEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTextSelectionEvent constructs the type using only CGO pointers. func newQAccessibleTextSelectionEvent(h *C.QAccessibleTextSelectionEvent) *QAccessibleTextSelectionEvent { if h == nil { return nil } var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil C.QAccessibleTextSelectionEvent_virtbase(h, &outptr_QAccessibleTextCursorEvent) return &QAccessibleTextSelectionEvent{h: h, QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent(outptr_QAccessibleTextCursorEvent)} } // UnsafeNewQAccessibleTextSelectionEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTextSelectionEvent(h unsafe.Pointer) *QAccessibleTextSelectionEvent { return newQAccessibleTextSelectionEvent((*C.QAccessibleTextSelectionEvent)(h)) } // NewQAccessibleTextSelectionEvent constructs a new QAccessibleTextSelectionEvent object. func NewQAccessibleTextSelectionEvent(obj *QObject, start int, end int) *QAccessibleTextSelectionEvent { ret := newQAccessibleTextSelectionEvent(C.QAccessibleTextSelectionEvent_new(obj.cPointer(), (C.int)(start), (C.int)(end))) ret.isSubclass = true return ret } // NewQAccessibleTextSelectionEvent2 constructs a new QAccessibleTextSelectionEvent object. func NewQAccessibleTextSelectionEvent2(iface *QAccessibleInterface, start int, end int) *QAccessibleTextSelectionEvent { ret := newQAccessibleTextSelectionEvent(C.QAccessibleTextSelectionEvent_new2(iface.cPointer(), (C.int)(start), (C.int)(end))) ret.isSubclass = true return ret } func (this *QAccessibleTextSelectionEvent) SetSelection(start int, end int) { C.QAccessibleTextSelectionEvent_SetSelection(this.h, (C.int)(start), (C.int)(end)) } func (this *QAccessibleTextSelectionEvent) SelectionStart() int { return (int)(C.QAccessibleTextSelectionEvent_SelectionStart(this.h)) } func (this *QAccessibleTextSelectionEvent) SelectionEnd() int { return (int)(C.QAccessibleTextSelectionEvent_SelectionEnd(this.h)) } // Delete this object from C++ memory. func (this *QAccessibleTextSelectionEvent) Delete() { C.QAccessibleTextSelectionEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTextSelectionEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTextSelectionEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTextInsertEvent struct { h *C.QAccessibleTextInsertEvent isSubclass bool *QAccessibleTextCursorEvent } func (this *QAccessibleTextInsertEvent) cPointer() *C.QAccessibleTextInsertEvent { if this == nil { return nil } return this.h } func (this *QAccessibleTextInsertEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTextInsertEvent constructs the type using only CGO pointers. func newQAccessibleTextInsertEvent(h *C.QAccessibleTextInsertEvent) *QAccessibleTextInsertEvent { if h == nil { return nil } var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil C.QAccessibleTextInsertEvent_virtbase(h, &outptr_QAccessibleTextCursorEvent) return &QAccessibleTextInsertEvent{h: h, QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent(outptr_QAccessibleTextCursorEvent)} } // UnsafeNewQAccessibleTextInsertEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTextInsertEvent(h unsafe.Pointer) *QAccessibleTextInsertEvent { return newQAccessibleTextInsertEvent((*C.QAccessibleTextInsertEvent)(h)) } // NewQAccessibleTextInsertEvent constructs a new QAccessibleTextInsertEvent object. func NewQAccessibleTextInsertEvent(obj *QObject, position int, text string) *QAccessibleTextInsertEvent { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) ret := newQAccessibleTextInsertEvent(C.QAccessibleTextInsertEvent_new(obj.cPointer(), (C.int)(position), text_ms)) ret.isSubclass = true return ret } // NewQAccessibleTextInsertEvent2 constructs a new QAccessibleTextInsertEvent object. func NewQAccessibleTextInsertEvent2(iface *QAccessibleInterface, position int, text string) *QAccessibleTextInsertEvent { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) ret := newQAccessibleTextInsertEvent(C.QAccessibleTextInsertEvent_new2(iface.cPointer(), (C.int)(position), text_ms)) ret.isSubclass = true return ret } func (this *QAccessibleTextInsertEvent) TextInserted() string { var _ms C.struct_miqt_string = C.QAccessibleTextInsertEvent_TextInserted(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleTextInsertEvent) ChangePosition() int { return (int)(C.QAccessibleTextInsertEvent_ChangePosition(this.h)) } // Delete this object from C++ memory. func (this *QAccessibleTextInsertEvent) Delete() { C.QAccessibleTextInsertEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTextInsertEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTextInsertEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTextRemoveEvent struct { h *C.QAccessibleTextRemoveEvent isSubclass bool *QAccessibleTextCursorEvent } func (this *QAccessibleTextRemoveEvent) cPointer() *C.QAccessibleTextRemoveEvent { if this == nil { return nil } return this.h } func (this *QAccessibleTextRemoveEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTextRemoveEvent constructs the type using only CGO pointers. func newQAccessibleTextRemoveEvent(h *C.QAccessibleTextRemoveEvent) *QAccessibleTextRemoveEvent { if h == nil { return nil } var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil C.QAccessibleTextRemoveEvent_virtbase(h, &outptr_QAccessibleTextCursorEvent) return &QAccessibleTextRemoveEvent{h: h, QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent(outptr_QAccessibleTextCursorEvent)} } // UnsafeNewQAccessibleTextRemoveEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTextRemoveEvent(h unsafe.Pointer) *QAccessibleTextRemoveEvent { return newQAccessibleTextRemoveEvent((*C.QAccessibleTextRemoveEvent)(h)) } // NewQAccessibleTextRemoveEvent constructs a new QAccessibleTextRemoveEvent object. func NewQAccessibleTextRemoveEvent(obj *QObject, position int, text string) *QAccessibleTextRemoveEvent { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) ret := newQAccessibleTextRemoveEvent(C.QAccessibleTextRemoveEvent_new(obj.cPointer(), (C.int)(position), text_ms)) ret.isSubclass = true return ret } // NewQAccessibleTextRemoveEvent2 constructs a new QAccessibleTextRemoveEvent object. func NewQAccessibleTextRemoveEvent2(iface *QAccessibleInterface, position int, text string) *QAccessibleTextRemoveEvent { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) ret := newQAccessibleTextRemoveEvent(C.QAccessibleTextRemoveEvent_new2(iface.cPointer(), (C.int)(position), text_ms)) ret.isSubclass = true return ret } func (this *QAccessibleTextRemoveEvent) TextRemoved() string { var _ms C.struct_miqt_string = C.QAccessibleTextRemoveEvent_TextRemoved(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleTextRemoveEvent) ChangePosition() int { return (int)(C.QAccessibleTextRemoveEvent_ChangePosition(this.h)) } // Delete this object from C++ memory. func (this *QAccessibleTextRemoveEvent) Delete() { C.QAccessibleTextRemoveEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTextRemoveEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTextRemoveEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTextUpdateEvent struct { h *C.QAccessibleTextUpdateEvent isSubclass bool *QAccessibleTextCursorEvent } func (this *QAccessibleTextUpdateEvent) cPointer() *C.QAccessibleTextUpdateEvent { if this == nil { return nil } return this.h } func (this *QAccessibleTextUpdateEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTextUpdateEvent constructs the type using only CGO pointers. func newQAccessibleTextUpdateEvent(h *C.QAccessibleTextUpdateEvent) *QAccessibleTextUpdateEvent { if h == nil { return nil } var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil C.QAccessibleTextUpdateEvent_virtbase(h, &outptr_QAccessibleTextCursorEvent) return &QAccessibleTextUpdateEvent{h: h, QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent(outptr_QAccessibleTextCursorEvent)} } // UnsafeNewQAccessibleTextUpdateEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTextUpdateEvent(h unsafe.Pointer) *QAccessibleTextUpdateEvent { return newQAccessibleTextUpdateEvent((*C.QAccessibleTextUpdateEvent)(h)) } // NewQAccessibleTextUpdateEvent constructs a new QAccessibleTextUpdateEvent object. func NewQAccessibleTextUpdateEvent(obj *QObject, position int, oldText string, text string) *QAccessibleTextUpdateEvent { oldText_ms := C.struct_miqt_string{} oldText_ms.data = C.CString(oldText) oldText_ms.len = C.size_t(len(oldText)) defer C.free(unsafe.Pointer(oldText_ms.data)) text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) ret := newQAccessibleTextUpdateEvent(C.QAccessibleTextUpdateEvent_new(obj.cPointer(), (C.int)(position), oldText_ms, text_ms)) ret.isSubclass = true return ret } // NewQAccessibleTextUpdateEvent2 constructs a new QAccessibleTextUpdateEvent object. func NewQAccessibleTextUpdateEvent2(iface *QAccessibleInterface, position int, oldText string, text string) *QAccessibleTextUpdateEvent { oldText_ms := C.struct_miqt_string{} oldText_ms.data = C.CString(oldText) oldText_ms.len = C.size_t(len(oldText)) defer C.free(unsafe.Pointer(oldText_ms.data)) text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) ret := newQAccessibleTextUpdateEvent(C.QAccessibleTextUpdateEvent_new2(iface.cPointer(), (C.int)(position), oldText_ms, text_ms)) ret.isSubclass = true return ret } func (this *QAccessibleTextUpdateEvent) TextRemoved() string { var _ms C.struct_miqt_string = C.QAccessibleTextUpdateEvent_TextRemoved(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleTextUpdateEvent) TextInserted() string { var _ms C.struct_miqt_string = C.QAccessibleTextUpdateEvent_TextInserted(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleTextUpdateEvent) ChangePosition() int { return (int)(C.QAccessibleTextUpdateEvent_ChangePosition(this.h)) } // Delete this object from C++ memory. func (this *QAccessibleTextUpdateEvent) Delete() { C.QAccessibleTextUpdateEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTextUpdateEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTextUpdateEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleValueChangeEvent struct { h *C.QAccessibleValueChangeEvent isSubclass bool *QAccessibleEvent } func (this *QAccessibleValueChangeEvent) cPointer() *C.QAccessibleValueChangeEvent { if this == nil { return nil } return this.h } func (this *QAccessibleValueChangeEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleValueChangeEvent constructs the type using only CGO pointers. func newQAccessibleValueChangeEvent(h *C.QAccessibleValueChangeEvent) *QAccessibleValueChangeEvent { if h == nil { return nil } var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleValueChangeEvent_virtbase(h, &outptr_QAccessibleEvent) return &QAccessibleValueChangeEvent{h: h, QAccessibleEvent: newQAccessibleEvent(outptr_QAccessibleEvent)} } // UnsafeNewQAccessibleValueChangeEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleValueChangeEvent(h unsafe.Pointer) *QAccessibleValueChangeEvent { return newQAccessibleValueChangeEvent((*C.QAccessibleValueChangeEvent)(h)) } // NewQAccessibleValueChangeEvent constructs a new QAccessibleValueChangeEvent object. func NewQAccessibleValueChangeEvent(obj *QObject, val *QVariant) *QAccessibleValueChangeEvent { ret := newQAccessibleValueChangeEvent(C.QAccessibleValueChangeEvent_new(obj.cPointer(), val.cPointer())) ret.isSubclass = true return ret } // NewQAccessibleValueChangeEvent2 constructs a new QAccessibleValueChangeEvent object. func NewQAccessibleValueChangeEvent2(iface *QAccessibleInterface, val *QVariant) *QAccessibleValueChangeEvent { ret := newQAccessibleValueChangeEvent(C.QAccessibleValueChangeEvent_new2(iface.cPointer(), val.cPointer())) ret.isSubclass = true return ret } func (this *QAccessibleValueChangeEvent) SetValue(val *QVariant) { C.QAccessibleValueChangeEvent_SetValue(this.h, val.cPointer()) } func (this *QAccessibleValueChangeEvent) Value() *QVariant { _goptr := newQVariant(C.QAccessibleValueChangeEvent_Value(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleValueChangeEvent) callVirtualBase_AccessibleInterface() *QAccessibleInterface { return newQAccessibleInterface(C.QAccessibleValueChangeEvent_virtualbase_AccessibleInterface(unsafe.Pointer(this.h))) } func (this *QAccessibleValueChangeEvent) OnAccessibleInterface(slot func(super func() *QAccessibleInterface) *QAccessibleInterface) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QAccessibleValueChangeEvent_override_virtual_AccessibleInterface(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAccessibleValueChangeEvent_AccessibleInterface func miqt_exec_callback_QAccessibleValueChangeEvent_AccessibleInterface(self *C.QAccessibleValueChangeEvent, cb C.intptr_t) *C.QAccessibleInterface { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QAccessibleInterface) *QAccessibleInterface) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QAccessibleValueChangeEvent{h: self}).callVirtualBase_AccessibleInterface) return virtualReturn.cPointer() } // Delete this object from C++ memory. func (this *QAccessibleValueChangeEvent) Delete() { C.QAccessibleValueChangeEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleValueChangeEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleValueChangeEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTableModelChangeEvent struct { h *C.QAccessibleTableModelChangeEvent isSubclass bool *QAccessibleEvent } func (this *QAccessibleTableModelChangeEvent) cPointer() *C.QAccessibleTableModelChangeEvent { if this == nil { return nil } return this.h } func (this *QAccessibleTableModelChangeEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTableModelChangeEvent constructs the type using only CGO pointers. func newQAccessibleTableModelChangeEvent(h *C.QAccessibleTableModelChangeEvent) *QAccessibleTableModelChangeEvent { if h == nil { return nil } var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleTableModelChangeEvent_virtbase(h, &outptr_QAccessibleEvent) return &QAccessibleTableModelChangeEvent{h: h, QAccessibleEvent: newQAccessibleEvent(outptr_QAccessibleEvent)} } // UnsafeNewQAccessibleTableModelChangeEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTableModelChangeEvent(h unsafe.Pointer) *QAccessibleTableModelChangeEvent { return newQAccessibleTableModelChangeEvent((*C.QAccessibleTableModelChangeEvent)(h)) } // NewQAccessibleTableModelChangeEvent constructs a new QAccessibleTableModelChangeEvent object. func NewQAccessibleTableModelChangeEvent(obj *QObject, changeType QAccessibleTableModelChangeEvent__ModelChangeType) *QAccessibleTableModelChangeEvent { ret := newQAccessibleTableModelChangeEvent(C.QAccessibleTableModelChangeEvent_new(obj.cPointer(), (C.int)(changeType))) ret.isSubclass = true return ret } // NewQAccessibleTableModelChangeEvent2 constructs a new QAccessibleTableModelChangeEvent object. func NewQAccessibleTableModelChangeEvent2(iface *QAccessibleInterface, changeType QAccessibleTableModelChangeEvent__ModelChangeType) *QAccessibleTableModelChangeEvent { ret := newQAccessibleTableModelChangeEvent(C.QAccessibleTableModelChangeEvent_new2(iface.cPointer(), (C.int)(changeType))) ret.isSubclass = true return ret } func (this *QAccessibleTableModelChangeEvent) SetModelChangeType(changeType QAccessibleTableModelChangeEvent__ModelChangeType) { C.QAccessibleTableModelChangeEvent_SetModelChangeType(this.h, (C.int)(changeType)) } func (this *QAccessibleTableModelChangeEvent) ModelChangeType() QAccessibleTableModelChangeEvent__ModelChangeType { return (QAccessibleTableModelChangeEvent__ModelChangeType)(C.QAccessibleTableModelChangeEvent_ModelChangeType(this.h)) } func (this *QAccessibleTableModelChangeEvent) SetFirstRow(row int) { C.QAccessibleTableModelChangeEvent_SetFirstRow(this.h, (C.int)(row)) } func (this *QAccessibleTableModelChangeEvent) SetFirstColumn(col int) { C.QAccessibleTableModelChangeEvent_SetFirstColumn(this.h, (C.int)(col)) } func (this *QAccessibleTableModelChangeEvent) SetLastRow(row int) { C.QAccessibleTableModelChangeEvent_SetLastRow(this.h, (C.int)(row)) } func (this *QAccessibleTableModelChangeEvent) SetLastColumn(col int) { C.QAccessibleTableModelChangeEvent_SetLastColumn(this.h, (C.int)(col)) } func (this *QAccessibleTableModelChangeEvent) FirstRow() int { return (int)(C.QAccessibleTableModelChangeEvent_FirstRow(this.h)) } func (this *QAccessibleTableModelChangeEvent) FirstColumn() int { return (int)(C.QAccessibleTableModelChangeEvent_FirstColumn(this.h)) } func (this *QAccessibleTableModelChangeEvent) LastRow() int { return (int)(C.QAccessibleTableModelChangeEvent_LastRow(this.h)) } func (this *QAccessibleTableModelChangeEvent) LastColumn() int { return (int)(C.QAccessibleTableModelChangeEvent_LastColumn(this.h)) } func (this *QAccessibleTableModelChangeEvent) callVirtualBase_AccessibleInterface() *QAccessibleInterface { return newQAccessibleInterface(C.QAccessibleTableModelChangeEvent_virtualbase_AccessibleInterface(unsafe.Pointer(this.h))) } func (this *QAccessibleTableModelChangeEvent) OnAccessibleInterface(slot func(super func() *QAccessibleInterface) *QAccessibleInterface) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QAccessibleTableModelChangeEvent_override_virtual_AccessibleInterface(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAccessibleTableModelChangeEvent_AccessibleInterface func miqt_exec_callback_QAccessibleTableModelChangeEvent_AccessibleInterface(self *C.QAccessibleTableModelChangeEvent, cb C.intptr_t) *C.QAccessibleInterface { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QAccessibleInterface) *QAccessibleInterface) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QAccessibleTableModelChangeEvent{h: self}).callVirtualBase_AccessibleInterface) return virtualReturn.cPointer() } // Delete this object from C++ memory. func (this *QAccessibleTableModelChangeEvent) Delete() { C.QAccessibleTableModelChangeEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTableModelChangeEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTableModelChangeEvent) { this.Delete() runtime.KeepAlive(this.h) }) }