slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
16.93k stars 568 forks source link

Expose Window maximize API #3331

Closed stefnotch closed 1 year ago

stefnotch commented 1 year ago

I'm using Slint for a fullscreen/maximized overlay.

For that, I would love it if https://docs.rs/slint/latest/slint/struct.Window.html gained functionality equivalent to one of those two options

There's the somewhat related https://github.com/slint-ui/slint/issues/333 issue, but it seems rather outdated. So I figured I'd make a specific feature request instead.

My tooling

tronical commented 1 year ago

Agreed. In the meantime, what you can use as workaround is to depend on i-slint-backend-winit and use WinitWindowAccessor, if you're using the winit backend.

tronical commented 1 year ago

Closing this as a duplicate of #3283

ogoffart commented 1 year ago

@tronical Maximize is not the same as fullscreen though

On the other hand, I don't know how much of the Window API we really want to abstract/duplicate in our own API instead of just exposing winit directly

tronical commented 1 year ago

Yes, I know it's not the same. I do think that this goes hand-in-hand implementation wise.