AndyObtiva / glimmer-dsl-libui

Glimmer DSL for LibUI - Prerequisite-Free Ruby Desktop Development Cross-Platform Native GUI Library - The Quickest Way From Zero To GUI - If You Liked Shoes, You'll Love Glimmer! - No need to pre-install any prerequisites. Just install the gem and have platform-independent GUI that just works on Mac, Windows, and Linux.
MIT License
497 stars 15 forks source link

Setting Window Position / Location when launching #53

Open itsyoshio opened 1 year ago

itsyoshio commented 1 year ago

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.

image

Thanks

AndyObtiva commented 11 months ago

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.