2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qtextstream.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QTextStream__RealNumberNotation int
|
|
|
|
|
|
|
|
const (
|
|
|
|
QTextStream__RealNumberNotation__SmartNotation QTextStream__RealNumberNotation = 0
|
|
|
|
QTextStream__RealNumberNotation__FixedNotation QTextStream__RealNumberNotation = 1
|
|
|
|
QTextStream__RealNumberNotation__ScientificNotation QTextStream__RealNumberNotation = 2
|
|
|
|
)
|
|
|
|
|
|
|
|
type QTextStream__FieldAlignment int
|
|
|
|
|
|
|
|
const (
|
|
|
|
QTextStream__FieldAlignment__AlignLeft QTextStream__FieldAlignment = 0
|
|
|
|
QTextStream__FieldAlignment__AlignRight QTextStream__FieldAlignment = 1
|
|
|
|
QTextStream__FieldAlignment__AlignCenter QTextStream__FieldAlignment = 2
|
|
|
|
QTextStream__FieldAlignment__AlignAccountingStyle QTextStream__FieldAlignment = 3
|
|
|
|
)
|
|
|
|
|
|
|
|
type QTextStream__Status int
|
|
|
|
|
|
|
|
const (
|
|
|
|
QTextStream__Status__Ok QTextStream__Status = 0
|
|
|
|
QTextStream__Status__ReadPastEnd QTextStream__Status = 1
|
|
|
|
QTextStream__Status__ReadCorruptData QTextStream__Status = 2
|
|
|
|
QTextStream__Status__WriteFailed QTextStream__Status = 3
|
|
|
|
)
|
|
|
|
|
|
|
|
type QTextStream__NumberFlag int
|
|
|
|
|
|
|
|
const (
|
|
|
|
QTextStream__NumberFlag__ShowBase QTextStream__NumberFlag = 1
|
|
|
|
QTextStream__NumberFlag__ForcePoint QTextStream__NumberFlag = 2
|
|
|
|
QTextStream__NumberFlag__ForceSign QTextStream__NumberFlag = 4
|
|
|
|
QTextStream__NumberFlag__UppercaseBase QTextStream__NumberFlag = 8
|
|
|
|
QTextStream__NumberFlag__UppercaseDigits QTextStream__NumberFlag = 16
|
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QTextStream struct {
|
|
|
|
h *C.QTextStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) cPointer() *C.QTextStream {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQTextStream(h *C.QTextStream) *QTextStream {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QTextStream{h: h}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQTextStream_U(h unsafe.Pointer) *QTextStream {
|
|
|
|
return newQTextStream((*C.QTextStream)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextStream constructs a new QTextStream object.
|
|
|
|
func NewQTextStream() *QTextStream {
|
|
|
|
ret := C.QTextStream_new()
|
|
|
|
return newQTextStream(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextStream2 constructs a new QTextStream object.
|
|
|
|
func NewQTextStream2(device *QIODevice) *QTextStream {
|
|
|
|
ret := C.QTextStream_new2(device.cPointer())
|
|
|
|
return newQTextStream(ret)
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
// NewQTextStream3 constructs a new QTextStream object.
|
|
|
|
func NewQTextStream3(array *QByteArray) *QTextStream {
|
|
|
|
ret := C.QTextStream_new3(array.cPointer())
|
|
|
|
return newQTextStream(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextStream4 constructs a new QTextStream object.
|
|
|
|
func NewQTextStream4(array *QByteArray) *QTextStream {
|
|
|
|
ret := C.QTextStream_new4(array.cPointer())
|
|
|
|
return newQTextStream(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextStream5 constructs a new QTextStream object.
|
|
|
|
func NewQTextStream5(array *QByteArray, openMode int) *QTextStream {
|
|
|
|
ret := C.QTextStream_new5(array.cPointer(), (C.int)(openMode))
|
|
|
|
return newQTextStream(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTextStream6 constructs a new QTextStream object.
|
|
|
|
func NewQTextStream6(array *QByteArray, openMode int) *QTextStream {
|
|
|
|
ret := C.QTextStream_new6(array.cPointer(), (C.int)(openMode))
|
|
|
|
return newQTextStream(ret)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextStream) SetCodec(codec *QTextCodec) {
|
|
|
|
C.QTextStream_SetCodec(this.h, codec.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) SetCodecWithCodecName(codecName string) {
|
|
|
|
codecName_Cstring := C.CString(codecName)
|
|
|
|
defer C.free(unsafe.Pointer(codecName_Cstring))
|
|
|
|
C.QTextStream_SetCodecWithCodecName(this.h, codecName_Cstring)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) Codec() *QTextCodec {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_Codec(this.h)
|
|
|
|
return newQTextCodec_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) SetAutoDetectUnicode(enabled bool) {
|
|
|
|
C.QTextStream_SetAutoDetectUnicode(this.h, (C.bool)(enabled))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) AutoDetectUnicode() bool {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_AutoDetectUnicode(this.h)
|
|
|
|
return (bool)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) SetGenerateByteOrderMark(generate bool) {
|
|
|
|
C.QTextStream_SetGenerateByteOrderMark(this.h, (C.bool)(generate))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) GenerateByteOrderMark() bool {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_GenerateByteOrderMark(this.h)
|
|
|
|
return (bool)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) SetLocale(locale *QLocale) {
|
|
|
|
C.QTextStream_SetLocale(this.h, locale.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) Locale() *QLocale {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_Locale(this.h)
|
|
|
|
_goptr := newQLocale(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) SetDevice(device *QIODevice) {
|
|
|
|
C.QTextStream_SetDevice(this.h, device.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) Device() *QIODevice {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_Device(this.h)
|
|
|
|
return newQIODevice_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) String() string {
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QTextStream_String(this.h)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextStream) Status() QTextStream__Status {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_Status(this.h)
|
|
|
|
return (QTextStream__Status)(_ret)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextStream) SetStatus(status QTextStream__Status) {
|
2024-08-29 07:01:51 +00:00
|
|
|
C.QTextStream_SetStatus(this.h, (C.uintptr_t)(status))
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextStream) ResetStatus() {
|
|
|
|
C.QTextStream_ResetStatus(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) AtEnd() bool {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_AtEnd(this.h)
|
|
|
|
return (bool)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) Reset() {
|
|
|
|
C.QTextStream_Reset(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) Flush() {
|
|
|
|
C.QTextStream_Flush(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) Seek(pos int64) bool {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_Seek(this.h, (C.longlong)(pos))
|
|
|
|
return (bool)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) Pos() int64 {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_Pos(this.h)
|
|
|
|
return (int64)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) SkipWhiteSpace() {
|
|
|
|
C.QTextStream_SkipWhiteSpace(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) ReadLine() string {
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QTextStream_ReadLine(this.h)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) ReadAll() string {
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QTextStream_ReadAll(this.h)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) Read(maxlen int64) string {
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QTextStream_Read(this.h, (C.longlong)(maxlen))
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextStream) SetFieldAlignment(alignment QTextStream__FieldAlignment) {
|
2024-08-29 07:01:51 +00:00
|
|
|
C.QTextStream_SetFieldAlignment(this.h, (C.uintptr_t)(alignment))
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextStream) FieldAlignment() QTextStream__FieldAlignment {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_FieldAlignment(this.h)
|
|
|
|
return (QTextStream__FieldAlignment)(_ret)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextStream) SetPadChar(ch QChar) {
|
|
|
|
C.QTextStream_SetPadChar(this.h, ch.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) PadChar() *QChar {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_PadChar(this.h)
|
|
|
|
_goptr := newQChar(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) SetFieldWidth(width int) {
|
|
|
|
C.QTextStream_SetFieldWidth(this.h, (C.int)(width))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) FieldWidth() int {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_FieldWidth(this.h)
|
|
|
|
return (int)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QTextStream) SetNumberFlags(flags int) {
|
|
|
|
C.QTextStream_SetNumberFlags(this.h, (C.int)(flags))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) NumberFlags() int {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_NumberFlags(this.h)
|
|
|
|
return (int)(_ret)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextStream) SetIntegerBase(base int) {
|
|
|
|
C.QTextStream_SetIntegerBase(this.h, (C.int)(base))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) IntegerBase() int {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_IntegerBase(this.h)
|
|
|
|
return (int)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextStream) SetRealNumberNotation(notation QTextStream__RealNumberNotation) {
|
2024-08-29 07:01:51 +00:00
|
|
|
C.QTextStream_SetRealNumberNotation(this.h, (C.uintptr_t)(notation))
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QTextStream) RealNumberNotation() QTextStream__RealNumberNotation {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_RealNumberNotation(this.h)
|
|
|
|
return (QTextStream__RealNumberNotation)(_ret)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTextStream) SetRealNumberPrecision(precision int) {
|
|
|
|
C.QTextStream_SetRealNumberPrecision(this.h, (C.int)(precision))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) RealNumberPrecision() int {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_RealNumberPrecision(this.h)
|
|
|
|
return (int)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftRight(ch *QChar) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftRight(this.h, ch.cPointer())
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftRightWithCh(ch *byte) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftRightWithCh(this.h, (*C.char)(unsafe.Pointer(ch)))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftRightWithShort(i *int16) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftRightWithShort(this.h, (*C.int16_t)(unsafe.Pointer(i)))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftRightWithUnsignedshort(i *uint16) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftRightWithUnsignedshort(this.h, (*C.uint16_t)(unsafe.Pointer(i)))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftRightWithInt(i *int) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftRightWithInt(this.h, (*C.int)(unsafe.Pointer(i)))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftRightWithUnsignedint(i *uint) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftRightWithUnsignedint(this.h, (*C.uint)(unsafe.Pointer(i)))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftRightWithLong(i *int64) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftRightWithLong(this.h, (*C.long)(unsafe.Pointer(i)))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftRightWithUnsignedlong(i *uint64) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftRightWithUnsignedlong(this.h, (*C.ulong)(unsafe.Pointer(i)))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftRightWithQlonglong(i *int64) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftRightWithQlonglong(this.h, (*C.int64_t)(unsafe.Pointer(i)))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftRightWithQulonglong(i *uint64) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftRightWithQulonglong(this.h, (*C.uint64_t)(unsafe.Pointer(i)))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftRightWithFloat(f *float32) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftRightWithFloat(this.h, (*C.float)(unsafe.Pointer(f)))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftRightWithDouble(f *float64) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftRightWithDouble(this.h, (*C.double)(unsafe.Pointer(f)))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftRightWithQString(s string) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
s_ms := miqt_strdupg(s)
|
|
|
|
defer C.free(s_ms)
|
|
|
|
_ret := C.QTextStream_OperatorShiftRightWithQString(this.h, (*C.struct_miqt_string)(s_ms))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftRightWithArray(array *QByteArray) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftRightWithArray(this.h, array.cPointer())
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftRightWithChar(c string) *QTextStream {
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftRightWithChar(this.h, c_Cstring)
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftLeft(ch QChar) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftLeft(this.h, ch.cPointer())
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftLeftWithCh(ch byte) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftLeftWithCh(this.h, (C.char)(ch))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftLeftWithShort(i int16) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftLeftWithShort(this.h, (C.int16_t)(i))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftLeftWithUnsignedshort(i uint16) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftLeftWithUnsignedshort(this.h, (C.uint16_t)(i))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftLeftWithInt(i int) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftLeftWithInt(this.h, (C.int)(i))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftLeftWithUnsignedint(i uint) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftLeftWithUnsignedint(this.h, (C.uint)(i))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftLeftWithLong(i int64) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftLeftWithLong(this.h, (C.long)(i))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftLeftWithUnsignedlong(i uint64) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftLeftWithUnsignedlong(this.h, (C.ulong)(i))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftLeftWithQlonglong(i int64) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftLeftWithQlonglong(this.h, (C.int64_t)(i))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftLeftWithQulonglong(i uint64) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftLeftWithQulonglong(this.h, (C.uint64_t)(i))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftLeftWithFloat(f float32) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftLeftWithFloat(this.h, (C.float)(f))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftLeftWithDouble(f float64) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftLeftWithDouble(this.h, (C.double)(f))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftLeftWithQString(s string) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
s_ms := miqt_strdupg(s)
|
|
|
|
defer C.free(s_ms)
|
|
|
|
_ret := C.QTextStream_OperatorShiftLeftWithQString(this.h, (*C.struct_miqt_string)(s_ms))
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftLeftWithArray(array *QByteArray) *QTextStream {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftLeftWithArray(this.h, array.cPointer())
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) OperatorShiftLeftWithChar(c string) *QTextStream {
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTextStream_OperatorShiftLeftWithChar(this.h, c_Cstring)
|
|
|
|
return newQTextStream_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTextStream) ReadLine1(maxlen int64) string {
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QTextStream_ReadLine1(this.h, (C.longlong)(maxlen))
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
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 *QTextStream) Delete() {
|
|
|
|
C.QTextStream_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 *QTextStream) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QTextStream) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|