package qt6 /* #include "gen_qaccessible.h" #include */ import "C" import ( "runtime" "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 } 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) } func newQAccessibleInterface(h *C.QAccessibleInterface) *QAccessibleInterface { if h == nil { return nil } return &QAccessibleInterface{h: h} } 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 UnsafeNewQObject(unsafe.Pointer(C.QAccessibleInterface_Object(this.h))) } func (this *QAccessibleInterface) Window() *QWindow { return UnsafeNewQWindow(unsafe.Pointer(C.QAccessibleInterface_Window(this.h))) } func (this *QAccessibleInterface) FocusChild() *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessibleInterface_FocusChild(this.h))) } func (this *QAccessibleInterface) ChildAt(x int, y int) *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessibleInterface_ChildAt(this.h, (C.int)(x), (C.int)(y)))) } func (this *QAccessibleInterface) Parent() *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessibleInterface_Parent(this.h))) } func (this *QAccessibleInterface) Child(index int) *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(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 { _ret := C.QAccessibleInterface_Rect(this.h) _goptr := newQRect(_ret) _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 { _ret := C.QAccessibleInterface_State(this.h) _goptr := newQAccessible__State(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleInterface) ForegroundColor() *QColor { _ret := C.QAccessibleInterface_ForegroundColor(this.h) _goptr := newQColor(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleInterface) BackgroundColor() *QColor { _ret := C.QAccessibleInterface_BackgroundColor(this.h) _goptr := newQColor(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleInterface) TextInterface() *QAccessibleTextInterface { return UnsafeNewQAccessibleTextInterface(unsafe.Pointer(C.QAccessibleInterface_TextInterface(this.h))) } func (this *QAccessibleInterface) EditableTextInterface() *QAccessibleEditableTextInterface { return UnsafeNewQAccessibleEditableTextInterface(unsafe.Pointer(C.QAccessibleInterface_EditableTextInterface(this.h))) } func (this *QAccessibleInterface) ValueInterface() *QAccessibleValueInterface { return UnsafeNewQAccessibleValueInterface(unsafe.Pointer(C.QAccessibleInterface_ValueInterface(this.h))) } func (this *QAccessibleInterface) ActionInterface() *QAccessibleActionInterface { return UnsafeNewQAccessibleActionInterface(unsafe.Pointer(C.QAccessibleInterface_ActionInterface(this.h))) } func (this *QAccessibleInterface) ImageInterface() *QAccessibleImageInterface { return UnsafeNewQAccessibleImageInterface(unsafe.Pointer(C.QAccessibleInterface_ImageInterface(this.h))) } func (this *QAccessibleInterface) TableInterface() *QAccessibleTableInterface { return UnsafeNewQAccessibleTableInterface(unsafe.Pointer(C.QAccessibleInterface_TableInterface(this.h))) } func (this *QAccessibleInterface) TableCellInterface() *QAccessibleTableCellInterface { return UnsafeNewQAccessibleTableCellInterface(unsafe.Pointer(C.QAccessibleInterface_TableCellInterface(this.h))) } func (this *QAccessibleInterface) HyperlinkInterface() *QAccessibleHyperlinkInterface { return UnsafeNewQAccessibleHyperlinkInterface(unsafe.Pointer(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 } 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) } func newQAccessibleTextInterface(h *C.QAccessibleTextInterface) *QAccessibleTextInterface { if h == nil { return nil } return &QAccessibleTextInterface{h: h} } 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 { _ret := C.QAccessibleTextInterface_CharacterRect(this.h, (C.int)(offset)) _goptr := newQRect(_ret) _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) } // 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 } 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) } func newQAccessibleEditableTextInterface(h *C.QAccessibleEditableTextInterface) *QAccessibleEditableTextInterface { if h == nil { return nil } return &QAccessibleEditableTextInterface{h: h} } 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) } // 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 } 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) } func newQAccessibleValueInterface(h *C.QAccessibleValueInterface) *QAccessibleValueInterface { if h == nil { return nil } return &QAccessibleValueInterface{h: h} } func UnsafeNewQAccessibleValueInterface(h unsafe.Pointer) *QAccessibleValueInterface { return newQAccessibleValueInterface((*C.QAccessibleValueInterface)(h)) } func (this *QAccessibleValueInterface) CurrentValue() *QVariant { _ret := C.QAccessibleValueInterface_CurrentValue(this.h) _goptr := newQVariant(_ret) _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 { _ret := C.QAccessibleValueInterface_MaximumValue(this.h) _goptr := newQVariant(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleValueInterface) MinimumValue() *QVariant { _ret := C.QAccessibleValueInterface_MinimumValue(this.h) _goptr := newQVariant(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleValueInterface) MinimumStepSize() *QVariant { _ret := C.QAccessibleValueInterface_MinimumStepSize(this.h) _goptr := newQVariant(_ret) _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) } // 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 } 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) } func newQAccessibleTableCellInterface(h *C.QAccessibleTableCellInterface) *QAccessibleTableCellInterface { if h == nil { return nil } return &QAccessibleTableCellInterface{h: h} } 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] = UnsafeNewQAccessibleInterface(unsafe.Pointer(_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] = UnsafeNewQAccessibleInterface(unsafe.Pointer(_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 UnsafeNewQAccessibleInterface(unsafe.Pointer(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) } // 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 } 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) } func newQAccessibleTableInterface(h *C.QAccessibleTableInterface) *QAccessibleTableInterface { if h == nil { return nil } return &QAccessibleTableInterface{h: h} } func UnsafeNewQAccessibleTableInterface(h unsafe.Pointer) *QAccessibleTableInterface { return newQAccessibleTableInterface((*C.QAccessibleTableInterface)(h)) } func (this *QAccessibleTableInterface) Caption() *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessibleTableInterface_Caption(this.h))) } func (this *QAccessibleTableInterface) Summary() *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessibleTableInterface_Summary(this.h))) } func (this *QAccessibleTableInterface) CellAt(row int, column int) *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(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] = UnsafeNewQAccessibleInterface(unsafe.Pointer(_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) } // 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 } 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) } func newQAccessibleActionInterface(h *C.QAccessibleActionInterface) *QAccessibleActionInterface { if h == nil { return nil } return &QAccessibleActionInterface{h: h} } 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) } // 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 } 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) } func newQAccessibleImageInterface(h *C.QAccessibleImageInterface) *QAccessibleImageInterface { if h == nil { return nil } return &QAccessibleImageInterface{h: h} } 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 { _ret := C.QAccessibleImageInterface_ImageSize(this.h) _goptr := newQSize(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QAccessibleImageInterface) ImagePosition() *QPoint { _ret := C.QAccessibleImageInterface_ImagePosition(this.h) _goptr := newQPoint(_ret) _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) } // 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 } 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) } func newQAccessibleHyperlinkInterface(h *C.QAccessibleHyperlinkInterface) *QAccessibleHyperlinkInterface { if h == nil { return nil } return &QAccessibleHyperlinkInterface{h: h} } 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) } // 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 } 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) } func newQAccessibleEvent(h *C.QAccessibleEvent) *QAccessibleEvent { if h == nil { return nil } return &QAccessibleEvent{h: h} } 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 := C.QAccessibleEvent_new(obj.cPointer(), (C.int)(typ)) return newQAccessibleEvent(ret) } // NewQAccessibleEvent2 constructs a new QAccessibleEvent object. func NewQAccessibleEvent2(iface *QAccessibleInterface, typ QAccessible__Event) *QAccessibleEvent { ret := C.QAccessibleEvent_new2(iface.cPointer(), (C.int)(typ)) return newQAccessibleEvent(ret) } func (this *QAccessibleEvent) Type() QAccessible__Event { return (QAccessible__Event)(C.QAccessibleEvent_Type(this.h)) } func (this *QAccessibleEvent) Object() *QObject { return UnsafeNewQObject(unsafe.Pointer(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 UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessibleEvent_AccessibleInterface(this.h))) } // Delete this object from C++ memory. func (this *QAccessibleEvent) Delete() { C.QAccessibleEvent_Delete(this.h) } // 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 *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) } func newQAccessibleStateChangeEvent(h *C.QAccessibleStateChangeEvent) *QAccessibleStateChangeEvent { if h == nil { return nil } return &QAccessibleStateChangeEvent{h: h, QAccessibleEvent: UnsafeNewQAccessibleEvent(unsafe.Pointer(h))} } 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 := C.QAccessibleStateChangeEvent_new(obj.cPointer(), state.cPointer()) return newQAccessibleStateChangeEvent(ret) } // NewQAccessibleStateChangeEvent2 constructs a new QAccessibleStateChangeEvent object. func NewQAccessibleStateChangeEvent2(iface *QAccessibleInterface, state QAccessible__State) *QAccessibleStateChangeEvent { ret := C.QAccessibleStateChangeEvent_new2(iface.cPointer(), state.cPointer()) return newQAccessibleStateChangeEvent(ret) } func (this *QAccessibleStateChangeEvent) ChangedStates() *QAccessible__State { _ret := C.QAccessibleStateChangeEvent_ChangedStates(this.h) _goptr := newQAccessible__State(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } // Delete this object from C++ memory. func (this *QAccessibleStateChangeEvent) Delete() { C.QAccessibleStateChangeEvent_Delete(this.h) } // 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 *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) } func newQAccessibleTextCursorEvent(h *C.QAccessibleTextCursorEvent) *QAccessibleTextCursorEvent { if h == nil { return nil } return &QAccessibleTextCursorEvent{h: h, QAccessibleEvent: UnsafeNewQAccessibleEvent(unsafe.Pointer(h))} } 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 := C.QAccessibleTextCursorEvent_new(obj.cPointer(), (C.int)(cursorPos)) return newQAccessibleTextCursorEvent(ret) } // NewQAccessibleTextCursorEvent2 constructs a new QAccessibleTextCursorEvent object. func NewQAccessibleTextCursorEvent2(iface *QAccessibleInterface, cursorPos int) *QAccessibleTextCursorEvent { ret := C.QAccessibleTextCursorEvent_new2(iface.cPointer(), (C.int)(cursorPos)) return newQAccessibleTextCursorEvent(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)) } // Delete this object from C++ memory. func (this *QAccessibleTextCursorEvent) Delete() { C.QAccessibleTextCursorEvent_Delete(this.h) } // 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 *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) } func newQAccessibleTextSelectionEvent(h *C.QAccessibleTextSelectionEvent) *QAccessibleTextSelectionEvent { if h == nil { return nil } return &QAccessibleTextSelectionEvent{h: h, QAccessibleTextCursorEvent: UnsafeNewQAccessibleTextCursorEvent(unsafe.Pointer(h))} } 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 := C.QAccessibleTextSelectionEvent_new(obj.cPointer(), (C.int)(start), (C.int)(end)) return newQAccessibleTextSelectionEvent(ret) } // NewQAccessibleTextSelectionEvent2 constructs a new QAccessibleTextSelectionEvent object. func NewQAccessibleTextSelectionEvent2(iface *QAccessibleInterface, start int, end int) *QAccessibleTextSelectionEvent { ret := C.QAccessibleTextSelectionEvent_new2(iface.cPointer(), (C.int)(start), (C.int)(end)) return newQAccessibleTextSelectionEvent(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) } // 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 *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) } func newQAccessibleTextInsertEvent(h *C.QAccessibleTextInsertEvent) *QAccessibleTextInsertEvent { if h == nil { return nil } return &QAccessibleTextInsertEvent{h: h, QAccessibleTextCursorEvent: UnsafeNewQAccessibleTextCursorEvent(unsafe.Pointer(h))} } 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 := C.QAccessibleTextInsertEvent_new(obj.cPointer(), (C.int)(position), text_ms) return newQAccessibleTextInsertEvent(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 := C.QAccessibleTextInsertEvent_new2(iface.cPointer(), (C.int)(position), text_ms) return newQAccessibleTextInsertEvent(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) } // 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 *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) } func newQAccessibleTextRemoveEvent(h *C.QAccessibleTextRemoveEvent) *QAccessibleTextRemoveEvent { if h == nil { return nil } return &QAccessibleTextRemoveEvent{h: h, QAccessibleTextCursorEvent: UnsafeNewQAccessibleTextCursorEvent(unsafe.Pointer(h))} } 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 := C.QAccessibleTextRemoveEvent_new(obj.cPointer(), (C.int)(position), text_ms) return newQAccessibleTextRemoveEvent(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 := C.QAccessibleTextRemoveEvent_new2(iface.cPointer(), (C.int)(position), text_ms) return newQAccessibleTextRemoveEvent(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) } // 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 *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) } func newQAccessibleTextUpdateEvent(h *C.QAccessibleTextUpdateEvent) *QAccessibleTextUpdateEvent { if h == nil { return nil } return &QAccessibleTextUpdateEvent{h: h, QAccessibleTextCursorEvent: UnsafeNewQAccessibleTextCursorEvent(unsafe.Pointer(h))} } 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 := C.QAccessibleTextUpdateEvent_new(obj.cPointer(), (C.int)(position), oldText_ms, text_ms) return newQAccessibleTextUpdateEvent(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 := C.QAccessibleTextUpdateEvent_new2(iface.cPointer(), (C.int)(position), oldText_ms, text_ms) return newQAccessibleTextUpdateEvent(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) } // 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 *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) } func newQAccessibleValueChangeEvent(h *C.QAccessibleValueChangeEvent) *QAccessibleValueChangeEvent { if h == nil { return nil } return &QAccessibleValueChangeEvent{h: h, QAccessibleEvent: UnsafeNewQAccessibleEvent(unsafe.Pointer(h))} } 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 := C.QAccessibleValueChangeEvent_new(obj.cPointer(), val.cPointer()) return newQAccessibleValueChangeEvent(ret) } // NewQAccessibleValueChangeEvent2 constructs a new QAccessibleValueChangeEvent object. func NewQAccessibleValueChangeEvent2(iface *QAccessibleInterface, val *QVariant) *QAccessibleValueChangeEvent { ret := C.QAccessibleValueChangeEvent_new2(iface.cPointer(), val.cPointer()) return newQAccessibleValueChangeEvent(ret) } func (this *QAccessibleValueChangeEvent) SetValue(val *QVariant) { C.QAccessibleValueChangeEvent_SetValue(this.h, val.cPointer()) } func (this *QAccessibleValueChangeEvent) Value() *QVariant { _ret := C.QAccessibleValueChangeEvent_Value(this.h) _goptr := newQVariant(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } // Delete this object from C++ memory. func (this *QAccessibleValueChangeEvent) Delete() { C.QAccessibleValueChangeEvent_Delete(this.h) } // 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 *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) } func newQAccessibleTableModelChangeEvent(h *C.QAccessibleTableModelChangeEvent) *QAccessibleTableModelChangeEvent { if h == nil { return nil } return &QAccessibleTableModelChangeEvent{h: h, QAccessibleEvent: UnsafeNewQAccessibleEvent(unsafe.Pointer(h))} } 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 := C.QAccessibleTableModelChangeEvent_new(obj.cPointer(), (C.int)(changeType)) return newQAccessibleTableModelChangeEvent(ret) } // NewQAccessibleTableModelChangeEvent2 constructs a new QAccessibleTableModelChangeEvent object. func NewQAccessibleTableModelChangeEvent2(iface *QAccessibleInterface, changeType QAccessibleTableModelChangeEvent__ModelChangeType) *QAccessibleTableModelChangeEvent { ret := C.QAccessibleTableModelChangeEvent_new2(iface.cPointer(), (C.int)(changeType)) return newQAccessibleTableModelChangeEvent(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)) } // Delete this object from C++ memory. func (this *QAccessibleTableModelChangeEvent) Delete() { C.QAccessibleTableModelChangeEvent_Delete(this.h) } // 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) }) }