ryanmcgrath / cacao

Rust bindings for AppKit (macOS) and UIKit (iOS/tvOS). Experimental, but working!
MIT License
1.85k stars 68 forks source link

Get screen dimensions for positioning below toolbar #109

Closed pre-eth closed 11 months ago

pre-eth commented 12 months ago

I looked through the docs so sorry if I missed it, but I didn't see a real way to get the system's dimensions? I would like this info so I can properly calculate the top and left values for positioning my Window, as my app itself is a utility and not a full fledged desktop application (hence why I want it to appear to the right under the icons on the toolbar)