microsoft / microsoft/windows-rs
`windows-reactor` window size API improvements
- Dominant language
- Rust
- Stars
- 12.8k
- Forks
- 665
- Avg merge
- 7h 9m
- Merged PRs (30d)
- 70
Description
### Suggestion
It would be great to be able to specify an initial x and y position + is_maximized in WindowVisuals
plus, for `on_window_size` to notify is_maximized (it will emit when the maximize button is clicked, however it emits as just a regular size change)
plus, a `on_window_position` to notify of the x and y changes
In my app, I store these properties (along-side width and height) to restore window sizing for the user on app reopen
Contributor guide
Research direction
Start in the windows-reactor implementation around WindowVisuals, on_window_size, and the window event handling entry points. Trace how initial dimensions and resize notifications are represented, then determine where position and maximized state belong. Done means initial x/y and maximized state can be specified, on_window_size reports maximization, and on_window_position reports position changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop, operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100