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

Add iced::window::get_monitor_size to get the logical size of the current monitor #2754

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rhysd
Copy link
Contributor

@rhysd rhysd commented Jan 26, 2025

This PR adds iced::window::get_monitor_size function to create a task to get the logical size of current monitor.

This function is useful to determine the size of window when resizing it. In my case, I want to resize a window to fit to its content. When the content is big, the window can overflow off the monitor. By calculating the window size based on the monitor size, I can prevent the overflow.

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.

1 participant