Closed ancwrd1 closed 2 years ago
Thank you for your feedback. Please let me know about your environment?
I know some wx APIs are platform-specific,
but I did only some hacky blocklisting them with very-limited environments, for Linux:
I'm working mainly on MacOS and Windows 10 for now.
Will consider marking those APIs with #[cfg(target=somewhat)] next.
I tried it with openSUSE Tumbleweed and wxWidgets 3.1.5 (GTK3).
Interesting though, the documentation of RegisterHotKey
says the following: This function is currently only implemented under MSW and macOS and always returns false in the other ports.
.
I couldn't use the codelite's prebuilt packages since I have only arm64 envs. I rebuilt it for arm64 and I just got testing environment for wx3.1 on Linux.
I'll work around this by just blocking not supported APIs you reported (RegisterHotKey (and UnregisterHotKey)) for now.
About per-platform code generation, I'll work on it in https://github.com/kenz-gelsoft/wxRust2/issues/42.
The following compilation errors are shown:
I think this happens because those methods are only available on Windows.