miqt/qt6/gen_qvarlengtharray.go

59 lines
1.0 KiB
Go
Raw Permalink Normal View History

2024-10-20 05:21:03 +00:00
package qt6
/*
#include "gen_qvarlengtharray.h"
#include <stdlib.h>
*/
import "C"
import (
"unsafe"
)
type QVLABaseBase struct {
2024-11-19 06:29:06 +00:00
h *C.QVLABaseBase
isSubclass bool
2024-10-20 05:21:03 +00:00
}
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)
}
2024-11-19 06:29:06 +00:00
// newQVLABaseBase constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQVLABaseBase(h *C.QVLABaseBase) *QVLABaseBase {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QVLABaseBase{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQVLABaseBase constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQVLABaseBase(h unsafe.Pointer) *QVLABaseBase {
2024-12-07 04:15:57 +00:00
return newQVLABaseBase((*C.QVLABaseBase)(h))
2024-10-20 05:21:03 +00:00
}
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))
}