2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qdebug.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
2024-09-14 22:29:05 +00:00
|
|
|
"runtime"
|
2024-08-25 04:08:24 +00:00
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QDebug__VerbosityLevel int
|
|
|
|
|
|
|
|
const (
|
|
|
|
QDebug__VerbosityLevel__MinimumVerbosity QDebug__VerbosityLevel = 0
|
|
|
|
QDebug__VerbosityLevel__DefaultVerbosity QDebug__VerbosityLevel = 2
|
|
|
|
QDebug__VerbosityLevel__MaximumVerbosity QDebug__VerbosityLevel = 7
|
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QDebug struct {
|
|
|
|
h *C.QDebug
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) cPointer() *C.QDebug {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQDebug(h *C.QDebug) *QDebug {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QDebug{h: h}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQDebug_U(h unsafe.Pointer) *QDebug {
|
|
|
|
return newQDebug((*C.QDebug)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQDebug constructs a new QDebug object.
|
|
|
|
func NewQDebug(device *QIODevice) *QDebug {
|
|
|
|
ret := C.QDebug_new(device.cPointer())
|
|
|
|
return newQDebug(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQDebug2 constructs a new QDebug object.
|
|
|
|
func NewQDebug2(o *QDebug) *QDebug {
|
|
|
|
ret := C.QDebug_new2(o.cPointer())
|
|
|
|
return newQDebug(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorAssign(other *QDebug) {
|
|
|
|
C.QDebug_OperatorAssign(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) Swap(other *QDebug) {
|
|
|
|
C.QDebug_Swap(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) ResetFormat() *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_ResetFormat(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) Space() *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_Space(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) Nospace() *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_Nospace(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) MaybeSpace() *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_MaybeSpace(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) Verbosity(verbosityLevel int) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_Verbosity(this.h, (C.int)(verbosityLevel))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) Verbosity2() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QDebug_Verbosity2(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) SetVerbosity(verbosityLevel int) {
|
|
|
|
C.QDebug_SetVerbosity(this.h, (C.int)(verbosityLevel))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) AutoInsertSpaces() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QDebug_AutoInsertSpaces(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) SetAutoInsertSpaces(b bool) {
|
|
|
|
C.QDebug_SetAutoInsertSpaces(this.h, (C.bool)(b))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) Quote() *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_Quote(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) Noquote() *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_Noquote(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) MaybeQuote() *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_MaybeQuote(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeft(t QChar) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeft(this.h, t.cPointer())))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeftWithBool(t bool) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithBool(this.h, (C.bool)(t))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeftWithChar(t byte) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithChar(this.h, (C.char)(t))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeftWithShort(t int16) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithShort(this.h, (C.int16_t)(t))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeftWithUnsignedshort(t uint16) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithUnsignedshort(this.h, (C.uint16_t)(t))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeftWithInt(t int) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithInt(this.h, (C.int)(t))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeftWithUnsignedint(t uint) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithUnsignedint(this.h, (C.uint)(t))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeftWithLong(t int64) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithLong(this.h, (C.long)(t))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeftWithUnsignedlong(t uint64) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithUnsignedlong(this.h, (C.ulong)(t))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeftWithQint64(t int64) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithQint64(this.h, (C.longlong)(t))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeftWithQuint64(t uint64) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithQuint64(this.h, (C.ulonglong)(t))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeftWithFloat(t float32) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithFloat(this.h, (C.float)(t))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeftWithDouble(t float64) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithDouble(this.h, (C.double)(t))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeft2(t string) *QDebug {
|
|
|
|
t_Cstring := C.CString(t)
|
|
|
|
defer C.free(unsafe.Pointer(t_Cstring))
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeft2(this.h, t_Cstring)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeftWithQString(t string) *QDebug {
|
2024-09-14 22:29:05 +00:00
|
|
|
t_ms := miqt_strdupg(t)
|
|
|
|
defer C.free(t_ms)
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithQString(this.h, (*C.struct_miqt_string)(t_ms))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) OperatorShiftLeftWithQByteArray(t *QByteArray) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_OperatorShiftLeftWithQByteArray(this.h, t.cPointer())))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebug) MaybeQuote1(c byte) *QDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQDebug_U(unsafe.Pointer(C.QDebug_MaybeQuote1(this.h, (C.char)(c))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QDebug) Delete() {
|
|
|
|
C.QDebug_Delete(this.h)
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// 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 *QDebug) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QDebug) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QDebugStateSaver struct {
|
|
|
|
h *C.QDebugStateSaver
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDebugStateSaver) cPointer() *C.QDebugStateSaver {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQDebugStateSaver(h *C.QDebugStateSaver) *QDebugStateSaver {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QDebugStateSaver{h: h}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQDebugStateSaver_U(h unsafe.Pointer) *QDebugStateSaver {
|
|
|
|
return newQDebugStateSaver((*C.QDebugStateSaver)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQDebugStateSaver constructs a new QDebugStateSaver object.
|
|
|
|
func NewQDebugStateSaver(dbg *QDebug) *QDebugStateSaver {
|
|
|
|
ret := C.QDebugStateSaver_new(dbg.cPointer())
|
|
|
|
return newQDebugStateSaver(ret)
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QDebugStateSaver) Delete() {
|
|
|
|
C.QDebugStateSaver_Delete(this.h)
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// 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 *QDebugStateSaver) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QDebugStateSaver) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QNoDebug struct {
|
|
|
|
h *C.QNoDebug
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QNoDebug) cPointer() *C.QNoDebug {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQNoDebug(h *C.QNoDebug) *QNoDebug {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QNoDebug{h: h}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQNoDebug_U(h unsafe.Pointer) *QNoDebug {
|
|
|
|
return newQNoDebug((*C.QNoDebug)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QNoDebug) Space() *QNoDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_Space(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QNoDebug) Nospace() *QNoDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_Nospace(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QNoDebug) MaybeSpace() *QNoDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_MaybeSpace(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QNoDebug) Quote() *QNoDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_Quote(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QNoDebug) Noquote() *QNoDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_Noquote(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QNoDebug) MaybeQuote() *QNoDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_MaybeQuote(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QNoDebug) Verbosity(param1 int) *QNoDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_Verbosity(this.h, (C.int)(param1))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QNoDebug) MaybeQuote1(param1 byte) *QNoDebug {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQNoDebug_U(unsafe.Pointer(C.QNoDebug_MaybeQuote1(this.h, (C.char)(param1))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QNoDebug) Delete() {
|
|
|
|
C.QNoDebug_Delete(this.h)
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
// 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 *QNoDebug) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QNoDebug) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|