Type.fromName

Look up the type ID from a given type name, returning 0 if no type has been registered under this name (this is the preferred method to find out by name whether a specific type has been registered yet).

struct Type
static
fromName
(
string name
)

Parameters

name string

type name to look up

Return Value

Type: GType

corresponding type ID or 0

Meta