2023-05-23 19:06:25 +02:00
|
|
|
{% 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
|
2023-05-23 19:06:25 +02:00
|
|
|
|
|
|
|
@staticmethod
|
2023-06-02 11:05:45 +02:00
|
|
|
cdef inline Object cast_from_variant(const pandemonium_variant *p_gdvar)
|
2023-05-23 19:06:25 +02:00
|
|
|
|
|
|
|
@staticmethod
|
2023-06-02 11:05:45 +02:00
|
|
|
cdef inline Object cast_from_ptr(pandemonium_object *ptr)
|
2023-05-23 19:06:25 +02:00
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
@staticmethod
|
2023-06-02 11:05:45 +02:00
|
|
|
cdef {{ cls.name }} from_ptr(pandemonium_object *_ptr)
|
2023-05-23 19:06:25 +02:00
|
|
|
|
|
|
|
{% endmacro %}
|