gdnative_python/generation/bindings_templates/class.tmpl.pxd

20 lines
524 B
Cython
Raw Normal View History

{% from 'method.tmpl.pyx' import get_method_bind_register_name, render_method_signature %}
{% macro render_class_pxd(cls) %}
cdef class {{ cls.name }}({{ cls.base_class }}):
{% if not cls.base_class %}
2023-06-02 11:05:45 +02:00
cdef pandemonium_object *_gd_ptr
@staticmethod
2023-06-02 11:05:45 +02:00
cdef inline Object cast_from_variant(const pandemonium_variant *p_gdvar)
@staticmethod
2023-06-02 11:05:45 +02:00
cdef inline Object cast_from_ptr(pandemonium_object *ptr)
{% endif %}
@staticmethod
2023-06-02 11:05:45 +02:00
cdef {{ cls.name }} from_ptr(pandemonium_object *_ptr)
{% endmacro %}