grkek / iu

UI framework based on the Fusion/libui.cr library, with elements from watzon/cru.
MIT License
72 stars 5 forks source link

Standalone image example? #2

Open rubyFeedback opened 3 years ago

rubyFeedback commented 3 years ago

Could a standalone image example be added to demonstrate the view-image functionality?

I know it is possible because ruby libui does it. Would be nice to have copy/paste-able code in crystal as-is to just modify it a little bit for already existing images.

grkek commented 3 years ago

Looks like Image component is missing from the actual bindings, so I don't think this is possible for now.

The functionality is there in the LibUI, but the binding in crystal are missing, You can try to implement that by patching the bindings library.