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

eframe: read native window position and size #1617

Merged
merged 3 commits into from
May 13, 2022
Merged

eframe: read native window position and size #1617

merged 3 commits into from
May 13, 2022

Conversation

TicClick
Copy link
Contributor

the window's position and dimensions are now available via eframe::Frame::info().window_info on desktop (and probably mobile platforms as well, as I've patched the native backend). no issue to close, as this is mostly my own need.

this is my first PR in Rust, so feel free to point out anything you deem poor.

Position and dimensions are available via `eframe::Frame::info().window_info`
eframe/src/native/epi_integration.rs Outdated Show resolved Hide resolved
eframe/src/epi.rs Outdated Show resolved Hide resolved
eframe/src/epi.rs Outdated Show resolved Hide resolved
eframe/src/epi.rs Outdated Show resolved Hide resolved
@TicClick TicClick requested a review from emilk May 11, 2022 11:46
@emilk emilk changed the title Add ability to read the main window's geometry eframe: read native window position and sizs May 11, 2022
@emilk emilk changed the title eframe: read native window position and sizs eframe: read native window position and size May 11, 2022
@emilk emilk merged commit 3c685d7 into emilk:master May 13, 2022
@TicClick TicClick deleted the window-dimensions branch May 13, 2022 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants