Struct classicube_sys::WidgetVTABLE
source · #[repr(C)]pub struct WidgetVTABLE {Show 13 fields
pub Render: Option<unsafe extern "C" fn(elem: *mut c_void, delta: f32)>,
pub Free: Option<unsafe extern "C" fn(elem: *mut c_void)>,
pub Reposition: Option<unsafe extern "C" fn(elem: *mut c_void)>,
pub HandlesKeyDown: Option<unsafe extern "C" fn(elem: *mut c_void, key: c_int, device: *mut InputDevice) -> c_int>,
pub OnInputUp: Option<unsafe extern "C" fn(elem: *mut c_void, key: c_int, device: *mut InputDevice)>,
pub HandlesMouseScroll: Option<unsafe extern "C" fn(elem: *mut c_void, delta: f32) -> 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 BuildMesh: Option<unsafe extern "C" fn(elem: *mut c_void, vertices: *mut *mut VertexTextured)>,
pub Render2: Option<unsafe extern "C" fn(elem: *mut c_void, offset: c_int) -> c_int>,
pub GetMaxVertices: Option<unsafe extern "C" fn(elem: *mut c_void) -> c_int>,
pub HandlesPadAxis: Option<unsafe extern "C" fn(elem: *mut c_void, axis: c_int, x: f32, y: f32) -> c_int>,
}
Fields§
§Render: Option<unsafe extern "C" fn(elem: *mut c_void, delta: f32)>
§Free: Option<unsafe extern "C" fn(elem: *mut c_void)>
§Reposition: Option<unsafe extern "C" fn(elem: *mut c_void)>
§HandlesKeyDown: Option<unsafe extern "C" fn(elem: *mut c_void, key: c_int, device: *mut InputDevice) -> c_int>
§OnInputUp: Option<unsafe extern "C" fn(elem: *mut c_void, key: c_int, device: *mut InputDevice)>
§HandlesMouseScroll: Option<unsafe extern "C" fn(elem: *mut c_void, delta: f32) -> 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>
§BuildMesh: Option<unsafe extern "C" fn(elem: *mut c_void, vertices: *mut *mut VertexTextured)>
§Render2: Option<unsafe extern "C" fn(elem: *mut c_void, offset: c_int) -> c_int>
§GetMaxVertices: Option<unsafe extern "C" fn(elem: *mut c_void) -> c_int>
§HandlesPadAxis: Option<unsafe extern "C" fn(elem: *mut c_void, axis: c_int, x: f32, y: f32) -> c_int>
Trait Implementations§
source§impl Clone for WidgetVTABLE
impl Clone for WidgetVTABLE
source§fn clone(&self) -> WidgetVTABLE
fn clone(&self) -> WidgetVTABLE
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WidgetVTABLE
impl Debug for WidgetVTABLE
source§impl Hash for WidgetVTABLE
impl Hash for WidgetVTABLE
source§impl PartialEq for WidgetVTABLE
impl PartialEq for WidgetVTABLE
source§fn eq(&self, other: &WidgetVTABLE) -> bool
fn eq(&self, other: &WidgetVTABLE) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WidgetVTABLE
impl Eq for WidgetVTABLE
impl StructuralPartialEq for WidgetVTABLE
Auto Trait Implementations§
impl Freeze for WidgetVTABLE
impl RefUnwindSafe for WidgetVTABLE
impl Send for WidgetVTABLE
impl Sync for WidgetVTABLE
impl Unpin for WidgetVTABLE
impl UnwindSafe for WidgetVTABLE
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)