Struct gdnative_bindings_generator::api::GodotClass
source · pub struct GodotClass {
pub name: String,
pub base_class: String,
pub api_type: String,
pub singleton: bool,
pub is_reference: bool,
pub instantiable: bool,
pub properties: Vec<Property>,
pub methods: Vec<GodotMethod>,
pub enums: Vec<Enum>,
pub constants: HashMap<ConstantName, ConstantValue>,
/* private fields */
}
Fields§
§name: String
§base_class: String
§api_type: String
§singleton: bool
§is_reference: bool
§instantiable: bool
§properties: Vec<Property>
§methods: Vec<GodotMethod>
§enums: Vec<Enum>
§constants: HashMap<ConstantName, ConstantValue>
Implementations§
source§impl GodotClass
impl GodotClass
pub fn generate_module_name(&mut self)
pub fn module(&self) -> &str
pub fn base_class_module(&self) -> &str
sourcepub fn base_class_name(&self) -> Option<&str>
pub fn base_class_name(&self) -> Option<&str>
Returns the name of the base class if base_class
is not empty. Returns None
otherwise.
pub fn is_singleton_thread_safe(&self) -> bool
sourcepub fn base_class<'a>(&self, api: &'a Api) -> Option<&'a Self>
pub fn base_class<'a>(&self, api: &'a Api) -> Option<&'a Self>
Returns the base class from api
if base_class
is not empty. Returns None
otherwise.
pub fn is_refcounted(&self) -> bool
pub fn is_pointer_safe(&self) -> bool
pub fn is_getter(&self, name: &str) -> bool
Whether there is a snake_case module containing related symbols (nested types in C++)