Skip to content

Export RenderFragments through native dynlib - #90

Merged
elcritch merged 1 commit into
mainfrom
feat/dynlib-render-fragments
Sep 20, 2026
Merged

elcritch merged 1 commit into
mainfrom
feat/dynlib-render-fragments

Conversation

@elcritch

Copy link
Copy Markdown
Owner

Summary

  • export RenderFragments, handles, cursors, and operations directly through the generated native ABI
  • add imageStyle(ImageId, Fill) and preserve custom fills for ImageRef
  • share Siwin frame setup and fallback policy between Renders and RenderFragments
  • require Binny 0.5.22 for opaque generic sequence/table layouts

Testing

  • nim build_dynlib
  • nim r -d:useNativeDynlib tests/tdynlib_api.nim
  • nim r -d:useNativeDynlib tests/tdynlib_renderfragments.nim
  • dynlib compile: examples/siwin_renderfragments.nim and examples/siwin_replace_image.nim
  • normal compile: examples/siwin_renderfragments.nim

Reviewed with an Astra xhigh subagent; its Siwin-policy finding was addressed by routing both input types through the same implementation.

@elcritch
elcritch merged commit fe962f7 into main Sep 20, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant