-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement uiTable #45
Comments
Good news! I'm invacation rightnow. Will be back on end of august, I will start toadd tables to bindings. |
I'm back on the road again, and I started to work on the new implementation. As a first step, I did a PR where I changed the download process of libui binaries in order to use @andlabs repo |
libui issue: andlabs/libui#425 |
How is the progress? Did you implement all libui table features? Regarding this todo: Lines 8 to 11 in e3848cf
I guess the only way is reference counting when using an image in a table. |
uiTable does not copy images; they are used as soon as you give it to them, and then forgotten about. |
That's true. The images are only used in the |
Oh. I thought I documented the guarantee on lifetime, but basically by the top of the next main loop iteration uiTable will have finished using it. I'm not sure whether creating a new uiImage each time you extract data is a good idea, but eh. |
What do you mean by extracting data? There is a javascript image wrapper which forwards the calls to the actual uiImage and when the wrapper would get gc'ed, the uiImage is freed as well. This underlying uiImage also gets passed to libui in the table callback. |
Almost, I have to finish the abstraction layer on top of models.
I was thinking the same, we can increment the reference when an image is returned by the model handler, and someway decrements it in next loop step, as @andlabs suggested... Another strangeness to solve is here: Line 234 in e3848cf
AFAIK that string should be freed immediately, but if I do it there, the program SEGFAULT. |
Doesn't segfault for me, but according to ui.h:
So it's not copied and shouldn't get freed. |
I'm about to build a desktop app and deciding wether to use electron or proton-native. The only thing missing from a workable proton-native poc is lists/tables (as mentioned in kusti8/proton-native#99) So I was wondering when do guys think this could become available ? Early next year ? Or before the end of the year ? |
@jboodriguez : I definitely think before the end of the year. Anyway, please be aware that I'm doing this in my spare time, for free. Don't take that date as strict deadline, only as an informed guess... |
If this helps as motivation: I'm trying out Proton Native, and without a table widget with selection (single and multi), I have no chance to build my app. |
@parro-it : Here's how an email client without tables looks like: :-) |
🙈
The text was updated successfully, but these errors were encountered: