Giter VIP home page Giter VIP logo

Comments (6)

tomaka avatar tomaka commented on September 13, 2024

More generally, winit should provide an additional flag to let the OS position the window itself.

from winit.

garasubo avatar garasubo commented on September 13, 2024

Can I take this issue? I plan to implement set_outer_position into WindowAttributes

from winit.

Osspial avatar Osspial commented on September 13, 2024

@garasubo There's actually a WIP PR to add this (#1240), but it never got a macOS implementation so it hasn't been merged. If you'd like to move that PR onto the latest master and add in that implementation, that'd be great!

from winit.

garasubo avatar garasubo commented on September 13, 2024

Oh, good to know. Unfortunately, I don't have macOS environment, though.

from winit.

Berrysoft avatar Berrysoft commented on September 13, 2024

Just a set_outer_position isn't enough. Is there a way to get the screen size?

from winit.

filnet avatar filnet commented on September 13, 2024

Just a set_outer_position isn't enough. Is there a way to get the screen size?

See https://docs.rs/winit/latest/winit/window/struct.Window.html#method.available_monitors
and https://docs.rs/winit/latest/winit/monitor/struct.MonitorHandle.html#method.size.

from winit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.