[][src]Struct wayland_window::FrameImplementation

pub struct FrameImplementation<ID> {
    pub configure: fn(evqh: &mut EventQueueHandle, idata: &mut ID, cfg: Configure, newsize: Option<(i32, i32)>),
    pub close: fn(evqh: &mut EventQueueHandle, idata: &mut ID),
    pub refresh: fn(evqh: &mut EventQueueHandle, idata: &mut ID),
}

For handling events that occur to a Frame.

Fields

configure: fn(evqh: &mut EventQueueHandle, idata: &mut ID, cfg: Configure, newsize: 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(evqh: &mut EventQueueHandle, idata: &mut ID)

Called when the Frame is closed.

refresh: fn(evqh: &mut EventQueueHandle, idata: &mut ID)

Called when the Frame wants to be refreshed

Trait Implementations

impl<ID> Clone for FrameImplementation<ID>[src]

impl<ID> Copy for FrameImplementation<ID>[src]

Auto Trait Implementations

impl<ID> RefUnwindSafe for FrameImplementation<ID>

impl<ID> Send for FrameImplementation<ID>

impl<ID> Sync for FrameImplementation<ID>

impl<ID> Unpin for FrameImplementation<ID>

impl<ID> UnwindSafe for FrameImplementation<ID>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,