Struct wayland_window::DecoratedSurfaceImplementation
[−]
[src]
pub struct DecoratedSurfaceImplementation<ID> { pub configure: fn(_: &mut EventQueueHandle, _: &mut ID, _: Configure, _: Option<(i32, i32)>), pub close: fn(_: &mut EventQueueHandle, _: &mut ID), }
For handling events that occur to a DecoratedSurface.
Fields
configure: fn(_: &mut EventQueueHandle, _: &mut ID, _: Configure, _: Option<(i32, i32)>)
Called whenever the DecoratedSurface has been resized.
Note: if you've not set a minimum size, 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.
close: fn(_: &mut EventQueueHandle, _: &mut ID)
Called when the DecoratedSurface is closed.
Trait Implementations
impl<ID> Copy for DecoratedSurfaceImplementation<ID>
[src]
impl<ID> Clone for DecoratedSurfaceImplementation<ID>
[src]
fn clone(&self) -> DecoratedSurfaceImplementation<ID>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more