Skip to content
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

Function to set a window's monitor #1835

Closed
hajimehoshi opened this issue Sep 30, 2021 Discussed in #1834 · 1 comment · Fixed by #2597
Closed

Function to set a window's monitor #1835

hajimehoshi opened this issue Sep 30, 2021 Discussed in #1834 · 1 comment · Fixed by #2597

Comments

@hajimehoshi
Copy link
Owner

Discussed in #1834

Originally posted by SolarLune September 30, 2021
Hello~

I was wondering if it would be possible to add a function to set the monitor a window appears on? That would be helpful for me personally, as I have two monitors and running an Ebiten app always places it directly on my IDE.

@hajimehoshi hajimehoshi added this to the v2.3.0 milestone Sep 30, 2021
@hajimehoshi hajimehoshi modified the milestones: v2.3.0, v2.4.0 Mar 24, 2022
@hajimehoshi
Copy link
Owner Author

This would add a notion of monitors, which is not simple. We need more discussion 🤔

@hajimehoshi hajimehoshi modified the milestones: v2.4.0, v2.5.0 Aug 5, 2022
@hajimehoshi hajimehoshi modified the milestones: v2.5.0, v2.6.0 Jan 21, 2023
hajimehoshi pushed a commit that referenced this issue Aug 30, 2023
This change adds these APIs:

* `type MonitorType`
* `func (*MonitorType) Bounds() image.Rectangle`
* `func (*MonitorType) Name() string`
* `func Monitor() *MonitorType`
* `func SetMonitor(*MonitorType)`
* `func AppendMonitors([]*MonitorType) []*MonitorType`

Closes #1835
hajimehoshi added a commit that referenced this issue Sep 14, 2023
hajimehoshi added a commit that referenced this issue Sep 24, 2023
Now Ebitengine allows to specify the initial monitor, having an
initial monitor is no longer a hack.

Updates #1575
Updates #1835
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant