-
Notifications
You must be signed in to change notification settings - Fork 17
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
Setting Window Position / Location when launching #53
Comments
In case you noticed in the commit I tied to this Issue on Jul 14 ("Add window position methods and position changed event"), this is an upcoming feature that is coming to LibUI soon. Once it is released, I will be able to include it in Glimmer DSL for LibUI. |
Hi @AndyObtiva, is this feature live for Glimmer DSL for LibUI? |
I just saw this email. Sorry, I had a crazy few weeks as I was moving. I am not home right now, but I will look into this on my laptop as soon as I get home just to be sure. |
Sorry about the delay. I was prepping for my trip to Chicago all of last week to give a 2-hour workshop at RubyConf 2024 tomorrow on How To Build Basic Desktop Applications in Ruby. The answer to your question is yes and no. There is a newer version of the libui binding that supports setting the window The current final version of the libui binding (0.1.2), which is included in glimmer-dsl-libui, does not support setting the window So, we need to wait some more before we get window positioning support as the C libui-ng bug mentioned above has to be fixed first. I am sorry again about the delay. For whatever reason, the C libui-ng project slowed down in its maintenance significantly. I hope it would pick up pace again eventually. In the meantime, my recommendation will be to check out other Glimmer alternatives, like the new Glimmer DSL for WX (wxWidgets): https://github.com/AndyObtiva/glimmer-dsl-wx. The library is still very new and incomplete, but it supports cross-platform native GUI, so once all Glimmer features are added (like component support, scaffolding, and data-binding) it should become the future of native GUI development in MRI Ruby (CRuby) given that wxWidgets is a very mature GUI toolkit and is 100% feature complete (as opposed to LibUI, which is an incomplete alpha). Glimmer DSL for LibUI will continue to get maintained, but there are no guarantees as to when more features are added to its underlying C libui-ng library. |
If you're interested, I have an experimental fork where I've merged PR 261 and added some other features/tweaks: |
@petabyt |
The one from the release page is old, it needs to be updated. Would x86_64 Mac/Linux/win be fine? I could probably also do arm64 Linux. |
I just noticed I added the wrong link for Glimmer DSL for wxWidgets in my last comment. Here is the right one: https://github.com/AndyObtiva/glimmer-dsl-wx @petabyt We currently have support for Mac x86_64 & Mac ARM64, Linux x86_64, and Windows x86_64 (we had WIndows x86_32 in the past too I believe, but I don't think it's maintained anymore, and it is not required anymore anyways). There was some effort on supporting Linux ARM64 (e.g. Raspberry Pi) in the Ruby libui binding, but it hasn't been finished yet as far as I know: kojix2/LibUI#47 |
@kojix2 Added a new release: https://github.com/petabyt/libui-dev/releases/tag/5-beta |
Thank you. |
@petabyt If there is a shared library for Windows, that would be even better. In the Northern Hemisphere, the days are colder, and sunsets come earlier. Wishing everyone warmth and wellness. |
Would some kind of nightly release be better? Or is there a better way of publishing builds? |
Artifacts uploaded by GitHub Actions will be available for download via nightly.link. https://github.com/oprypin/nightly.link I learned this approach using the “nightly.link” service from cody, the developer of libui-ng. |
How can i set the location, where the GUI will spawn (on any or a specific OS)?
At best i'd like to Center it on the Screen.
On my Mac the Gui always spawns in the botton left corner (what i assume to be 0,0), however it's also moved down by half its height.
Thanks
The text was updated successfully, but these errors were encountered: