Skip to content

Conversation

@SageCreations
Copy link
Member

  • Binded all enums, structs, functions, etc. from the webui.h file.
  • Copied all comments from the webui.h and updated the examples with Odin versions.
  • Ported over all examples from the C version of WebUI.
  • Left wrappers as is, binded functions that have wrappers still have the prefix of "webui_" to the function.
    • so ui.webui_show(.., ..) will use the default C binding version whereas ui.show(.., ..) will use the wrapper version.

…ething wrong with the vfs function and handling the byte info. program runs, doesnt server html properly, something about charset not being handled with the mime_type?
…re, have file loading working, left off trying to match names, fullpath vs rel-path
… button is working as intended, i assume the reload button next to it means that the text is supposed to persit for local client, but it does not.
text editor example seems to be functioning correctly with no errors
seems to fully work, havent ran the C version so not sure if the save…
public network access example worked with no issues
…his one with casting when from parramenters when neccasary
…e no longer needed, directory walk done through odin
forgot the webui_ prefix in the linkname for new_window_id
@AlbertShown AlbertShown merged commit 46b93c1 into webui-dev:main Jan 13, 2025
2 checks passed
@AlbertShown
Copy link
Member

This will improve Odin wrapper and make it more usable. Thank you @SageCreations for this big PR 👍

@SageCreations
Copy link
Member Author

I forgot to ask, should anything be updated in the main README.md? I didn't touch that part.

@AlbertShown
Copy link
Member

I forgot to ask, should anything be updated in the main README.md? I didn't touch that part.

  • I see logo it's not set yet, someone needs to create a new Odin logo, and add it here
  • Adding commands how to install it on Windows (right now it only shows Linux)
  • Example should be minimal as possible in Readme
  • Wrappers, Supported Web Browsers tables can be updated, the new updated one is here
  • In examples folder, call_js.odin should be something like call_js_from_odin.odin / call_odin_from_js.odin (for search engine)

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.

2 participants