Fix 2023/01/10 02:48 |
Is there a licence or repo on this?
I'm trying to get the gui lib working with the following code: ``` use "classes"; import "gui/view"; import "image/image"; function init() { var iconImage = Image::create(32, 32); var notifyIcon = NotifyIcon::create([iconImage]); var menu = Menu::create(); menu.add_separator(); // notifyIcon.set_menu(menu); } ``` The commented line gives me a compile-time error: `main.fix(12): must be class or struct type [classes]` And without it I get the runtime error: `gui/event.fix(653): native function not present` |
Fix 2023/01/10 02:57 |
Okay I had to add -g to the fixbuild flags. However I don't get a notifier icon or a window I tried to create.
Just the following warning repeated a few times: (main:134611): Gtk-WARNING **: 12:56:38.801: Unable to locate theme engine in module_path: "murrine", |
jezek2 2023/01/10 05:54 |
FixGUI is currently a preview release and the various backends are of varying quality. The best support is in the Windows backend.
Improving the GTK support is certainly on the plan for the near future. The license is ZLIB. Which is similar to the more common BSD/MIT but doesn't require any attribution in binary builds (sometimes this is quite problematic and/or hard to maintain for all dependencies and their dependencies). There is no public repository, you can find it in the individual source files of the libraries. You can find all the sources in the "src" directory of the SDK in each file (these are for reference purposes, see the individual source releases for each library to actually build them from scratch). |