package qt /* #include "gen_qaccessible.h" #include */ import "C" import ( "runtime" "runtime/cgo" "unsafe" ) type QAccessible__Event int const ( QAccessible__SoundPlayed QAccessible__Event = 1 QAccessible__Alert QAccessible__Event = 2 QAccessible__ForegroundChanged QAccessible__Event = 3 QAccessible__MenuStart QAccessible__Event = 4 QAccessible__MenuEnd QAccessible__Event = 5 QAccessible__PopupMenuStart QAccessible__Event = 6 QAccessible__PopupMenuEnd QAccessible__Event = 7 QAccessible__ContextHelpStart QAccessible__Event = 12 QAccessible__ContextHelpEnd QAccessible__Event = 13 QAccessible__DragDropStart QAccessible__Event = 14 QAccessible__DragDropEnd QAccessible__Event = 15 QAccessible__DialogStart QAccessible__Event = 16 QAccessible__DialogEnd QAccessible__Event = 17 QAccessible__ScrollingStart QAccessible__Event = 18 QAccessible__ScrollingEnd QAccessible__Event = 19 QAccessible__MenuCommand QAccessible__Event = 24 QAccessible__ActionChanged QAccessible__Event = 257 QAccessible__ActiveDescendantChanged QAccessible__Event = 258 QAccessible__AttributeChanged QAccessible__Event = 259 QAccessible__DocumentContentChanged QAccessible__Event = 260 QAccessible__DocumentLoadComplete QAccessible__Event = 261 QAccessible__DocumentLoadStopped QAccessible__Event = 262 QAccessible__DocumentReload QAccessible__Event = 263 QAccessible__HyperlinkEndIndexChanged QAccessible__Event = 264 QAccessible__HyperlinkNumberOfAnchorsChanged QAccessible__Event = 265 QAccessible__HyperlinkSelectedLinkChanged QAccessible__Event = 266 QAccessible__HypertextLinkActivated QAccessible__Event = 267 QAccessible__HypertextLinkSelected QAccessible__Event = 268 QAccessible__HyperlinkStartIndexChanged QAccessible__Event = 269 QAccessible__HypertextChanged QAccessible__Event = 270 QAccessible__HypertextNLinksChanged QAccessible__Event = 271 QAccessible__ObjectAttributeChanged QAccessible__Event = 272 QAccessible__PageChanged QAccessible__Event = 273 QAccessible__SectionChanged QAccessible__Event = 274 QAccessible__TableCaptionChanged QAccessible__Event = 275 QAccessible__TableColumnDescriptionChanged QAccessible__Event = 276 QAccessible__TableColumnHeaderChanged QAccessible__Event = 277 QAccessible__TableModelChanged QAccessible__Event = 278 QAccessible__TableRowDescriptionChanged QAccessible__Event = 279 QAccessible__TableRowHeaderChanged QAccessible__Event = 280 QAccessible__TableSummaryChanged QAccessible__Event = 281 QAccessible__TextAttributeChanged QAccessible__Event = 282 QAccessible__TextCaretMoved QAccessible__Event = 283 QAccessible__TextColumnChanged QAccessible__Event = 285 QAccessible__TextInserted QAccessible__Event = 286 QAccessible__TextRemoved QAccessible__Event = 287 QAccessible__TextUpdated QAccessible__Event = 288 QAccessible__TextSelectionChanged QAccessible__Event = 289 QAccessible__VisibleDataChanged QAccessible__Event = 290 QAccessible__ObjectCreated QAccessible__Event = 32768 QAccessible__ObjectDestroyed QAccessible__Event = 32769 QAccessible__ObjectShow QAccessible__Event = 32770 QAccessible__ObjectHide QAccessible__Event = 32771 QAccessible__ObjectReorder QAccessible__Event = 32772 QAccessible__Focus QAccessible__Event = 32773 QAccessible__Selection QAccessible__Event = 32774 QAccessible__SelectionAdd QAccessible__Event = 32775 QAccessible__SelectionRemove QAccessible__Event = 32776 QAccessible__SelectionWithin QAccessible__Event = 32777 QAccessible__StateChanged QAccessible__Event = 32778 QAccessible__LocationChanged QAccessible__Event = 32779 QAccessible__NameChanged QAccessible__Event = 32780 QAccessible__DescriptionChanged QAccessible__Event = 32781 QAccessible__ValueChanged QAccessible__Event = 32782 QAccessible__ParentChanged QAccessible__Event = 32783 QAccessible__HelpChanged QAccessible__Event = 32928 QAccessible__DefaultActionChanged QAccessible__Event = 32944 QAccessible__AcceleratorChanged QAccessible__Event = 32960 QAccessible__InvalidEvent QAccessible__Event = 32961 ) type QAccessible__Role int const ( QAccessible__NoRole QAccessible__Role = 0 QAccessible__TitleBar QAccessible__Role = 1 QAccessible__MenuBar QAccessible__Role = 2 QAccessible__ScrollBar QAccessible__Role = 3 QAccessible__Grip QAccessible__Role = 4 QAccessible__Sound QAccessible__Role = 5 QAccessible__Cursor QAccessible__Role = 6 QAccessible__Caret QAccessible__Role = 7 QAccessible__AlertMessage QAccessible__Role = 8 QAccessible__Window QAccessible__Role = 9 QAccessible__Client QAccessible__Role = 10 QAccessible__PopupMenu QAccessible__Role = 11 QAccessible__MenuItem QAccessible__Role = 12 QAccessible__ToolTip QAccessible__Role = 13 QAccessible__Application QAccessible__Role = 14 QAccessible__Document QAccessible__Role = 15 QAccessible__Pane QAccessible__Role = 16 QAccessible__Chart QAccessible__Role = 17 QAccessible__Dialog QAccessible__Role = 18 QAccessible__Border QAccessible__Role = 19 QAccessible__Grouping QAccessible__Role = 20 QAccessible__Separator QAccessible__Role = 21 QAccessible__ToolBar QAccessible__Role = 22 QAccessible__StatusBar QAccessible__Role = 23 QAccessible__Table QAccessible__Role = 24 QAccessible__ColumnHeader QAccessible__Role = 25 QAccessible__RowHeader QAccessible__Role = 26 QAccessible__Column QAccessible__Role = 27 QAccessible__Row QAccessible__Role = 28 QAccessible__Cell QAccessible__Role = 29 QAccessible__Link QAccessible__Role = 30 QAccessible__HelpBalloon QAccessible__Role = 31 QAccessible__Assistant QAccessible__Role = 32 QAccessible__List QAccessible__Role = 33 QAccessible__ListItem QAccessible__Role = 34 QAccessible__Tree QAccessible__Role = 35 QAccessible__TreeItem QAccessible__Role = 36 QAccessible__PageTab QAccessible__Role = 37 QAccessible__PropertyPage QAccessible__Role = 38 QAccessible__Indicator QAccessible__Role = 39 QAccessible__Graphic QAccessible__Role = 40 QAccessible__StaticText QAccessible__Role = 41 QAccessible__EditableText QAccessible__Role = 42 QAccessible__Button QAccessible__Role = 43 QAccessible__PushButton QAccessible__Role = 43 QAccessible__CheckBox QAccessible__Role = 44 QAccessible__RadioButton QAccessible__Role = 45 QAccessible__ComboBox QAccessible__Role = 46 QAccessible__ProgressBar QAccessible__Role = 48 QAccessible__Dial QAccessible__Role = 49 QAccessible__HotkeyField QAccessible__Role = 50 QAccessible__Slider QAccessible__Role = 51 QAccessible__SpinBox QAccessible__Role = 52 QAccessible__Canvas QAccessible__Role = 53 QAccessible__Animation QAccessible__Role = 54 QAccessible__Equation QAccessible__Role = 55 QAccessible__ButtonDropDown QAccessible__Role = 56 QAccessible__ButtonMenu QAccessible__Role = 57 QAccessible__ButtonDropGrid QAccessible__Role = 58 QAccessible__Whitespace QAccessible__Role = 59 QAccessible__PageTabList QAccessible__Role = 60 QAccessible__Clock QAccessible__Role = 61 QAccessible__Splitter QAccessible__Role = 62 QAccessible__LayeredPane QAccessible__Role = 128 QAccessible__Terminal QAccessible__Role = 129 QAccessible__Desktop QAccessible__Role = 130 QAccessible__Paragraph QAccessible__Role = 131 QAccessible__WebDocument QAccessible__Role = 132 QAccessible__Section QAccessible__Role = 133 QAccessible__Notification QAccessible__Role = 134 QAccessible__ColorChooser QAccessible__Role = 1028 QAccessible__Footer QAccessible__Role = 1038 QAccessible__Form QAccessible__Role = 1040 QAccessible__Heading QAccessible__Role = 1044 QAccessible__Note QAccessible__Role = 1051 QAccessible__ComplementaryContent QAccessible__Role = 1068 QAccessible__UserRole QAccessible__Role = 65535 ) type QAccessible__Text int const ( QAccessible__Name QAccessible__Text = 0 QAccessible__Description QAccessible__Text = 1 QAccessible__Value QAccessible__Text = 2 QAccessible__Help QAccessible__Text = 3 QAccessible__Accelerator QAccessible__Text = 4 QAccessible__DebugDescription QAccessible__Text = 5 QAccessible__UserText QAccessible__Text = 65535 ) type QAccessible__RelationFlag int const ( QAccessible__Label QAccessible__RelationFlag = 1 QAccessible__Labelled QAccessible__RelationFlag = 2 QAccessible__Controller QAccessible__RelationFlag = 4 QAccessible__Controlled QAccessible__RelationFlag = 8 QAccessible__AllRelations QAccessible__RelationFlag = 4294967295 ) type QAccessible__InterfaceType int const ( QAccessible__TextInterface QAccessible__InterfaceType = 0 QAccessible__EditableTextInterface QAccessible__InterfaceType = 1 QAccessible__ValueInterface QAccessible__InterfaceType = 2 QAccessible__ActionInterface QAccessible__InterfaceType = 3 QAccessible__ImageInterface QAccessible__InterfaceType = 4 QAccessible__TableInterface QAccessible__InterfaceType = 5 QAccessible__TableCellInterface QAccessible__InterfaceType = 6 ) type QAccessible__TextBoundaryType int const ( QAccessible__CharBoundary QAccessible__TextBoundaryType = 0 QAccessible__WordBoundary QAccessible__TextBoundaryType = 1 QAccessible__SentenceBoundary QAccessible__TextBoundaryType = 2 QAccessible__ParagraphBoundary QAccessible__TextBoundaryType = 3 QAccessible__LineBoundary QAccessible__TextBoundaryType = 4 QAccessible__NoBoundary QAccessible__TextBoundaryType = 5 ) 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 QAccessible struct { h *C.QAccessible isSubclass bool } func (this *QAccessible) cPointer() *C.QAccessible { if this == nil { return nil } return this.h } func (this *QAccessible) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessible constructs the type using only CGO pointers. func newQAccessible(h *C.QAccessible) *QAccessible { if h == nil { return nil } return &QAccessible{h: h} } // UnsafeNewQAccessible constructs the type using only unsafe pointers. func UnsafeNewQAccessible(h unsafe.Pointer) *QAccessible { if h == nil { return nil } return &QAccessible{h: (*C.QAccessible)(h)} } func QAccessible_InstallActivationObserver(param1 *QAccessible__ActivationObserver) { C.QAccessible_InstallActivationObserver(param1.cPointer()) } func QAccessible_RemoveActivationObserver(param1 *QAccessible__ActivationObserver) { C.QAccessible_RemoveActivationObserver(param1.cPointer()) } func QAccessible_QueryAccessibleInterface(param1 *QObject) *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessible_QueryAccessibleInterface(param1.cPointer()))) } func QAccessible_UniqueId(iface *QAccessibleInterface) uint { return (uint)(C.QAccessible_UniqueId(iface.cPointer())) } func QAccessible_AccessibleInterface(uniqueId uint) *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessible_AccessibleInterface((C.uint)(uniqueId)))) } func QAccessible_RegisterAccessibleInterface(iface *QAccessibleInterface) uint { return (uint)(C.QAccessible_RegisterAccessibleInterface(iface.cPointer())) } func QAccessible_DeleteAccessibleInterface(uniqueId uint) { C.QAccessible_DeleteAccessibleInterface((C.uint)(uniqueId)) } func QAccessible_UpdateAccessibility(event *QAccessibleEvent) { C.QAccessible_UpdateAccessibility(event.cPointer()) } func QAccessible_IsActive() bool { return (bool)(C.QAccessible_IsActive()) } func QAccessible_SetActive(active bool) { C.QAccessible_SetActive((C.bool)(active)) } func QAccessible_SetRootObject(object *QObject) { C.QAccessible_SetRootObject(object.cPointer()) } func QAccessible_Cleanup() { C.QAccessible_Cleanup() } func QAccessible_QAccessibleTextBoundaryHelper(cursor *QTextCursor, boundaryType QAccessible__TextBoundaryType) struct { First int Second int } { var _mm C.struct_miqt_map = C.QAccessible_QAccessibleTextBoundaryHelper(cursor.cPointer(), (C.int)(boundaryType)) _First_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.keys)) _Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.values)) _entry_First := (int)(_First_CArray[0]) _entry_Second := (int)(_Second_CArray[0]) return struct { First int Second int }{First: _entry_First, Second: _entry_Second} } // Delete this object from C++ memory. func (this *QAccessible) Delete() { C.QAccessible_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessible) GoGC() { runtime.SetFinalizer(this, func(this *QAccessible) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleInterface struct { h *C.QAccessibleInterface isSubclass bool } func (this *QAccessibleInterface) cPointer() *C.QAccessibleInterface { if this == nil { return nil } return this.h } func (this *QAccessibleInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleInterface constructs the type using only CGO pointers. func newQAccessibleInterface(h *C.QAccessibleInterface) *QAccessibleInterface { if h == nil { return nil } return &QAccessibleInterface{h: h} } // UnsafeNewQAccessibleInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleInterface(h unsafe.Pointer) *QAccessibleInterface { if h == nil { return nil } return &QAccessibleInterface{h: (*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)), nil, nil) } func (this *QAccessibleInterface) Relations(match QAccessible__RelationFlag) []struct { First *QAccessibleInterface Second QAccessible__RelationFlag } { var _ma C.struct_miqt_array = C.QAccessibleInterface_Relations(this.h, (C.int)(match)) _ret := make([]struct { First *QAccessibleInterface Second QAccessible__RelationFlag }, int(_ma.len)) _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { var _vv_mm C.struct_miqt_map = _outCast[i] _vv_First_CArray := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_vv_mm.keys)) _vv_Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_vv_mm.values)) _vv_entry_First := UnsafeNewQAccessibleInterface(unsafe.Pointer(_vv_First_CArray[0])) _vv_entry_Second := (QAccessible__RelationFlag)(_vv_Second_CArray[0]) _ret[i] = struct { First *QAccessibleInterface Second QAccessible__RelationFlag }{First: _vv_entry_First, Second: _vv_entry_Second} } return _ret } 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) VirtualHook(id int, data unsafe.Pointer) { C.QAccessibleInterface_VirtualHook(this.h, (C.int)(id), data) } func (this *QAccessibleInterface) InterfaceCast(param1 QAccessible__InterfaceType) unsafe.Pointer { return (unsafe.Pointer)(C.QAccessibleInterface_InterfaceCast(this.h, (C.int)(param1))) } type QAccessibleTextInterface struct { h *C.QAccessibleTextInterface isSubclass bool } func (this *QAccessibleTextInterface) cPointer() *C.QAccessibleTextInterface { if this == nil { return nil } return this.h } func (this *QAccessibleTextInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTextInterface constructs the type using only CGO pointers. func newQAccessibleTextInterface(h *C.QAccessibleTextInterface) *QAccessibleTextInterface { if h == nil { return nil } return &QAccessibleTextInterface{h: h} } // UnsafeNewQAccessibleTextInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTextInterface(h unsafe.Pointer) *QAccessibleTextInterface { if h == nil { return nil } return &QAccessibleTextInterface{h: (*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, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTextInterface) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTextInterface) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleEditableTextInterface struct { h *C.QAccessibleEditableTextInterface isSubclass bool } func (this *QAccessibleEditableTextInterface) cPointer() *C.QAccessibleEditableTextInterface { if this == nil { return nil } return this.h } func (this *QAccessibleEditableTextInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleEditableTextInterface constructs the type using only CGO pointers. func newQAccessibleEditableTextInterface(h *C.QAccessibleEditableTextInterface) *QAccessibleEditableTextInterface { if h == nil { return nil } return &QAccessibleEditableTextInterface{h: h} } // UnsafeNewQAccessibleEditableTextInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleEditableTextInterface(h unsafe.Pointer) *QAccessibleEditableTextInterface { if h == nil { return nil } return &QAccessibleEditableTextInterface{h: (*C.QAccessibleEditableTextInterface)(h)} } func (this *QAccessibleEditableTextInterface) DeleteText(startOffset int, endOffset int) { C.QAccessibleEditableTextInterface_DeleteText(this.h, (C.int)(startOffset), (C.int)(endOffset)) } func (this *QAccessibleEditableTextInterface) InsertText(offset int, text string) { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) C.QAccessibleEditableTextInterface_InsertText(this.h, (C.int)(offset), text_ms) } func (this *QAccessibleEditableTextInterface) ReplaceText(startOffset int, endOffset int, text string) { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) C.QAccessibleEditableTextInterface_ReplaceText(this.h, (C.int)(startOffset), (C.int)(endOffset), text_ms) } func (this *QAccessibleEditableTextInterface) OperatorAssign(param1 *QAccessibleEditableTextInterface) { C.QAccessibleEditableTextInterface_OperatorAssign(this.h, param1.cPointer()) } // Delete this object from C++ memory. func (this *QAccessibleEditableTextInterface) Delete() { C.QAccessibleEditableTextInterface_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleEditableTextInterface) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleEditableTextInterface) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleValueInterface struct { h *C.QAccessibleValueInterface isSubclass bool } func (this *QAccessibleValueInterface) cPointer() *C.QAccessibleValueInterface { if this == nil { return nil } return this.h } func (this *QAccessibleValueInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleValueInterface constructs the type using only CGO pointers. func newQAccessibleValueInterface(h *C.QAccessibleValueInterface) *QAccessibleValueInterface { if h == nil { return nil } return &QAccessibleValueInterface{h: h} } // UnsafeNewQAccessibleValueInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleValueInterface(h unsafe.Pointer) *QAccessibleValueInterface { if h == nil { return nil } return &QAccessibleValueInterface{h: (*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, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleValueInterface) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleValueInterface) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTableCellInterface struct { h *C.QAccessibleTableCellInterface isSubclass bool } func (this *QAccessibleTableCellInterface) cPointer() *C.QAccessibleTableCellInterface { if this == nil { return nil } return this.h } func (this *QAccessibleTableCellInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTableCellInterface constructs the type using only CGO pointers. func newQAccessibleTableCellInterface(h *C.QAccessibleTableCellInterface) *QAccessibleTableCellInterface { if h == nil { return nil } return &QAccessibleTableCellInterface{h: h} } // UnsafeNewQAccessibleTableCellInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTableCellInterface(h unsafe.Pointer) *QAccessibleTableCellInterface { if h == nil { return nil } return &QAccessibleTableCellInterface{h: (*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, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTableCellInterface) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTableCellInterface) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTableInterface struct { h *C.QAccessibleTableInterface isSubclass bool } func (this *QAccessibleTableInterface) cPointer() *C.QAccessibleTableInterface { if this == nil { return nil } return this.h } func (this *QAccessibleTableInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTableInterface constructs the type using only CGO pointers. func newQAccessibleTableInterface(h *C.QAccessibleTableInterface) *QAccessibleTableInterface { if h == nil { return nil } return &QAccessibleTableInterface{h: h} } // UnsafeNewQAccessibleTableInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTableInterface(h unsafe.Pointer) *QAccessibleTableInterface { if h == nil { return nil } return &QAccessibleTableInterface{h: (*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, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTableInterface) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTableInterface) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleActionInterface struct { h *C.QAccessibleActionInterface isSubclass bool } func (this *QAccessibleActionInterface) cPointer() *C.QAccessibleActionInterface { if this == nil { return nil } return this.h } func (this *QAccessibleActionInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleActionInterface constructs the type using only CGO pointers. func newQAccessibleActionInterface(h *C.QAccessibleActionInterface) *QAccessibleActionInterface { if h == nil { return nil } return &QAccessibleActionInterface{h: h} } // UnsafeNewQAccessibleActionInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleActionInterface(h unsafe.Pointer) *QAccessibleActionInterface { if h == nil { return nil } return &QAccessibleActionInterface{h: (*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 QAccessibleActionInterface_TrUtf8(sourceText string) string { sourceText_Cstring := C.CString(sourceText) defer C.free(unsafe.Pointer(sourceText_Cstring)) var _ms C.struct_miqt_string = C.QAccessibleActionInterface_TrUtf8(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 } func QAccessibleActionInterface_TrUtf82(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_TrUtf82(sourceText_Cstring, disambiguation_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QAccessibleActionInterface_TrUtf83(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_TrUtf83(sourceText_Cstring, disambiguation_Cstring, (C.int)(n)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } // Delete this object from C++ memory. func (this *QAccessibleActionInterface) Delete() { C.QAccessibleActionInterface_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleActionInterface) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleActionInterface) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleImageInterface struct { h *C.QAccessibleImageInterface isSubclass bool } func (this *QAccessibleImageInterface) cPointer() *C.QAccessibleImageInterface { if this == nil { return nil } return this.h } func (this *QAccessibleImageInterface) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleImageInterface constructs the type using only CGO pointers. func newQAccessibleImageInterface(h *C.QAccessibleImageInterface) *QAccessibleImageInterface { if h == nil { return nil } return &QAccessibleImageInterface{h: h} } // UnsafeNewQAccessibleImageInterface constructs the type using only unsafe pointers. func UnsafeNewQAccessibleImageInterface(h unsafe.Pointer) *QAccessibleImageInterface { if h == nil { return nil } return &QAccessibleImageInterface{h: (*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, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleImageInterface) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleImageInterface) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleEvent struct { h *C.QAccessibleEvent isSubclass bool } func (this *QAccessibleEvent) cPointer() *C.QAccessibleEvent { if this == nil { return nil } return this.h } func (this *QAccessibleEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleEvent constructs the type using only CGO pointers. func newQAccessibleEvent(h *C.QAccessibleEvent) *QAccessibleEvent { if h == nil { return nil } return &QAccessibleEvent{h: h} } // UnsafeNewQAccessibleEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleEvent(h unsafe.Pointer) *QAccessibleEvent { if h == nil { return nil } return &QAccessibleEvent{h: (*C.QAccessibleEvent)(h)} } // NewQAccessibleEvent constructs a new QAccessibleEvent object. func NewQAccessibleEvent(obj *QObject, typ QAccessible__Event) *QAccessibleEvent { var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleEvent_new(obj.cPointer(), (C.int)(typ), &outptr_QAccessibleEvent) ret := newQAccessibleEvent(outptr_QAccessibleEvent) ret.isSubclass = true return ret } // NewQAccessibleEvent2 constructs a new QAccessibleEvent object. func NewQAccessibleEvent2(iface *QAccessibleInterface, typ QAccessible__Event) *QAccessibleEvent { var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleEvent_new2(iface.cPointer(), (C.int)(typ), &outptr_QAccessibleEvent) ret := newQAccessibleEvent(outptr_QAccessibleEvent) ret.isSubclass = true return ret } func (this *QAccessibleEvent) Type() QAccessible__Event { return (QAccessible__Event)(C.QAccessibleEvent_Type(this.h)) } func (this *QAccessibleEvent) Object() *QObject { return 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))) } func (this *QAccessibleEvent) callVirtualBase_AccessibleInterface() *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessibleEvent_virtualbase_AccessibleInterface(unsafe.Pointer(this.h)))) } func (this *QAccessibleEvent) OnAccessibleInterface(slot func(super func() *QAccessibleInterface) *QAccessibleInterface) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QAccessibleEvent_override_virtual_AccessibleInterface(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAccessibleEvent_AccessibleInterface func miqt_exec_callback_QAccessibleEvent_AccessibleInterface(self *C.QAccessibleEvent, cb C.intptr_t) *C.QAccessibleInterface { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QAccessibleInterface) *QAccessibleInterface) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QAccessibleEvent{h: self}).callVirtualBase_AccessibleInterface) return virtualReturn.cPointer() } // Delete this object from C++ memory. func (this *QAccessibleEvent) Delete() { C.QAccessibleEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleStateChangeEvent struct { h *C.QAccessibleStateChangeEvent isSubclass bool *QAccessibleEvent } func (this *QAccessibleStateChangeEvent) cPointer() *C.QAccessibleStateChangeEvent { if this == nil { return nil } return this.h } func (this *QAccessibleStateChangeEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleStateChangeEvent constructs the type using only CGO pointers. func newQAccessibleStateChangeEvent(h *C.QAccessibleStateChangeEvent, h_QAccessibleEvent *C.QAccessibleEvent) *QAccessibleStateChangeEvent { if h == nil { return nil } return &QAccessibleStateChangeEvent{h: h, QAccessibleEvent: newQAccessibleEvent(h_QAccessibleEvent)} } // UnsafeNewQAccessibleStateChangeEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleStateChangeEvent(h unsafe.Pointer, h_QAccessibleEvent unsafe.Pointer) *QAccessibleStateChangeEvent { if h == nil { return nil } return &QAccessibleStateChangeEvent{h: (*C.QAccessibleStateChangeEvent)(h), QAccessibleEvent: UnsafeNewQAccessibleEvent(h_QAccessibleEvent)} } // NewQAccessibleStateChangeEvent constructs a new QAccessibleStateChangeEvent object. func NewQAccessibleStateChangeEvent(obj *QObject, state QAccessible__State) *QAccessibleStateChangeEvent { var outptr_QAccessibleStateChangeEvent *C.QAccessibleStateChangeEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleStateChangeEvent_new(obj.cPointer(), state.cPointer(), &outptr_QAccessibleStateChangeEvent, &outptr_QAccessibleEvent) ret := newQAccessibleStateChangeEvent(outptr_QAccessibleStateChangeEvent, outptr_QAccessibleEvent) ret.isSubclass = true return ret } // NewQAccessibleStateChangeEvent2 constructs a new QAccessibleStateChangeEvent object. func NewQAccessibleStateChangeEvent2(iface *QAccessibleInterface, state QAccessible__State) *QAccessibleStateChangeEvent { var outptr_QAccessibleStateChangeEvent *C.QAccessibleStateChangeEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleStateChangeEvent_new2(iface.cPointer(), state.cPointer(), &outptr_QAccessibleStateChangeEvent, &outptr_QAccessibleEvent) ret := newQAccessibleStateChangeEvent(outptr_QAccessibleStateChangeEvent, outptr_QAccessibleEvent) ret.isSubclass = true return 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 } func (this *QAccessibleStateChangeEvent) callVirtualBase_AccessibleInterface() *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessibleStateChangeEvent_virtualbase_AccessibleInterface(unsafe.Pointer(this.h)))) } func (this *QAccessibleStateChangeEvent) OnAccessibleInterface(slot func(super func() *QAccessibleInterface) *QAccessibleInterface) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QAccessibleStateChangeEvent_override_virtual_AccessibleInterface(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAccessibleStateChangeEvent_AccessibleInterface func miqt_exec_callback_QAccessibleStateChangeEvent_AccessibleInterface(self *C.QAccessibleStateChangeEvent, cb C.intptr_t) *C.QAccessibleInterface { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QAccessibleInterface) *QAccessibleInterface) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QAccessibleStateChangeEvent{h: self}).callVirtualBase_AccessibleInterface) return virtualReturn.cPointer() } // Delete this object from C++ memory. func (this *QAccessibleStateChangeEvent) Delete() { C.QAccessibleStateChangeEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleStateChangeEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleStateChangeEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTextCursorEvent struct { h *C.QAccessibleTextCursorEvent isSubclass bool *QAccessibleEvent } func (this *QAccessibleTextCursorEvent) cPointer() *C.QAccessibleTextCursorEvent { if this == nil { return nil } return this.h } func (this *QAccessibleTextCursorEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTextCursorEvent constructs the type using only CGO pointers. func newQAccessibleTextCursorEvent(h *C.QAccessibleTextCursorEvent, h_QAccessibleEvent *C.QAccessibleEvent) *QAccessibleTextCursorEvent { if h == nil { return nil } return &QAccessibleTextCursorEvent{h: h, QAccessibleEvent: newQAccessibleEvent(h_QAccessibleEvent)} } // UnsafeNewQAccessibleTextCursorEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTextCursorEvent(h unsafe.Pointer, h_QAccessibleEvent unsafe.Pointer) *QAccessibleTextCursorEvent { if h == nil { return nil } return &QAccessibleTextCursorEvent{h: (*C.QAccessibleTextCursorEvent)(h), QAccessibleEvent: UnsafeNewQAccessibleEvent(h_QAccessibleEvent)} } // NewQAccessibleTextCursorEvent constructs a new QAccessibleTextCursorEvent object. func NewQAccessibleTextCursorEvent(obj *QObject, cursorPos int) *QAccessibleTextCursorEvent { var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleTextCursorEvent_new(obj.cPointer(), (C.int)(cursorPos), &outptr_QAccessibleTextCursorEvent, &outptr_QAccessibleEvent) ret := newQAccessibleTextCursorEvent(outptr_QAccessibleTextCursorEvent, outptr_QAccessibleEvent) ret.isSubclass = true return ret } // NewQAccessibleTextCursorEvent2 constructs a new QAccessibleTextCursorEvent object. func NewQAccessibleTextCursorEvent2(iface *QAccessibleInterface, cursorPos int) *QAccessibleTextCursorEvent { var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleTextCursorEvent_new2(iface.cPointer(), (C.int)(cursorPos), &outptr_QAccessibleTextCursorEvent, &outptr_QAccessibleEvent) ret := newQAccessibleTextCursorEvent(outptr_QAccessibleTextCursorEvent, outptr_QAccessibleEvent) ret.isSubclass = true return ret } func (this *QAccessibleTextCursorEvent) SetCursorPosition(position int) { C.QAccessibleTextCursorEvent_SetCursorPosition(this.h, (C.int)(position)) } func (this *QAccessibleTextCursorEvent) CursorPosition() int { return (int)(C.QAccessibleTextCursorEvent_CursorPosition(this.h)) } func (this *QAccessibleTextCursorEvent) callVirtualBase_AccessibleInterface() *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessibleTextCursorEvent_virtualbase_AccessibleInterface(unsafe.Pointer(this.h)))) } func (this *QAccessibleTextCursorEvent) OnAccessibleInterface(slot func(super func() *QAccessibleInterface) *QAccessibleInterface) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QAccessibleTextCursorEvent_override_virtual_AccessibleInterface(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAccessibleTextCursorEvent_AccessibleInterface func miqt_exec_callback_QAccessibleTextCursorEvent_AccessibleInterface(self *C.QAccessibleTextCursorEvent, cb C.intptr_t) *C.QAccessibleInterface { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QAccessibleInterface) *QAccessibleInterface) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QAccessibleTextCursorEvent{h: self}).callVirtualBase_AccessibleInterface) return virtualReturn.cPointer() } // Delete this object from C++ memory. func (this *QAccessibleTextCursorEvent) Delete() { C.QAccessibleTextCursorEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTextCursorEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTextCursorEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTextSelectionEvent struct { h *C.QAccessibleTextSelectionEvent isSubclass bool *QAccessibleTextCursorEvent } func (this *QAccessibleTextSelectionEvent) cPointer() *C.QAccessibleTextSelectionEvent { if this == nil { return nil } return this.h } func (this *QAccessibleTextSelectionEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTextSelectionEvent constructs the type using only CGO pointers. func newQAccessibleTextSelectionEvent(h *C.QAccessibleTextSelectionEvent, h_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent, h_QAccessibleEvent *C.QAccessibleEvent) *QAccessibleTextSelectionEvent { if h == nil { return nil } return &QAccessibleTextSelectionEvent{h: h, QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent(h_QAccessibleTextCursorEvent, h_QAccessibleEvent)} } // UnsafeNewQAccessibleTextSelectionEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTextSelectionEvent(h unsafe.Pointer, h_QAccessibleTextCursorEvent unsafe.Pointer, h_QAccessibleEvent unsafe.Pointer) *QAccessibleTextSelectionEvent { if h == nil { return nil } return &QAccessibleTextSelectionEvent{h: (*C.QAccessibleTextSelectionEvent)(h), QAccessibleTextCursorEvent: UnsafeNewQAccessibleTextCursorEvent(h_QAccessibleTextCursorEvent, h_QAccessibleEvent)} } // NewQAccessibleTextSelectionEvent constructs a new QAccessibleTextSelectionEvent object. func NewQAccessibleTextSelectionEvent(obj *QObject, start int, end int) *QAccessibleTextSelectionEvent { var outptr_QAccessibleTextSelectionEvent *C.QAccessibleTextSelectionEvent = nil var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleTextSelectionEvent_new(obj.cPointer(), (C.int)(start), (C.int)(end), &outptr_QAccessibleTextSelectionEvent, &outptr_QAccessibleTextCursorEvent, &outptr_QAccessibleEvent) ret := newQAccessibleTextSelectionEvent(outptr_QAccessibleTextSelectionEvent, outptr_QAccessibleTextCursorEvent, outptr_QAccessibleEvent) ret.isSubclass = true return ret } // NewQAccessibleTextSelectionEvent2 constructs a new QAccessibleTextSelectionEvent object. func NewQAccessibleTextSelectionEvent2(iface *QAccessibleInterface, start int, end int) *QAccessibleTextSelectionEvent { var outptr_QAccessibleTextSelectionEvent *C.QAccessibleTextSelectionEvent = nil var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleTextSelectionEvent_new2(iface.cPointer(), (C.int)(start), (C.int)(end), &outptr_QAccessibleTextSelectionEvent, &outptr_QAccessibleTextCursorEvent, &outptr_QAccessibleEvent) ret := newQAccessibleTextSelectionEvent(outptr_QAccessibleTextSelectionEvent, outptr_QAccessibleTextCursorEvent, outptr_QAccessibleEvent) ret.isSubclass = true return ret } func (this *QAccessibleTextSelectionEvent) SetSelection(start int, end int) { C.QAccessibleTextSelectionEvent_SetSelection(this.h, (C.int)(start), (C.int)(end)) } func (this *QAccessibleTextSelectionEvent) SelectionStart() int { return (int)(C.QAccessibleTextSelectionEvent_SelectionStart(this.h)) } func (this *QAccessibleTextSelectionEvent) SelectionEnd() int { return (int)(C.QAccessibleTextSelectionEvent_SelectionEnd(this.h)) } // Delete this object from C++ memory. func (this *QAccessibleTextSelectionEvent) Delete() { C.QAccessibleTextSelectionEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTextSelectionEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTextSelectionEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTextInsertEvent struct { h *C.QAccessibleTextInsertEvent isSubclass bool *QAccessibleTextCursorEvent } func (this *QAccessibleTextInsertEvent) cPointer() *C.QAccessibleTextInsertEvent { if this == nil { return nil } return this.h } func (this *QAccessibleTextInsertEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTextInsertEvent constructs the type using only CGO pointers. func newQAccessibleTextInsertEvent(h *C.QAccessibleTextInsertEvent, h_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent, h_QAccessibleEvent *C.QAccessibleEvent) *QAccessibleTextInsertEvent { if h == nil { return nil } return &QAccessibleTextInsertEvent{h: h, QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent(h_QAccessibleTextCursorEvent, h_QAccessibleEvent)} } // UnsafeNewQAccessibleTextInsertEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTextInsertEvent(h unsafe.Pointer, h_QAccessibleTextCursorEvent unsafe.Pointer, h_QAccessibleEvent unsafe.Pointer) *QAccessibleTextInsertEvent { if h == nil { return nil } return &QAccessibleTextInsertEvent{h: (*C.QAccessibleTextInsertEvent)(h), QAccessibleTextCursorEvent: UnsafeNewQAccessibleTextCursorEvent(h_QAccessibleTextCursorEvent, h_QAccessibleEvent)} } // 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)) var outptr_QAccessibleTextInsertEvent *C.QAccessibleTextInsertEvent = nil var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleTextInsertEvent_new(obj.cPointer(), (C.int)(position), text_ms, &outptr_QAccessibleTextInsertEvent, &outptr_QAccessibleTextCursorEvent, &outptr_QAccessibleEvent) ret := newQAccessibleTextInsertEvent(outptr_QAccessibleTextInsertEvent, outptr_QAccessibleTextCursorEvent, outptr_QAccessibleEvent) ret.isSubclass = true return ret } // NewQAccessibleTextInsertEvent2 constructs a new QAccessibleTextInsertEvent object. func NewQAccessibleTextInsertEvent2(iface *QAccessibleInterface, position int, text string) *QAccessibleTextInsertEvent { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) var outptr_QAccessibleTextInsertEvent *C.QAccessibleTextInsertEvent = nil var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleTextInsertEvent_new2(iface.cPointer(), (C.int)(position), text_ms, &outptr_QAccessibleTextInsertEvent, &outptr_QAccessibleTextCursorEvent, &outptr_QAccessibleEvent) ret := newQAccessibleTextInsertEvent(outptr_QAccessibleTextInsertEvent, outptr_QAccessibleTextCursorEvent, outptr_QAccessibleEvent) ret.isSubclass = true return ret } func (this *QAccessibleTextInsertEvent) TextInserted() string { var _ms C.struct_miqt_string = C.QAccessibleTextInsertEvent_TextInserted(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleTextInsertEvent) ChangePosition() int { return (int)(C.QAccessibleTextInsertEvent_ChangePosition(this.h)) } // Delete this object from C++ memory. func (this *QAccessibleTextInsertEvent) Delete() { C.QAccessibleTextInsertEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTextInsertEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTextInsertEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTextRemoveEvent struct { h *C.QAccessibleTextRemoveEvent isSubclass bool *QAccessibleTextCursorEvent } func (this *QAccessibleTextRemoveEvent) cPointer() *C.QAccessibleTextRemoveEvent { if this == nil { return nil } return this.h } func (this *QAccessibleTextRemoveEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTextRemoveEvent constructs the type using only CGO pointers. func newQAccessibleTextRemoveEvent(h *C.QAccessibleTextRemoveEvent, h_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent, h_QAccessibleEvent *C.QAccessibleEvent) *QAccessibleTextRemoveEvent { if h == nil { return nil } return &QAccessibleTextRemoveEvent{h: h, QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent(h_QAccessibleTextCursorEvent, h_QAccessibleEvent)} } // UnsafeNewQAccessibleTextRemoveEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTextRemoveEvent(h unsafe.Pointer, h_QAccessibleTextCursorEvent unsafe.Pointer, h_QAccessibleEvent unsafe.Pointer) *QAccessibleTextRemoveEvent { if h == nil { return nil } return &QAccessibleTextRemoveEvent{h: (*C.QAccessibleTextRemoveEvent)(h), QAccessibleTextCursorEvent: UnsafeNewQAccessibleTextCursorEvent(h_QAccessibleTextCursorEvent, h_QAccessibleEvent)} } // 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)) var outptr_QAccessibleTextRemoveEvent *C.QAccessibleTextRemoveEvent = nil var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleTextRemoveEvent_new(obj.cPointer(), (C.int)(position), text_ms, &outptr_QAccessibleTextRemoveEvent, &outptr_QAccessibleTextCursorEvent, &outptr_QAccessibleEvent) ret := newQAccessibleTextRemoveEvent(outptr_QAccessibleTextRemoveEvent, outptr_QAccessibleTextCursorEvent, outptr_QAccessibleEvent) ret.isSubclass = true return ret } // NewQAccessibleTextRemoveEvent2 constructs a new QAccessibleTextRemoveEvent object. func NewQAccessibleTextRemoveEvent2(iface *QAccessibleInterface, position int, text string) *QAccessibleTextRemoveEvent { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) var outptr_QAccessibleTextRemoveEvent *C.QAccessibleTextRemoveEvent = nil var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleTextRemoveEvent_new2(iface.cPointer(), (C.int)(position), text_ms, &outptr_QAccessibleTextRemoveEvent, &outptr_QAccessibleTextCursorEvent, &outptr_QAccessibleEvent) ret := newQAccessibleTextRemoveEvent(outptr_QAccessibleTextRemoveEvent, outptr_QAccessibleTextCursorEvent, outptr_QAccessibleEvent) ret.isSubclass = true return ret } func (this *QAccessibleTextRemoveEvent) TextRemoved() string { var _ms C.struct_miqt_string = C.QAccessibleTextRemoveEvent_TextRemoved(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleTextRemoveEvent) ChangePosition() int { return (int)(C.QAccessibleTextRemoveEvent_ChangePosition(this.h)) } // Delete this object from C++ memory. func (this *QAccessibleTextRemoveEvent) Delete() { C.QAccessibleTextRemoveEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTextRemoveEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTextRemoveEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTextUpdateEvent struct { h *C.QAccessibleTextUpdateEvent isSubclass bool *QAccessibleTextCursorEvent } func (this *QAccessibleTextUpdateEvent) cPointer() *C.QAccessibleTextUpdateEvent { if this == nil { return nil } return this.h } func (this *QAccessibleTextUpdateEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTextUpdateEvent constructs the type using only CGO pointers. func newQAccessibleTextUpdateEvent(h *C.QAccessibleTextUpdateEvent, h_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent, h_QAccessibleEvent *C.QAccessibleEvent) *QAccessibleTextUpdateEvent { if h == nil { return nil } return &QAccessibleTextUpdateEvent{h: h, QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent(h_QAccessibleTextCursorEvent, h_QAccessibleEvent)} } // UnsafeNewQAccessibleTextUpdateEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTextUpdateEvent(h unsafe.Pointer, h_QAccessibleTextCursorEvent unsafe.Pointer, h_QAccessibleEvent unsafe.Pointer) *QAccessibleTextUpdateEvent { if h == nil { return nil } return &QAccessibleTextUpdateEvent{h: (*C.QAccessibleTextUpdateEvent)(h), QAccessibleTextCursorEvent: UnsafeNewQAccessibleTextCursorEvent(h_QAccessibleTextCursorEvent, h_QAccessibleEvent)} } // 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)) var outptr_QAccessibleTextUpdateEvent *C.QAccessibleTextUpdateEvent = nil var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleTextUpdateEvent_new(obj.cPointer(), (C.int)(position), oldText_ms, text_ms, &outptr_QAccessibleTextUpdateEvent, &outptr_QAccessibleTextCursorEvent, &outptr_QAccessibleEvent) ret := newQAccessibleTextUpdateEvent(outptr_QAccessibleTextUpdateEvent, outptr_QAccessibleTextCursorEvent, outptr_QAccessibleEvent) ret.isSubclass = true return ret } // NewQAccessibleTextUpdateEvent2 constructs a new QAccessibleTextUpdateEvent object. func NewQAccessibleTextUpdateEvent2(iface *QAccessibleInterface, position int, oldText string, text string) *QAccessibleTextUpdateEvent { oldText_ms := C.struct_miqt_string{} oldText_ms.data = C.CString(oldText) oldText_ms.len = C.size_t(len(oldText)) defer C.free(unsafe.Pointer(oldText_ms.data)) text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) var outptr_QAccessibleTextUpdateEvent *C.QAccessibleTextUpdateEvent = nil var outptr_QAccessibleTextCursorEvent *C.QAccessibleTextCursorEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleTextUpdateEvent_new2(iface.cPointer(), (C.int)(position), oldText_ms, text_ms, &outptr_QAccessibleTextUpdateEvent, &outptr_QAccessibleTextCursorEvent, &outptr_QAccessibleEvent) ret := newQAccessibleTextUpdateEvent(outptr_QAccessibleTextUpdateEvent, outptr_QAccessibleTextCursorEvent, outptr_QAccessibleEvent) ret.isSubclass = true return ret } func (this *QAccessibleTextUpdateEvent) TextRemoved() string { var _ms C.struct_miqt_string = C.QAccessibleTextUpdateEvent_TextRemoved(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleTextUpdateEvent) TextInserted() string { var _ms C.struct_miqt_string = C.QAccessibleTextUpdateEvent_TextInserted(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QAccessibleTextUpdateEvent) ChangePosition() int { return (int)(C.QAccessibleTextUpdateEvent_ChangePosition(this.h)) } // Delete this object from C++ memory. func (this *QAccessibleTextUpdateEvent) Delete() { C.QAccessibleTextUpdateEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTextUpdateEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTextUpdateEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleValueChangeEvent struct { h *C.QAccessibleValueChangeEvent isSubclass bool *QAccessibleEvent } func (this *QAccessibleValueChangeEvent) cPointer() *C.QAccessibleValueChangeEvent { if this == nil { return nil } return this.h } func (this *QAccessibleValueChangeEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleValueChangeEvent constructs the type using only CGO pointers. func newQAccessibleValueChangeEvent(h *C.QAccessibleValueChangeEvent, h_QAccessibleEvent *C.QAccessibleEvent) *QAccessibleValueChangeEvent { if h == nil { return nil } return &QAccessibleValueChangeEvent{h: h, QAccessibleEvent: newQAccessibleEvent(h_QAccessibleEvent)} } // UnsafeNewQAccessibleValueChangeEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleValueChangeEvent(h unsafe.Pointer, h_QAccessibleEvent unsafe.Pointer) *QAccessibleValueChangeEvent { if h == nil { return nil } return &QAccessibleValueChangeEvent{h: (*C.QAccessibleValueChangeEvent)(h), QAccessibleEvent: UnsafeNewQAccessibleEvent(h_QAccessibleEvent)} } // NewQAccessibleValueChangeEvent constructs a new QAccessibleValueChangeEvent object. func NewQAccessibleValueChangeEvent(obj *QObject, val *QVariant) *QAccessibleValueChangeEvent { var outptr_QAccessibleValueChangeEvent *C.QAccessibleValueChangeEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleValueChangeEvent_new(obj.cPointer(), val.cPointer(), &outptr_QAccessibleValueChangeEvent, &outptr_QAccessibleEvent) ret := newQAccessibleValueChangeEvent(outptr_QAccessibleValueChangeEvent, outptr_QAccessibleEvent) ret.isSubclass = true return ret } // NewQAccessibleValueChangeEvent2 constructs a new QAccessibleValueChangeEvent object. func NewQAccessibleValueChangeEvent2(iface *QAccessibleInterface, val *QVariant) *QAccessibleValueChangeEvent { var outptr_QAccessibleValueChangeEvent *C.QAccessibleValueChangeEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleValueChangeEvent_new2(iface.cPointer(), val.cPointer(), &outptr_QAccessibleValueChangeEvent, &outptr_QAccessibleEvent) ret := newQAccessibleValueChangeEvent(outptr_QAccessibleValueChangeEvent, outptr_QAccessibleEvent) ret.isSubclass = true return 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 } func (this *QAccessibleValueChangeEvent) callVirtualBase_AccessibleInterface() *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessibleValueChangeEvent_virtualbase_AccessibleInterface(unsafe.Pointer(this.h)))) } func (this *QAccessibleValueChangeEvent) OnAccessibleInterface(slot func(super func() *QAccessibleInterface) *QAccessibleInterface) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QAccessibleValueChangeEvent_override_virtual_AccessibleInterface(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAccessibleValueChangeEvent_AccessibleInterface func miqt_exec_callback_QAccessibleValueChangeEvent_AccessibleInterface(self *C.QAccessibleValueChangeEvent, cb C.intptr_t) *C.QAccessibleInterface { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QAccessibleInterface) *QAccessibleInterface) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QAccessibleValueChangeEvent{h: self}).callVirtualBase_AccessibleInterface) return virtualReturn.cPointer() } // Delete this object from C++ memory. func (this *QAccessibleValueChangeEvent) Delete() { C.QAccessibleValueChangeEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleValueChangeEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleValueChangeEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessibleTableModelChangeEvent struct { h *C.QAccessibleTableModelChangeEvent isSubclass bool *QAccessibleEvent } func (this *QAccessibleTableModelChangeEvent) cPointer() *C.QAccessibleTableModelChangeEvent { if this == nil { return nil } return this.h } func (this *QAccessibleTableModelChangeEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessibleTableModelChangeEvent constructs the type using only CGO pointers. func newQAccessibleTableModelChangeEvent(h *C.QAccessibleTableModelChangeEvent, h_QAccessibleEvent *C.QAccessibleEvent) *QAccessibleTableModelChangeEvent { if h == nil { return nil } return &QAccessibleTableModelChangeEvent{h: h, QAccessibleEvent: newQAccessibleEvent(h_QAccessibleEvent)} } // UnsafeNewQAccessibleTableModelChangeEvent constructs the type using only unsafe pointers. func UnsafeNewQAccessibleTableModelChangeEvent(h unsafe.Pointer, h_QAccessibleEvent unsafe.Pointer) *QAccessibleTableModelChangeEvent { if h == nil { return nil } return &QAccessibleTableModelChangeEvent{h: (*C.QAccessibleTableModelChangeEvent)(h), QAccessibleEvent: UnsafeNewQAccessibleEvent(h_QAccessibleEvent)} } // NewQAccessibleTableModelChangeEvent constructs a new QAccessibleTableModelChangeEvent object. func NewQAccessibleTableModelChangeEvent(obj *QObject, changeType QAccessibleTableModelChangeEvent__ModelChangeType) *QAccessibleTableModelChangeEvent { var outptr_QAccessibleTableModelChangeEvent *C.QAccessibleTableModelChangeEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleTableModelChangeEvent_new(obj.cPointer(), (C.int)(changeType), &outptr_QAccessibleTableModelChangeEvent, &outptr_QAccessibleEvent) ret := newQAccessibleTableModelChangeEvent(outptr_QAccessibleTableModelChangeEvent, outptr_QAccessibleEvent) ret.isSubclass = true return ret } // NewQAccessibleTableModelChangeEvent2 constructs a new QAccessibleTableModelChangeEvent object. func NewQAccessibleTableModelChangeEvent2(iface *QAccessibleInterface, changeType QAccessibleTableModelChangeEvent__ModelChangeType) *QAccessibleTableModelChangeEvent { var outptr_QAccessibleTableModelChangeEvent *C.QAccessibleTableModelChangeEvent = nil var outptr_QAccessibleEvent *C.QAccessibleEvent = nil C.QAccessibleTableModelChangeEvent_new2(iface.cPointer(), (C.int)(changeType), &outptr_QAccessibleTableModelChangeEvent, &outptr_QAccessibleEvent) ret := newQAccessibleTableModelChangeEvent(outptr_QAccessibleTableModelChangeEvent, outptr_QAccessibleEvent) ret.isSubclass = true return ret } func (this *QAccessibleTableModelChangeEvent) SetModelChangeType(changeType QAccessibleTableModelChangeEvent__ModelChangeType) { C.QAccessibleTableModelChangeEvent_SetModelChangeType(this.h, (C.int)(changeType)) } func (this *QAccessibleTableModelChangeEvent) ModelChangeType() QAccessibleTableModelChangeEvent__ModelChangeType { return (QAccessibleTableModelChangeEvent__ModelChangeType)(C.QAccessibleTableModelChangeEvent_ModelChangeType(this.h)) } func (this *QAccessibleTableModelChangeEvent) SetFirstRow(row int) { C.QAccessibleTableModelChangeEvent_SetFirstRow(this.h, (C.int)(row)) } func (this *QAccessibleTableModelChangeEvent) SetFirstColumn(col int) { C.QAccessibleTableModelChangeEvent_SetFirstColumn(this.h, (C.int)(col)) } func (this *QAccessibleTableModelChangeEvent) SetLastRow(row int) { C.QAccessibleTableModelChangeEvent_SetLastRow(this.h, (C.int)(row)) } func (this *QAccessibleTableModelChangeEvent) SetLastColumn(col int) { C.QAccessibleTableModelChangeEvent_SetLastColumn(this.h, (C.int)(col)) } func (this *QAccessibleTableModelChangeEvent) FirstRow() int { return (int)(C.QAccessibleTableModelChangeEvent_FirstRow(this.h)) } func (this *QAccessibleTableModelChangeEvent) FirstColumn() int { return (int)(C.QAccessibleTableModelChangeEvent_FirstColumn(this.h)) } func (this *QAccessibleTableModelChangeEvent) LastRow() int { return (int)(C.QAccessibleTableModelChangeEvent_LastRow(this.h)) } func (this *QAccessibleTableModelChangeEvent) LastColumn() int { return (int)(C.QAccessibleTableModelChangeEvent_LastColumn(this.h)) } func (this *QAccessibleTableModelChangeEvent) callVirtualBase_AccessibleInterface() *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessibleTableModelChangeEvent_virtualbase_AccessibleInterface(unsafe.Pointer(this.h)))) } func (this *QAccessibleTableModelChangeEvent) OnAccessibleInterface(slot func(super func() *QAccessibleInterface) *QAccessibleInterface) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QAccessibleTableModelChangeEvent_override_virtual_AccessibleInterface(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAccessibleTableModelChangeEvent_AccessibleInterface func miqt_exec_callback_QAccessibleTableModelChangeEvent_AccessibleInterface(self *C.QAccessibleTableModelChangeEvent, cb C.intptr_t) *C.QAccessibleInterface { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QAccessibleInterface) *QAccessibleInterface) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QAccessibleTableModelChangeEvent{h: self}).callVirtualBase_AccessibleInterface) return virtualReturn.cPointer() } // Delete this object from C++ memory. func (this *QAccessibleTableModelChangeEvent) Delete() { C.QAccessibleTableModelChangeEvent_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessibleTableModelChangeEvent) GoGC() { runtime.SetFinalizer(this, func(this *QAccessibleTableModelChangeEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessible__State struct { h *C.QAccessible__State isSubclass bool } func (this *QAccessible__State) cPointer() *C.QAccessible__State { if this == nil { return nil } return this.h } func (this *QAccessible__State) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessible__State constructs the type using only CGO pointers. func newQAccessible__State(h *C.QAccessible__State) *QAccessible__State { if h == nil { return nil } return &QAccessible__State{h: h} } // UnsafeNewQAccessible__State constructs the type using only unsafe pointers. func UnsafeNewQAccessible__State(h unsafe.Pointer) *QAccessible__State { if h == nil { return nil } return &QAccessible__State{h: (*C.QAccessible__State)(h)} } // NewQAccessible__State constructs a new QAccessible::State object. func NewQAccessible__State() *QAccessible__State { var outptr_QAccessible__State *C.QAccessible__State = nil C.QAccessible__State_new(&outptr_QAccessible__State) ret := newQAccessible__State(outptr_QAccessible__State) ret.isSubclass = true return ret } // NewQAccessible__State2 constructs a new QAccessible::State object. func NewQAccessible__State2(param1 *QAccessible__State) *QAccessible__State { var outptr_QAccessible__State *C.QAccessible__State = nil C.QAccessible__State_new2(param1.cPointer(), &outptr_QAccessible__State) ret := newQAccessible__State(outptr_QAccessible__State) ret.isSubclass = true return ret } // Delete this object from C++ memory. func (this *QAccessible__State) Delete() { C.QAccessible__State_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessible__State) GoGC() { runtime.SetFinalizer(this, func(this *QAccessible__State) { this.Delete() runtime.KeepAlive(this.h) }) } type QAccessible__ActivationObserver struct { h *C.QAccessible__ActivationObserver isSubclass bool } func (this *QAccessible__ActivationObserver) cPointer() *C.QAccessible__ActivationObserver { if this == nil { return nil } return this.h } func (this *QAccessible__ActivationObserver) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQAccessible__ActivationObserver constructs the type using only CGO pointers. func newQAccessible__ActivationObserver(h *C.QAccessible__ActivationObserver) *QAccessible__ActivationObserver { if h == nil { return nil } return &QAccessible__ActivationObserver{h: h} } // UnsafeNewQAccessible__ActivationObserver constructs the type using only unsafe pointers. func UnsafeNewQAccessible__ActivationObserver(h unsafe.Pointer) *QAccessible__ActivationObserver { if h == nil { return nil } return &QAccessible__ActivationObserver{h: (*C.QAccessible__ActivationObserver)(h)} } func (this *QAccessible__ActivationObserver) AccessibilityActiveChanged(active bool) { C.QAccessible__ActivationObserver_AccessibilityActiveChanged(this.h, (C.bool)(active)) } func (this *QAccessible__ActivationObserver) OperatorAssign(param1 *QAccessible__ActivationObserver) { C.QAccessible__ActivationObserver_OperatorAssign(this.h, param1.cPointer()) } // Delete this object from C++ memory. func (this *QAccessible__ActivationObserver) Delete() { C.QAccessible__ActivationObserver_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QAccessible__ActivationObserver) GoGC() { runtime.SetFinalizer(this, func(this *QAccessible__ActivationObserver) { this.Delete() runtime.KeepAlive(this.h) }) }