gdextension

package
v0.0.0-...-ae8aae0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package gdextension is the graphics.gd authorative Go representation of the Godot C GDExtension API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

type Array

type Array uintptr // in-memory representation of Godot's Array, solo pointer-sized.

type ArrayPtr

type ArrayPtr *Array

type BindingCreateCallback

type BindingCreateCallback Func[func(ClassLibraryPtr, cgo.Handle) cgo.Handle]

type BindingFreeCallback

type BindingFreeCallback Func[func(ClassLibraryPtr, cgo.Handle, cgo.Handle)]

type BindingReferenceCallback

type BindingReferenceCallback Func[func(ClassLibraryPtr, cgo.Handle, Bool) Bool]

type Bool

type Bool uint8

type CallError

type CallError struct {
	// contains filtered or unexported fields
}

type CallErrorType

type CallErrorType uint32

type CallableCustomCall

type CallableCustomCall Func[func(cgo.Handle, UnsafeArray[Const[VariantPtr]], Int, VariantPtr, *CallError)]

type CallableCustomEqual

type CallableCustomEqual Func[func(cgo.Handle, cgo.Handle) Bool]

type CallableCustomFree

type CallableCustomFree Func[func(cgo.Handle)]

type CallableCustomGetArgumentCount

type CallableCustomGetArgumentCount Func[func(cgo.Handle, *Bool) Int]

type CallableCustomHash

type CallableCustomHash Func[func(cgo.Handle) uint32]

type CallableCustomInfo2

type CallableCustomInfo2 struct {
	// contains filtered or unexported fields
}

type CallableCustomIsValid

type CallableCustomIsValid Func[func(cgo.Handle) Bool]

type CallableCustomLessThan

type CallableCustomLessThan Func[func(cgo.Handle, cgo.Handle) Bool]

type CallableCustomToString

type CallableCustomToString Func[func(cgo.Handle, *Bool, StringPtr)]

type CallablePtr

type CallablePtr [2]uintptr

type ClassCreateInstance2

type ClassCreateInstance2 Func[func(cgo.Handle, Bool) ObjectPtr]

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 ClassGetPropertyList

type ClassGetPropertyList Func[func(ClassInstancePtr, *uint32) UnsafeArray[PropertyInfo]]

type ClassGetVirtualCallData

type ClassGetVirtualCallData Func[func(cgo.Handle, Const[StringNamePtr]) cgo.Handle]

type ClassInstancePtr

type ClassInstancePtr cgo.Handle

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 ClassTag

type ClassTag uintptr

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 Const

type Const[T any] struct {
	RO T
}

type Dictionary

type Dictionary uintptr // in-memory representation of Godot's Dictionary, solo pointer-sized.

type DictionaryPtr

type DictionaryPtr *Dictionary

type Func

type Func[T any] unsafe.Pointer

type GodotVersion

type GodotVersion struct {
	// contains filtered or unexported fields
}

type InstanceBindingCallbacks

type InstanceBindingCallbacks struct {
	// contains filtered or unexported fields
}

type Int

type Int int64

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 ObjectPtr

type ObjectPtr *Object

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 PtrBuiltInMethod Func[func(TypePtr, UnsafeArray[Const[TypePtr]], TypePtr, Int)]

type PtrConstructor

type PtrConstructor Func[func(TypePtr, UnsafeArray[Const[TypePtr]])]

type PtrDestructor

type PtrDestructor Func[func(TypePtr)]

type PtrGetter

type PtrGetter Func[func(Const[TypePtr], TypePtr)]

type PtrIndexedGetter

type PtrIndexedGetter Func[func(Const[TypePtr], Int, TypePtr)]

type PtrIndexedSetter

type PtrIndexedSetter Func[func(Const[TypePtr], Int, Const[TypePtr])]

type PtrKeyedChecker

type PtrKeyedChecker Func[func(Const[VariantPtr], Const[VariantPtr]) uint32]

type PtrKeyedGetter

type PtrKeyedGetter Func[func(Const[TypePtr], Const[TypePtr], TypePtr)]

type PtrKeyedSetter

type PtrKeyedSetter Func[func(Const[TypePtr], Const[TypePtr], Const[TypePtr])]

type PtrOperatorEvaluator

type PtrOperatorEvaluator Func[func(Const[TypePtr], Const[TypePtr], TypePtr)]

type PtrSetter

type PtrSetter Func[func(Const[TypePtr], Const[TypePtr])]

type PtrUtilityFunction

type PtrUtilityFunction Func[func(TypePtr, UnsafeArray[Const[TypePtr]], Int)]

type RefPtr

type RefPtr *Object

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 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 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 ScriptInstanceToString

type ScriptInstanceToString Func[func(ScriptInstanceDataPtr, *Bool, StringPtr)]

type ScriptInstanceValidateProperty

type ScriptInstanceValidateProperty Func[func(ScriptInstanceDataPtr, *PropertyInfo) Bool]

type ScriptLanguagePtr

type ScriptLanguagePtr *Object

type String

type String string // in-memory representation of Godot's String, solo pointer-sized.

type StringName

type StringName uintptr // in-memory representation of Godot's StringName, solo pointer-sized.

type StringNamePtr

type StringNamePtr *StringName

type StringPtr

type StringPtr *String

type TypeFromVariantConstructorFunc

type TypeFromVariantConstructorFunc Func[func(TypePtr, VariantPtr)]

type TypePtr

type TypePtr unsafe.Pointer

type Uninitialized

type Uninitialized[T any] struct {
	WO T
}

type UnsafeArray

type UnsafeArray[T any] *T

type UnsafeString

type UnsafeString *byte

type Variant

type Variant [24]byte // in-memory representation of Godot's Variant, 24 bytes.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL