ClassDB
Category: Core
Class information repository.
Provides access to metadata stored for every available class.
- can_instance ( String class ) const
Returns if you can instance objects from the specified ‘class’, in other case.
- class_exists ( String class ) const
Returns whether the specified ‘class’ is available or not.
- class_get_category ( String class ) const
Returns a category associated with the class for use in documentation and the Asset Library. Debug mode required.
Returns the value of the integer constant ‘name’ of ‘class’ or its ancestry. Always returns 0 when the constant could not be found.
- class_get_integer_constant_list ( String class, no_inheritance=false ) const
Returns an array with all the methods of ‘class’ or its ancestry if ‘no_inheritance’ is . Every element of the array is a with the following keys: args, default_args, flags, id, name, return: (class_name, hint, hint_string, name, type, usage).
Returns the value of ‘property’ of ‘class’ or its ancestry.
- class_get_property_list ( String class, no_inheritance=false ) const
Returns an array with all the properties of ‘class’ or its ancestry if ‘no_inheritance’ is .
- Dictionary class_get_signal ( class, String signal ) const
Returns the ‘signal’ data of ‘class’ or its ancestry. The returned value is a with the following keys: args, default_args, flags, id, name, return: (class_name, hint, hint_string, name, type, usage).
Returns an array with all the signals of ‘class’ or its ancestry if ‘no_inheritance’ is . Every element of the array is a as described in class_get_signal.
- class_has_integer_constant ( String class, name ) const
Returns whether ‘class’ or its ancestry has an integer constant called ‘name’ or not.
Returns whether ‘class’ (or its ancestry if ‘no_inheritance’ is false) has a method called ‘method’ or not.
Sets ‘property’ value of ‘class’ to ‘value’.
- get_class_list ( ) const
Returns the names of all the classes available.
- PoolStringArray get_inheriters_from_class ( class ) const
Returns the names of all the classes that directly or indirectly inherit from ‘class’.
- String get_parent_class ( class ) const
Returns the parent class of ‘class’.
- Variant instance ( class ) const
Creates an instance of ‘class’.
- bool is_class_enabled ( class ) const
Returns whether this class is enabled or not.
Returns whether ‘inherits’ is an ancestor of ‘class’ or not.