mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 00:48:38 +00:00
59 lines
1.0 KiB
Go
59 lines
1.0 KiB
Go
package qt6
|
|
|
|
/*
|
|
|
|
#include "gen_qvarlengtharray.h"
|
|
#include <stdlib.h>
|
|
|
|
*/
|
|
import "C"
|
|
|
|
import (
|
|
"unsafe"
|
|
)
|
|
|
|
type QVLABaseBase struct {
|
|
h *C.QVLABaseBase
|
|
isSubclass bool
|
|
}
|
|
|
|
func (this *QVLABaseBase) cPointer() *C.QVLABaseBase {
|
|
if this == nil {
|
|
return nil
|
|
}
|
|
return this.h
|
|
}
|
|
|
|
func (this *QVLABaseBase) UnsafePointer() unsafe.Pointer {
|
|
if this == nil {
|
|
return nil
|
|
}
|
|
return unsafe.Pointer(this.h)
|
|
}
|
|
|
|
// newQVLABaseBase constructs the type using only CGO pointers.
|
|
func newQVLABaseBase(h *C.QVLABaseBase) *QVLABaseBase {
|
|
if h == nil {
|
|
return nil
|
|
}
|
|
|
|
return &QVLABaseBase{h: h}
|
|
}
|
|
|
|
// UnsafeNewQVLABaseBase constructs the type using only unsafe pointers.
|
|
func UnsafeNewQVLABaseBase(h unsafe.Pointer) *QVLABaseBase {
|
|
return newQVLABaseBase((*C.QVLABaseBase)(h))
|
|
}
|
|
|
|
func (this *QVLABaseBase) Capacity() int64 {
|
|
return (int64)(C.QVLABaseBase_Capacity(this.h))
|
|
}
|
|
|
|
func (this *QVLABaseBase) Size() int64 {
|
|
return (int64)(C.QVLABaseBase_Size(this.h))
|
|
}
|
|
|
|
func (this *QVLABaseBase) Empty() bool {
|
|
return (bool)(C.QVLABaseBase_Empty(this.h))
|
|
}
|