SignalRegistration

gdext.internal.register.SignalRegistration

Registers signals on a registered class and emits them.

Registration uses classdb_register_extension_class_signal. Emission goes through Object.emit_signal, which is a vararg method, so it uses the Variant call path (object_method_bind_call) with the signal name as the first Variant argument followed by the signal's payload Variants.

This first cut covers the most common case — a no-argument signal — which is enough to prove registration + connect + emit end to end. Adding typed payload arguments is a matter of extending the argument-info array and the emit arg list.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def callDeferred(host: GodotObject, methodName: String): Unit

Defer a no-argument call to methodName on host to the next idle frame (Object.call_deferred). Used to delay editor UI construction until a control is fully in-tree and themed — building children during _ready accesses theme "too early" and crashes.

Defer a no-argument call to methodName on host to the next idle frame (Object.call_deferred). Used to delay editor UI construction until a control is fully in-tree and themed — building children during _ready accesses theme "too early" and crashes.

Attributes

def emit(host: GodotObject, signalName: String): Unit

Emit a no-argument signal from host.

Emit a no-argument signal from host.

Attributes

def registerSignal(className: String, signalName: String): Unit

Register a no-argument signal signalName on className.

Register a no-argument signal signalName on className.

Attributes