package qt6 /* #include "gen_qtextobject.h" #include */ import "C" import ( "runtime" "unsafe" ) type QTextObject struct { h *C.QTextObject isSubclass bool *QObject } func (this *QTextObject) cPointer() *C.QTextObject { if this == nil { return nil } return this.h } func (this *QTextObject) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQTextObject constructs the type using only CGO pointers. func newQTextObject(h *C.QTextObject, h_QObject *C.QObject) *QTextObject { if h == nil { return nil } return &QTextObject{h: h, QObject: newQObject(h_QObject)} } // UnsafeNewQTextObject constructs the type using only unsafe pointers. func UnsafeNewQTextObject(h unsafe.Pointer, h_QObject unsafe.Pointer) *QTextObject { if h == nil { return nil } return &QTextObject{h: (*C.QTextObject)(h), QObject: UnsafeNewQObject(h_QObject)} } func (this *QTextObject) MetaObject() *QMetaObject { return UnsafeNewQMetaObject(unsafe.Pointer(C.QTextObject_MetaObject(this.h))) } func (this *QTextObject) Metacast(param1 string) unsafe.Pointer { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) return (unsafe.Pointer)(C.QTextObject_Metacast(this.h, param1_Cstring)) } func QTextObject_Tr(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QTextObject_Tr(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QTextObject) Format() *QTextFormat { _ret := C.QTextObject_Format(this.h) _goptr := newQTextFormat(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextObject) FormatIndex() int { return (int)(C.QTextObject_FormatIndex(this.h)) } func (this *QTextObject) Document() *QTextDocument { return UnsafeNewQTextDocument(unsafe.Pointer(C.QTextObject_Document(this.h)), nil) } func (this *QTextObject) ObjectIndex() int { return (int)(C.QTextObject_ObjectIndex(this.h)) } func QTextObject_Tr2(s string, c string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QTextObject_Tr2(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QTextObject_Tr3(s string, c string, n int) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QTextObject_Tr3(s_Cstring, c_Cstring, (C.int)(n)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } type QTextBlockGroup struct { h *C.QTextBlockGroup isSubclass bool *QTextObject } func (this *QTextBlockGroup) cPointer() *C.QTextBlockGroup { if this == nil { return nil } return this.h } func (this *QTextBlockGroup) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQTextBlockGroup constructs the type using only CGO pointers. func newQTextBlockGroup(h *C.QTextBlockGroup, h_QTextObject *C.QTextObject, h_QObject *C.QObject) *QTextBlockGroup { if h == nil { return nil } return &QTextBlockGroup{h: h, QTextObject: newQTextObject(h_QTextObject, h_QObject)} } // UnsafeNewQTextBlockGroup constructs the type using only unsafe pointers. func UnsafeNewQTextBlockGroup(h unsafe.Pointer, h_QTextObject unsafe.Pointer, h_QObject unsafe.Pointer) *QTextBlockGroup { if h == nil { return nil } return &QTextBlockGroup{h: (*C.QTextBlockGroup)(h), QTextObject: UnsafeNewQTextObject(h_QTextObject, h_QObject)} } func (this *QTextBlockGroup) MetaObject() *QMetaObject { return UnsafeNewQMetaObject(unsafe.Pointer(C.QTextBlockGroup_MetaObject(this.h))) } func (this *QTextBlockGroup) Metacast(param1 string) unsafe.Pointer { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) return (unsafe.Pointer)(C.QTextBlockGroup_Metacast(this.h, param1_Cstring)) } func QTextBlockGroup_Tr(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QTextBlockGroup_Tr(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QTextBlockGroup_Tr2(s string, c string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QTextBlockGroup_Tr2(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QTextBlockGroup_Tr3(s string, c string, n int) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QTextBlockGroup_Tr3(s_Cstring, c_Cstring, (C.int)(n)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } type QTextFrameLayoutData struct { h *C.QTextFrameLayoutData isSubclass bool } func (this *QTextFrameLayoutData) cPointer() *C.QTextFrameLayoutData { if this == nil { return nil } return this.h } func (this *QTextFrameLayoutData) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQTextFrameLayoutData constructs the type using only CGO pointers. func newQTextFrameLayoutData(h *C.QTextFrameLayoutData) *QTextFrameLayoutData { if h == nil { return nil } return &QTextFrameLayoutData{h: h} } // UnsafeNewQTextFrameLayoutData constructs the type using only unsafe pointers. func UnsafeNewQTextFrameLayoutData(h unsafe.Pointer) *QTextFrameLayoutData { if h == nil { return nil } return &QTextFrameLayoutData{h: (*C.QTextFrameLayoutData)(h)} } func (this *QTextFrameLayoutData) OperatorAssign(param1 *QTextFrameLayoutData) { C.QTextFrameLayoutData_OperatorAssign(this.h, param1.cPointer()) } // Delete this object from C++ memory. func (this *QTextFrameLayoutData) Delete() { C.QTextFrameLayoutData_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 *QTextFrameLayoutData) GoGC() { runtime.SetFinalizer(this, func(this *QTextFrameLayoutData) { this.Delete() runtime.KeepAlive(this.h) }) } type QTextFrame struct { h *C.QTextFrame isSubclass bool *QTextObject } func (this *QTextFrame) cPointer() *C.QTextFrame { if this == nil { return nil } return this.h } func (this *QTextFrame) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQTextFrame constructs the type using only CGO pointers. func newQTextFrame(h *C.QTextFrame, h_QTextObject *C.QTextObject, h_QObject *C.QObject) *QTextFrame { if h == nil { return nil } return &QTextFrame{h: h, QTextObject: newQTextObject(h_QTextObject, h_QObject)} } // UnsafeNewQTextFrame constructs the type using only unsafe pointers. func UnsafeNewQTextFrame(h unsafe.Pointer, h_QTextObject unsafe.Pointer, h_QObject unsafe.Pointer) *QTextFrame { if h == nil { return nil } return &QTextFrame{h: (*C.QTextFrame)(h), QTextObject: UnsafeNewQTextObject(h_QTextObject, h_QObject)} } // NewQTextFrame constructs a new QTextFrame object. func NewQTextFrame(doc *QTextDocument) *QTextFrame { var outptr_QTextFrame *C.QTextFrame = nil var outptr_QTextObject *C.QTextObject = nil var outptr_QObject *C.QObject = nil C.QTextFrame_new(doc.cPointer(), &outptr_QTextFrame, &outptr_QTextObject, &outptr_QObject) ret := newQTextFrame(outptr_QTextFrame, outptr_QTextObject, outptr_QObject) ret.isSubclass = true return ret } func (this *QTextFrame) MetaObject() *QMetaObject { return UnsafeNewQMetaObject(unsafe.Pointer(C.QTextFrame_MetaObject(this.h))) } func (this *QTextFrame) Metacast(param1 string) unsafe.Pointer { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) return (unsafe.Pointer)(C.QTextFrame_Metacast(this.h, param1_Cstring)) } func QTextFrame_Tr(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QTextFrame_Tr(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QTextFrame) SetFrameFormat(format *QTextFrameFormat) { C.QTextFrame_SetFrameFormat(this.h, format.cPointer()) } func (this *QTextFrame) FrameFormat() *QTextFrameFormat { _ret := C.QTextFrame_FrameFormat(this.h) _goptr := newQTextFrameFormat(_ret, nil) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextFrame) FirstCursorPosition() *QTextCursor { _ret := C.QTextFrame_FirstCursorPosition(this.h) _goptr := newQTextCursor(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextFrame) LastCursorPosition() *QTextCursor { _ret := C.QTextFrame_LastCursorPosition(this.h) _goptr := newQTextCursor(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextFrame) FirstPosition() int { return (int)(C.QTextFrame_FirstPosition(this.h)) } func (this *QTextFrame) LastPosition() int { return (int)(C.QTextFrame_LastPosition(this.h)) } func (this *QTextFrame) LayoutData() *QTextFrameLayoutData { return UnsafeNewQTextFrameLayoutData(unsafe.Pointer(C.QTextFrame_LayoutData(this.h))) } func (this *QTextFrame) SetLayoutData(data *QTextFrameLayoutData) { C.QTextFrame_SetLayoutData(this.h, data.cPointer()) } func (this *QTextFrame) ChildFrames() []*QTextFrame { var _ma C.struct_miqt_array = C.QTextFrame_ChildFrames(this.h) _ret := make([]*QTextFrame, int(_ma.len)) _outCast := (*[0xffff]*C.QTextFrame)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { _ret[i] = UnsafeNewQTextFrame(unsafe.Pointer(_outCast[i]), nil, nil) } return _ret } func (this *QTextFrame) ParentFrame() *QTextFrame { return UnsafeNewQTextFrame(unsafe.Pointer(C.QTextFrame_ParentFrame(this.h)), nil, nil) } func (this *QTextFrame) Begin() *QTextFrame__iterator { _ret := C.QTextFrame_Begin(this.h) _goptr := newQTextFrame__iterator(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextFrame) End() *QTextFrame__iterator { _ret := C.QTextFrame_End(this.h) _goptr := newQTextFrame__iterator(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func QTextFrame_Tr2(s string, c string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QTextFrame_Tr2(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QTextFrame_Tr3(s string, c string, n int) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QTextFrame_Tr3(s_Cstring, c_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 *QTextFrame) Delete() { C.QTextFrame_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 *QTextFrame) GoGC() { runtime.SetFinalizer(this, func(this *QTextFrame) { this.Delete() runtime.KeepAlive(this.h) }) } type QTextBlockUserData struct { h *C.QTextBlockUserData isSubclass bool } func (this *QTextBlockUserData) cPointer() *C.QTextBlockUserData { if this == nil { return nil } return this.h } func (this *QTextBlockUserData) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQTextBlockUserData constructs the type using only CGO pointers. func newQTextBlockUserData(h *C.QTextBlockUserData) *QTextBlockUserData { if h == nil { return nil } return &QTextBlockUserData{h: h} } // UnsafeNewQTextBlockUserData constructs the type using only unsafe pointers. func UnsafeNewQTextBlockUserData(h unsafe.Pointer) *QTextBlockUserData { if h == nil { return nil } return &QTextBlockUserData{h: (*C.QTextBlockUserData)(h)} } func (this *QTextBlockUserData) OperatorAssign(param1 *QTextBlockUserData) { C.QTextBlockUserData_OperatorAssign(this.h, param1.cPointer()) } // Delete this object from C++ memory. func (this *QTextBlockUserData) Delete() { C.QTextBlockUserData_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 *QTextBlockUserData) GoGC() { runtime.SetFinalizer(this, func(this *QTextBlockUserData) { this.Delete() runtime.KeepAlive(this.h) }) } type QTextBlock struct { h *C.QTextBlock isSubclass bool } func (this *QTextBlock) cPointer() *C.QTextBlock { if this == nil { return nil } return this.h } func (this *QTextBlock) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQTextBlock constructs the type using only CGO pointers. func newQTextBlock(h *C.QTextBlock) *QTextBlock { if h == nil { return nil } return &QTextBlock{h: h} } // UnsafeNewQTextBlock constructs the type using only unsafe pointers. func UnsafeNewQTextBlock(h unsafe.Pointer) *QTextBlock { if h == nil { return nil } return &QTextBlock{h: (*C.QTextBlock)(h)} } // NewQTextBlock constructs a new QTextBlock object. func NewQTextBlock() *QTextBlock { var outptr_QTextBlock *C.QTextBlock = nil C.QTextBlock_new(&outptr_QTextBlock) ret := newQTextBlock(outptr_QTextBlock) ret.isSubclass = true return ret } // NewQTextBlock2 constructs a new QTextBlock object. func NewQTextBlock2(o *QTextBlock) *QTextBlock { var outptr_QTextBlock *C.QTextBlock = nil C.QTextBlock_new2(o.cPointer(), &outptr_QTextBlock) ret := newQTextBlock(outptr_QTextBlock) ret.isSubclass = true return ret } func (this *QTextBlock) OperatorAssign(o *QTextBlock) { C.QTextBlock_OperatorAssign(this.h, o.cPointer()) } func (this *QTextBlock) IsValid() bool { return (bool)(C.QTextBlock_IsValid(this.h)) } func (this *QTextBlock) OperatorEqual(o *QTextBlock) bool { return (bool)(C.QTextBlock_OperatorEqual(this.h, o.cPointer())) } func (this *QTextBlock) OperatorNotEqual(o *QTextBlock) bool { return (bool)(C.QTextBlock_OperatorNotEqual(this.h, o.cPointer())) } func (this *QTextBlock) OperatorLesser(o *QTextBlock) bool { return (bool)(C.QTextBlock_OperatorLesser(this.h, o.cPointer())) } func (this *QTextBlock) Position() int { return (int)(C.QTextBlock_Position(this.h)) } func (this *QTextBlock) Length() int { return (int)(C.QTextBlock_Length(this.h)) } func (this *QTextBlock) Contains(position int) bool { return (bool)(C.QTextBlock_Contains(this.h, (C.int)(position))) } func (this *QTextBlock) Layout() *QTextLayout { return UnsafeNewQTextLayout(unsafe.Pointer(C.QTextBlock_Layout(this.h))) } func (this *QTextBlock) ClearLayout() { C.QTextBlock_ClearLayout(this.h) } func (this *QTextBlock) BlockFormat() *QTextBlockFormat { _ret := C.QTextBlock_BlockFormat(this.h) _goptr := newQTextBlockFormat(_ret, nil) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextBlock) BlockFormatIndex() int { return (int)(C.QTextBlock_BlockFormatIndex(this.h)) } func (this *QTextBlock) CharFormat() *QTextCharFormat { _ret := C.QTextBlock_CharFormat(this.h) _goptr := newQTextCharFormat(_ret, nil) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextBlock) CharFormatIndex() int { return (int)(C.QTextBlock_CharFormatIndex(this.h)) } func (this *QTextBlock) TextDirection() LayoutDirection { return (LayoutDirection)(C.QTextBlock_TextDirection(this.h)) } func (this *QTextBlock) Text() string { var _ms C.struct_miqt_string = C.QTextBlock_Text(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QTextBlock) TextFormats() []QTextLayout__FormatRange { var _ma C.struct_miqt_array = C.QTextBlock_TextFormats(this.h) _ret := make([]QTextLayout__FormatRange, int(_ma.len)) _outCast := (*[0xffff]*C.QTextLayout__FormatRange)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { _lv_ret := _outCast[i] _lv_goptr := newQTextLayout__FormatRange(_lv_ret) _lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer _ret[i] = *_lv_goptr } return _ret } func (this *QTextBlock) Document() *QTextDocument { return UnsafeNewQTextDocument(unsafe.Pointer(C.QTextBlock_Document(this.h)), nil) } func (this *QTextBlock) TextList() *QTextList { return UnsafeNewQTextList(unsafe.Pointer(C.QTextBlock_TextList(this.h)), nil, nil, nil) } func (this *QTextBlock) UserData() *QTextBlockUserData { return UnsafeNewQTextBlockUserData(unsafe.Pointer(C.QTextBlock_UserData(this.h))) } func (this *QTextBlock) SetUserData(data *QTextBlockUserData) { C.QTextBlock_SetUserData(this.h, data.cPointer()) } func (this *QTextBlock) UserState() int { return (int)(C.QTextBlock_UserState(this.h)) } func (this *QTextBlock) SetUserState(state int) { C.QTextBlock_SetUserState(this.h, (C.int)(state)) } func (this *QTextBlock) Revision() int { return (int)(C.QTextBlock_Revision(this.h)) } func (this *QTextBlock) SetRevision(rev int) { C.QTextBlock_SetRevision(this.h, (C.int)(rev)) } func (this *QTextBlock) IsVisible() bool { return (bool)(C.QTextBlock_IsVisible(this.h)) } func (this *QTextBlock) SetVisible(visible bool) { C.QTextBlock_SetVisible(this.h, (C.bool)(visible)) } func (this *QTextBlock) BlockNumber() int { return (int)(C.QTextBlock_BlockNumber(this.h)) } func (this *QTextBlock) FirstLineNumber() int { return (int)(C.QTextBlock_FirstLineNumber(this.h)) } func (this *QTextBlock) SetLineCount(count int) { C.QTextBlock_SetLineCount(this.h, (C.int)(count)) } func (this *QTextBlock) LineCount() int { return (int)(C.QTextBlock_LineCount(this.h)) } func (this *QTextBlock) Begin() *QTextBlock__iterator { _ret := C.QTextBlock_Begin(this.h) _goptr := newQTextBlock__iterator(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextBlock) End() *QTextBlock__iterator { _ret := C.QTextBlock_End(this.h) _goptr := newQTextBlock__iterator(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextBlock) Next() *QTextBlock { _ret := C.QTextBlock_Next(this.h) _goptr := newQTextBlock(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextBlock) Previous() *QTextBlock { _ret := C.QTextBlock_Previous(this.h) _goptr := newQTextBlock(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextBlock) FragmentIndex() int { return (int)(C.QTextBlock_FragmentIndex(this.h)) } // Delete this object from C++ memory. func (this *QTextBlock) Delete() { C.QTextBlock_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 *QTextBlock) GoGC() { runtime.SetFinalizer(this, func(this *QTextBlock) { this.Delete() runtime.KeepAlive(this.h) }) } type QTextFragment struct { h *C.QTextFragment isSubclass bool } func (this *QTextFragment) cPointer() *C.QTextFragment { if this == nil { return nil } return this.h } func (this *QTextFragment) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQTextFragment constructs the type using only CGO pointers. func newQTextFragment(h *C.QTextFragment) *QTextFragment { if h == nil { return nil } return &QTextFragment{h: h} } // UnsafeNewQTextFragment constructs the type using only unsafe pointers. func UnsafeNewQTextFragment(h unsafe.Pointer) *QTextFragment { if h == nil { return nil } return &QTextFragment{h: (*C.QTextFragment)(h)} } // NewQTextFragment constructs a new QTextFragment object. func NewQTextFragment() *QTextFragment { var outptr_QTextFragment *C.QTextFragment = nil C.QTextFragment_new(&outptr_QTextFragment) ret := newQTextFragment(outptr_QTextFragment) ret.isSubclass = true return ret } // NewQTextFragment2 constructs a new QTextFragment object. func NewQTextFragment2(o *QTextFragment) *QTextFragment { var outptr_QTextFragment *C.QTextFragment = nil C.QTextFragment_new2(o.cPointer(), &outptr_QTextFragment) ret := newQTextFragment(outptr_QTextFragment) ret.isSubclass = true return ret } func (this *QTextFragment) OperatorAssign(o *QTextFragment) { C.QTextFragment_OperatorAssign(this.h, o.cPointer()) } func (this *QTextFragment) IsValid() bool { return (bool)(C.QTextFragment_IsValid(this.h)) } func (this *QTextFragment) OperatorEqual(o *QTextFragment) bool { return (bool)(C.QTextFragment_OperatorEqual(this.h, o.cPointer())) } func (this *QTextFragment) OperatorNotEqual(o *QTextFragment) bool { return (bool)(C.QTextFragment_OperatorNotEqual(this.h, o.cPointer())) } func (this *QTextFragment) OperatorLesser(o *QTextFragment) bool { return (bool)(C.QTextFragment_OperatorLesser(this.h, o.cPointer())) } func (this *QTextFragment) Position() int { return (int)(C.QTextFragment_Position(this.h)) } func (this *QTextFragment) Length() int { return (int)(C.QTextFragment_Length(this.h)) } func (this *QTextFragment) Contains(position int) bool { return (bool)(C.QTextFragment_Contains(this.h, (C.int)(position))) } func (this *QTextFragment) CharFormat() *QTextCharFormat { _ret := C.QTextFragment_CharFormat(this.h) _goptr := newQTextCharFormat(_ret, nil) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextFragment) CharFormatIndex() int { return (int)(C.QTextFragment_CharFormatIndex(this.h)) } func (this *QTextFragment) Text() string { var _ms C.struct_miqt_string = C.QTextFragment_Text(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QTextFragment) GlyphRuns() []QGlyphRun { var _ma C.struct_miqt_array = C.QTextFragment_GlyphRuns(this.h) _ret := make([]QGlyphRun, int(_ma.len)) _outCast := (*[0xffff]*C.QGlyphRun)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { _lv_ret := _outCast[i] _lv_goptr := newQGlyphRun(_lv_ret) _lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer _ret[i] = *_lv_goptr } return _ret } func (this *QTextFragment) GlyphRuns1(from int) []QGlyphRun { var _ma C.struct_miqt_array = C.QTextFragment_GlyphRuns1(this.h, (C.int)(from)) _ret := make([]QGlyphRun, int(_ma.len)) _outCast := (*[0xffff]*C.QGlyphRun)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { _lv_ret := _outCast[i] _lv_goptr := newQGlyphRun(_lv_ret) _lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer _ret[i] = *_lv_goptr } return _ret } func (this *QTextFragment) GlyphRuns2(from int, length int) []QGlyphRun { var _ma C.struct_miqt_array = C.QTextFragment_GlyphRuns2(this.h, (C.int)(from), (C.int)(length)) _ret := make([]QGlyphRun, int(_ma.len)) _outCast := (*[0xffff]*C.QGlyphRun)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { _lv_ret := _outCast[i] _lv_goptr := newQGlyphRun(_lv_ret) _lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer _ret[i] = *_lv_goptr } return _ret } // Delete this object from C++ memory. func (this *QTextFragment) Delete() { C.QTextFragment_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 *QTextFragment) GoGC() { runtime.SetFinalizer(this, func(this *QTextFragment) { this.Delete() runtime.KeepAlive(this.h) }) } type QTextFrame__iterator struct { h *C.QTextFrame__iterator isSubclass bool } func (this *QTextFrame__iterator) cPointer() *C.QTextFrame__iterator { if this == nil { return nil } return this.h } func (this *QTextFrame__iterator) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQTextFrame__iterator constructs the type using only CGO pointers. func newQTextFrame__iterator(h *C.QTextFrame__iterator) *QTextFrame__iterator { if h == nil { return nil } return &QTextFrame__iterator{h: h} } // UnsafeNewQTextFrame__iterator constructs the type using only unsafe pointers. func UnsafeNewQTextFrame__iterator(h unsafe.Pointer) *QTextFrame__iterator { if h == nil { return nil } return &QTextFrame__iterator{h: (*C.QTextFrame__iterator)(h)} } // NewQTextFrame__iterator constructs a new QTextFrame::iterator object. func NewQTextFrame__iterator() *QTextFrame__iterator { var outptr_QTextFrame__iterator *C.QTextFrame__iterator = nil C.QTextFrame__iterator_new(&outptr_QTextFrame__iterator) ret := newQTextFrame__iterator(outptr_QTextFrame__iterator) ret.isSubclass = true return ret } // NewQTextFrame__iterator2 constructs a new QTextFrame::iterator object. func NewQTextFrame__iterator2(param1 *QTextFrame__iterator) *QTextFrame__iterator { var outptr_QTextFrame__iterator *C.QTextFrame__iterator = nil C.QTextFrame__iterator_new2(param1.cPointer(), &outptr_QTextFrame__iterator) ret := newQTextFrame__iterator(outptr_QTextFrame__iterator) ret.isSubclass = true return ret } func (this *QTextFrame__iterator) ParentFrame() *QTextFrame { return UnsafeNewQTextFrame(unsafe.Pointer(C.QTextFrame__iterator_ParentFrame(this.h)), nil, nil) } func (this *QTextFrame__iterator) CurrentFrame() *QTextFrame { return UnsafeNewQTextFrame(unsafe.Pointer(C.QTextFrame__iterator_CurrentFrame(this.h)), nil, nil) } func (this *QTextFrame__iterator) CurrentBlock() *QTextBlock { _ret := C.QTextFrame__iterator_CurrentBlock(this.h) _goptr := newQTextBlock(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextFrame__iterator) AtEnd() bool { return (bool)(C.QTextFrame__iterator_AtEnd(this.h)) } func (this *QTextFrame__iterator) OperatorEqual(o *QTextFrame__iterator) bool { return (bool)(C.QTextFrame__iterator_OperatorEqual(this.h, o.cPointer())) } func (this *QTextFrame__iterator) OperatorNotEqual(o *QTextFrame__iterator) bool { return (bool)(C.QTextFrame__iterator_OperatorNotEqual(this.h, o.cPointer())) } func (this *QTextFrame__iterator) OperatorPlusPlus() *QTextFrame__iterator { return UnsafeNewQTextFrame__iterator(unsafe.Pointer(C.QTextFrame__iterator_OperatorPlusPlus(this.h))) } func (this *QTextFrame__iterator) OperatorPlusPlusWithInt(param1 int) *QTextFrame__iterator { _ret := C.QTextFrame__iterator_OperatorPlusPlusWithInt(this.h, (C.int)(param1)) _goptr := newQTextFrame__iterator(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextFrame__iterator) OperatorMinusMinus() *QTextFrame__iterator { return UnsafeNewQTextFrame__iterator(unsafe.Pointer(C.QTextFrame__iterator_OperatorMinusMinus(this.h))) } func (this *QTextFrame__iterator) OperatorMinusMinusWithInt(param1 int) *QTextFrame__iterator { _ret := C.QTextFrame__iterator_OperatorMinusMinusWithInt(this.h, (C.int)(param1)) _goptr := newQTextFrame__iterator(_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 *QTextFrame__iterator) Delete() { C.QTextFrame__iterator_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 *QTextFrame__iterator) GoGC() { runtime.SetFinalizer(this, func(this *QTextFrame__iterator) { this.Delete() runtime.KeepAlive(this.h) }) } type QTextBlock__iterator struct { h *C.QTextBlock__iterator isSubclass bool } func (this *QTextBlock__iterator) cPointer() *C.QTextBlock__iterator { if this == nil { return nil } return this.h } func (this *QTextBlock__iterator) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQTextBlock__iterator constructs the type using only CGO pointers. func newQTextBlock__iterator(h *C.QTextBlock__iterator) *QTextBlock__iterator { if h == nil { return nil } return &QTextBlock__iterator{h: h} } // UnsafeNewQTextBlock__iterator constructs the type using only unsafe pointers. func UnsafeNewQTextBlock__iterator(h unsafe.Pointer) *QTextBlock__iterator { if h == nil { return nil } return &QTextBlock__iterator{h: (*C.QTextBlock__iterator)(h)} } // NewQTextBlock__iterator constructs a new QTextBlock::iterator object. func NewQTextBlock__iterator() *QTextBlock__iterator { var outptr_QTextBlock__iterator *C.QTextBlock__iterator = nil C.QTextBlock__iterator_new(&outptr_QTextBlock__iterator) ret := newQTextBlock__iterator(outptr_QTextBlock__iterator) ret.isSubclass = true return ret } // NewQTextBlock__iterator2 constructs a new QTextBlock::iterator object. func NewQTextBlock__iterator2(param1 *QTextBlock__iterator) *QTextBlock__iterator { var outptr_QTextBlock__iterator *C.QTextBlock__iterator = nil C.QTextBlock__iterator_new2(param1.cPointer(), &outptr_QTextBlock__iterator) ret := newQTextBlock__iterator(outptr_QTextBlock__iterator) ret.isSubclass = true return ret } func (this *QTextBlock__iterator) Fragment() *QTextFragment { _ret := C.QTextBlock__iterator_Fragment(this.h) _goptr := newQTextFragment(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextBlock__iterator) AtEnd() bool { return (bool)(C.QTextBlock__iterator_AtEnd(this.h)) } func (this *QTextBlock__iterator) OperatorEqual(o *QTextBlock__iterator) bool { return (bool)(C.QTextBlock__iterator_OperatorEqual(this.h, o.cPointer())) } func (this *QTextBlock__iterator) OperatorNotEqual(o *QTextBlock__iterator) bool { return (bool)(C.QTextBlock__iterator_OperatorNotEqual(this.h, o.cPointer())) } func (this *QTextBlock__iterator) OperatorPlusPlus() *QTextBlock__iterator { return UnsafeNewQTextBlock__iterator(unsafe.Pointer(C.QTextBlock__iterator_OperatorPlusPlus(this.h))) } func (this *QTextBlock__iterator) OperatorPlusPlusWithInt(param1 int) *QTextBlock__iterator { _ret := C.QTextBlock__iterator_OperatorPlusPlusWithInt(this.h, (C.int)(param1)) _goptr := newQTextBlock__iterator(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTextBlock__iterator) OperatorMinusMinus() *QTextBlock__iterator { return UnsafeNewQTextBlock__iterator(unsafe.Pointer(C.QTextBlock__iterator_OperatorMinusMinus(this.h))) } func (this *QTextBlock__iterator) OperatorMinusMinusWithInt(param1 int) *QTextBlock__iterator { _ret := C.QTextBlock__iterator_OperatorMinusMinusWithInt(this.h, (C.int)(param1)) _goptr := newQTextBlock__iterator(_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 *QTextBlock__iterator) Delete() { C.QTextBlock__iterator_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 *QTextBlock__iterator) GoGC() { runtime.SetFinalizer(this, func(this *QTextBlock__iterator) { this.Delete() runtime.KeepAlive(this.h) }) }