mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
39 lines
526 B
Go
39 lines
526 B
Go
|
package qt
|
||
|
|
||
|
/*
|
||
|
|
||
|
#cgo CFLAGS: -fPIC
|
||
|
#cgo pkg-config: Qt5Widgets
|
||
|
#include "gen_qnamespace.h"
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
*/
|
||
|
import "C"
|
||
|
|
||
|
import (
|
||
|
"unsafe"
|
||
|
)
|
||
|
|
||
|
type QInternal struct {
|
||
|
h *C.QInternal
|
||
|
}
|
||
|
|
||
|
func (this *QInternal) cPointer() *C.QInternal {
|
||
|
if this == nil {
|
||
|
return nil
|
||
|
}
|
||
|
return this.h
|
||
|
}
|
||
|
|
||
|
func newQInternal(h *C.QInternal) *QInternal {
|
||
|
return &QInternal{h: h}
|
||
|
}
|
||
|
|
||
|
func newQInternal_U(h unsafe.Pointer) *QInternal {
|
||
|
return newQInternal((*C.QInternal)(h))
|
||
|
}
|
||
|
|
||
|
func (this *QInternal) Delete() {
|
||
|
C.QInternal_Delete(this.h)
|
||
|
}
|