miqt/qt/gen_qaccessible.go

1920 lines
70 KiB
Go

package qt
/*
#include "gen_qaccessible.h"
#include <stdlib.h>
*/
import "C"
import (
"runtime"
"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
}
func (this *QAccessible) cPointer() *C.QAccessible {
if this == nil {
return nil
}
return this.h
}
func newQAccessible(h *C.QAccessible) *QAccessible {
if h == nil {
return nil
}
return &QAccessible{h: h}
}
func newQAccessible_U(h unsafe.Pointer) *QAccessible {
return newQAccessible((*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 newQAccessibleInterface_U(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 newQAccessibleInterface_U(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()
}
// Delete this object from C++ memory.
func (this *QAccessible) Delete() {
C.QAccessible_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 *QAccessible) GoGC() {
runtime.SetFinalizer(this, func(this *QAccessible) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QAccessibleInterface struct {
h *C.QAccessibleInterface
}
func (this *QAccessibleInterface) cPointer() *C.QAccessibleInterface {
if this == nil {
return nil
}
return this.h
}
func newQAccessibleInterface(h *C.QAccessibleInterface) *QAccessibleInterface {
if h == nil {
return nil
}
return &QAccessibleInterface{h: h}
}
func newQAccessibleInterface_U(h unsafe.Pointer) *QAccessibleInterface {
return newQAccessibleInterface((*C.QAccessibleInterface)(h))
}
func (this *QAccessibleInterface) IsValid() bool {
return (bool)(C.QAccessibleInterface_IsValid(this.h))
}
func (this *QAccessibleInterface) Object() *QObject {
return newQObject_U(unsafe.Pointer(C.QAccessibleInterface_Object(this.h)))
}
func (this *QAccessibleInterface) Window() *QWindow {
return newQWindow_U(unsafe.Pointer(C.QAccessibleInterface_Window(this.h)))
}
func (this *QAccessibleInterface) FocusChild() *QAccessibleInterface {
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleInterface_FocusChild(this.h)))
}
func (this *QAccessibleInterface) ChildAt(x int, y int) *QAccessibleInterface {
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleInterface_ChildAt(this.h, (C.int)(x), (C.int)(y))))
}
func (this *QAccessibleInterface) Parent() *QAccessibleInterface {
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleInterface_Parent(this.h)))
}
func (this *QAccessibleInterface) Child(index int) *QAccessibleInterface {
return newQAccessibleInterface_U(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))
return _ret
}
func (this *QAccessibleInterface) SetText(t QAccessible__Text, text string) {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
C.QAccessibleInterface_SetText(this.h, (C.int)(t), (*C.struct_miqt_string)(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 newQAccessibleTextInterface_U(unsafe.Pointer(C.QAccessibleInterface_TextInterface(this.h)))
}
func (this *QAccessibleInterface) EditableTextInterface() *QAccessibleEditableTextInterface {
return newQAccessibleEditableTextInterface_U(unsafe.Pointer(C.QAccessibleInterface_EditableTextInterface(this.h)))
}
func (this *QAccessibleInterface) ValueInterface() *QAccessibleValueInterface {
return newQAccessibleValueInterface_U(unsafe.Pointer(C.QAccessibleInterface_ValueInterface(this.h)))
}
func (this *QAccessibleInterface) ActionInterface() *QAccessibleActionInterface {
return newQAccessibleActionInterface_U(unsafe.Pointer(C.QAccessibleInterface_ActionInterface(this.h)))
}
func (this *QAccessibleInterface) ImageInterface() *QAccessibleImageInterface {
return newQAccessibleImageInterface_U(unsafe.Pointer(C.QAccessibleInterface_ImageInterface(this.h)))
}
func (this *QAccessibleInterface) TableInterface() *QAccessibleTableInterface {
return newQAccessibleTableInterface_U(unsafe.Pointer(C.QAccessibleInterface_TableInterface(this.h)))
}
func (this *QAccessibleInterface) TableCellInterface() *QAccessibleTableCellInterface {
return newQAccessibleTableCellInterface_U(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 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 newQAccessibleTextInterface(h *C.QAccessibleTextInterface) *QAccessibleTextInterface {
if h == nil {
return nil
}
return &QAccessibleTextInterface{h: h}
}
func newQAccessibleTextInterface_U(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))
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))
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))
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))
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))
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 newQAccessibleEditableTextInterface(h *C.QAccessibleEditableTextInterface) *QAccessibleEditableTextInterface {
if h == nil {
return nil
}
return &QAccessibleEditableTextInterface{h: h}
}
func newQAccessibleEditableTextInterface_U(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 := miqt_strdupg(text)
defer C.free(text_ms)
C.QAccessibleEditableTextInterface_InsertText(this.h, (C.int)(offset), (*C.struct_miqt_string)(text_ms))
}
func (this *QAccessibleEditableTextInterface) ReplaceText(startOffset int, endOffset int, text string) {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
C.QAccessibleEditableTextInterface_ReplaceText(this.h, (C.int)(startOffset), (C.int)(endOffset), (*C.struct_miqt_string)(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 newQAccessibleValueInterface(h *C.QAccessibleValueInterface) *QAccessibleValueInterface {
if h == nil {
return nil
}
return &QAccessibleValueInterface{h: h}
}
func newQAccessibleValueInterface_U(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 newQAccessibleTableCellInterface(h *C.QAccessibleTableCellInterface) *QAccessibleTableCellInterface {
if h == nil {
return nil
}
return &QAccessibleTableCellInterface{h: h}
}
func newQAccessibleTableCellInterface_U(h unsafe.Pointer) *QAccessibleTableCellInterface {
return newQAccessibleTableCellInterface((*C.QAccessibleTableCellInterface)(h))
}
func (this *QAccessibleTableCellInterface) IsSelected() bool {
return (bool)(C.QAccessibleTableCellInterface_IsSelected(this.h))
}
func (this *QAccessibleTableCellInterface) ColumnHeaderCells() []*QAccessibleInterface {
var _ma *C.struct_miqt_array = C.QAccessibleTableCellInterface_ColumnHeaderCells(this.h)
_ret := make([]*QAccessibleInterface, int(_ma.len))
_outCast := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQAccessibleInterface_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QAccessibleTableCellInterface) RowHeaderCells() []*QAccessibleInterface {
var _ma *C.struct_miqt_array = C.QAccessibleTableCellInterface_RowHeaderCells(this.h)
_ret := make([]*QAccessibleInterface, int(_ma.len))
_outCast := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQAccessibleInterface_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QAccessibleTableCellInterface) ColumnIndex() int {
return (int)(C.QAccessibleTableCellInterface_ColumnIndex(this.h))
}
func (this *QAccessibleTableCellInterface) RowIndex() int {
return (int)(C.QAccessibleTableCellInterface_RowIndex(this.h))
}
func (this *QAccessibleTableCellInterface) ColumnExtent() int {
return (int)(C.QAccessibleTableCellInterface_ColumnExtent(this.h))
}
func (this *QAccessibleTableCellInterface) RowExtent() int {
return (int)(C.QAccessibleTableCellInterface_RowExtent(this.h))
}
func (this *QAccessibleTableCellInterface) Table() *QAccessibleInterface {
return newQAccessibleInterface_U(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 newQAccessibleTableInterface(h *C.QAccessibleTableInterface) *QAccessibleTableInterface {
if h == nil {
return nil
}
return &QAccessibleTableInterface{h: h}
}
func newQAccessibleTableInterface_U(h unsafe.Pointer) *QAccessibleTableInterface {
return newQAccessibleTableInterface((*C.QAccessibleTableInterface)(h))
}
func (this *QAccessibleTableInterface) Caption() *QAccessibleInterface {
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleTableInterface_Caption(this.h)))
}
func (this *QAccessibleTableInterface) Summary() *QAccessibleInterface {
return newQAccessibleInterface_U(unsafe.Pointer(C.QAccessibleTableInterface_Summary(this.h)))
}
func (this *QAccessibleTableInterface) CellAt(row int, column int) *QAccessibleInterface {
return newQAccessibleInterface_U(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] = newQAccessibleInterface_U(unsafe.Pointer(_outCast[i]))
}
C.free(unsafe.Pointer(_ma))
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))
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))
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])
}
C.free(unsafe.Pointer(_ma))
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])
}
C.free(unsafe.Pointer(_ma))
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 newQAccessibleActionInterface(h *C.QAccessibleActionInterface) *QAccessibleActionInterface {
if h == nil {
return nil
}
return &QAccessibleActionInterface{h: h}
}
func newQAccessibleActionInterface_U(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))
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))
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))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QAccessibleActionInterface) LocalizedActionName(name string) string {
name_ms := miqt_strdupg(name)
defer C.free(name_ms)
var _ms *C.struct_miqt_string = C.QAccessibleActionInterface_LocalizedActionName(this.h, (*C.struct_miqt_string)(name_ms))
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}
func (this *QAccessibleActionInterface) LocalizedActionDescription(name string) string {
name_ms := miqt_strdupg(name)
defer C.free(name_ms)
var _ms *C.struct_miqt_string = C.QAccessibleActionInterface_LocalizedActionDescription(this.h, (*C.struct_miqt_string)(name_ms))
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}
func (this *QAccessibleActionInterface) DoAction(actionName string) {
actionName_ms := miqt_strdupg(actionName)
defer C.free(actionName_ms)
C.QAccessibleActionInterface_DoAction(this.h, (*C.struct_miqt_string)(actionName_ms))
}
func (this *QAccessibleActionInterface) KeyBindingsForAction(actionName string) []string {
actionName_ms := miqt_strdupg(actionName)
defer C.free(actionName_ms)
var _ma *C.struct_miqt_array = C.QAccessibleActionInterface_KeyBindingsForAction(this.h, (*C.struct_miqt_string)(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))
_ret[i] = _lv_ret
}
C.free(unsafe.Pointer(_ma))
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))
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))
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))
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))
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))
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))
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))
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))
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))
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))
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))
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))
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))
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))
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))
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))
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 newQAccessibleImageInterface(h *C.QAccessibleImageInterface) *QAccessibleImageInterface {
if h == nil {
return nil
}
return &QAccessibleImageInterface{h: h}
}
func newQAccessibleImageInterface_U(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))
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 QAccessibleEvent struct {
h *C.QAccessibleEvent
}
func (this *QAccessibleEvent) cPointer() *C.QAccessibleEvent {
if this == nil {
return nil
}
return this.h
}
func newQAccessibleEvent(h *C.QAccessibleEvent) *QAccessibleEvent {
if h == nil {
return nil
}
return &QAccessibleEvent{h: h}
}
func newQAccessibleEvent_U(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 newQObject_U(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 newQAccessibleInterface_U(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 newQAccessibleStateChangeEvent(h *C.QAccessibleStateChangeEvent) *QAccessibleStateChangeEvent {
if h == nil {
return nil
}
return &QAccessibleStateChangeEvent{h: h, QAccessibleEvent: newQAccessibleEvent_U(unsafe.Pointer(h))}
}
func newQAccessibleStateChangeEvent_U(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 newQAccessibleTextCursorEvent(h *C.QAccessibleTextCursorEvent) *QAccessibleTextCursorEvent {
if h == nil {
return nil
}
return &QAccessibleTextCursorEvent{h: h, QAccessibleEvent: newQAccessibleEvent_U(unsafe.Pointer(h))}
}
func newQAccessibleTextCursorEvent_U(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 newQAccessibleTextSelectionEvent(h *C.QAccessibleTextSelectionEvent) *QAccessibleTextSelectionEvent {
if h == nil {
return nil
}
return &QAccessibleTextSelectionEvent{h: h, QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent_U(unsafe.Pointer(h))}
}
func newQAccessibleTextSelectionEvent_U(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 newQAccessibleTextInsertEvent(h *C.QAccessibleTextInsertEvent) *QAccessibleTextInsertEvent {
if h == nil {
return nil
}
return &QAccessibleTextInsertEvent{h: h, QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent_U(unsafe.Pointer(h))}
}
func newQAccessibleTextInsertEvent_U(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 := miqt_strdupg(text)
defer C.free(text_ms)
ret := C.QAccessibleTextInsertEvent_new(obj.cPointer(), (C.int)(position), (*C.struct_miqt_string)(text_ms))
return newQAccessibleTextInsertEvent(ret)
}
// NewQAccessibleTextInsertEvent2 constructs a new QAccessibleTextInsertEvent object.
func NewQAccessibleTextInsertEvent2(iface *QAccessibleInterface, position int, text string) *QAccessibleTextInsertEvent {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
ret := C.QAccessibleTextInsertEvent_new2(iface.cPointer(), (C.int)(position), (*C.struct_miqt_string)(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))
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 newQAccessibleTextRemoveEvent(h *C.QAccessibleTextRemoveEvent) *QAccessibleTextRemoveEvent {
if h == nil {
return nil
}
return &QAccessibleTextRemoveEvent{h: h, QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent_U(unsafe.Pointer(h))}
}
func newQAccessibleTextRemoveEvent_U(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 := miqt_strdupg(text)
defer C.free(text_ms)
ret := C.QAccessibleTextRemoveEvent_new(obj.cPointer(), (C.int)(position), (*C.struct_miqt_string)(text_ms))
return newQAccessibleTextRemoveEvent(ret)
}
// NewQAccessibleTextRemoveEvent2 constructs a new QAccessibleTextRemoveEvent object.
func NewQAccessibleTextRemoveEvent2(iface *QAccessibleInterface, position int, text string) *QAccessibleTextRemoveEvent {
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
ret := C.QAccessibleTextRemoveEvent_new2(iface.cPointer(), (C.int)(position), (*C.struct_miqt_string)(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))
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 newQAccessibleTextUpdateEvent(h *C.QAccessibleTextUpdateEvent) *QAccessibleTextUpdateEvent {
if h == nil {
return nil
}
return &QAccessibleTextUpdateEvent{h: h, QAccessibleTextCursorEvent: newQAccessibleTextCursorEvent_U(unsafe.Pointer(h))}
}
func newQAccessibleTextUpdateEvent_U(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 := miqt_strdupg(oldText)
defer C.free(oldText_ms)
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
ret := C.QAccessibleTextUpdateEvent_new(obj.cPointer(), (C.int)(position), (*C.struct_miqt_string)(oldText_ms), (*C.struct_miqt_string)(text_ms))
return newQAccessibleTextUpdateEvent(ret)
}
// NewQAccessibleTextUpdateEvent2 constructs a new QAccessibleTextUpdateEvent object.
func NewQAccessibleTextUpdateEvent2(iface *QAccessibleInterface, position int, oldText string, text string) *QAccessibleTextUpdateEvent {
oldText_ms := miqt_strdupg(oldText)
defer C.free(oldText_ms)
text_ms := miqt_strdupg(text)
defer C.free(text_ms)
ret := C.QAccessibleTextUpdateEvent_new2(iface.cPointer(), (C.int)(position), (*C.struct_miqt_string)(oldText_ms), (*C.struct_miqt_string)(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))
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))
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 newQAccessibleValueChangeEvent(h *C.QAccessibleValueChangeEvent) *QAccessibleValueChangeEvent {
if h == nil {
return nil
}
return &QAccessibleValueChangeEvent{h: h, QAccessibleEvent: newQAccessibleEvent_U(unsafe.Pointer(h))}
}
func newQAccessibleValueChangeEvent_U(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 newQAccessibleTableModelChangeEvent(h *C.QAccessibleTableModelChangeEvent) *QAccessibleTableModelChangeEvent {
if h == nil {
return nil
}
return &QAccessibleTableModelChangeEvent{h: h, QAccessibleEvent: newQAccessibleEvent_U(unsafe.Pointer(h))}
}
func newQAccessibleTableModelChangeEvent_U(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)
})
}
type QAccessible__State struct {
h *C.QAccessible__State
}
func (this *QAccessible__State) cPointer() *C.QAccessible__State {
if this == nil {
return nil
}
return this.h
}
func newQAccessible__State(h *C.QAccessible__State) *QAccessible__State {
if h == nil {
return nil
}
return &QAccessible__State{h: h}
}
func newQAccessible__State_U(h unsafe.Pointer) *QAccessible__State {
return newQAccessible__State((*C.QAccessible__State)(h))
}
// NewQAccessible__State constructs a new QAccessible::State object.
func NewQAccessible__State() *QAccessible__State {
ret := C.QAccessible__State_new()
return newQAccessible__State(ret)
}
// NewQAccessible__State2 constructs a new QAccessible::State object.
func NewQAccessible__State2(param1 *QAccessible__State) *QAccessible__State {
ret := C.QAccessible__State_new2(param1.cPointer())
return newQAccessible__State(ret)
}
// Delete this object from C++ memory.
func (this *QAccessible__State) Delete() {
C.QAccessible__State_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 *QAccessible__State) GoGC() {
runtime.SetFinalizer(this, func(this *QAccessible__State) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QAccessible__ActivationObserver struct {
h *C.QAccessible__ActivationObserver
}
func (this *QAccessible__ActivationObserver) cPointer() *C.QAccessible__ActivationObserver {
if this == nil {
return nil
}
return this.h
}
func newQAccessible__ActivationObserver(h *C.QAccessible__ActivationObserver) *QAccessible__ActivationObserver {
if h == nil {
return nil
}
return &QAccessible__ActivationObserver{h: h}
}
func newQAccessible__ActivationObserver_U(h unsafe.Pointer) *QAccessible__ActivationObserver {
return newQAccessible__ActivationObserver((*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)
}
// 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)
})
}