Is it possible to build a gui which is both cross compatible and native?
Pretty much all cross compatible gui crates I have seen seem to avoid trying to use native libraries, and just draw all of the gui objects themselves.
I understand that drawing the objects ourselves gives us more control over the details. Sometimes, native libraries are finicky and the objects are drawn differently than expected.
The problem, is that manually drawing all of the objects and checking for the mouse or keyboard events for each object, takes significant memory, CPU, and GPU.
Another problem is the objects appear styled in a non-native format.
Are there any crates which allow you to build cross compatible and native GUIs? I am imagining the crate would have a function like "create_button", and the crate would use different libraries depending on the target OS.
I understand Linux has no concept of a native library, but I was imaging the crate would detect which libraries are available, and use those.