miqt/qt/gen_qtextobject.go

1039 lines
29 KiB
Go

package qt
/*
#include "gen_qtextobject.h"
#include <stdlib.h>
*/
import "C"
import (
"runtime"
"unsafe"
)
type QTextObject struct {
h *C.QTextObject
*QObject
}
func (this *QTextObject) cPointer() *C.QTextObject {
if this == nil {
return nil
}
return this.h
}
func newQTextObject(h *C.QTextObject) *QTextObject {
if h == nil {
return nil
}
return &QTextObject{h: h, QObject: newQObject_U(unsafe.Pointer(h))}
}
func newQTextObject_U(h unsafe.Pointer) *QTextObject {
return newQTextObject((*C.QTextObject)(h))
}
func (this *QTextObject) MetaObject() *QMetaObject {
_ret := C.QTextObject_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
}
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))
return _ret
}
func QTextObject_TrUtf8(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms *C.struct_miqt_string = C.QTextObject_TrUtf8(s_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
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 {
_ret := C.QTextObject_FormatIndex(this.h)
return (int)(_ret)
}
func (this *QTextObject) Document() *QTextDocument {
_ret := C.QTextObject_Document(this.h)
return newQTextDocument_U(unsafe.Pointer(_ret))
}
func (this *QTextObject) ObjectIndex() int {
_ret := C.QTextObject_ObjectIndex(this.h)
return (int)(_ret)
}
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))
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))
return _ret
}
func QTextObject_TrUtf82(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_TrUtf82(s_Cstring, c_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}
func QTextObject_TrUtf83(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_TrUtf83(s_Cstring, c_Cstring, (C.int)(n))
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}
type QTextBlockGroup struct {
h *C.QTextBlockGroup
*QTextObject
}
func (this *QTextBlockGroup) cPointer() *C.QTextBlockGroup {
if this == nil {
return nil
}
return this.h
}
func newQTextBlockGroup(h *C.QTextBlockGroup) *QTextBlockGroup {
if h == nil {
return nil
}
return &QTextBlockGroup{h: h, QTextObject: newQTextObject_U(unsafe.Pointer(h))}
}
func newQTextBlockGroup_U(h unsafe.Pointer) *QTextBlockGroup {
return newQTextBlockGroup((*C.QTextBlockGroup)(h))
}
func (this *QTextBlockGroup) MetaObject() *QMetaObject {
_ret := C.QTextBlockGroup_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
}
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))
return _ret
}
func QTextBlockGroup_TrUtf8(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms *C.struct_miqt_string = C.QTextBlockGroup_TrUtf8(s_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
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))
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))
return _ret
}
func QTextBlockGroup_TrUtf82(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_TrUtf82(s_Cstring, c_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}
func QTextBlockGroup_TrUtf83(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_TrUtf83(s_Cstring, c_Cstring, (C.int)(n))
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}
type QTextFrameLayoutData struct {
h *C.QTextFrameLayoutData
}
func (this *QTextFrameLayoutData) cPointer() *C.QTextFrameLayoutData {
if this == nil {
return nil
}
return this.h
}
func newQTextFrameLayoutData(h *C.QTextFrameLayoutData) *QTextFrameLayoutData {
if h == nil {
return nil
}
return &QTextFrameLayoutData{h: h}
}
func newQTextFrameLayoutData_U(h unsafe.Pointer) *QTextFrameLayoutData {
return newQTextFrameLayoutData((*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)
}
// 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
*QTextObject
}
func (this *QTextFrame) cPointer() *C.QTextFrame {
if this == nil {
return nil
}
return this.h
}
func newQTextFrame(h *C.QTextFrame) *QTextFrame {
if h == nil {
return nil
}
return &QTextFrame{h: h, QTextObject: newQTextObject_U(unsafe.Pointer(h))}
}
func newQTextFrame_U(h unsafe.Pointer) *QTextFrame {
return newQTextFrame((*C.QTextFrame)(h))
}
// NewQTextFrame constructs a new QTextFrame object.
func NewQTextFrame(doc *QTextDocument) *QTextFrame {
ret := C.QTextFrame_new(doc.cPointer())
return newQTextFrame(ret)
}
func (this *QTextFrame) MetaObject() *QMetaObject {
_ret := C.QTextFrame_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
}
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))
return _ret
}
func QTextFrame_TrUtf8(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms *C.struct_miqt_string = C.QTextFrame_TrUtf8(s_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
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)
_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 {
_ret := C.QTextFrame_FirstPosition(this.h)
return (int)(_ret)
}
func (this *QTextFrame) LastPosition() int {
_ret := C.QTextFrame_LastPosition(this.h)
return (int)(_ret)
}
func (this *QTextFrame) LayoutData() *QTextFrameLayoutData {
_ret := C.QTextFrame_LayoutData(this.h)
return newQTextFrameLayoutData_U(unsafe.Pointer(_ret))
}
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)) // mrs jackson
for i := 0; i < int(_ma.len); i++ {
_ret[i] = newQTextFrame(_outCast[i])
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QTextFrame) ParentFrame() *QTextFrame {
_ret := C.QTextFrame_ParentFrame(this.h)
return newQTextFrame_U(unsafe.Pointer(_ret))
}
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))
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))
return _ret
}
func QTextFrame_TrUtf82(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_TrUtf82(s_Cstring, c_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}
func QTextFrame_TrUtf83(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_TrUtf83(s_Cstring, c_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 *QTextFrame) Delete() {
C.QTextFrame_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 *QTextFrame) GoGC() {
runtime.SetFinalizer(this, func(this *QTextFrame) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QTextBlockUserData struct {
h *C.QTextBlockUserData
}
func (this *QTextBlockUserData) cPointer() *C.QTextBlockUserData {
if this == nil {
return nil
}
return this.h
}
func newQTextBlockUserData(h *C.QTextBlockUserData) *QTextBlockUserData {
if h == nil {
return nil
}
return &QTextBlockUserData{h: h}
}
func newQTextBlockUserData_U(h unsafe.Pointer) *QTextBlockUserData {
return newQTextBlockUserData((*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)
}
// 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
}
func (this *QTextBlock) cPointer() *C.QTextBlock {
if this == nil {
return nil
}
return this.h
}
func newQTextBlock(h *C.QTextBlock) *QTextBlock {
if h == nil {
return nil
}
return &QTextBlock{h: h}
}
func newQTextBlock_U(h unsafe.Pointer) *QTextBlock {
return newQTextBlock((*C.QTextBlock)(h))
}
// NewQTextBlock constructs a new QTextBlock object.
func NewQTextBlock() *QTextBlock {
ret := C.QTextBlock_new()
return newQTextBlock(ret)
}
// NewQTextBlock2 constructs a new QTextBlock object.
func NewQTextBlock2(o *QTextBlock) *QTextBlock {
ret := C.QTextBlock_new2(o.cPointer())
return newQTextBlock(ret)
}
func (this *QTextBlock) OperatorAssign(o *QTextBlock) {
C.QTextBlock_OperatorAssign(this.h, o.cPointer())
}
func (this *QTextBlock) IsValid() bool {
_ret := C.QTextBlock_IsValid(this.h)
return (bool)(_ret)
}
func (this *QTextBlock) OperatorEqual(o *QTextBlock) bool {
_ret := C.QTextBlock_OperatorEqual(this.h, o.cPointer())
return (bool)(_ret)
}
func (this *QTextBlock) OperatorNotEqual(o *QTextBlock) bool {
_ret := C.QTextBlock_OperatorNotEqual(this.h, o.cPointer())
return (bool)(_ret)
}
func (this *QTextBlock) OperatorLesser(o *QTextBlock) bool {
_ret := C.QTextBlock_OperatorLesser(this.h, o.cPointer())
return (bool)(_ret)
}
func (this *QTextBlock) Position() int {
_ret := C.QTextBlock_Position(this.h)
return (int)(_ret)
}
func (this *QTextBlock) Length() int {
_ret := C.QTextBlock_Length(this.h)
return (int)(_ret)
}
func (this *QTextBlock) Contains(position int) bool {
_ret := C.QTextBlock_Contains(this.h, (C.int)(position))
return (bool)(_ret)
}
func (this *QTextBlock) Layout() *QTextLayout {
_ret := C.QTextBlock_Layout(this.h)
return newQTextLayout_U(unsafe.Pointer(_ret))
}
func (this *QTextBlock) ClearLayout() {
C.QTextBlock_ClearLayout(this.h)
}
func (this *QTextBlock) BlockFormat() *QTextBlockFormat {
_ret := C.QTextBlock_BlockFormat(this.h)
_goptr := newQTextBlockFormat(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QTextBlock) BlockFormatIndex() int {
_ret := C.QTextBlock_BlockFormatIndex(this.h)
return (int)(_ret)
}
func (this *QTextBlock) CharFormat() *QTextCharFormat {
_ret := C.QTextBlock_CharFormat(this.h)
_goptr := newQTextCharFormat(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QTextBlock) CharFormatIndex() int {
_ret := C.QTextBlock_CharFormatIndex(this.h)
return (int)(_ret)
}
func (this *QTextBlock) TextDirection() LayoutDirection {
_ret := C.QTextBlock_TextDirection(this.h)
return (LayoutDirection)(_ret)
}
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))
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)) // mrs jackson
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQTextLayout__FormatRange(_outCast[i])
}
C.free(unsafe.Pointer(_ma))
return _ret
}
func (this *QTextBlock) Document() *QTextDocument {
_ret := C.QTextBlock_Document(this.h)
return newQTextDocument_U(unsafe.Pointer(_ret))
}
func (this *QTextBlock) TextList() *QTextList {
_ret := C.QTextBlock_TextList(this.h)
return newQTextList_U(unsafe.Pointer(_ret))
}
func (this *QTextBlock) UserData() *QTextBlockUserData {
_ret := C.QTextBlock_UserData(this.h)
return newQTextBlockUserData_U(unsafe.Pointer(_ret))
}
func (this *QTextBlock) SetUserData(data *QTextBlockUserData) {
C.QTextBlock_SetUserData(this.h, data.cPointer())
}
func (this *QTextBlock) UserState() int {
_ret := C.QTextBlock_UserState(this.h)
return (int)(_ret)
}
func (this *QTextBlock) SetUserState(state int) {
C.QTextBlock_SetUserState(this.h, (C.int)(state))
}
func (this *QTextBlock) Revision() int {
_ret := C.QTextBlock_Revision(this.h)
return (int)(_ret)
}
func (this *QTextBlock) SetRevision(rev int) {
C.QTextBlock_SetRevision(this.h, (C.int)(rev))
}
func (this *QTextBlock) IsVisible() bool {
_ret := C.QTextBlock_IsVisible(this.h)
return (bool)(_ret)
}
func (this *QTextBlock) SetVisible(visible bool) {
C.QTextBlock_SetVisible(this.h, (C.bool)(visible))
}
func (this *QTextBlock) BlockNumber() int {
_ret := C.QTextBlock_BlockNumber(this.h)
return (int)(_ret)
}
func (this *QTextBlock) FirstLineNumber() int {
_ret := C.QTextBlock_FirstLineNumber(this.h)
return (int)(_ret)
}
func (this *QTextBlock) SetLineCount(count int) {
C.QTextBlock_SetLineCount(this.h, (C.int)(count))
}
func (this *QTextBlock) LineCount() int {
_ret := C.QTextBlock_LineCount(this.h)
return (int)(_ret)
}
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 {
_ret := C.QTextBlock_FragmentIndex(this.h)
return (int)(_ret)
}
// Delete this object from C++ memory.
func (this *QTextBlock) Delete() {
C.QTextBlock_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 *QTextBlock) GoGC() {
runtime.SetFinalizer(this, func(this *QTextBlock) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QTextFragment struct {
h *C.QTextFragment
}
func (this *QTextFragment) cPointer() *C.QTextFragment {
if this == nil {
return nil
}
return this.h
}
func newQTextFragment(h *C.QTextFragment) *QTextFragment {
if h == nil {
return nil
}
return &QTextFragment{h: h}
}
func newQTextFragment_U(h unsafe.Pointer) *QTextFragment {
return newQTextFragment((*C.QTextFragment)(h))
}
// NewQTextFragment constructs a new QTextFragment object.
func NewQTextFragment() *QTextFragment {
ret := C.QTextFragment_new()
return newQTextFragment(ret)
}
// NewQTextFragment2 constructs a new QTextFragment object.
func NewQTextFragment2(o *QTextFragment) *QTextFragment {
ret := C.QTextFragment_new2(o.cPointer())
return newQTextFragment(ret)
}
func (this *QTextFragment) OperatorAssign(o *QTextFragment) {
C.QTextFragment_OperatorAssign(this.h, o.cPointer())
}
func (this *QTextFragment) IsValid() bool {
_ret := C.QTextFragment_IsValid(this.h)
return (bool)(_ret)
}
func (this *QTextFragment) OperatorEqual(o *QTextFragment) bool {
_ret := C.QTextFragment_OperatorEqual(this.h, o.cPointer())
return (bool)(_ret)
}
func (this *QTextFragment) OperatorNotEqual(o *QTextFragment) bool {
_ret := C.QTextFragment_OperatorNotEqual(this.h, o.cPointer())
return (bool)(_ret)
}
func (this *QTextFragment) OperatorLesser(o *QTextFragment) bool {
_ret := C.QTextFragment_OperatorLesser(this.h, o.cPointer())
return (bool)(_ret)
}
func (this *QTextFragment) Position() int {
_ret := C.QTextFragment_Position(this.h)
return (int)(_ret)
}
func (this *QTextFragment) Length() int {
_ret := C.QTextFragment_Length(this.h)
return (int)(_ret)
}
func (this *QTextFragment) Contains(position int) bool {
_ret := C.QTextFragment_Contains(this.h, (C.int)(position))
return (bool)(_ret)
}
func (this *QTextFragment) CharFormat() *QTextCharFormat {
_ret := C.QTextFragment_CharFormat(this.h)
_goptr := newQTextCharFormat(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QTextFragment) CharFormatIndex() int {
_ret := C.QTextFragment_CharFormatIndex(this.h)
return (int)(_ret)
}
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))
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)) // mrs jackson
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQGlyphRun(_outCast[i])
}
C.free(unsafe.Pointer(_ma))
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)) // mrs jackson
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQGlyphRun(_outCast[i])
}
C.free(unsafe.Pointer(_ma))
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)) // mrs jackson
for i := 0; i < int(_ma.len); i++ {
_ret[i] = *newQGlyphRun(_outCast[i])
}
C.free(unsafe.Pointer(_ma))
return _ret
}
// Delete this object from C++ memory.
func (this *QTextFragment) Delete() {
C.QTextFragment_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 *QTextFragment) GoGC() {
runtime.SetFinalizer(this, func(this *QTextFragment) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QTextFrame__iterator struct {
h *C.QTextFrame__iterator
}
func (this *QTextFrame__iterator) cPointer() *C.QTextFrame__iterator {
if this == nil {
return nil
}
return this.h
}
func newQTextFrame__iterator(h *C.QTextFrame__iterator) *QTextFrame__iterator {
if h == nil {
return nil
}
return &QTextFrame__iterator{h: h}
}
func newQTextFrame__iterator_U(h unsafe.Pointer) *QTextFrame__iterator {
return newQTextFrame__iterator((*C.QTextFrame__iterator)(h))
}
// NewQTextFrame__iterator constructs a new QTextFrame::iterator object.
func NewQTextFrame__iterator() *QTextFrame__iterator {
ret := C.QTextFrame__iterator_new()
return newQTextFrame__iterator(ret)
}
// NewQTextFrame__iterator2 constructs a new QTextFrame::iterator object.
func NewQTextFrame__iterator2(o *QTextFrame__iterator) *QTextFrame__iterator {
ret := C.QTextFrame__iterator_new2(o.cPointer())
return newQTextFrame__iterator(ret)
}
func (this *QTextFrame__iterator) ParentFrame() *QTextFrame {
_ret := C.QTextFrame__iterator_ParentFrame(this.h)
return newQTextFrame_U(unsafe.Pointer(_ret))
}
func (this *QTextFrame__iterator) CurrentFrame() *QTextFrame {
_ret := C.QTextFrame__iterator_CurrentFrame(this.h)
return newQTextFrame_U(unsafe.Pointer(_ret))
}
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 {
_ret := C.QTextFrame__iterator_AtEnd(this.h)
return (bool)(_ret)
}
func (this *QTextFrame__iterator) OperatorEqual(o *QTextFrame__iterator) bool {
_ret := C.QTextFrame__iterator_OperatorEqual(this.h, o.cPointer())
return (bool)(_ret)
}
func (this *QTextFrame__iterator) OperatorNotEqual(o *QTextFrame__iterator) bool {
_ret := C.QTextFrame__iterator_OperatorNotEqual(this.h, o.cPointer())
return (bool)(_ret)
}
func (this *QTextFrame__iterator) OperatorPlusPlus(param1 int) *QTextFrame__iterator {
_ret := C.QTextFrame__iterator_OperatorPlusPlus(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(param1 int) *QTextFrame__iterator {
_ret := C.QTextFrame__iterator_OperatorMinusMinus(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)
}
// 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
}
func (this *QTextBlock__iterator) cPointer() *C.QTextBlock__iterator {
if this == nil {
return nil
}
return this.h
}
func newQTextBlock__iterator(h *C.QTextBlock__iterator) *QTextBlock__iterator {
if h == nil {
return nil
}
return &QTextBlock__iterator{h: h}
}
func newQTextBlock__iterator_U(h unsafe.Pointer) *QTextBlock__iterator {
return newQTextBlock__iterator((*C.QTextBlock__iterator)(h))
}
// NewQTextBlock__iterator constructs a new QTextBlock::iterator object.
func NewQTextBlock__iterator() *QTextBlock__iterator {
ret := C.QTextBlock__iterator_new()
return newQTextBlock__iterator(ret)
}
// NewQTextBlock__iterator2 constructs a new QTextBlock::iterator object.
func NewQTextBlock__iterator2(o *QTextBlock__iterator) *QTextBlock__iterator {
ret := C.QTextBlock__iterator_new2(o.cPointer())
return newQTextBlock__iterator(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 {
_ret := C.QTextBlock__iterator_AtEnd(this.h)
return (bool)(_ret)
}
func (this *QTextBlock__iterator) OperatorEqual(o *QTextBlock__iterator) bool {
_ret := C.QTextBlock__iterator_OperatorEqual(this.h, o.cPointer())
return (bool)(_ret)
}
func (this *QTextBlock__iterator) OperatorNotEqual(o *QTextBlock__iterator) bool {
_ret := C.QTextBlock__iterator_OperatorNotEqual(this.h, o.cPointer())
return (bool)(_ret)
}
func (this *QTextBlock__iterator) OperatorPlusPlus(param1 int) *QTextBlock__iterator {
_ret := C.QTextBlock__iterator_OperatorPlusPlus(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(param1 int) *QTextBlock__iterator {
_ret := C.QTextBlock__iterator_OperatorMinusMinus(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)
}
// 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)
})
}