miqt/qt6/gen_qstringtokenizer.go

55 lines
1.2 KiB
Go
Raw Permalink Normal View History

2024-10-20 05:21:03 +00:00
package qt6
/*
#include "gen_qstringtokenizer.h"
#include <stdlib.h>
*/
import "C"
import (
"unsafe"
)
type QStringTokenizerBaseBase struct {
2024-11-19 06:29:06 +00:00
h *C.QStringTokenizerBaseBase
isSubclass bool
2024-10-20 05:21:03 +00:00
}
func (this *QStringTokenizerBaseBase) cPointer() *C.QStringTokenizerBaseBase {
if this == nil {
return nil
}
return this.h
}
func (this *QStringTokenizerBaseBase) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
2024-11-19 06:29:06 +00:00
// newQStringTokenizerBaseBase constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQStringTokenizerBaseBase(h *C.QStringTokenizerBaseBase) *QStringTokenizerBaseBase {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QStringTokenizerBaseBase{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQStringTokenizerBaseBase constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQStringTokenizerBaseBase(h unsafe.Pointer) *QStringTokenizerBaseBase {
2024-12-07 04:15:57 +00:00
return newQStringTokenizerBaseBase((*C.QStringTokenizerBaseBase)(h))
2024-10-20 05:21:03 +00:00
}
// NewQStringTokenizerBaseBase constructs a new QStringTokenizerBaseBase object.
func NewQStringTokenizerBaseBase(param1 *QStringTokenizerBaseBase) *QStringTokenizerBaseBase {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQStringTokenizerBaseBase(C.QStringTokenizerBaseBase_new(param1.cPointer()))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}