pub fn begin_resize(button: MouseButton)
Expand description
Begins an interactive window resize.
This will start resizing the window under the pointer until button
is released.
button
should be the mouse button that is held at the time
this function is called. Otherwise, the move will not start.
This is intended for use in tandem with a mousebind.
ยงExamples
input::mousebind(Mod::SUPER, MouseButton::Right)
.on_press(|| window::begin_resize(MouseButton::Right));