#[repr(C)]pub struct winsome_console_interface {
pub gfx: Option<unsafe extern "C" fn(obj: *mut conf_object_t, console: *mut lang_void, left: c_int, right: c_int, top: c_int, bottom: c_int, data: bytes_t, text_mode: bool)>,
pub resize: Option<unsafe extern "C" fn(obj: *mut conf_object_t, console: *mut lang_void, width: c_int, height: c_int)>,
pub refresh: Option<unsafe extern "C" fn(obj: *mut conf_object_t, console: *mut lang_void, text: bytes_t, attrib: bytes_t, sb_text: bytes_t, sb_attrib: bytes_t, sb_size: c_int, cursor_x: c_int, cursor_y: c_int)>,
pub append: Option<unsafe extern "C" fn(obj: *mut conf_object_t, console: *mut lang_void, num_lines: uint64, text: bytes_t, attrib: bytes_t, cursor_x: c_int, cursor_y: c_int)>,
pub text: Option<unsafe extern "C" fn(obj: *mut conf_object_t, console: *mut lang_void, left: c_int, right: c_int, top: c_int, bottom: c_int, text: bytes_t, attrib: bytes_t, cursor_x: c_int, cursor_y: c_int)>,
pub activity: Option<unsafe extern "C" fn(obj: *mut conf_object_t, console: *mut lang_void)>,
}
Fields§
§gfx: Option<unsafe extern "C" fn(obj: *mut conf_object_t, console: *mut lang_void, left: c_int, right: c_int, top: c_int, bottom: c_int, data: bytes_t, text_mode: bool)>
§resize: Option<unsafe extern "C" fn(obj: *mut conf_object_t, console: *mut lang_void, width: c_int, height: c_int)>
§refresh: Option<unsafe extern "C" fn(obj: *mut conf_object_t, console: *mut lang_void, text: bytes_t, attrib: bytes_t, sb_text: bytes_t, sb_attrib: bytes_t, sb_size: c_int, cursor_x: c_int, cursor_y: c_int)>
§append: Option<unsafe extern "C" fn(obj: *mut conf_object_t, console: *mut lang_void, num_lines: uint64, text: bytes_t, attrib: bytes_t, cursor_x: c_int, cursor_y: c_int)>
§text: Option<unsafe extern "C" fn(obj: *mut conf_object_t, console: *mut lang_void, left: c_int, right: c_int, top: c_int, bottom: c_int, text: bytes_t, attrib: bytes_t, cursor_x: c_int, cursor_y: c_int)>
§activity: Option<unsafe extern "C" fn(obj: *mut conf_object_t, console: *mut lang_void)>
Trait Implementations§
source§impl Clone for winsome_console_interface
impl Clone for winsome_console_interface
source§fn clone(&self) -> winsome_console_interface
fn clone(&self) -> winsome_console_interface
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 winsome_console_interface
impl Debug for winsome_console_interface
source§impl Default for winsome_console_interface
impl Default for winsome_console_interface
source§fn default() -> winsome_console_interface
fn default() -> winsome_console_interface
Returns the “default value” for a type. Read more
source§impl Hash for winsome_console_interface
impl Hash for winsome_console_interface
source§impl Ord for winsome_console_interface
impl Ord for winsome_console_interface
source§fn cmp(&self, other: &winsome_console_interface) -> Ordering
fn cmp(&self, other: &winsome_console_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialOrd for winsome_console_interface
impl PartialOrd for winsome_console_interface
impl Copy for winsome_console_interface
impl Eq for winsome_console_interface
impl StructuralPartialEq for winsome_console_interface
Auto Trait Implementations§
impl Freeze for winsome_console_interface
impl RefUnwindSafe for winsome_console_interface
impl Send for winsome_console_interface
impl Sync for winsome_console_interface
impl Unpin for winsome_console_interface
impl UnwindSafe for winsome_console_interface
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§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
)