Type

Undocumented in source.

Constructors

this
this(string godotName)
Undocumented in source.
this
this(TypeStruct t)
Undocumented in source.

Members

Functions

acceptImplicit
bool acceptImplicit()

type should be taken as template arg by methods to allow implicit conversion in ptrcall

arrayType
Type arrayType()

returns TypedArray type

asModuleName
string asModuleName()
Undocumented in source. Be warned that the author may not have intended to support it.
asNativeVariantType
string asNativeVariantType()

Get variant type name for method calls

asOpaqueType
string asOpaqueType()

Backing opaque type to use instead of raw GDExtensionTypePtr

canBeCopied
bool canBeCopied()
Undocumented in source. Be warned that the author may not have intended to support it.
dCallParamPrefix
string dCallParamPrefix()

prefix for function parameter of this type

getEnumValueStr
string getEnumValueStr(string value)

returns value name from string literal, default values in api.json uses integers instead of qualified enum values

getParentType
Type getParentType()
Undocumented in source. Be warned that the author may not have intended to support it.
isBitfield
bool isBitfield()
Undocumented in source. Be warned that the author may not have intended to support it.
isCoreType
bool isCoreType()
Undocumented in source. Be warned that the author may not have intended to support it.
isEnum
bool isEnum()
Undocumented in source. Be warned that the author may not have intended to support it.
isGodotStringType
bool isGodotStringType()
Undocumented in source. Be warned that the author may not have intended to support it.
isMetaType
bool isMetaType()
Undocumented in source. Be warned that the author may not have intended to support it.
isPointerType
bool isPointerType()
Undocumented in source. Be warned that the author may not have intended to support it.
isPrimitive
bool isPrimitive()
Undocumented in source. Be warned that the author may not have intended to support it.
isRef
bool isRef()
Undocumented in source. Be warned that the author may not have intended to support it.
isTypedArray
bool isTypedArray()
Undocumented in source. Be warned that the author may not have intended to support it.
ptrCallArgPrefix
string ptrCallArgPrefix()

how to pass parameters of this type into ptrcall void** arg

stripConst
Type stripConst()
Undocumented in source. Be warned that the author may not have intended to support it.
stripConstPointer
Type stripConstPointer()

strip constness, also strips indirections (despite the name)

stripMeta
Type stripMeta()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

dRef
string dRef [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

get
Type get(string godotName)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

enums
Type[] enums;
Undocumented in source.
typesByDName
Type[string] typesByDName;
Undocumented in source.
typesByGodotName
Type[string] typesByGodotName;
Undocumented in source.

Variables

dType
string dType;
Undocumented in source.
enumParent
Type enumParent;
Undocumented in source.
godotType
string godotType;
Undocumented in source.
isNativeStruct
bool isNativeStruct;
Undocumented in source.
objectClass
GodotClass objectClass;
Undocumented in source.
original
GodotClass original;
Undocumented in source.

Meta