feat: Add window minimize support
This commit is contained in:
parent
8a50836ffc
commit
ac6e137be3
3 changed files with 12 additions and 0 deletions
|
|
@ -22,6 +22,11 @@ pub fn maximize<Message>(value: bool) -> Command<Message> {
|
|||
Command::single(command::Action::Window(window::Action::Maximize(value)))
|
||||
}
|
||||
|
||||
/// Set the window to minimized or back.
|
||||
pub fn minimize<Message>(value: bool) -> Command<Message> {
|
||||
Command::single(command::Action::Window(window::Action::Minimize(value)))
|
||||
}
|
||||
|
||||
/// Moves a window to the given logical coordinates.
|
||||
pub fn move_to<Message>(x: i32, y: i32) -> Command<Message> {
|
||||
Command::single(command::Action::Window(window::Action::Move { x, y }))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue