ClassDB
Inherits: Object Class information repository.
Description
Provides access to metadata stored for every available class.
Methods
Method Descriptions
- bool can_instance ( String class ) const
trueif you can instance objects from the specifiedclass,falsein other case.
- bool class_exists ( String class ) const
classis available or not.
- String class_get_category ( String class ) const Returns a category associated with the class for use in documentation and the Asset Library. Debug mode required.
- PoolStringArray class_get_enum_constants ( String class, String enum, bool no_inheritance=false ) const
enumofclassor its ancestry.
- PoolStringArray class_get_enum_list ( String class, bool no_inheritance=false ) const
classor its ancestry.
- int class_get_integer_constant ( String class, String name ) const
nameofclassor its ancestry. Always returns 0 when the constant could not be found.
- String class_get_integer_constant_enum ( String class, String name, bool no_inheritance=false ) const
nameofclassor its ancestry belongs to.
- PoolStringArray class_get_integer_constant_list ( String class, bool no_inheritance=false ) const
classor its ancestry.
- Array class_get_method_list ( String class, bool no_inheritance=false ) const
classor its ancestry ifno_inheritanceisfalse. Every element of the array is a Dictionary with the following keys:args,default_args,flags,id,name,return: (class_name, hint, hint_string, name, type, usage). Note: In exported release builds the debug info is not available, so the returned dictionaries will contain only method names.
- Variant class_get_property ( Object object, String property ) const
propertyofclassor its ancestry.
- Array class_get_property_list ( String class, bool no_inheritance=false ) const
classor its ancestry ifno_inheritanceisfalse.
- Dictionary class_get_signal ( String class, String signal ) const
signaldata ofclassor its ancestry. The returned value is a Dictionary with the following keys:args,default_args,flags,id,name,return: (class_name, hint, hint_string, name, type, usage).
- Array class_get_signal_list ( String class, bool no_inheritance=false ) const
classor its ancestry ifno_inheritanceisfalse. Every element of the array is a Dictionary as described in class_get_signal.
- bool class_has_enum ( String class, String name, bool no_inheritance=false ) const
classor its ancestry has an enum callednameor not.
- bool class_has_integer_constant ( String class, String name ) const
classor its ancestry has an integer constant callednameor not.
- bool class_has_method ( String class, String method, bool no_inheritance=false ) const
class(or its ancestry ifno_inheritanceisfalse) has a method calledmethodor not.
- bool class_has_signal ( String class, String signal ) const
classor its ancestry has a signal calledsignalor not.
- Error class_set_property ( Object object, String property, Variant value ) const
propertyvalue ofclasstovalue.
- PoolStringArray get_class_list ( ) const Returns the names of all the classes available.
- PoolStringArray get_inheriters_from_class ( String class ) const
class.
- String get_parent_class ( String class ) const
class.
- Variant instance ( String class ) const
class.
- bool is_class_enabled ( String class ) const
classis enabled or not.
- bool is_parent_class ( String class, String inherits ) const
inheritsis an ancestor ofclassor not.
