Struct classicube_sys::LScreen
source ·
[−]#[repr(C)]pub struct LScreen {Show 23 fields
pub Init: LScreen_Func,
pub Show: LScreen_Func,
pub Free: LScreen_Func,
pub Layout: LScreen_Func,
pub Draw: LScreen_Func,
pub Tick: LScreen_Func,
pub KeyDown: Option<unsafe extern "C" fn(s: *mut LScreen, key: c_int, wasDown: cc_bool)>,
pub KeyPress: Option<unsafe extern "C" fn(s: *mut LScreen, c: c_char)>,
pub MouseDown: Option<unsafe extern "C" fn(s: *mut LScreen, idx: c_int)>,
pub MouseUp: Option<unsafe extern "C" fn(s: *mut LScreen, idx: c_int)>,
pub MouseMove: Option<unsafe extern "C" fn(s: *mut LScreen, idx: c_int)>,
pub MouseWheel: Option<unsafe extern "C" fn(s: *mut LScreen, delta: f32)>,
pub TextChanged: Option<unsafe extern "C" fn(s: *mut LScreen, str_: *const cc_string)>,
pub HoverWidget: LWidget_Func,
pub UnhoverWidget: LWidget_Func,
pub onEnterWidget: *mut LWidget,
pub hoveredWidget: *mut LWidget,
pub selectedWidget: *mut LWidget,
pub numWidgets: c_int,
pub widgets: *mut *mut LWidget,
pub hidesTitlebar: cc_bool,
pub title_fore: *const c_char,
pub title_back: *const c_char,
}
Fields
Init: LScreen_Func
Show: LScreen_Func
Free: LScreen_Func
Layout: LScreen_Func
Draw: LScreen_Func
Tick: LScreen_Func
KeyDown: Option<unsafe extern "C" fn(s: *mut LScreen, key: c_int, wasDown: cc_bool)>
KeyPress: Option<unsafe extern "C" fn(s: *mut LScreen, c: c_char)>
MouseDown: Option<unsafe extern "C" fn(s: *mut LScreen, idx: c_int)>
MouseUp: Option<unsafe extern "C" fn(s: *mut LScreen, idx: c_int)>
MouseMove: Option<unsafe extern "C" fn(s: *mut LScreen, idx: c_int)>
MouseWheel: Option<unsafe extern "C" fn(s: *mut LScreen, delta: f32)>
TextChanged: Option<unsafe extern "C" fn(s: *mut LScreen, str_: *const cc_string)>
HoverWidget: LWidget_Func
UnhoverWidget: LWidget_Func
onEnterWidget: *mut LWidget
hoveredWidget: *mut LWidget
selectedWidget: *mut LWidget
numWidgets: c_int
widgets: *mut *mut LWidget
hidesTitlebar: cc_bool
title_fore: *const c_char
title_back: *const c_char
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LScreen
impl UnwindSafe for LScreen
Blanket Implementations
Mutably borrows from an owned value. Read more