[][src]Struct browser_window_c::cbw_WindowCallbacks

#[repr(C)]pub struct cbw_WindowCallbacks {
    pub do_cleanup: Option<unsafe extern "C" fn(arg1: *mut cbw_Window)>,
    pub on_close: Option<unsafe extern "C" fn(arg1: *const cbw_Window)>,
    pub on_loaded: Option<unsafe extern "C" fn(arg1: *const cbw_Window)>,
    pub on_resize: Option<unsafe extern "C" fn(arg1: *const cbw_Window, width: c_uint, height: c_uint)>,
}

Fields

do_cleanup: Option<unsafe extern "C" fn(arg1: *mut cbw_Window)>

Fired just before the window gets destroyed and freed from memory. Should be implemented to free the user data provided to the window.

on_close: Option<unsafe extern "C" fn(arg1: *const cbw_Window)>

Fired when the window has been closed, either by the user or programmatically.

on_loaded: Option<unsafe extern "C" fn(arg1: *const cbw_Window)>

Fired when a window has finished loading

on_resize: Option<unsafe extern "C" fn(arg1: *const cbw_Window, width: c_uint, height: c_uint)>

Fired when a window is resizing

Trait Implementations

impl Clone for cbw_WindowCallbacks[src]

impl Copy for cbw_WindowCallbacks[src]

impl Debug for cbw_WindowCallbacks[src]

Auto Trait Implementations

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.