Skip to content

Conversation

@KritzelKratzel
Copy link

This PR enables wxEVT_THREAD events in wxLua. Minimum code changes, just an extension in bindings/wxwidgets/wxcore_event.i (together with a small cosmetic fix in class %delete wxCommandEvent : public wxEvent) and regenerated bindings:

  • bindings/wxwidgets/wx_datatypes.lua
  • modules/wxbind/include/wxcore_bind.h
  • modules/wxbind/src/wxcore_bind.cpp
  • modules/wxbind/src/wxcore_event.cpp

Enabling wxEVT_THREAD events lets you post events from worker threads to the main GUI thread when using wxLua with lanes. This is handy for updating widgets with data from worker threads without having to poll the threads using timer events.

- Added class definition to:
  bindings/wxwidgets/wxcore_event.i
- Regenerated bindings with automatic updates in:
  bindings/wxwidgets/wx_datatypes.lua
  modules/wxbind/include/wxcore_bind.h
  modules/wxbind/src/wxcore_bind.cpp
  modules/wxbind/src/wxcore_event.cpp
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