Trait wayland_window::Handler
[−]
[src]
pub trait Handler { fn configure(
&mut self,
_: &mut EventQueueHandle,
_: Configure,
width: i32,
height: i32
); fn close(&mut self, _: &mut EventQueueHandle); }
For handling events that occur to a DecoratedSurface.
Required Methods
fn configure(
&mut self,
_: &mut EventQueueHandle,
_: Configure,
width: i32,
height: i32
)
&mut self,
_: &mut EventQueueHandle,
_: Configure,
width: i32,
height: i32
)
Called whenever the DecoratedSurface has been resized.
Note: width
and height
will not always be positive values. Values can be negative
if a user attempts to resize the window past the left or top borders. As a result, it is
recommended that users specify some reasonable bounds. E.g.
let width = max(width, min_width); let height = max(height, min_height);
fn close(&mut self, _: &mut EventQueueHandle)
Called when the DecoratedSurface is closed.