[c] Regenerate bindings for latest spine-cpp attachment changes

This commit is contained in:
Mario Zechner 2026-03-14 15:35:55 +01:00
parent 9749e52c05
commit 922833c439
8 changed files with 39 additions and 3 deletions

View File

@ -22,6 +22,16 @@ spine_attachment spine_attachment_copy(spine_attachment self) {
return (spine_attachment) &_self->copy(); return (spine_attachment) &_self->copy();
} }
/*@null*/ spine_attachment spine_attachment_get_timeline_attachment(spine_attachment self) {
Attachment *_self = (Attachment *) self;
return (spine_attachment) _self->getTimelineAttachment();
}
void spine_attachment_set_timeline_attachment(spine_attachment self, /*@null*/ spine_attachment attachment) {
Attachment *_self = (Attachment *) self;
_self->setTimelineAttachment((Attachment *) attachment);
}
int spine_attachment_get_ref_count(spine_attachment self) { int spine_attachment_get_ref_count(spine_attachment self) {
Attachment *_self = (Attachment *) self; Attachment *_self = (Attachment *) self;
return _self->getRefCount(); return _self->getRefCount();

View File

@ -14,6 +14,8 @@ SPINE_C_API void spine_attachment_dispose(spine_attachment self);
SPINE_C_API spine_rtti spine_attachment_get_rtti(spine_attachment self); SPINE_C_API spine_rtti spine_attachment_get_rtti(spine_attachment self);
SPINE_C_API const char *spine_attachment_get_name(spine_attachment self); SPINE_C_API const char *spine_attachment_get_name(spine_attachment self);
SPINE_C_API spine_attachment spine_attachment_copy(spine_attachment self); SPINE_C_API spine_attachment spine_attachment_copy(spine_attachment self);
SPINE_C_API /*@null*/ spine_attachment spine_attachment_get_timeline_attachment(spine_attachment self);
SPINE_C_API void spine_attachment_set_timeline_attachment(spine_attachment self, /*@null*/ spine_attachment attachment);
SPINE_C_API int spine_attachment_get_ref_count(spine_attachment self); SPINE_C_API int spine_attachment_get_ref_count(spine_attachment self);
SPINE_C_API void spine_attachment_reference(spine_attachment self); SPINE_C_API void spine_attachment_reference(spine_attachment self);
SPINE_C_API void spine_attachment_dereference(spine_attachment self); SPINE_C_API void spine_attachment_dereference(spine_attachment self);

View File

@ -71,6 +71,16 @@ const char *spine_point_attachment_get_name(spine_point_attachment self) {
return _self->getName().buffer(); return _self->getName().buffer();
} }
/*@null*/ spine_attachment spine_point_attachment_get_timeline_attachment(spine_point_attachment self) {
PointAttachment *_self = (PointAttachment *) self;
return (spine_attachment) _self->getTimelineAttachment();
}
void spine_point_attachment_set_timeline_attachment(spine_point_attachment self, /*@null*/ spine_attachment attachment) {
PointAttachment *_self = (PointAttachment *) self;
_self->setTimelineAttachment((Attachment *) attachment);
}
int spine_point_attachment_get_ref_count(spine_point_attachment self) { int spine_point_attachment_get_ref_count(spine_point_attachment self) {
PointAttachment *_self = (PointAttachment *) self; PointAttachment *_self = (PointAttachment *) self;
return _self->getRefCount(); return _self->getRefCount();

View File

@ -25,6 +25,8 @@ SPINE_C_API void spine_point_attachment_compute_world_position(spine_point_attac
SPINE_C_API float spine_point_attachment_compute_world_rotation(spine_point_attachment self, spine_bone_pose bone); SPINE_C_API float spine_point_attachment_compute_world_rotation(spine_point_attachment self, spine_bone_pose bone);
SPINE_C_API spine_attachment spine_point_attachment_copy(spine_point_attachment self); SPINE_C_API spine_attachment spine_point_attachment_copy(spine_point_attachment self);
SPINE_C_API const char *spine_point_attachment_get_name(spine_point_attachment self); SPINE_C_API const char *spine_point_attachment_get_name(spine_point_attachment self);
SPINE_C_API /*@null*/ spine_attachment spine_point_attachment_get_timeline_attachment(spine_point_attachment self);
SPINE_C_API void spine_point_attachment_set_timeline_attachment(spine_point_attachment self, /*@null*/ spine_attachment attachment);
SPINE_C_API int spine_point_attachment_get_ref_count(spine_point_attachment self); SPINE_C_API int spine_point_attachment_get_ref_count(spine_point_attachment self);
SPINE_C_API void spine_point_attachment_reference(spine_point_attachment self); SPINE_C_API void spine_point_attachment_reference(spine_point_attachment self);
SPINE_C_API void spine_point_attachment_dereference(spine_point_attachment self); SPINE_C_API void spine_point_attachment_dereference(spine_point_attachment self);

View File

@ -144,6 +144,16 @@ const char *spine_region_attachment_get_name(spine_region_attachment self) {
return _self->getName().buffer(); return _self->getName().buffer();
} }
/*@null*/ spine_attachment spine_region_attachment_get_timeline_attachment(spine_region_attachment self) {
RegionAttachment *_self = (RegionAttachment *) self;
return (spine_attachment) _self->getTimelineAttachment();
}
void spine_region_attachment_set_timeline_attachment(spine_region_attachment self, /*@null*/ spine_attachment attachment) {
RegionAttachment *_self = (RegionAttachment *) self;
_self->setTimelineAttachment((Attachment *) attachment);
}
int spine_region_attachment_get_ref_count(spine_region_attachment self) { int spine_region_attachment_get_ref_count(spine_region_attachment self) {
RegionAttachment *_self = (RegionAttachment *) self; RegionAttachment *_self = (RegionAttachment *) self;
return _self->getRefCount(); return _self->getRefCount();

View File

@ -60,6 +60,8 @@ SPINE_C_API spine_attachment spine_region_attachment_copy(spine_region_attachmen
SPINE_C_API void spine_region_attachment_compute_u_vs(/*@null*/ spine_texture_region region, float x, float y, float scaleX, float scaleY, SPINE_C_API void spine_region_attachment_compute_u_vs(/*@null*/ spine_texture_region region, float x, float y, float scaleX, float scaleY,
float rotation, float width, float height, spine_array_float offset, spine_array_float uvs); float rotation, float width, float height, spine_array_float offset, spine_array_float uvs);
SPINE_C_API const char *spine_region_attachment_get_name(spine_region_attachment self); SPINE_C_API const char *spine_region_attachment_get_name(spine_region_attachment self);
SPINE_C_API /*@null*/ spine_attachment spine_region_attachment_get_timeline_attachment(spine_region_attachment self);
SPINE_C_API void spine_region_attachment_set_timeline_attachment(spine_region_attachment self, /*@null*/ spine_attachment attachment);
SPINE_C_API int spine_region_attachment_get_ref_count(spine_region_attachment self); SPINE_C_API int spine_region_attachment_get_ref_count(spine_region_attachment self);
SPINE_C_API void spine_region_attachment_reference(spine_region_attachment self); SPINE_C_API void spine_region_attachment_reference(spine_region_attachment self);
SPINE_C_API void spine_region_attachment_dereference(spine_region_attachment self); SPINE_C_API void spine_region_attachment_dereference(spine_region_attachment self);

View File

@ -80,9 +80,9 @@ void spine_sequence_set_setup_index(spine_sequence self, int setupIndex) {
_self->setSetupIndex(setupIndex); _self->setSetupIndex(setupIndex);
} }
bool spine_sequence_get_path_suffix(spine_sequence self) { bool spine_sequence_has_path_suffix(spine_sequence self) {
Sequence *_self = (Sequence *) self; Sequence *_self = (Sequence *) self;
return _self->getPathSuffix(); return _self->hasPathSuffix();
} }
const char *spine_sequence_get_path(spine_sequence self, const char *basePath, int index) { const char *spine_sequence_get_path(spine_sequence self, const char *basePath, int index) {

View File

@ -41,7 +41,7 @@ SPINE_C_API void spine_sequence_set_digits(spine_sequence self, int digits);
*/ */
SPINE_C_API int spine_sequence_get_setup_index(spine_sequence self); SPINE_C_API int spine_sequence_get_setup_index(spine_sequence self);
SPINE_C_API void spine_sequence_set_setup_index(spine_sequence self, int setupIndex); SPINE_C_API void spine_sequence_set_setup_index(spine_sequence self, int setupIndex);
SPINE_C_API bool spine_sequence_get_path_suffix(spine_sequence self); SPINE_C_API bool spine_sequence_has_path_suffix(spine_sequence self);
SPINE_C_API const char *spine_sequence_get_path(spine_sequence self, const char *basePath, int index); SPINE_C_API const char *spine_sequence_get_path(spine_sequence self, const char *basePath, int index);
/** /**
* Returns a unique ID for this attachment. * Returns a unique ID for this attachment.