miqt/qt6/gen_qiodevicebase.go
2024-10-21 19:10:31 +13:00

58 lines
1.3 KiB
Go

package qt6
/*
#include "gen_qiodevicebase.h"
#include <stdlib.h>
*/
import "C"
import (
"unsafe"
)
type QIODeviceBase__OpenModeFlag int
const (
QIODeviceBase__NotOpen QIODeviceBase__OpenModeFlag = 0
QIODeviceBase__ReadOnly QIODeviceBase__OpenModeFlag = 1
QIODeviceBase__WriteOnly QIODeviceBase__OpenModeFlag = 2
QIODeviceBase__ReadWrite QIODeviceBase__OpenModeFlag = 3
QIODeviceBase__Append QIODeviceBase__OpenModeFlag = 4
QIODeviceBase__Truncate QIODeviceBase__OpenModeFlag = 8
QIODeviceBase__Text QIODeviceBase__OpenModeFlag = 16
QIODeviceBase__Unbuffered QIODeviceBase__OpenModeFlag = 32
QIODeviceBase__NewOnly QIODeviceBase__OpenModeFlag = 64
QIODeviceBase__ExistingOnly QIODeviceBase__OpenModeFlag = 128
)
type QIODeviceBase struct {
h *C.QIODeviceBase
}
func (this *QIODeviceBase) cPointer() *C.QIODeviceBase {
if this == nil {
return nil
}
return this.h
}
func (this *QIODeviceBase) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
func newQIODeviceBase(h *C.QIODeviceBase) *QIODeviceBase {
if h == nil {
return nil
}
return &QIODeviceBase{h: h}
}
func UnsafeNewQIODeviceBase(h unsafe.Pointer) *QIODeviceBase {
return newQIODeviceBase((*C.QIODeviceBase)(h))
}