-
Notifications
You must be signed in to change notification settings - Fork 11
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
V-WebUI | To-Do List #17
Comments
Do you mean |
Actually yes and no. C.webui_event_t.element is char and not native type. So the function will get the char, convert it to native string type and return it |
The V wrapper uses a direct call from C-WebUI to V callbacks. It works well, but I made another approach for the Python, Go and C++ wrappers. I created an event handler function that receives all events from the WebUI library first, then converts data to the native language format and calls the user callback. [WebUI] -> [V Wrapper Events Handler] -> [End-user callback]
*
*
* * * Here, you can convert (C.webui_event_t) to (Native V Event struct of your choice) Nothing forced me to use this approach in all three wrappers I made, but I did it anyway just for fun and to learn new things in other languages. |
I like the approach. I will implement it as like that. Also it gives the native feeling to developers. While they can use the value directly, why do they need to use a extra function? |
|
It's nearly done with #18. However it's using global variables that not recommend. I will fix it and merge it |
Actually it's still using global variables but |
The last open point might have been resolved with webui-dev/website#3 |
<Window>.is_shown
function is missing d2df962<Window>.set_multi_access
function is missing d2df962<Window>.run
function is missing d2df962<Window>.set_runtime
is missing b6e63e9<webui.Event>
is not implemented Add native event support #18""
is broken (Fix it) 8483f17my_window.bind(/*params*/).bind(/*params*/)
) a118aed<Window>.destroy()
is missing 08691cawebui.browser_chrome
->.chrome
) 482c4b9webui.new_window_id
is missing 4ac9f28webui.get_window_id
is missing (Native implementation required) 4ac9f28get_new_window_id
is missing webui-dev/webui@bc5e5b2 482c4b9The text was updated successfully, but these errors were encountered: