-
-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat(window): implement `minimizable` and `closable` for macOS * feat(window): examples for `minimizable` and `closable` * fix(window): stub `minimizable` and `resizable` for other platforms * lint: run cargo fmt * feat(window): implement `closable` for Linux * refactor: rename parameter * feat(window): implement `maximizable` for macOS * feat(window): implement `minimizable` for Windows * fix: edit bitflag for minimizable and move line # Conflicts: # src/platform_impl/windows/window_state.rs * fix(window): initial `minimzable` value on Windows * feat(window): implement `maximizable` for Windows * docs(window): correct platform-specific notes * feat(window): implement `closable` for Windows * fix(window): missing `mut` * chore: add changefile * docs(window): correct platform-specific notes * docs(window): improve docs for window control toggles * refactor (examples): move window control examples into window_debug.rs This reverts commit ddb9f2b. * refactor(window): move `set_closable` impl on Windows to `WindowFlags::apply_diff` * chore: cargo fmt * chore: update changefile Co-authored-by: Amr Bashir <[email protected]> * chore: remove println * fix with_closable on Windows * Update src/platform_impl/linux/window.rs * Update src/platform_impl/linux/window.rs * Update src/window.rs * update flags Co-authored-by: David A Klein <[email protected]> Co-authored-by: Amr Bashir <[email protected]>
- Loading branch information
1 parent
b84e9fb
commit a50fd86
Showing
10 changed files
with
396 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"tao": patch | ||
--- | ||
|
||
Add APIs for disabling the individual window controls on desktop platforms, `Window::set_closable`, `Window::is_closable`, `WindowBuilder::with_closable`, `Window::set_minimizable`, `Window::is_minimizable`, `WindowBuilder::with_minimizable`, `Window::set_maximizable`, `Window::is_maximizable`, `WindowBuilder::with_maximizable`. See the docs for platform-specific notes, especially regarding Linux. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.