Struct wayland_window::FrameImplementation
[−]
[src]
pub struct FrameImplementation<ID> { pub configure: fn(_: &mut EventQueueHandle, _: &mut ID, _: Configure, _: Option<(i32, i32)>), pub close: fn(_: &mut EventQueueHandle, _: &mut ID), pub refresh: fn(_: &mut EventQueueHandle, _: &mut ID), }
For handling events that occur to a Frame.
Fields
configure: fn(_: &mut EventQueueHandle, _: &mut ID, _: Configure, _: Option<(i32, i32)>)
Called whenever the Frame 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 Frame is closed.
refresh: fn(_: &mut EventQueueHandle, _: &mut ID)
Called when the Frame wants to be refreshed
Trait Implementations
impl<ID> Copy for FrameImplementation<ID>
[src]
impl<ID> Clone for FrameImplementation<ID>
[src]
fn clone(&self) -> FrameImplementation<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