package qt6 /* #include "gen_qrasterwindow.h" #include */ import "C" import ( "runtime" "unsafe" ) type QRasterWindow struct { h *C.QRasterWindow *QPaintDeviceWindow } func (this *QRasterWindow) cPointer() *C.QRasterWindow { if this == nil { return nil } return this.h } func (this *QRasterWindow) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } func newQRasterWindow(h *C.QRasterWindow) *QRasterWindow { if h == nil { return nil } return &QRasterWindow{h: h, QPaintDeviceWindow: UnsafeNewQPaintDeviceWindow(unsafe.Pointer(h))} } func UnsafeNewQRasterWindow(h unsafe.Pointer) *QRasterWindow { return newQRasterWindow((*C.QRasterWindow)(h)) } // NewQRasterWindow constructs a new QRasterWindow object. func NewQRasterWindow() *QRasterWindow { ret := C.QRasterWindow_new() return newQRasterWindow(ret) } // NewQRasterWindow2 constructs a new QRasterWindow object. func NewQRasterWindow2(parent *QWindow) *QRasterWindow { ret := C.QRasterWindow_new2(parent.cPointer()) return newQRasterWindow(ret) } func (this *QRasterWindow) MetaObject() *QMetaObject { return UnsafeNewQMetaObject(unsafe.Pointer(C.QRasterWindow_MetaObject(this.h))) } func (this *QRasterWindow) Metacast(param1 string) unsafe.Pointer { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) return (unsafe.Pointer)(C.QRasterWindow_Metacast(this.h, param1_Cstring)) } func QRasterWindow_Tr(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QRasterWindow_Tr(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QRasterWindow_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.QRasterWindow_Tr2(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QRasterWindow_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.QRasterWindow_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 } // Delete this object from C++ memory. func (this *QRasterWindow) Delete() { C.QRasterWindow_Delete(this.h) } // 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 *QRasterWindow) GoGC() { runtime.SetFinalizer(this, func(this *QRasterWindow) { this.Delete() runtime.KeepAlive(this.h) }) }