miqt/qt6/gen_qaccessible.go

2002 lines
70 KiB
Go
Raw Normal View History

2024-10-20 05:21:03 +00:00
package qt6
/*
#include "gen_qaccessible.h"
#include <stdlib.h>
*/
import "C"
import (
"runtime"
2024-11-19 06:29:06 +00:00
"runtime/cgo"
2024-10-20 05:21:03 +00:00
"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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleInterface
isSubclass bool
2024-10-20 05:21:03 +00:00
}
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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleInterface constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQAccessibleInterface(h *C.QAccessibleInterface) *QAccessibleInterface {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QAccessibleInterface{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleInterface constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQAccessibleInterface(h unsafe.Pointer) *QAccessibleInterface {
2024-12-07 04:15:57 +00:00
return newQAccessibleInterface((*C.QAccessibleInterface)(h))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleInterface) IsValid() bool {
return (bool)(C.QAccessibleInterface_IsValid(this.h))
}
func (this *QAccessibleInterface) Object() *QObject {
return newQObject(C.QAccessibleInterface_Object(this.h))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleInterface) Window() *QWindow {
2024-12-07 04:15:57 +00:00
return newQWindow(C.QAccessibleInterface_Window(this.h))
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
func (this *QAccessibleInterface) Relations(match QAccessible__RelationFlag) []struct {
First *QAccessibleInterface
Second QAccessible__RelationFlag
} {
2024-11-19 06:29:06 +00:00
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
}
2024-10-20 05:21:03 +00:00
func (this *QAccessibleInterface) FocusChild() *QAccessibleInterface {
return newQAccessibleInterface(C.QAccessibleInterface_FocusChild(this.h))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleInterface) ChildAt(x int, y int) *QAccessibleInterface {
return newQAccessibleInterface(C.QAccessibleInterface_ChildAt(this.h, (C.int)(x), (C.int)(y)))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleInterface) Parent() *QAccessibleInterface {
return newQAccessibleInterface(C.QAccessibleInterface_Parent(this.h))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleInterface) Child(index int) *QAccessibleInterface {
return newQAccessibleInterface(C.QAccessibleInterface_Child(this.h, (C.int)(index)))
2024-10-20 05:21:03 +00:00
}
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))
2024-10-20 05:21:03 +00:00
_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))
2024-10-20 05:21:03 +00:00
_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))
2024-10-20 05:21:03 +00:00
_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))
2024-10-20 05:21:03 +00:00
_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))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleInterface) EditableTextInterface() *QAccessibleEditableTextInterface {
return newQAccessibleEditableTextInterface(C.QAccessibleInterface_EditableTextInterface(this.h))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleInterface) ValueInterface() *QAccessibleValueInterface {
return newQAccessibleValueInterface(C.QAccessibleInterface_ValueInterface(this.h))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleInterface) ActionInterface() *QAccessibleActionInterface {
return newQAccessibleActionInterface(C.QAccessibleInterface_ActionInterface(this.h))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleInterface) ImageInterface() *QAccessibleImageInterface {
return newQAccessibleImageInterface(C.QAccessibleInterface_ImageInterface(this.h))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleInterface) TableInterface() *QAccessibleTableInterface {
return newQAccessibleTableInterface(C.QAccessibleInterface_TableInterface(this.h))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleInterface) TableCellInterface() *QAccessibleTableCellInterface {
return newQAccessibleTableCellInterface(C.QAccessibleInterface_TableCellInterface(this.h))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleInterface) HyperlinkInterface() *QAccessibleHyperlinkInterface {
return newQAccessibleHyperlinkInterface(C.QAccessibleInterface_HyperlinkInterface(this.h))
2024-10-20 05:21:03 +00:00
}
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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleTextInterface
isSubclass bool
2024-10-20 05:21:03 +00:00
}
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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleTextInterface constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQAccessibleTextInterface(h *C.QAccessibleTextInterface) *QAccessibleTextInterface {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QAccessibleTextInterface{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleTextInterface constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQAccessibleTextInterface(h unsafe.Pointer) *QAccessibleTextInterface {
2024-12-07 04:15:57 +00:00
return newQAccessibleTextInterface((*C.QAccessibleTextInterface)(h))
2024-10-20 05:21:03 +00:00
}
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)))
2024-10-20 05:21:03 +00:00
_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() {
2024-11-19 06:29:06 +00:00
C.QAccessibleTextInterface_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleEditableTextInterface
isSubclass bool
2024-10-20 05:21:03 +00:00
}
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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleEditableTextInterface constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQAccessibleEditableTextInterface(h *C.QAccessibleEditableTextInterface) *QAccessibleEditableTextInterface {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QAccessibleEditableTextInterface{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleEditableTextInterface constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQAccessibleEditableTextInterface(h unsafe.Pointer) *QAccessibleEditableTextInterface {
2024-12-07 04:15:57 +00:00
return newQAccessibleEditableTextInterface((*C.QAccessibleEditableTextInterface)(h))
2024-10-20 05:21:03 +00:00
}
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() {
2024-11-19 06:29:06 +00:00
C.QAccessibleEditableTextInterface_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleValueInterface
isSubclass bool
2024-10-20 05:21:03 +00:00
}
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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleValueInterface constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQAccessibleValueInterface(h *C.QAccessibleValueInterface) *QAccessibleValueInterface {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QAccessibleValueInterface{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleValueInterface constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQAccessibleValueInterface(h unsafe.Pointer) *QAccessibleValueInterface {
2024-12-07 04:15:57 +00:00
return newQAccessibleValueInterface((*C.QAccessibleValueInterface)(h))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleValueInterface) CurrentValue() *QVariant {
_goptr := newQVariant(C.QAccessibleValueInterface_CurrentValue(this.h))
2024-10-20 05:21:03 +00:00
_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))
2024-10-20 05:21:03 +00:00
_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))
2024-10-20 05:21:03 +00:00
_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))
2024-10-20 05:21:03 +00:00
_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() {
2024-11-19 06:29:06 +00:00
C.QAccessibleValueInterface_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleTableCellInterface
isSubclass bool
2024-10-20 05:21:03 +00:00
}
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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleTableCellInterface constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQAccessibleTableCellInterface(h *C.QAccessibleTableCellInterface) *QAccessibleTableCellInterface {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QAccessibleTableCellInterface{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleTableCellInterface constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQAccessibleTableCellInterface(h unsafe.Pointer) *QAccessibleTableCellInterface {
2024-12-07 04:15:57 +00:00
return newQAccessibleTableCellInterface((*C.QAccessibleTableCellInterface)(h))
2024-10-20 05:21:03 +00:00
}
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)
2024-10-20 05:21:03 +00:00
_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])
2024-10-20 05:21:03 +00:00
}
return _ret
}
func (this *QAccessibleTableCellInterface) RowHeaderCells() []*QAccessibleInterface {
var _ma C.struct_miqt_array = C.QAccessibleTableCellInterface_RowHeaderCells(this.h)
2024-10-20 05:21:03 +00:00
_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])
2024-10-20 05:21:03 +00:00
}
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))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleTableCellInterface) OperatorAssign(param1 *QAccessibleTableCellInterface) {
C.QAccessibleTableCellInterface_OperatorAssign(this.h, param1.cPointer())
}
// Delete this object from C++ memory.
func (this *QAccessibleTableCellInterface) Delete() {
2024-11-19 06:29:06 +00:00
C.QAccessibleTableCellInterface_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleTableInterface
isSubclass bool
2024-10-20 05:21:03 +00:00
}
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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleTableInterface constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQAccessibleTableInterface(h *C.QAccessibleTableInterface) *QAccessibleTableInterface {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QAccessibleTableInterface{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleTableInterface constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQAccessibleTableInterface(h unsafe.Pointer) *QAccessibleTableInterface {
2024-12-07 04:15:57 +00:00
return newQAccessibleTableInterface((*C.QAccessibleTableInterface)(h))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleTableInterface) Caption() *QAccessibleInterface {
return newQAccessibleInterface(C.QAccessibleTableInterface_Caption(this.h))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleTableInterface) Summary() *QAccessibleInterface {
return newQAccessibleInterface(C.QAccessibleTableInterface_Summary(this.h))
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleTableInterface) CellAt(row int, column int) *QAccessibleInterface {
return newQAccessibleInterface(C.QAccessibleTableInterface_CellAt(this.h, (C.int)(row), (C.int)(column)))
2024-10-20 05:21:03 +00:00
}
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)
2024-10-20 05:21:03 +00:00
_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])
2024-10-20 05:21:03 +00:00
}
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)
2024-10-20 05:21:03 +00:00
_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)
2024-10-20 05:21:03 +00:00
_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() {
2024-11-19 06:29:06 +00:00
C.QAccessibleTableInterface_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleActionInterface
isSubclass bool
2024-10-20 05:21:03 +00:00
}
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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleActionInterface constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQAccessibleActionInterface(h *C.QAccessibleActionInterface) *QAccessibleActionInterface {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QAccessibleActionInterface{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleActionInterface constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQAccessibleActionInterface(h unsafe.Pointer) *QAccessibleActionInterface {
2024-12-07 04:15:57 +00:00
return newQAccessibleActionInterface((*C.QAccessibleActionInterface)(h))
2024-10-20 05:21:03 +00:00
}
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)
2024-10-20 05:21:03 +00:00
_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)
2024-10-20 05:21:03 +00:00
_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() {
2024-11-19 06:29:06 +00:00
C.QAccessibleActionInterface_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleImageInterface
isSubclass bool
2024-10-20 05:21:03 +00:00
}
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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleImageInterface constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQAccessibleImageInterface(h *C.QAccessibleImageInterface) *QAccessibleImageInterface {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QAccessibleImageInterface{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleImageInterface constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQAccessibleImageInterface(h unsafe.Pointer) *QAccessibleImageInterface {
2024-12-07 04:15:57 +00:00
return newQAccessibleImageInterface((*C.QAccessibleImageInterface)(h))
2024-10-20 05:21:03 +00:00
}
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))
2024-10-20 05:21:03 +00:00
_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))
2024-10-20 05:21:03 +00:00
_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() {
2024-11-19 06:29:06 +00:00
C.QAccessibleImageInterface_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleHyperlinkInterface
isSubclass bool
2024-10-20 05:21:03 +00:00
}
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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleHyperlinkInterface constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQAccessibleHyperlinkInterface(h *C.QAccessibleHyperlinkInterface) *QAccessibleHyperlinkInterface {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QAccessibleHyperlinkInterface{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleHyperlinkInterface constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQAccessibleHyperlinkInterface(h unsafe.Pointer) *QAccessibleHyperlinkInterface {
2024-12-07 04:15:57 +00:00
return newQAccessibleHyperlinkInterface((*C.QAccessibleHyperlinkInterface)(h))
2024-10-20 05:21:03 +00:00
}
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() {
2024-11-19 06:29:06 +00:00
C.QAccessibleHyperlinkInterface_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleEvent
isSubclass bool
2024-10-20 05:21:03 +00:00
}
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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleEvent constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQAccessibleEvent(h *C.QAccessibleEvent) *QAccessibleEvent {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QAccessibleEvent{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleEvent constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQAccessibleEvent(h unsafe.Pointer) *QAccessibleEvent {
2024-12-07 04:15:57 +00:00
return newQAccessibleEvent((*C.QAccessibleEvent)(h))
2024-10-20 05:21:03 +00:00
}
// NewQAccessibleEvent constructs a new QAccessibleEvent object.
func NewQAccessibleEvent(obj *QObject, typ QAccessible__Event) *QAccessibleEvent {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleEvent(C.QAccessibleEvent_new(obj.cPointer(), (C.int)(typ)))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQAccessibleEvent2 constructs a new QAccessibleEvent object.
func NewQAccessibleEvent2(iface *QAccessibleInterface, typ QAccessible__Event) *QAccessibleEvent {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleEvent(C.QAccessibleEvent_new2(iface.cPointer(), (C.int)(typ)))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
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))
2024-10-20 05:21:03 +00:00
}
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))
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
func (this *QAccessibleEvent) callVirtualBase_AccessibleInterface() *QAccessibleInterface {
return newQAccessibleInterface(C.QAccessibleEvent_virtualbase_AccessibleInterface(unsafe.Pointer(this.h)))
2024-11-19 06:29:06 +00:00
}
func (this *QAccessibleEvent) OnAccessibleInterface(slot func(super func() *QAccessibleInterface) *QAccessibleInterface) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
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()
}
2024-10-20 05:21:03 +00:00
// Delete this object from C++ memory.
func (this *QAccessibleEvent) Delete() {
2024-11-19 06:29:06 +00:00
C.QAccessibleEvent_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleStateChangeEvent
isSubclass bool
2024-10-20 05:21:03 +00:00
*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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleStateChangeEvent constructs the type using only CGO pointers.
2024-12-07 04:15:57 +00:00
func newQAccessibleStateChangeEvent(h *C.QAccessibleStateChangeEvent) *QAccessibleStateChangeEvent {
2024-10-20 05:21:03 +00:00
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
var outptr_QAccessibleEvent *C.QAccessibleEvent = nil
C.QAccessibleStateChangeEvent_virtbase(h, &outptr_QAccessibleEvent)
2024-11-19 06:29:06 +00:00
return &QAccessibleStateChangeEvent{h: h,
2024-12-07 04:15:57 +00:00
QAccessibleEvent: newQAccessibleEvent(outptr_QAccessibleEvent)}
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleStateChangeEvent constructs the type using only unsafe pointers.
2024-12-07 04:15:57 +00:00
func UnsafeNewQAccessibleStateChangeEvent(h unsafe.Pointer) *QAccessibleStateChangeEvent {
return newQAccessibleStateChangeEvent((*C.QAccessibleStateChangeEvent)(h))
2024-10-20 05:21:03 +00:00
}
// NewQAccessibleStateChangeEvent constructs a new QAccessibleStateChangeEvent object.
func NewQAccessibleStateChangeEvent(obj *QObject, state QAccessible__State) *QAccessibleStateChangeEvent {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleStateChangeEvent(C.QAccessibleStateChangeEvent_new(obj.cPointer(), state.cPointer()))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQAccessibleStateChangeEvent2 constructs a new QAccessibleStateChangeEvent object.
func NewQAccessibleStateChangeEvent2(iface *QAccessibleInterface, state QAccessible__State) *QAccessibleStateChangeEvent {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleStateChangeEvent(C.QAccessibleStateChangeEvent_new2(iface.cPointer(), state.cPointer()))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
func (this *QAccessibleStateChangeEvent) ChangedStates() *QAccessible__State {
_goptr := newQAccessible__State(C.QAccessibleStateChangeEvent_ChangedStates(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
2024-11-19 06:29:06 +00:00
func (this *QAccessibleStateChangeEvent) callVirtualBase_AccessibleInterface() *QAccessibleInterface {
return newQAccessibleInterface(C.QAccessibleStateChangeEvent_virtualbase_AccessibleInterface(unsafe.Pointer(this.h)))
2024-11-19 06:29:06 +00:00
}
func (this *QAccessibleStateChangeEvent) OnAccessibleInterface(slot func(super func() *QAccessibleInterface) *QAccessibleInterface) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
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()
}
2024-10-20 05:21:03 +00:00
// Delete this object from C++ memory.
func (this *QAccessibleStateChangeEvent) Delete() {
2024-11-19 06:29:06 +00:00
C.QAccessibleStateChangeEvent_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleTextCursorEvent
isSubclass bool
2024-10-20 05:21:03 +00:00
*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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleTextCursorEvent constructs the type using only CGO pointers.
2024-12-07 04:15:57 +00:00
func newQAccessibleTextCursorEvent(h *C.QAccessibleTextCursorEvent) *QAccessibleTextCursorEvent {
2024-10-20 05:21:03 +00:00
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
var outptr_QAccessibleEvent *C.QAccessibleEvent = nil
C.QAccessibleTextCursorEvent_virtbase(h, &outptr_QAccessibleEvent)
2024-11-19 06:29:06 +00:00
return &QAccessibleTextCursorEvent{h: h,
2024-12-07 04:15:57 +00:00
QAccessibleEvent: newQAccessibleEvent(outptr_QAccessibleEvent)}
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleTextCursorEvent constructs the type using only unsafe pointers.
2024-12-07 04:15:57 +00:00
func UnsafeNewQAccessibleTextCursorEvent(h unsafe.Pointer) *QAccessibleTextCursorEvent {
return newQAccessibleTextCursorEvent((*C.QAccessibleTextCursorEvent)(h))
2024-10-20 05:21:03 +00:00
}
// NewQAccessibleTextCursorEvent constructs a new QAccessibleTextCursorEvent object.
func NewQAccessibleTextCursorEvent(obj *QObject, cursorPos int) *QAccessibleTextCursorEvent {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleTextCursorEvent(C.QAccessibleTextCursorEvent_new(obj.cPointer(), (C.int)(cursorPos)))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQAccessibleTextCursorEvent2 constructs a new QAccessibleTextCursorEvent object.
func NewQAccessibleTextCursorEvent2(iface *QAccessibleInterface, cursorPos int) *QAccessibleTextCursorEvent {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleTextCursorEvent(C.QAccessibleTextCursorEvent_new2(iface.cPointer(), (C.int)(cursorPos)))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
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))
}
2024-11-19 06:29:06 +00:00
func (this *QAccessibleTextCursorEvent) callVirtualBase_AccessibleInterface() *QAccessibleInterface {
return newQAccessibleInterface(C.QAccessibleTextCursorEvent_virtualbase_AccessibleInterface(unsafe.Pointer(this.h)))
2024-11-19 06:29:06 +00:00
}
func (this *QAccessibleTextCursorEvent) OnAccessibleInterface(slot func(super func() *QAccessibleInterface) *QAccessibleInterface) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
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()
}
2024-10-20 05:21:03 +00:00
// Delete this object from C++ memory.
func (this *QAccessibleTextCursorEvent) Delete() {
2024-11-19 06:29:06 +00:00
C.QAccessibleTextCursorEvent_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleTextSelectionEvent
isSubclass bool
2024-10-20 05:21:03 +00:00
*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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleTextSelectionEvent constructs the type using only CGO pointers.
2024-12-07 04:15:57 +00:00
func newQAccessibleTextSelectionEvent(h *C.QAccessibleTextSelectionEvent) *QAccessibleTextSelectionEvent {
2024-10-20 05:21:03 +00:00
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil
C.QAccessibleTextSelectionEvent_virtbase(h, &outptr_QAccessibleTextCursorEvent)
2024-11-19 06:29:06 +00:00
return &QAccessibleTextSelectionEvent{h: h,
2024-12-07 04:15:57 +00:00
QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent(outptr_QAccessibleTextCursorEvent)}
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleTextSelectionEvent constructs the type using only unsafe pointers.
2024-12-07 04:15:57 +00:00
func UnsafeNewQAccessibleTextSelectionEvent(h unsafe.Pointer) *QAccessibleTextSelectionEvent {
return newQAccessibleTextSelectionEvent((*C.QAccessibleTextSelectionEvent)(h))
2024-10-20 05:21:03 +00:00
}
// NewQAccessibleTextSelectionEvent constructs a new QAccessibleTextSelectionEvent object.
func NewQAccessibleTextSelectionEvent(obj *QObject, start int, end int) *QAccessibleTextSelectionEvent {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleTextSelectionEvent(C.QAccessibleTextSelectionEvent_new(obj.cPointer(), (C.int)(start), (C.int)(end)))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQAccessibleTextSelectionEvent2 constructs a new QAccessibleTextSelectionEvent object.
func NewQAccessibleTextSelectionEvent2(iface *QAccessibleInterface, start int, end int) *QAccessibleTextSelectionEvent {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleTextSelectionEvent(C.QAccessibleTextSelectionEvent_new2(iface.cPointer(), (C.int)(start), (C.int)(end)))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
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() {
2024-11-19 06:29:06 +00:00
C.QAccessibleTextSelectionEvent_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleTextInsertEvent
isSubclass bool
2024-10-20 05:21:03 +00:00
*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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleTextInsertEvent constructs the type using only CGO pointers.
2024-12-07 04:15:57 +00:00
func newQAccessibleTextInsertEvent(h *C.QAccessibleTextInsertEvent) *QAccessibleTextInsertEvent {
2024-10-20 05:21:03 +00:00
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil
C.QAccessibleTextInsertEvent_virtbase(h, &outptr_QAccessibleTextCursorEvent)
2024-11-19 06:29:06 +00:00
return &QAccessibleTextInsertEvent{h: h,
2024-12-07 04:15:57 +00:00
QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent(outptr_QAccessibleTextCursorEvent)}
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleTextInsertEvent constructs the type using only unsafe pointers.
2024-12-07 04:15:57 +00:00
func UnsafeNewQAccessibleTextInsertEvent(h unsafe.Pointer) *QAccessibleTextInsertEvent {
return newQAccessibleTextInsertEvent((*C.QAccessibleTextInsertEvent)(h))
2024-10-20 05:21:03 +00:00
}
// 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))
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleTextInsertEvent(C.QAccessibleTextInsertEvent_new(obj.cPointer(), (C.int)(position), text_ms))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// 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))
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleTextInsertEvent(C.QAccessibleTextInsertEvent_new2(iface.cPointer(), (C.int)(position), text_ms))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
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() {
2024-11-19 06:29:06 +00:00
C.QAccessibleTextInsertEvent_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleTextRemoveEvent
isSubclass bool
2024-10-20 05:21:03 +00:00
*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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleTextRemoveEvent constructs the type using only CGO pointers.
2024-12-07 04:15:57 +00:00
func newQAccessibleTextRemoveEvent(h *C.QAccessibleTextRemoveEvent) *QAccessibleTextRemoveEvent {
2024-10-20 05:21:03 +00:00
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil
C.QAccessibleTextRemoveEvent_virtbase(h, &outptr_QAccessibleTextCursorEvent)
2024-11-19 06:29:06 +00:00
return &QAccessibleTextRemoveEvent{h: h,
2024-12-07 04:15:57 +00:00
QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent(outptr_QAccessibleTextCursorEvent)}
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleTextRemoveEvent constructs the type using only unsafe pointers.
2024-12-07 04:15:57 +00:00
func UnsafeNewQAccessibleTextRemoveEvent(h unsafe.Pointer) *QAccessibleTextRemoveEvent {
return newQAccessibleTextRemoveEvent((*C.QAccessibleTextRemoveEvent)(h))
2024-10-20 05:21:03 +00:00
}
// 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))
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleTextRemoveEvent(C.QAccessibleTextRemoveEvent_new(obj.cPointer(), (C.int)(position), text_ms))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// 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))
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleTextRemoveEvent(C.QAccessibleTextRemoveEvent_new2(iface.cPointer(), (C.int)(position), text_ms))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
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() {
2024-11-19 06:29:06 +00:00
C.QAccessibleTextRemoveEvent_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleTextUpdateEvent
isSubclass bool
2024-10-20 05:21:03 +00:00
*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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleTextUpdateEvent constructs the type using only CGO pointers.
2024-12-07 04:15:57 +00:00
func newQAccessibleTextUpdateEvent(h *C.QAccessibleTextUpdateEvent) *QAccessibleTextUpdateEvent {
2024-10-20 05:21:03 +00:00
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil
C.QAccessibleTextUpdateEvent_virtbase(h, &outptr_QAccessibleTextCursorEvent)
2024-11-19 06:29:06 +00:00
return &QAccessibleTextUpdateEvent{h: h,
2024-12-07 04:15:57 +00:00
QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent(outptr_QAccessibleTextCursorEvent)}
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleTextUpdateEvent constructs the type using only unsafe pointers.
2024-12-07 04:15:57 +00:00
func UnsafeNewQAccessibleTextUpdateEvent(h unsafe.Pointer) *QAccessibleTextUpdateEvent {
return newQAccessibleTextUpdateEvent((*C.QAccessibleTextUpdateEvent)(h))
2024-10-20 05:21:03 +00:00
}
// 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))
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleTextUpdateEvent(C.QAccessibleTextUpdateEvent_new(obj.cPointer(), (C.int)(position), oldText_ms, text_ms))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// 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))
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleTextUpdateEvent(C.QAccessibleTextUpdateEvent_new2(iface.cPointer(), (C.int)(position), oldText_ms, text_ms))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
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() {
2024-11-19 06:29:06 +00:00
C.QAccessibleTextUpdateEvent_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleValueChangeEvent
isSubclass bool
2024-10-20 05:21:03 +00:00
*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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleValueChangeEvent constructs the type using only CGO pointers.
2024-12-07 04:15:57 +00:00
func newQAccessibleValueChangeEvent(h *C.QAccessibleValueChangeEvent) *QAccessibleValueChangeEvent {
2024-10-20 05:21:03 +00:00
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
var outptr_QAccessibleEvent *C.QAccessibleEvent = nil
C.QAccessibleValueChangeEvent_virtbase(h, &outptr_QAccessibleEvent)
2024-11-19 06:29:06 +00:00
return &QAccessibleValueChangeEvent{h: h,
2024-12-07 04:15:57 +00:00
QAccessibleEvent: newQAccessibleEvent(outptr_QAccessibleEvent)}
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleValueChangeEvent constructs the type using only unsafe pointers.
2024-12-07 04:15:57 +00:00
func UnsafeNewQAccessibleValueChangeEvent(h unsafe.Pointer) *QAccessibleValueChangeEvent {
return newQAccessibleValueChangeEvent((*C.QAccessibleValueChangeEvent)(h))
2024-10-20 05:21:03 +00:00
}
// NewQAccessibleValueChangeEvent constructs a new QAccessibleValueChangeEvent object.
func NewQAccessibleValueChangeEvent(obj *QObject, val *QVariant) *QAccessibleValueChangeEvent {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleValueChangeEvent(C.QAccessibleValueChangeEvent_new(obj.cPointer(), val.cPointer()))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQAccessibleValueChangeEvent2 constructs a new QAccessibleValueChangeEvent object.
func NewQAccessibleValueChangeEvent2(iface *QAccessibleInterface, val *QVariant) *QAccessibleValueChangeEvent {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleValueChangeEvent(C.QAccessibleValueChangeEvent_new2(iface.cPointer(), val.cPointer()))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
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))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
2024-11-19 06:29:06 +00:00
func (this *QAccessibleValueChangeEvent) callVirtualBase_AccessibleInterface() *QAccessibleInterface {
return newQAccessibleInterface(C.QAccessibleValueChangeEvent_virtualbase_AccessibleInterface(unsafe.Pointer(this.h)))
2024-11-19 06:29:06 +00:00
}
func (this *QAccessibleValueChangeEvent) OnAccessibleInterface(slot func(super func() *QAccessibleInterface) *QAccessibleInterface) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
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()
}
2024-10-20 05:21:03 +00:00
// Delete this object from C++ memory.
func (this *QAccessibleValueChangeEvent) Delete() {
2024-11-19 06:29:06 +00:00
C.QAccessibleValueChangeEvent_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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 {
2024-11-19 06:29:06 +00:00
h *C.QAccessibleTableModelChangeEvent
isSubclass bool
2024-10-20 05:21:03 +00:00
*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)
}
2024-11-19 06:29:06 +00:00
// newQAccessibleTableModelChangeEvent constructs the type using only CGO pointers.
2024-12-07 04:15:57 +00:00
func newQAccessibleTableModelChangeEvent(h *C.QAccessibleTableModelChangeEvent) *QAccessibleTableModelChangeEvent {
2024-10-20 05:21:03 +00:00
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
var outptr_QAccessibleEvent *C.QAccessibleEvent = nil
C.QAccessibleTableModelChangeEvent_virtbase(h, &outptr_QAccessibleEvent)
2024-11-19 06:29:06 +00:00
return &QAccessibleTableModelChangeEvent{h: h,
2024-12-07 04:15:57 +00:00
QAccessibleEvent: newQAccessibleEvent(outptr_QAccessibleEvent)}
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQAccessibleTableModelChangeEvent constructs the type using only unsafe pointers.
2024-12-07 04:15:57 +00:00
func UnsafeNewQAccessibleTableModelChangeEvent(h unsafe.Pointer) *QAccessibleTableModelChangeEvent {
return newQAccessibleTableModelChangeEvent((*C.QAccessibleTableModelChangeEvent)(h))
2024-10-20 05:21:03 +00:00
}
// NewQAccessibleTableModelChangeEvent constructs a new QAccessibleTableModelChangeEvent object.
func NewQAccessibleTableModelChangeEvent(obj *QObject, changeType QAccessibleTableModelChangeEvent__ModelChangeType) *QAccessibleTableModelChangeEvent {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleTableModelChangeEvent(C.QAccessibleTableModelChangeEvent_new(obj.cPointer(), (C.int)(changeType)))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQAccessibleTableModelChangeEvent2 constructs a new QAccessibleTableModelChangeEvent object.
func NewQAccessibleTableModelChangeEvent2(iface *QAccessibleInterface, changeType QAccessibleTableModelChangeEvent__ModelChangeType) *QAccessibleTableModelChangeEvent {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQAccessibleTableModelChangeEvent(C.QAccessibleTableModelChangeEvent_new2(iface.cPointer(), (C.int)(changeType)))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
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))
}
2024-11-19 06:29:06 +00:00
func (this *QAccessibleTableModelChangeEvent) callVirtualBase_AccessibleInterface() *QAccessibleInterface {
return newQAccessibleInterface(C.QAccessibleTableModelChangeEvent_virtualbase_AccessibleInterface(unsafe.Pointer(this.h)))
2024-11-19 06:29:06 +00:00
}
func (this *QAccessibleTableModelChangeEvent) OnAccessibleInterface(slot func(super func() *QAccessibleInterface) *QAccessibleInterface) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
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()
}
2024-10-20 05:21:03 +00:00
// Delete this object from C++ memory.
func (this *QAccessibleTableModelChangeEvent) Delete() {
2024-11-19 06:29:06 +00:00
C.QAccessibleTableModelChangeEvent_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21:03 +00:00
}
// 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)
})
}