Struct simics::api::interface::interfaces::WinsomeConsoleInterface
source · pub struct WinsomeConsoleInterface {
obj: *mut ConfObject,
interface: *mut winsome_console_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut winsome_console_interface
Implementations§
source§impl WinsomeConsoleInterface
impl WinsomeConsoleInterface
sourcepub fn gfx(
&mut self,
console: *mut lang_void,
left: c_int,
right: c_int,
top: c_int,
bottom: c_int,
data: bytes_t,
text_mode: bool,
) -> Result<()>
pub fn gfx( &mut self, console: *mut lang_void, left: c_int, right: c_int, top: c_int, bottom: c_int, data: bytes_t, text_mode: bool, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn resize(
&mut self,
console: *mut lang_void,
width: c_int,
height: c_int,
) -> Result<()>
pub fn resize( &mut self, console: *mut lang_void, width: c_int, height: c_int, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn refresh(
&mut self,
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,
) -> Result<()>
pub fn refresh( &mut self, 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, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn append(
&mut self,
console: *mut lang_void,
num_lines: uint64,
text: bytes_t,
attrib: bytes_t,
cursor_x: c_int,
cursor_y: c_int,
) -> Result<()>
pub fn append( &mut self, console: *mut lang_void, num_lines: uint64, text: bytes_t, attrib: bytes_t, cursor_x: c_int, cursor_y: c_int, ) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for WinsomeConsoleInterface
impl Interface for WinsomeConsoleInterface
source§const NAME: &'static [u8] = crate::api::sys::WINSOME_CONSOLE_INTERFACE
const NAME: &'static [u8] = crate::api::sys::WINSOME_CONSOLE_INTERFACE
The name of the interface
source§type InternalInterface = winsome_console_interface
type InternalInterface = winsome_console_interface
The inner interface type, which is a struct of nullable extern “C” function pointers
and must be default constructable as all NULL pointers (i.e. None values)
source§type Name = &'static [u8]
type Name = &'static [u8]
The type of the name of the interface, must be convertible to raw C string to pass to
the simulator
source§fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
Create a new instance of this interface
Auto Trait Implementations§
impl Freeze for WinsomeConsoleInterface
impl RefUnwindSafe for WinsomeConsoleInterface
impl !Send for WinsomeConsoleInterface
impl !Sync for WinsomeConsoleInterface
impl Unpin for WinsomeConsoleInterface
impl UnwindSafe for WinsomeConsoleInterface
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