Documentation ¶
Overview ¶
Package gdextension is the graphics.gd authorative Go representation of the Godot C GDExtension API.
Index ¶
- type API
- type Array
- type ArrayPtr
- type BindingCreateCallback
- type BindingFreeCallback
- type BindingReferenceCallback
- type Bool
- type CallError
- type CallErrorType
- type CallableCustomCall
- type CallableCustomEqual
- type CallableCustomFree
- type CallableCustomGetArgumentCount
- type CallableCustomHash
- type CallableCustomInfo2
- type CallableCustomIsValid
- type CallableCustomLessThan
- type CallableCustomToString
- type CallablePtr
- type ClassCallVirtualWithData
- type ClassCreateInstance2
- type ClassCreationInfo4
- type ClassFreeInstance
- type ClassFreePropertyList2
- type ClassGet
- type ClassGetPropertyList
- type ClassGetVirtual
- type ClassGetVirtualCallData
- type ClassInstancePtr
- type ClassLibraryPtr
- type ClassMethodInfo
- type ClassNotification2
- type ClassPropertyCanRevert
- type ClassPropertyGetRevert
- type ClassRecreateInstance
- type ClassReference
- type ClassSet
- type ClassTag
- type ClassToString
- type ClassUnreference
- type ClassValidateProperty
- type ClassVirtualMethodInfo
- type Const
- type Dictionary
- type DictionaryPtr
- type Func
- type GodotVersion
- type InstanceBindingCallbacks
- type Int
- type MethodArgumentMetadata
- type MethodBindPtr
- type MethodInfo
- type Object
- type ObjectInstanceID
- type ObjectPtr
- type PackedArray
- type PackedArrayPtr
- type PropertyInfo
- type PtrBuiltInMethod
- type PtrConstructor
- type PtrDestructor
- type PtrGetter
- type PtrIndexedGetter
- type PtrIndexedSetter
- type PtrKeyedChecker
- type PtrKeyedGetter
- type PtrKeyedSetter
- type PtrOperatorEvaluator
- type PtrSetter
- type PtrUtilityFunction
- type RefPtr
- type ScriptInstanceCall
- type ScriptInstanceDataPtr
- type ScriptInstanceFree
- type ScriptInstanceFreeMethodList2
- type ScriptInstanceFreePropertyList2
- type ScriptInstanceGet
- type ScriptInstanceGetClassCategory
- type ScriptInstanceGetLanguage
- type ScriptInstanceGetMethodArgumentCount
- type ScriptInstanceGetMethodList
- type ScriptInstanceGetOwner
- type ScriptInstanceGetPropertyList
- type ScriptInstanceGetPropertyState
- type ScriptInstanceGetPropertyType
- type ScriptInstanceGetScript
- type ScriptInstanceHasMethod
- type ScriptInstanceInfo3
- type ScriptInstanceIsPlaceholder
- type ScriptInstanceNotification2
- type ScriptInstancePropertyCanRevert
- type ScriptInstancePropertyGetRevert
- type ScriptInstancePropertyStateAdd
- type ScriptInstancePtr
- type ScriptInstanceRefCountDecremented
- type ScriptInstanceRefCountIncremented
- type ScriptInstanceSet
- type ScriptInstanceToString
- type ScriptInstanceValidateProperty
- type ScriptLanguagePtr
- type String
- type StringName
- type StringNamePtr
- type StringPtr
- type TypeFromVariantConstructorFunc
- type TypePtr
- type Uninitialized
- type UnsafeArray
- type UnsafeString
- type Variant
- type VariantFromTypeConstructorFunc
- type VariantGetInternalPtrFunc
- type VariantOperator
- type VariantPtr
- type VariantType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindingCreateCallback ¶
type BindingFreeCallback ¶
type CallErrorType ¶
type CallErrorType uint32
type CallableCustomCall ¶
type CallableCustomCall Func[func(cgo.Handle, UnsafeArray[Const[VariantPtr]], Int, VariantPtr, *CallError)]
type CallableCustomFree ¶
type CallableCustomInfo2 ¶
type CallableCustomInfo2 struct {
// contains filtered or unexported fields
}
type CallablePtr ¶
type CallablePtr [2]uintptr
type ClassCallVirtualWithData ¶
type ClassCallVirtualWithData Func[func(ClassInstancePtr, Const[StringNamePtr], cgo.Handle, UnsafeArray[Const[TypePtr]], TypePtr)]
type ClassCreationInfo4 ¶
type ClassCreationInfo4 struct {
// contains filtered or unexported fields
}
type ClassFreeInstance ¶
type ClassFreeInstance Func[func(cgo.Handle, ClassInstancePtr)]
type ClassFreePropertyList2 ¶
type ClassFreePropertyList2 Func[func(ClassInstancePtr, UnsafeArray[PropertyInfo], uint32)]
type ClassGet ¶
type ClassGet Func[func(ClassInstancePtr, StringNamePtr, VariantPtr)]
type ClassGetPropertyList ¶
type ClassGetPropertyList Func[func(ClassInstancePtr, *uint32) UnsafeArray[PropertyInfo]]
type ClassGetVirtual ¶
type ClassGetVirtual Func[func(cgo.Handle, Const[StringNamePtr]) Func[func(ClassInstancePtr, UnsafeArray[Const[TypePtr]], TypePtr)]]
type ClassGetVirtualCallData ¶
type ClassInstancePtr ¶
type ClassLibraryPtr ¶
type ClassLibraryPtr uintptr // provided by the entry point.
type ClassMethodInfo ¶
type ClassMethodInfo struct {
// contains filtered or unexported fields
}
type ClassNotification2 ¶
type ClassNotification2 Func[func(ClassInstancePtr, int32, Bool)]
type ClassPropertyCanRevert ¶
type ClassPropertyCanRevert Func[func(ClassInstancePtr, Const[StringNamePtr]) Bool]
type ClassPropertyGetRevert ¶
type ClassPropertyGetRevert Func[func(ClassInstancePtr, Const[StringNamePtr], VariantPtr) Bool]
type ClassRecreateInstance ¶
type ClassRecreateInstance Func[func(cgo.Handle, ObjectPtr) ClassInstancePtr]
type ClassReference ¶
type ClassReference Func[func(ClassInstancePtr)]
type ClassSet ¶
type ClassSet Func[func(ClassInstancePtr, StringNamePtr, Const[VariantPtr])]
type ClassToString ¶
type ClassToString Func[func(ClassInstancePtr, *Bool, StringPtr)]
type ClassUnreference ¶
type ClassUnreference Func[func(ClassInstancePtr)]
type ClassValidateProperty ¶
type ClassValidateProperty Func[func(ClassInstancePtr, Const[StringNamePtr], *PropertyInfo) Bool]
type ClassVirtualMethodInfo ¶
type ClassVirtualMethodInfo struct {
// contains filtered or unexported fields
}
type Dictionary ¶
type Dictionary uintptr // in-memory representation of Godot's Dictionary, solo pointer-sized.
type DictionaryPtr ¶
type DictionaryPtr *Dictionary
type GodotVersion ¶
type GodotVersion struct {
// contains filtered or unexported fields
}
type InstanceBindingCallbacks ¶
type InstanceBindingCallbacks struct {
// contains filtered or unexported fields
}
type MethodArgumentMetadata ¶
type MethodArgumentMetadata uint32
type MethodBindPtr ¶
type MethodBindPtr uintptr
type MethodInfo ¶
type MethodInfo struct {
// contains filtered or unexported fields
}
type Object ¶
type Object uintptr // in-memory representation of Godot's Object, solo pointer-sized.
type ObjectInstanceID ¶
type ObjectInstanceID uint64
type PackedArray ¶
type PackedArray [2]uintptr // in-memory representation of Godot's PackedArray, two pointer-sized.
type PackedArrayPtr ¶
type PackedArrayPtr *PackedArray
type PropertyInfo ¶
type PropertyInfo struct {
// contains filtered or unexported fields
}
type PtrBuiltInMethod ¶
type PtrConstructor ¶
type PtrConstructor Func[func(TypePtr, UnsafeArray[Const[TypePtr]])]
type PtrDestructor ¶
type PtrKeyedChecker ¶
type PtrKeyedChecker Func[func(Const[VariantPtr], Const[VariantPtr]) uint32]
type PtrKeyedSetter ¶
type PtrOperatorEvaluator ¶
type PtrUtilityFunction ¶
type ScriptInstanceCall ¶
type ScriptInstanceCall Func[func(ScriptInstanceDataPtr, Const[StringNamePtr], UnsafeArray[Const[VariantPtr]], Int, VariantPtr, *CallError)]
type ScriptInstanceDataPtr ¶
type ScriptInstanceDataPtr uintptr
type ScriptInstanceFree ¶
type ScriptInstanceFree Func[func(ScriptInstanceDataPtr)]
type ScriptInstanceFreeMethodList2 ¶
type ScriptInstanceFreeMethodList2 Func[func(ScriptInstanceDataPtr, UnsafeArray[MethodInfo], uint32)]
type ScriptInstanceFreePropertyList2 ¶
type ScriptInstanceFreePropertyList2 Func[func(ScriptInstanceDataPtr, UnsafeArray[PropertyInfo], uint32)]
type ScriptInstanceGet ¶
type ScriptInstanceGet Func[func(ScriptInstanceDataPtr, Const[StringNamePtr], VariantPtr) Bool]
type ScriptInstanceGetClassCategory ¶
type ScriptInstanceGetClassCategory Func[func(ScriptInstanceDataPtr, *PropertyInfo) Bool]
type ScriptInstanceGetLanguage ¶
type ScriptInstanceGetLanguage Func[func(ScriptInstanceDataPtr) ScriptLanguagePtr]
type ScriptInstanceGetMethodArgumentCount ¶
type ScriptInstanceGetMethodArgumentCount Func[func(ScriptInstanceDataPtr, Const[StringNamePtr], *Bool) Int]
type ScriptInstanceGetMethodList ¶
type ScriptInstanceGetMethodList Func[func(ScriptInstanceDataPtr, *uint32) UnsafeArray[MethodInfo]]
type ScriptInstanceGetOwner ¶
type ScriptInstanceGetOwner Func[func(ScriptInstanceDataPtr) ObjectPtr]
type ScriptInstanceGetPropertyList ¶
type ScriptInstanceGetPropertyList Func[func(ScriptInstanceDataPtr, *uint32) UnsafeArray[PropertyInfo]]
type ScriptInstanceGetPropertyState ¶
type ScriptInstanceGetPropertyState Func[func(ScriptInstanceDataPtr, ScriptInstancePropertyStateAdd, cgo.Handle)]
type ScriptInstanceGetPropertyType ¶
type ScriptInstanceGetPropertyType Func[func(ScriptInstanceDataPtr, Const[StringNamePtr], *Bool) VariantType]
type ScriptInstanceGetScript ¶
type ScriptInstanceGetScript Func[func(ScriptInstanceDataPtr) ObjectPtr]
type ScriptInstanceHasMethod ¶
type ScriptInstanceHasMethod Func[func(ScriptInstanceDataPtr, Const[StringNamePtr]) Bool]
type ScriptInstanceInfo3 ¶
type ScriptInstanceInfo3 struct {
// contains filtered or unexported fields
}
type ScriptInstanceIsPlaceholder ¶
type ScriptInstanceIsPlaceholder Func[func(ScriptInstanceDataPtr) Bool]
type ScriptInstanceNotification2 ¶
type ScriptInstanceNotification2 Func[func(ScriptInstanceDataPtr, Int, Bool)]
type ScriptInstancePropertyCanRevert ¶
type ScriptInstancePropertyCanRevert Func[func(ScriptInstanceDataPtr, Const[StringNamePtr]) Bool]
type ScriptInstancePropertyGetRevert ¶
type ScriptInstancePropertyGetRevert Func[func(ScriptInstanceDataPtr, Const[StringNamePtr], VariantPtr) Bool]
type ScriptInstancePropertyStateAdd ¶
type ScriptInstancePropertyStateAdd Func[func(StringNamePtr, Const[VariantPtr], cgo.Handle)]
type ScriptInstancePtr ¶
type ScriptInstancePtr *Object
type ScriptInstanceRefCountDecremented ¶
type ScriptInstanceRefCountDecremented Func[func(ScriptInstanceDataPtr) Bool]
type ScriptInstanceRefCountIncremented ¶
type ScriptInstanceRefCountIncremented Func[func(ScriptInstanceDataPtr)]
type ScriptInstanceSet ¶
type ScriptInstanceSet Func[func(ScriptInstanceDataPtr, Const[StringNamePtr], Const[VariantPtr]) Bool]
type ScriptInstanceToString ¶
type ScriptInstanceToString Func[func(ScriptInstanceDataPtr, *Bool, StringPtr)]
type ScriptInstanceValidateProperty ¶
type ScriptInstanceValidateProperty Func[func(ScriptInstanceDataPtr, *PropertyInfo) Bool]
type ScriptLanguagePtr ¶
type ScriptLanguagePtr *Object
type StringName ¶
type StringName uintptr // in-memory representation of Godot's StringName, solo pointer-sized.
type StringNamePtr ¶
type StringNamePtr *StringName
type TypeFromVariantConstructorFunc ¶
type TypeFromVariantConstructorFunc Func[func(TypePtr, VariantPtr)]
type Uninitialized ¶
type Uninitialized[T any] struct { WO T }
type UnsafeArray ¶
type UnsafeArray[T any] *T
type UnsafeString ¶
type UnsafeString *byte
type VariantFromTypeConstructorFunc ¶
type VariantFromTypeConstructorFunc Func[func(VariantPtr, TypePtr)]
type VariantGetInternalPtrFunc ¶
type VariantGetInternalPtrFunc Func[func(Const[VariantPtr]) TypePtr]
type VariantOperator ¶
type VariantOperator uint32
type VariantPtr ¶
type VariantPtr *Variant
type VariantType ¶
type VariantType uint32
Click to show internal directories.
Click to hide internal directories.