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)>,
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)>
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
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 LWidgetVTABLE
impl Send for LWidgetVTABLE
impl Sync for LWidgetVTABLE
impl Unpin for LWidgetVTABLE
impl UnwindSafe for LWidgetVTABLE
Blanket Implementations
Mutably borrows from an owned value. Read more