Struct classicube_sys::LWidgetVTABLE
source · #[repr(C)]pub struct LWidgetVTABLE {
pub Draw: Option<unsafe extern "C" fn(widget: *mut c_void)>,
pub Tick: Option<unsafe extern "C" fn(widget: *mut c_void)>,
pub KeyDown: Option<unsafe extern "C" fn(widget: *mut c_void, key: c_int, wasDown: cc_bool, device: *mut InputDevice) -> cc_bool>,
pub KeyPress: Option<unsafe extern "C" fn(widget: *mut c_void, c: c_char)>,
pub MouseMove: Option<unsafe extern "C" fn(widget: *mut c_void, idx: c_int, wasOver: cc_bool)>,
pub MouseLeft: Option<unsafe extern "C" fn(widget: *mut c_void)>,
pub OnSelect: Option<unsafe extern "C" fn(widget: *mut c_void, idx: c_int, wasSelected: cc_bool)>,
pub OnUnselect: Option<unsafe extern "C" fn(widget: *mut c_void, idx: c_int)>,
pub MouseWheel: Option<unsafe extern "C" fn(widget: *mut c_void, delta: f32)>,
pub TextChanged: Option<unsafe extern "C" fn(elem: *mut c_void, str_: *const cc_string)>,
}
Fields§
§Draw: Option<unsafe extern "C" fn(widget: *mut c_void)>
§Tick: Option<unsafe extern "C" fn(widget: *mut c_void)>
§KeyDown: Option<unsafe extern "C" fn(widget: *mut c_void, key: c_int, wasDown: cc_bool, device: *mut InputDevice) -> cc_bool>
§KeyPress: Option<unsafe extern "C" fn(widget: *mut c_void, c: c_char)>
§MouseMove: Option<unsafe extern "C" fn(widget: *mut c_void, idx: c_int, wasOver: cc_bool)>
§MouseLeft: Option<unsafe extern "C" fn(widget: *mut c_void)>
§OnSelect: Option<unsafe extern "C" fn(widget: *mut c_void, idx: c_int, wasSelected: cc_bool)>
§OnUnselect: Option<unsafe extern "C" fn(widget: *mut c_void, idx: c_int)>
§MouseWheel: Option<unsafe extern "C" fn(widget: *mut c_void, delta: f32)>
§TextChanged: Option<unsafe extern "C" fn(elem: *mut c_void, str_: *const cc_string)>
Trait Implementations§
source§impl Clone for LWidgetVTABLE
impl Clone for LWidgetVTABLE
source§fn clone(&self) -> LWidgetVTABLE
fn clone(&self) -> LWidgetVTABLE
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 LWidgetVTABLE
impl Debug for LWidgetVTABLE
source§impl Hash for LWidgetVTABLE
impl Hash for LWidgetVTABLE
source§impl PartialEq for LWidgetVTABLE
impl PartialEq for LWidgetVTABLE
source§fn eq(&self, other: &LWidgetVTABLE) -> bool
fn eq(&self, other: &LWidgetVTABLE) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LWidgetVTABLE
impl Eq for LWidgetVTABLE
impl StructuralPartialEq for LWidgetVTABLE
Auto Trait Implementations§
impl Freeze for LWidgetVTABLE
impl RefUnwindSafe for LWidgetVTABLE
impl Send for LWidgetVTABLE
impl Sync for LWidgetVTABLE
impl Unpin for LWidgetVTABLE
impl UnwindSafe for LWidgetVTABLE
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
)