Skip to content

Add Window::is_minimized#2626

Merged
kchibisov merged 12 commits intorust-windowing:masterfrom
amrbashir:feat/is_minimized
Jan 19, 2023
Merged

Add Window::is_minimized#2626
kchibisov merged 12 commits intorust-windowing:masterfrom
amrbashir:feat/is_minimized

Conversation

@amrbashir
Copy link
Copy Markdown
Contributor

@amrbashir amrbashir commented Jan 11, 2023

  • Tested on all platforms changed
    • Windows
    • macOS
    • x11
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

Copy link
Copy Markdown
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change is ok. But would need to return Option given that some platforms don't provide a way to know whether the window is minimized or not.

@amrbashir
Copy link
Copy Markdown
Contributor Author

The change is ok. But would need to return Option given that some platforms don't provide a way to know whether the window is minimized or not.

I am fine with that but I should note that there is other similar functions that return only bools, like is_maximized and is_resizable while they don't support all platforms and I think it should be consistent.

@kchibisov
Copy link
Copy Markdown
Member

It's not about support though. It's about 'you can't possibly know' that you're minimized or not.

With maximized/resizable you surely know such a thing.

@amrbashir
Copy link
Copy Markdown
Contributor Author

yeah, makes a bit of sense.

@kchibisov kchibisov mentioned this pull request Jan 17, 2023
11 tasks
amrbashir and others added 2 commits January 18, 2023 19:33
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
amrbashir and others added 3 commits January 18, 2023 20:30
Co-authored-by: Markus Siglreithmaier <m.siglreith@gmail.com>
Co-authored-by: Markus Siglreithmaier <m.siglreith@gmail.com>
Copy link
Copy Markdown
Member

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, looks fine on macOS

@kchibisov kchibisov merged commit 809162f into rust-windowing:master Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants