Struct classicube_sys::ScreenVTABLE
source ·
[−]#[repr(C)]pub struct ScreenVTABLE {Show 16 fields
pub Init: Option<unsafe extern "C" fn(elem: *mut c_void)>,
pub Update: Option<unsafe extern "C" fn(elem: *mut c_void, delta: f64)>,
pub Free: Option<unsafe extern "C" fn(elem: *mut c_void)>,
pub Render: Option<unsafe extern "C" fn(elem: *mut c_void, delta: f64)>,
pub BuildMesh: Option<unsafe extern "C" fn(elem: *mut c_void)>,
pub HandlesInputDown: Option<unsafe extern "C" fn(elem: *mut c_void, key: c_int) -> c_int>,
pub OnInputUp: Option<unsafe extern "C" fn(elem: *mut c_void, key: c_int)>,
pub HandlesKeyPress: Option<unsafe extern "C" fn(elem: *mut c_void, keyChar: c_char) -> c_int>,
pub HandlesTextChanged: Option<unsafe extern "C" fn(elem: *mut c_void, str_: *const cc_string) -> c_int>,
pub HandlesPointerDown: Option<unsafe extern "C" fn(elem: *mut c_void, id: c_int, x: c_int, y: c_int) -> c_int>,
pub OnPointerUp: Option<unsafe extern "C" fn(elem: *mut c_void, id: c_int, x: c_int, y: c_int)>,
pub HandlesPointerMove: Option<unsafe extern "C" fn(elem: *mut c_void, id: c_int, x: c_int, y: c_int) -> c_int>,
pub HandlesMouseScroll: Option<unsafe extern "C" fn(elem: *mut c_void, delta: f32) -> c_int>,
pub Layout: Option<unsafe extern "C" fn(elem: *mut c_void)>,
pub ContextLost: Option<unsafe extern "C" fn(elem: *mut c_void)>,
pub ContextRecreated: Option<unsafe extern "C" fn(elem: *mut c_void)>,
}
Fields
Init: Option<unsafe extern "C" fn(elem: *mut c_void)>
Update: Option<unsafe extern "C" fn(elem: *mut c_void, delta: f64)>
Free: Option<unsafe extern "C" fn(elem: *mut c_void)>
Render: Option<unsafe extern "C" fn(elem: *mut c_void, delta: f64)>
BuildMesh: Option<unsafe extern "C" fn(elem: *mut c_void)>
HandlesInputDown: Option<unsafe extern "C" fn(elem: *mut c_void, key: c_int) -> c_int>
OnInputUp: Option<unsafe extern "C" fn(elem: *mut c_void, key: c_int)>
HandlesKeyPress: Option<unsafe extern "C" fn(elem: *mut c_void, keyChar: c_char) -> c_int>
HandlesTextChanged: Option<unsafe extern "C" fn(elem: *mut c_void, str_: *const cc_string) -> c_int>
HandlesPointerDown: Option<unsafe extern "C" fn(elem: *mut c_void, id: c_int, x: c_int, y: c_int) -> c_int>
OnPointerUp: Option<unsafe extern "C" fn(elem: *mut c_void, id: c_int, x: c_int, y: c_int)>
HandlesPointerMove: Option<unsafe extern "C" fn(elem: *mut c_void, id: c_int, x: c_int, y: c_int) -> c_int>
HandlesMouseScroll: Option<unsafe extern "C" fn(elem: *mut c_void, delta: f32) -> c_int>
Layout: Option<unsafe extern "C" fn(elem: *mut c_void)>
ContextLost: Option<unsafe extern "C" fn(elem: *mut c_void)>
ContextRecreated: Option<unsafe extern "C" fn(elem: *mut c_void)>
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ScreenVTABLE
impl Send for ScreenVTABLE
impl Sync for ScreenVTABLE
impl Unpin for ScreenVTABLE
impl UnwindSafe for ScreenVTABLE
Blanket Implementations
Mutably borrows from an owned value. Read more