package qt6
#include "gen_qproperty.h"
#include <stdlib.h>
*/
import "C"
import (
"runtime"
"unsafe"
)
type QtPrivate__BindableWarnings__Reason int
const (
QtPrivate__BindableWarnings__InvalidInterface QtPrivate__BindableWarnings__Reason = 0
QtPrivate__BindableWarnings__NonBindableInterface QtPrivate__BindableWarnings__Reason = 1
QtPrivate__BindableWarnings__ReadOnlyInterface QtPrivate__BindableWarnings__Reason = 2
)
type QPropertyBindingError__Type int
const (
QPropertyBindingError__NoError QPropertyBindingError__Type = 0
QPropertyBindingError__BindingLoop QPropertyBindingError__Type = 1
QPropertyBindingError__EvaluationError QPropertyBindingError__Type = 2
QPropertyBindingError__UnknownError QPropertyBindingError__Type = 3
)
type QPropertyObserverBase__ObserverTag int
const (
QPropertyObserverBase__ObserverNotifiesBinding QPropertyObserverBase__ObserverTag = 0
QPropertyObserverBase__ObserverNotifiesChangeHandler QPropertyObserverBase__ObserverTag = 1
QPropertyObserverBase__ObserverIsPlaceholder QPropertyObserverBase__ObserverTag = 2
QPropertyObserverBase__ObserverIsAlias QPropertyObserverBase__ObserverTag = 3
)
type QPropertyBindingSourceLocation struct {
h *C.QPropertyBindingSourceLocation
}
func (this *QPropertyBindingSourceLocation) cPointer() *C.QPropertyBindingSourceLocation {
if this == nil {
return nil
}
return this.h
}
func (this *QPropertyBindingSourceLocation) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
func newQPropertyBindingSourceLocation(h *C.QPropertyBindingSourceLocation) *QPropertyBindingSourceLocation {
if h == nil {
return nil
}
return &QPropertyBindingSourceLocation{h: h}
}
func UnsafeNewQPropertyBindingSourceLocation(h unsafe.Pointer) *QPropertyBindingSourceLocation {
return newQPropertyBindingSourceLocation((*C.QPropertyBindingSourceLocation)(h))
}
func NewQPropertyBindingSourceLocation() *QPropertyBindingSourceLocation {
return newQPropertyBindingSourceLocation(C.QPropertyBindingSourceLocation_new())
}
func NewQPropertyBindingSourceLocation2(param1 *QPropertyBindingSourceLocation) *QPropertyBindingSourceLocation {
return newQPropertyBindingSourceLocation(C.QPropertyBindingSourceLocation_new2(param1.cPointer()))
}
func (this *QPropertyBindingSourceLocation) FileName() string {
fileName_ret := C.QPropertyBindingSourceLocation_fileName(this.h)
return C.GoString(fileName_ret)
}
func (this *QPropertyBindingSourceLocation) SetFileName(fileName string) {
fileName_Cstring := C.CString(fileName)
defer C.free(unsafe.Pointer(fileName_Cstring))
C.QPropertyBindingSourceLocation_setFileName(this.h, fileName_Cstring)
}
func (this *QPropertyBindingSourceLocation) FunctionName() string {
functionName_ret := C.QPropertyBindingSourceLocation_functionName(this.h)
return C.GoString(functionName_ret)
}
func (this *QPropertyBindingSourceLocation) SetFunctionName(functionName string) {
functionName_Cstring := C.CString(functionName)
defer C.free(unsafe.Pointer(functionName_Cstring))
C.QPropertyBindingSourceLocation_setFunctionName(this.h, functionName_Cstring)
}
func (this *QPropertyBindingSourceLocation) Line() uint {
return (uint)(C.QPropertyBindingSourceLocation_line(this.h))
}
func (this *QPropertyBindingSourceLocation) SetLine(line uint) {
C.QPropertyBindingSourceLocation_setLine(this.h, (C.uint)(line))
}
func (this *QPropertyBindingSourceLocation) Column() uint {
return (uint)(C.QPropertyBindingSourceLocation_column(this.h))
}
func (this *QPropertyBindingSourceLocation) SetColumn(column uint) {
C.QPropertyBindingSourceLocation_setColumn(this.h, (C.uint)(column))
}
func (this *QPropertyBindingSourceLocation) Delete() {
C.QPropertyBindingSourceLocation_delete(this.h)
}
func (this *QPropertyBindingSourceLocation) GoGC() {
runtime.SetFinalizer(this, func(this *QPropertyBindingSourceLocation) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QPropertyBindingError struct {
h *C.QPropertyBindingError
}
func (this *QPropertyBindingError) cPointer() *C.QPropertyBindingError {
if this == nil {
return nil
}
return this.h
}
func (this *QPropertyBindingError) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
func newQPropertyBindingError(h *C.QPropertyBindingError) *QPropertyBindingError {
if h == nil {
return nil
}
return &QPropertyBindingError{h: h}
}
func UnsafeNewQPropertyBindingError(h unsafe.Pointer) *QPropertyBindingError {
return newQPropertyBindingError((*C.QPropertyBindingError)(h))
}
func NewQPropertyBindingError() *QPropertyBindingError {
return newQPropertyBindingError(C.QPropertyBindingError_new())
}
func NewQPropertyBindingError2(typeVal QPropertyBindingError__Type) *QPropertyBindingError {
return newQPropertyBindingError(C.QPropertyBindingError_new2((C.int)(typeVal)))
}
func NewQPropertyBindingError3(other *QPropertyBindingError) *QPropertyBindingError {
return newQPropertyBindingError(C.QPropertyBindingError_new3(other.cPointer()))
}
func NewQPropertyBindingError4(typeVal QPropertyBindingError__Type, description string) *QPropertyBindingError {
description_ms := C.struct_miqt_string{}
description_ms.data = C.CString(description)
description_ms.len = C.size_t(len(description))
defer C.free(unsafe.Pointer(description_ms.data))
return newQPropertyBindingError(C.QPropertyBindingError_new4((C.int)(typeVal), description_ms))
}
func (this *QPropertyBindingError) OperatorAssign(other *QPropertyBindingError) {
C.QPropertyBindingError_operatorAssign(this.h, other.cPointer())
}
func (this *QPropertyBindingError) HasError() bool {
return (bool)(C.QPropertyBindingError_hasError(this.h))
}
func (this *QPropertyBindingError) Type() QPropertyBindingError__Type {
return (QPropertyBindingError__Type)(C.QPropertyBindingError_type(this.h))
}
func (this *QPropertyBindingError) Description() string {
var _ms C.struct_miqt_string = C.QPropertyBindingError_description(this.h)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QPropertyBindingError) Delete() {
C.QPropertyBindingError_delete(this.h)
}
func (this *QPropertyBindingError) GoGC() {
runtime.SetFinalizer(this, func(this *QPropertyBindingError) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QUntypedPropertyBinding struct {
h *C.QUntypedPropertyBinding
}
func (this *QUntypedPropertyBinding) cPointer() *C.QUntypedPropertyBinding {
if this == nil {
return nil
}
return this.h
}
func (this *QUntypedPropertyBinding) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
func newQUntypedPropertyBinding(h *C.QUntypedPropertyBinding) *QUntypedPropertyBinding {
if h == nil {
return nil
}
return &QUntypedPropertyBinding{h: h}
}
func UnsafeNewQUntypedPropertyBinding(h unsafe.Pointer) *QUntypedPropertyBinding {
return newQUntypedPropertyBinding((*C.QUntypedPropertyBinding)(h))
}
func NewQUntypedPropertyBinding() *QUntypedPropertyBinding {
return newQUntypedPropertyBinding(C.QUntypedPropertyBinding_new())
}
func NewQUntypedPropertyBinding2(other *QUntypedPropertyBinding) *QUntypedPropertyBinding {
return newQUntypedPropertyBinding(C.QUntypedPropertyBinding_new2(other.cPointer()))
}
func (this *QUntypedPropertyBinding) OperatorAssign(other *QUntypedPropertyBinding) {
C.QUntypedPropertyBinding_operatorAssign(this.h, other.cPointer())
}
func (this *QUntypedPropertyBinding) IsNull() bool {
return (bool)(C.QUntypedPropertyBinding_isNull(this.h))
}
func (this *QUntypedPropertyBinding) Error() *QPropertyBindingError {
_goptr := newQPropertyBindingError(C.QUntypedPropertyBinding_error(this.h))
_goptr.GoGC()
return _goptr
}
func (this *QUntypedPropertyBinding) ValueMetaType() *QMetaType {
_goptr := newQMetaType(C.QUntypedPropertyBinding_valueMetaType(this.h))
_goptr.GoGC()
return _goptr
}
func (this *QUntypedPropertyBinding) Delete() {
C.QUntypedPropertyBinding_delete(this.h)
}
func (this *QUntypedPropertyBinding) GoGC() {
runtime.SetFinalizer(this, func(this *QUntypedPropertyBinding) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QPropertyObserverBase struct {
h *C.QPropertyObserverBase
}
func (this *QPropertyObserverBase) cPointer() *C.QPropertyObserverBase {
if this == nil {
return nil
}
return this.h
}
func (this *QPropertyObserverBase) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
func newQPropertyObserverBase(h *C.QPropertyObserverBase) *QPropertyObserverBase {
if h == nil {
return nil
}
return &QPropertyObserverBase{h: h}
}
func UnsafeNewQPropertyObserverBase(h unsafe.Pointer) *QPropertyObserverBase {
return newQPropertyObserverBase((*C.QPropertyObserverBase)(h))
}
func NewQPropertyObserverBase() *QPropertyObserverBase {
return newQPropertyObserverBase(C.QPropertyObserverBase_new())
}
func NewQPropertyObserverBase2(param1 *QPropertyObserverBase) *QPropertyObserverBase {
return newQPropertyObserverBase(C.QPropertyObserverBase_new2(param1.cPointer()))
}
func (this *QPropertyObserverBase) OperatorAssign(param1 *QPropertyObserverBase) {
C.QPropertyObserverBase_operatorAssign(this.h, param1.cPointer())
}
func (this *QPropertyObserverBase) Delete() {
C.QPropertyObserverBase_delete(this.h)
}
func (this *QPropertyObserverBase) GoGC() {
runtime.SetFinalizer(this, func(this *QPropertyObserverBase) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QPropertyObserver struct {
h *C.QPropertyObserver
*QPropertyObserverBase
}
func (this *QPropertyObserver) cPointer() *C.QPropertyObserver {
if this == nil {
return nil
}
return this.h
}
func (this *QPropertyObserver) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
func newQPropertyObserver(h *C.QPropertyObserver) *QPropertyObserver {
if h == nil {
return nil
}
var outptr_QPropertyObserverBase *C.QPropertyObserverBase = nil
C.QPropertyObserver_virtbase(h, &outptr_QPropertyObserverBase)
return &QPropertyObserver{h: h,
QPropertyObserverBase: newQPropertyObserverBase(outptr_QPropertyObserverBase)}
}
func UnsafeNewQPropertyObserver(h unsafe.Pointer) *QPropertyObserver {
return newQPropertyObserver((*C.QPropertyObserver)(h))
}
func NewQPropertyObserver() *QPropertyObserver {
return newQPropertyObserver(C.QPropertyObserver_new())
}
func (this *QPropertyObserver) Delete() {
C.QPropertyObserver_delete(this.h)
}
func (this *QPropertyObserver) GoGC() {
runtime.SetFinalizer(this, func(this *QPropertyObserver) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QPropertyNotifier struct {
h *C.QPropertyNotifier
*QPropertyObserver
}
func (this *QPropertyNotifier) cPointer() *C.QPropertyNotifier {
if this == nil {
return nil
}
return this.h
}
func (this *QPropertyNotifier) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
func newQPropertyNotifier(h *C.QPropertyNotifier) *QPropertyNotifier {
if h == nil {
return nil
}
var outptr_QPropertyObserver *C.QPropertyObserver = nil
C.QPropertyNotifier_virtbase(h, &outptr_QPropertyObserver)
return &QPropertyNotifier{h: h,
QPropertyObserver: newQPropertyObserver(outptr_QPropertyObserver)}
}
func UnsafeNewQPropertyNotifier(h unsafe.Pointer) *QPropertyNotifier {
return newQPropertyNotifier((*C.QPropertyNotifier)(h))
}
func NewQPropertyNotifier() *QPropertyNotifier {
return newQPropertyNotifier(C.QPropertyNotifier_new())
}
func (this *QPropertyNotifier) Delete() {
C.QPropertyNotifier_delete(this.h)
}
func (this *QPropertyNotifier) GoGC() {
runtime.SetFinalizer(this, func(this *QPropertyNotifier) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QUntypedBindable struct {
h *C.QUntypedBindable
}
func (this *QUntypedBindable) cPointer() *C.QUntypedBindable {
if this == nil {
return nil
}
return this.h
}
func (this *QUntypedBindable) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
func newQUntypedBindable(h *C.QUntypedBindable) *QUntypedBindable {
if h == nil {
return nil
}
return &QUntypedBindable{h: h}
}
func UnsafeNewQUntypedBindable(h unsafe.Pointer) *QUntypedBindable {
return newQUntypedBindable((*C.QUntypedBindable)(h))
}
func NewQUntypedBindable() *QUntypedBindable {
return newQUntypedBindable(C.QUntypedBindable_new())
}
func NewQUntypedBindable2(param1 *QUntypedBindable) *QUntypedBindable {
return newQUntypedBindable(C.QUntypedBindable_new2(param1.cPointer()))
}
func (this *QUntypedBindable) IsValid() bool {
return (bool)(C.QUntypedBindable_isValid(this.h))
}
func (this *QUntypedBindable) IsBindable() bool {
return (bool)(C.QUntypedBindable_isBindable(this.h))
}
func (this *QUntypedBindable) IsReadOnly() bool {
return (bool)(C.QUntypedBindable_isReadOnly(this.h))
}
func (this *QUntypedBindable) MakeBinding() *QUntypedPropertyBinding {
_goptr := newQUntypedPropertyBinding(C.QUntypedBindable_makeBinding(this.h))
_goptr.GoGC()
return _goptr
}
func (this *QUntypedBindable) TakeBinding() *QUntypedPropertyBinding {
_goptr := newQUntypedPropertyBinding(C.QUntypedBindable_takeBinding(this.h))
_goptr.GoGC()
return _goptr
}
func (this *QUntypedBindable) Observe(observer *QPropertyObserver) {
C.QUntypedBindable_observe(this.h, observer.cPointer())
}
func (this *QUntypedBindable) Binding() *QUntypedPropertyBinding {
_goptr := newQUntypedPropertyBinding(C.QUntypedBindable_binding(this.h))
_goptr.GoGC()
return _goptr
}
func (this *QUntypedBindable) SetBinding(binding *QUntypedPropertyBinding) bool {
return (bool)(C.QUntypedBindable_setBinding(this.h, binding.cPointer()))
}
func (this *QUntypedBindable) HasBinding() bool {
return (bool)(C.QUntypedBindable_hasBinding(this.h))
}
func (this *QUntypedBindable) MetaType() *QMetaType {
_goptr := newQMetaType(C.QUntypedBindable_metaType(this.h))
_goptr.GoGC()
return _goptr
}
func (this *QUntypedBindable) MakeBindingWithLocation(location *QPropertyBindingSourceLocation) *QUntypedPropertyBinding {
_goptr := newQUntypedPropertyBinding(C.QUntypedBindable_makeBindingWithLocation(this.h, location.cPointer()))
_goptr.GoGC()
return _goptr
}
func (this *QUntypedBindable) Delete() {
C.QUntypedBindable_delete(this.h)
}
func (this *QUntypedBindable) GoGC() {
runtime.SetFinalizer(this, func(this *QUntypedBindable) {
this.Delete()
runtime.KeepAlive(this.h)
})
}