package qscintilla6 /* #include "gen_qscilexerdiff.h" #include */ import "C" import ( "github.com/mappu/miqt/qt6" "runtime" "runtime/cgo" "unsafe" ) type QsciLexerDiff__ int const ( QsciLexerDiff__Default QsciLexerDiff__ = 0 QsciLexerDiff__Comment QsciLexerDiff__ = 1 QsciLexerDiff__Command QsciLexerDiff__ = 2 QsciLexerDiff__Header QsciLexerDiff__ = 3 QsciLexerDiff__Position QsciLexerDiff__ = 4 QsciLexerDiff__LineRemoved QsciLexerDiff__ = 5 QsciLexerDiff__LineAdded QsciLexerDiff__ = 6 QsciLexerDiff__LineChanged QsciLexerDiff__ = 7 QsciLexerDiff__AddingPatchAdded QsciLexerDiff__ = 8 QsciLexerDiff__RemovingPatchAdded QsciLexerDiff__ = 9 QsciLexerDiff__AddingPatchRemoved QsciLexerDiff__ = 10 QsciLexerDiff__RemovingPatchRemoved QsciLexerDiff__ = 11 ) type QsciLexerDiff struct { h *C.QsciLexerDiff isSubclass bool *QsciLexer } func (this *QsciLexerDiff) cPointer() *C.QsciLexerDiff { if this == nil { return nil } return this.h } func (this *QsciLexerDiff) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQsciLexerDiff constructs the type using only CGO pointers. func newQsciLexerDiff(h *C.QsciLexerDiff, h_QsciLexer *C.QsciLexer, h_QObject *C.QObject) *QsciLexerDiff { if h == nil { return nil } return &QsciLexerDiff{h: h, QsciLexer: newQsciLexer(h_QsciLexer, h_QObject)} } // UnsafeNewQsciLexerDiff constructs the type using only unsafe pointers. func UnsafeNewQsciLexerDiff(h unsafe.Pointer, h_QsciLexer unsafe.Pointer, h_QObject unsafe.Pointer) *QsciLexerDiff { if h == nil { return nil } return &QsciLexerDiff{h: (*C.QsciLexerDiff)(h), QsciLexer: UnsafeNewQsciLexer(h_QsciLexer, h_QObject)} } // NewQsciLexerDiff constructs a new QsciLexerDiff object. func NewQsciLexerDiff() *QsciLexerDiff { var outptr_QsciLexerDiff *C.QsciLexerDiff = nil var outptr_QsciLexer *C.QsciLexer = nil var outptr_QObject *C.QObject = nil C.QsciLexerDiff_new(&outptr_QsciLexerDiff, &outptr_QsciLexer, &outptr_QObject) ret := newQsciLexerDiff(outptr_QsciLexerDiff, outptr_QsciLexer, outptr_QObject) ret.isSubclass = true return ret } // NewQsciLexerDiff2 constructs a new QsciLexerDiff object. func NewQsciLexerDiff2(parent *qt6.QObject) *QsciLexerDiff { var outptr_QsciLexerDiff *C.QsciLexerDiff = nil var outptr_QsciLexer *C.QsciLexer = nil var outptr_QObject *C.QObject = nil C.QsciLexerDiff_new2((*C.QObject)(parent.UnsafePointer()), &outptr_QsciLexerDiff, &outptr_QsciLexer, &outptr_QObject) ret := newQsciLexerDiff(outptr_QsciLexerDiff, outptr_QsciLexer, outptr_QObject) ret.isSubclass = true return ret } func (this *QsciLexerDiff) MetaObject() *qt6.QMetaObject { return qt6.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerDiff_MetaObject(this.h))) } func (this *QsciLexerDiff) Metacast(param1 string) unsafe.Pointer { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) return (unsafe.Pointer)(C.QsciLexerDiff_Metacast(this.h, param1_Cstring)) } func QsciLexerDiff_Tr(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QsciLexerDiff_Tr(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QsciLexerDiff) Language() string { _ret := C.QsciLexerDiff_Language(this.h) return C.GoString(_ret) } func (this *QsciLexerDiff) Lexer() string { _ret := C.QsciLexerDiff_Lexer(this.h) return C.GoString(_ret) } func (this *QsciLexerDiff) WordCharacters() string { _ret := C.QsciLexerDiff_WordCharacters(this.h) return C.GoString(_ret) } func (this *QsciLexerDiff) DefaultColor(style int) *qt6.QColor { _ret := C.QsciLexerDiff_DefaultColor(this.h, (C.int)(style)) _goptr := qt6.UnsafeNewQColor(unsafe.Pointer(_ret)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QsciLexerDiff) Description(style int) string { var _ms C.struct_miqt_string = C.QsciLexerDiff_Description(this.h, (C.int)(style)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QsciLexerDiff_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.QsciLexerDiff_Tr2(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QsciLexerDiff_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.QsciLexerDiff_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 } func (this *QsciLexerDiff) callVirtualBase_Language() string { _ret := C.QsciLexerDiff_virtualbase_Language(unsafe.Pointer(this.h)) return C.GoString(_ret) } func (this *QsciLexerDiff) OnLanguage(slot func(super func() string) string) { C.QsciLexerDiff_override_virtual_Language(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_Language func miqt_exec_callback_QsciLexerDiff_Language(self *C.QsciLexerDiff, cb C.intptr_t) *C.const_char { gofunc, ok := cgo.Handle(cb).Value().(func(super func() string) string) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_Language) virtualReturn_Cstring := C.CString(virtualReturn) defer C.free(unsafe.Pointer(virtualReturn_Cstring)) return virtualReturn_Cstring } func (this *QsciLexerDiff) callVirtualBase_Lexer() string { _ret := C.QsciLexerDiff_virtualbase_Lexer(unsafe.Pointer(this.h)) return C.GoString(_ret) } func (this *QsciLexerDiff) OnLexer(slot func(super func() string) string) { C.QsciLexerDiff_override_virtual_Lexer(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_Lexer func miqt_exec_callback_QsciLexerDiff_Lexer(self *C.QsciLexerDiff, cb C.intptr_t) *C.const_char { gofunc, ok := cgo.Handle(cb).Value().(func(super func() string) string) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_Lexer) virtualReturn_Cstring := C.CString(virtualReturn) defer C.free(unsafe.Pointer(virtualReturn_Cstring)) return virtualReturn_Cstring } func (this *QsciLexerDiff) callVirtualBase_LexerId() int { return (int)(C.QsciLexerDiff_virtualbase_LexerId(unsafe.Pointer(this.h))) } func (this *QsciLexerDiff) OnLexerId(slot func(super func() int) int) { C.QsciLexerDiff_override_virtual_LexerId(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_LexerId func miqt_exec_callback_QsciLexerDiff_LexerId(self *C.QsciLexerDiff, cb C.intptr_t) C.int { gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_LexerId) return (C.int)(virtualReturn) } func (this *QsciLexerDiff) callVirtualBase_AutoCompletionFillups() string { _ret := C.QsciLexerDiff_virtualbase_AutoCompletionFillups(unsafe.Pointer(this.h)) return C.GoString(_ret) } func (this *QsciLexerDiff) OnAutoCompletionFillups(slot func(super func() string) string) { C.QsciLexerDiff_override_virtual_AutoCompletionFillups(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_AutoCompletionFillups func miqt_exec_callback_QsciLexerDiff_AutoCompletionFillups(self *C.QsciLexerDiff, cb C.intptr_t) *C.const_char { gofunc, ok := cgo.Handle(cb).Value().(func(super func() string) string) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_AutoCompletionFillups) virtualReturn_Cstring := C.CString(virtualReturn) defer C.free(unsafe.Pointer(virtualReturn_Cstring)) return virtualReturn_Cstring } func (this *QsciLexerDiff) callVirtualBase_AutoCompletionWordSeparators() []string { var _ma C.struct_miqt_array = C.QsciLexerDiff_virtualbase_AutoCompletionWordSeparators(unsafe.Pointer(this.h)) _ret := make([]string, int(_ma.len)) _outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { var _lv_ms C.struct_miqt_string = _outCast[i] _lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len))) C.free(unsafe.Pointer(_lv_ms.data)) _ret[i] = _lv_ret } return _ret } func (this *QsciLexerDiff) OnAutoCompletionWordSeparators(slot func(super func() []string) []string) { C.QsciLexerDiff_override_virtual_AutoCompletionWordSeparators(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_AutoCompletionWordSeparators func miqt_exec_callback_QsciLexerDiff_AutoCompletionWordSeparators(self *C.QsciLexerDiff, cb C.intptr_t) C.struct_miqt_array { gofunc, ok := cgo.Handle(cb).Value().(func(super func() []string) []string) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_AutoCompletionWordSeparators) virtualReturn_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(virtualReturn)))) defer C.free(unsafe.Pointer(virtualReturn_CArray)) for i := range virtualReturn { virtualReturn_i_ms := C.struct_miqt_string{} virtualReturn_i_ms.data = C.CString(virtualReturn[i]) virtualReturn_i_ms.len = C.size_t(len(virtualReturn[i])) defer C.free(unsafe.Pointer(virtualReturn_i_ms.data)) virtualReturn_CArray[i] = virtualReturn_i_ms } virtualReturn_ma := C.struct_miqt_array{len: C.size_t(len(virtualReturn)), data: unsafe.Pointer(virtualReturn_CArray)} return virtualReturn_ma } func (this *QsciLexerDiff) callVirtualBase_BlockEnd(style *int) string { _ret := C.QsciLexerDiff_virtualbase_BlockEnd(unsafe.Pointer(this.h), (*C.int)(unsafe.Pointer(style))) return C.GoString(_ret) } func (this *QsciLexerDiff) OnBlockEnd(slot func(super func(style *int) string, style *int) string) { C.QsciLexerDiff_override_virtual_BlockEnd(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_BlockEnd func miqt_exec_callback_QsciLexerDiff_BlockEnd(self *C.QsciLexerDiff, cb C.intptr_t, style *C.int) *C.const_char { gofunc, ok := cgo.Handle(cb).Value().(func(super func(style *int) string, style *int) string) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (*int)(unsafe.Pointer(style)) virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_BlockEnd, slotval1) virtualReturn_Cstring := C.CString(virtualReturn) defer C.free(unsafe.Pointer(virtualReturn_Cstring)) return virtualReturn_Cstring } func (this *QsciLexerDiff) callVirtualBase_BlockLookback() int { return (int)(C.QsciLexerDiff_virtualbase_BlockLookback(unsafe.Pointer(this.h))) } func (this *QsciLexerDiff) OnBlockLookback(slot func(super func() int) int) { C.QsciLexerDiff_override_virtual_BlockLookback(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_BlockLookback func miqt_exec_callback_QsciLexerDiff_BlockLookback(self *C.QsciLexerDiff, cb C.intptr_t) C.int { gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_BlockLookback) return (C.int)(virtualReturn) } func (this *QsciLexerDiff) callVirtualBase_BlockStart(style *int) string { _ret := C.QsciLexerDiff_virtualbase_BlockStart(unsafe.Pointer(this.h), (*C.int)(unsafe.Pointer(style))) return C.GoString(_ret) } func (this *QsciLexerDiff) OnBlockStart(slot func(super func(style *int) string, style *int) string) { C.QsciLexerDiff_override_virtual_BlockStart(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_BlockStart func miqt_exec_callback_QsciLexerDiff_BlockStart(self *C.QsciLexerDiff, cb C.intptr_t, style *C.int) *C.const_char { gofunc, ok := cgo.Handle(cb).Value().(func(super func(style *int) string, style *int) string) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (*int)(unsafe.Pointer(style)) virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_BlockStart, slotval1) virtualReturn_Cstring := C.CString(virtualReturn) defer C.free(unsafe.Pointer(virtualReturn_Cstring)) return virtualReturn_Cstring } func (this *QsciLexerDiff) callVirtualBase_BlockStartKeyword(style *int) string { _ret := C.QsciLexerDiff_virtualbase_BlockStartKeyword(unsafe.Pointer(this.h), (*C.int)(unsafe.Pointer(style))) return C.GoString(_ret) } func (this *QsciLexerDiff) OnBlockStartKeyword(slot func(super func(style *int) string, style *int) string) { C.QsciLexerDiff_override_virtual_BlockStartKeyword(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_BlockStartKeyword func miqt_exec_callback_QsciLexerDiff_BlockStartKeyword(self *C.QsciLexerDiff, cb C.intptr_t, style *C.int) *C.const_char { gofunc, ok := cgo.Handle(cb).Value().(func(super func(style *int) string, style *int) string) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (*int)(unsafe.Pointer(style)) virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_BlockStartKeyword, slotval1) virtualReturn_Cstring := C.CString(virtualReturn) defer C.free(unsafe.Pointer(virtualReturn_Cstring)) return virtualReturn_Cstring } func (this *QsciLexerDiff) callVirtualBase_BraceStyle() int { return (int)(C.QsciLexerDiff_virtualbase_BraceStyle(unsafe.Pointer(this.h))) } func (this *QsciLexerDiff) OnBraceStyle(slot func(super func() int) int) { C.QsciLexerDiff_override_virtual_BraceStyle(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_BraceStyle func miqt_exec_callback_QsciLexerDiff_BraceStyle(self *C.QsciLexerDiff, cb C.intptr_t) C.int { gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_BraceStyle) return (C.int)(virtualReturn) } func (this *QsciLexerDiff) callVirtualBase_CaseSensitive() bool { return (bool)(C.QsciLexerDiff_virtualbase_CaseSensitive(unsafe.Pointer(this.h))) } func (this *QsciLexerDiff) OnCaseSensitive(slot func(super func() bool) bool) { C.QsciLexerDiff_override_virtual_CaseSensitive(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_CaseSensitive func miqt_exec_callback_QsciLexerDiff_CaseSensitive(self *C.QsciLexerDiff, cb C.intptr_t) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func() bool) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_CaseSensitive) return (C.bool)(virtualReturn) } func (this *QsciLexerDiff) callVirtualBase_Color(style int) *qt6.QColor { _ret := C.QsciLexerDiff_virtualbase_Color(unsafe.Pointer(this.h), (C.int)(style)) _goptr := qt6.UnsafeNewQColor(unsafe.Pointer(_ret)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QsciLexerDiff) OnColor(slot func(super func(style int) *qt6.QColor, style int) *qt6.QColor) { C.QsciLexerDiff_override_virtual_Color(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_Color func miqt_exec_callback_QsciLexerDiff_Color(self *C.QsciLexerDiff, cb C.intptr_t, style C.int) *C.QColor { gofunc, ok := cgo.Handle(cb).Value().(func(super func(style int) *qt6.QColor, style int) *qt6.QColor) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(style) virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_Color, slotval1) return (*C.QColor)(virtualReturn.UnsafePointer()) } func (this *QsciLexerDiff) callVirtualBase_EolFill(style int) bool { return (bool)(C.QsciLexerDiff_virtualbase_EolFill(unsafe.Pointer(this.h), (C.int)(style))) } func (this *QsciLexerDiff) OnEolFill(slot func(super func(style int) bool, style int) bool) { C.QsciLexerDiff_override_virtual_EolFill(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_EolFill func miqt_exec_callback_QsciLexerDiff_EolFill(self *C.QsciLexerDiff, cb C.intptr_t, style C.int) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(style int) bool, style int) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(style) virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_EolFill, slotval1) return (C.bool)(virtualReturn) } func (this *QsciLexerDiff) callVirtualBase_Font(style int) *qt6.QFont { _ret := C.QsciLexerDiff_virtualbase_Font(unsafe.Pointer(this.h), (C.int)(style)) _goptr := qt6.UnsafeNewQFont(unsafe.Pointer(_ret)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QsciLexerDiff) OnFont(slot func(super func(style int) *qt6.QFont, style int) *qt6.QFont) { C.QsciLexerDiff_override_virtual_Font(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_Font func miqt_exec_callback_QsciLexerDiff_Font(self *C.QsciLexerDiff, cb C.intptr_t, style C.int) *C.QFont { gofunc, ok := cgo.Handle(cb).Value().(func(super func(style int) *qt6.QFont, style int) *qt6.QFont) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(style) virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_Font, slotval1) return (*C.QFont)(virtualReturn.UnsafePointer()) } func (this *QsciLexerDiff) callVirtualBase_IndentationGuideView() int { return (int)(C.QsciLexerDiff_virtualbase_IndentationGuideView(unsafe.Pointer(this.h))) } func (this *QsciLexerDiff) OnIndentationGuideView(slot func(super func() int) int) { C.QsciLexerDiff_override_virtual_IndentationGuideView(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_IndentationGuideView func miqt_exec_callback_QsciLexerDiff_IndentationGuideView(self *C.QsciLexerDiff, cb C.intptr_t) C.int { gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_IndentationGuideView) return (C.int)(virtualReturn) } func (this *QsciLexerDiff) callVirtualBase_Keywords(set int) string { _ret := C.QsciLexerDiff_virtualbase_Keywords(unsafe.Pointer(this.h), (C.int)(set)) return C.GoString(_ret) } func (this *QsciLexerDiff) OnKeywords(slot func(super func(set int) string, set int) string) { C.QsciLexerDiff_override_virtual_Keywords(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_Keywords func miqt_exec_callback_QsciLexerDiff_Keywords(self *C.QsciLexerDiff, cb C.intptr_t, set C.int) *C.const_char { gofunc, ok := cgo.Handle(cb).Value().(func(super func(set int) string, set int) string) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(set) virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_Keywords, slotval1) virtualReturn_Cstring := C.CString(virtualReturn) defer C.free(unsafe.Pointer(virtualReturn_Cstring)) return virtualReturn_Cstring } func (this *QsciLexerDiff) callVirtualBase_DefaultStyle() int { return (int)(C.QsciLexerDiff_virtualbase_DefaultStyle(unsafe.Pointer(this.h))) } func (this *QsciLexerDiff) OnDefaultStyle(slot func(super func() int) int) { C.QsciLexerDiff_override_virtual_DefaultStyle(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_DefaultStyle func miqt_exec_callback_QsciLexerDiff_DefaultStyle(self *C.QsciLexerDiff, cb C.intptr_t) C.int { gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_DefaultStyle) return (C.int)(virtualReturn) } func (this *QsciLexerDiff) callVirtualBase_Description(style int) string { var _ms C.struct_miqt_string = C.QsciLexerDiff_virtualbase_Description(unsafe.Pointer(this.h), (C.int)(style)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QsciLexerDiff) OnDescription(slot func(super func(style int) string, style int) string) { C.QsciLexerDiff_override_virtual_Description(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_Description func miqt_exec_callback_QsciLexerDiff_Description(self *C.QsciLexerDiff, cb C.intptr_t, style C.int) C.struct_miqt_string { gofunc, ok := cgo.Handle(cb).Value().(func(super func(style int) string, style int) string) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(style) virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_Description, slotval1) virtualReturn_ms := C.struct_miqt_string{} virtualReturn_ms.data = C.CString(virtualReturn) virtualReturn_ms.len = C.size_t(len(virtualReturn)) defer C.free(unsafe.Pointer(virtualReturn_ms.data)) return virtualReturn_ms } func (this *QsciLexerDiff) callVirtualBase_Paper(style int) *qt6.QColor { _ret := C.QsciLexerDiff_virtualbase_Paper(unsafe.Pointer(this.h), (C.int)(style)) _goptr := qt6.UnsafeNewQColor(unsafe.Pointer(_ret)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QsciLexerDiff) OnPaper(slot func(super func(style int) *qt6.QColor, style int) *qt6.QColor) { C.QsciLexerDiff_override_virtual_Paper(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_Paper func miqt_exec_callback_QsciLexerDiff_Paper(self *C.QsciLexerDiff, cb C.intptr_t, style C.int) *C.QColor { gofunc, ok := cgo.Handle(cb).Value().(func(super func(style int) *qt6.QColor, style int) *qt6.QColor) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(style) virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_Paper, slotval1) return (*C.QColor)(virtualReturn.UnsafePointer()) } func (this *QsciLexerDiff) callVirtualBase_DefaultColorWithStyle(style int) *qt6.QColor { _ret := C.QsciLexerDiff_virtualbase_DefaultColorWithStyle(unsafe.Pointer(this.h), (C.int)(style)) _goptr := qt6.UnsafeNewQColor(unsafe.Pointer(_ret)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QsciLexerDiff) OnDefaultColorWithStyle(slot func(super func(style int) *qt6.QColor, style int) *qt6.QColor) { C.QsciLexerDiff_override_virtual_DefaultColorWithStyle(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_DefaultColorWithStyle func miqt_exec_callback_QsciLexerDiff_DefaultColorWithStyle(self *C.QsciLexerDiff, cb C.intptr_t, style C.int) *C.QColor { gofunc, ok := cgo.Handle(cb).Value().(func(super func(style int) *qt6.QColor, style int) *qt6.QColor) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(style) virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_DefaultColorWithStyle, slotval1) return (*C.QColor)(virtualReturn.UnsafePointer()) } func (this *QsciLexerDiff) callVirtualBase_DefaultEolFill(style int) bool { return (bool)(C.QsciLexerDiff_virtualbase_DefaultEolFill(unsafe.Pointer(this.h), (C.int)(style))) } func (this *QsciLexerDiff) OnDefaultEolFill(slot func(super func(style int) bool, style int) bool) { C.QsciLexerDiff_override_virtual_DefaultEolFill(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_DefaultEolFill func miqt_exec_callback_QsciLexerDiff_DefaultEolFill(self *C.QsciLexerDiff, cb C.intptr_t, style C.int) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(style int) bool, style int) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(style) virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_DefaultEolFill, slotval1) return (C.bool)(virtualReturn) } func (this *QsciLexerDiff) callVirtualBase_DefaultFontWithStyle(style int) *qt6.QFont { _ret := C.QsciLexerDiff_virtualbase_DefaultFontWithStyle(unsafe.Pointer(this.h), (C.int)(style)) _goptr := qt6.UnsafeNewQFont(unsafe.Pointer(_ret)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QsciLexerDiff) OnDefaultFontWithStyle(slot func(super func(style int) *qt6.QFont, style int) *qt6.QFont) { C.QsciLexerDiff_override_virtual_DefaultFontWithStyle(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_DefaultFontWithStyle func miqt_exec_callback_QsciLexerDiff_DefaultFontWithStyle(self *C.QsciLexerDiff, cb C.intptr_t, style C.int) *C.QFont { gofunc, ok := cgo.Handle(cb).Value().(func(super func(style int) *qt6.QFont, style int) *qt6.QFont) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(style) virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_DefaultFontWithStyle, slotval1) return (*C.QFont)(virtualReturn.UnsafePointer()) } func (this *QsciLexerDiff) callVirtualBase_DefaultPaperWithStyle(style int) *qt6.QColor { _ret := C.QsciLexerDiff_virtualbase_DefaultPaperWithStyle(unsafe.Pointer(this.h), (C.int)(style)) _goptr := qt6.UnsafeNewQColor(unsafe.Pointer(_ret)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QsciLexerDiff) OnDefaultPaperWithStyle(slot func(super func(style int) *qt6.QColor, style int) *qt6.QColor) { C.QsciLexerDiff_override_virtual_DefaultPaperWithStyle(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_DefaultPaperWithStyle func miqt_exec_callback_QsciLexerDiff_DefaultPaperWithStyle(self *C.QsciLexerDiff, cb C.intptr_t, style C.int) *C.QColor { gofunc, ok := cgo.Handle(cb).Value().(func(super func(style int) *qt6.QColor, style int) *qt6.QColor) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(style) virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_DefaultPaperWithStyle, slotval1) return (*C.QColor)(virtualReturn.UnsafePointer()) } func (this *QsciLexerDiff) callVirtualBase_SetEditor(editor *QsciScintilla) { C.QsciLexerDiff_virtualbase_SetEditor(unsafe.Pointer(this.h), editor.cPointer()) } func (this *QsciLexerDiff) OnSetEditor(slot func(super func(editor *QsciScintilla), editor *QsciScintilla)) { C.QsciLexerDiff_override_virtual_SetEditor(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_SetEditor func miqt_exec_callback_QsciLexerDiff_SetEditor(self *C.QsciLexerDiff, cb C.intptr_t, editor *C.QsciScintilla) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(editor *QsciScintilla), editor *QsciScintilla)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQsciScintilla(unsafe.Pointer(editor), nil, nil, nil, nil, nil, nil) gofunc((&QsciLexerDiff{h: self}).callVirtualBase_SetEditor, slotval1) } func (this *QsciLexerDiff) callVirtualBase_RefreshProperties() { C.QsciLexerDiff_virtualbase_RefreshProperties(unsafe.Pointer(this.h)) } func (this *QsciLexerDiff) OnRefreshProperties(slot func(super func())) { C.QsciLexerDiff_override_virtual_RefreshProperties(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_RefreshProperties func miqt_exec_callback_QsciLexerDiff_RefreshProperties(self *C.QsciLexerDiff, cb C.intptr_t) { gofunc, ok := cgo.Handle(cb).Value().(func(super func())) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } gofunc((&QsciLexerDiff{h: self}).callVirtualBase_RefreshProperties) } func (this *QsciLexerDiff) callVirtualBase_StyleBitsNeeded() int { return (int)(C.QsciLexerDiff_virtualbase_StyleBitsNeeded(unsafe.Pointer(this.h))) } func (this *QsciLexerDiff) OnStyleBitsNeeded(slot func(super func() int) int) { C.QsciLexerDiff_override_virtual_StyleBitsNeeded(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_StyleBitsNeeded func miqt_exec_callback_QsciLexerDiff_StyleBitsNeeded(self *C.QsciLexerDiff, cb C.intptr_t) C.int { gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_StyleBitsNeeded) return (C.int)(virtualReturn) } func (this *QsciLexerDiff) callVirtualBase_WordCharacters() string { _ret := C.QsciLexerDiff_virtualbase_WordCharacters(unsafe.Pointer(this.h)) return C.GoString(_ret) } func (this *QsciLexerDiff) OnWordCharacters(slot func(super func() string) string) { C.QsciLexerDiff_override_virtual_WordCharacters(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_WordCharacters func miqt_exec_callback_QsciLexerDiff_WordCharacters(self *C.QsciLexerDiff, cb C.intptr_t) *C.const_char { gofunc, ok := cgo.Handle(cb).Value().(func(super func() string) string) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_WordCharacters) virtualReturn_Cstring := C.CString(virtualReturn) defer C.free(unsafe.Pointer(virtualReturn_Cstring)) return virtualReturn_Cstring } func (this *QsciLexerDiff) callVirtualBase_SetAutoIndentStyle(autoindentstyle int) { C.QsciLexerDiff_virtualbase_SetAutoIndentStyle(unsafe.Pointer(this.h), (C.int)(autoindentstyle)) } func (this *QsciLexerDiff) OnSetAutoIndentStyle(slot func(super func(autoindentstyle int), autoindentstyle int)) { C.QsciLexerDiff_override_virtual_SetAutoIndentStyle(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_SetAutoIndentStyle func miqt_exec_callback_QsciLexerDiff_SetAutoIndentStyle(self *C.QsciLexerDiff, cb C.intptr_t, autoindentstyle C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(autoindentstyle int), autoindentstyle int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(autoindentstyle) gofunc((&QsciLexerDiff{h: self}).callVirtualBase_SetAutoIndentStyle, slotval1) } func (this *QsciLexerDiff) callVirtualBase_SetColor(c *qt6.QColor, style int) { C.QsciLexerDiff_virtualbase_SetColor(unsafe.Pointer(this.h), (*C.QColor)(c.UnsafePointer()), (C.int)(style)) } func (this *QsciLexerDiff) OnSetColor(slot func(super func(c *qt6.QColor, style int), c *qt6.QColor, style int)) { C.QsciLexerDiff_override_virtual_SetColor(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_SetColor func miqt_exec_callback_QsciLexerDiff_SetColor(self *C.QsciLexerDiff, cb C.intptr_t, c *C.QColor, style C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(c *qt6.QColor, style int), c *qt6.QColor, style int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt6.UnsafeNewQColor(unsafe.Pointer(c)) slotval2 := (int)(style) gofunc((&QsciLexerDiff{h: self}).callVirtualBase_SetColor, slotval1, slotval2) } func (this *QsciLexerDiff) callVirtualBase_SetEolFill(eoffill bool, style int) { C.QsciLexerDiff_virtualbase_SetEolFill(unsafe.Pointer(this.h), (C.bool)(eoffill), (C.int)(style)) } func (this *QsciLexerDiff) OnSetEolFill(slot func(super func(eoffill bool, style int), eoffill bool, style int)) { C.QsciLexerDiff_override_virtual_SetEolFill(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_SetEolFill func miqt_exec_callback_QsciLexerDiff_SetEolFill(self *C.QsciLexerDiff, cb C.intptr_t, eoffill C.bool, style C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(eoffill bool, style int), eoffill bool, style int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (bool)(eoffill) slotval2 := (int)(style) gofunc((&QsciLexerDiff{h: self}).callVirtualBase_SetEolFill, slotval1, slotval2) } func (this *QsciLexerDiff) callVirtualBase_SetFont(f *qt6.QFont, style int) { C.QsciLexerDiff_virtualbase_SetFont(unsafe.Pointer(this.h), (*C.QFont)(f.UnsafePointer()), (C.int)(style)) } func (this *QsciLexerDiff) OnSetFont(slot func(super func(f *qt6.QFont, style int), f *qt6.QFont, style int)) { C.QsciLexerDiff_override_virtual_SetFont(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_SetFont func miqt_exec_callback_QsciLexerDiff_SetFont(self *C.QsciLexerDiff, cb C.intptr_t, f *C.QFont, style C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(f *qt6.QFont, style int), f *qt6.QFont, style int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt6.UnsafeNewQFont(unsafe.Pointer(f)) slotval2 := (int)(style) gofunc((&QsciLexerDiff{h: self}).callVirtualBase_SetFont, slotval1, slotval2) } func (this *QsciLexerDiff) callVirtualBase_SetPaper(c *qt6.QColor, style int) { C.QsciLexerDiff_virtualbase_SetPaper(unsafe.Pointer(this.h), (*C.QColor)(c.UnsafePointer()), (C.int)(style)) } func (this *QsciLexerDiff) OnSetPaper(slot func(super func(c *qt6.QColor, style int), c *qt6.QColor, style int)) { C.QsciLexerDiff_override_virtual_SetPaper(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_SetPaper func miqt_exec_callback_QsciLexerDiff_SetPaper(self *C.QsciLexerDiff, cb C.intptr_t, c *C.QColor, style C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(c *qt6.QColor, style int), c *qt6.QColor, style int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt6.UnsafeNewQColor(unsafe.Pointer(c)) slotval2 := (int)(style) gofunc((&QsciLexerDiff{h: self}).callVirtualBase_SetPaper, slotval1, slotval2) } func (this *QsciLexerDiff) callVirtualBase_ReadProperties(qs *qt6.QSettings, prefix string) bool { prefix_ms := C.struct_miqt_string{} prefix_ms.data = C.CString(prefix) prefix_ms.len = C.size_t(len(prefix)) defer C.free(unsafe.Pointer(prefix_ms.data)) return (bool)(C.QsciLexerDiff_virtualbase_ReadProperties(unsafe.Pointer(this.h), (*C.QSettings)(qs.UnsafePointer()), prefix_ms)) } func (this *QsciLexerDiff) OnReadProperties(slot func(super func(qs *qt6.QSettings, prefix string) bool, qs *qt6.QSettings, prefix string) bool) { C.QsciLexerDiff_override_virtual_ReadProperties(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_ReadProperties func miqt_exec_callback_QsciLexerDiff_ReadProperties(self *C.QsciLexerDiff, cb C.intptr_t, qs *C.QSettings, prefix C.struct_miqt_string) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(qs *qt6.QSettings, prefix string) bool, qs *qt6.QSettings, prefix string) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt6.UnsafeNewQSettings(unsafe.Pointer(qs), nil) var prefix_ms C.struct_miqt_string = prefix prefix_ret := C.GoStringN(prefix_ms.data, C.int(int64(prefix_ms.len))) C.free(unsafe.Pointer(prefix_ms.data)) slotval2 := prefix_ret virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_ReadProperties, slotval1, slotval2) return (C.bool)(virtualReturn) } func (this *QsciLexerDiff) callVirtualBase_WriteProperties(qs *qt6.QSettings, prefix string) bool { prefix_ms := C.struct_miqt_string{} prefix_ms.data = C.CString(prefix) prefix_ms.len = C.size_t(len(prefix)) defer C.free(unsafe.Pointer(prefix_ms.data)) return (bool)(C.QsciLexerDiff_virtualbase_WriteProperties(unsafe.Pointer(this.h), (*C.QSettings)(qs.UnsafePointer()), prefix_ms)) } func (this *QsciLexerDiff) OnWriteProperties(slot func(super func(qs *qt6.QSettings, prefix string) bool, qs *qt6.QSettings, prefix string) bool) { C.QsciLexerDiff_override_virtual_WriteProperties(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QsciLexerDiff_WriteProperties func miqt_exec_callback_QsciLexerDiff_WriteProperties(self *C.QsciLexerDiff, cb C.intptr_t, qs *C.QSettings, prefix C.struct_miqt_string) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(qs *qt6.QSettings, prefix string) bool, qs *qt6.QSettings, prefix string) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt6.UnsafeNewQSettings(unsafe.Pointer(qs), nil) var prefix_ms C.struct_miqt_string = prefix prefix_ret := C.GoStringN(prefix_ms.data, C.int(int64(prefix_ms.len))) C.free(unsafe.Pointer(prefix_ms.data)) slotval2 := prefix_ret virtualReturn := gofunc((&QsciLexerDiff{h: self}).callVirtualBase_WriteProperties, slotval1, slotval2) return (C.bool)(virtualReturn) } // Delete this object from C++ memory. func (this *QsciLexerDiff) Delete() { C.QsciLexerDiff_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 *QsciLexerDiff) GoGC() { runtime.SetFinalizer(this, func(this *QsciLexerDiff) { this.Delete() runtime.KeepAlive(this.h) }) }