Struct simics::api::interface::interfaces::TextConsoleFrontendInterface
source · pub struct TextConsoleFrontendInterface {
obj: *mut ConfObject,
interface: *mut text_console_frontend_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut text_console_frontend_interface
Implementations§
source§impl TextConsoleFrontendInterface
impl TextConsoleFrontendInterface
sourcepub fn start(&mut self, backend: *mut conf_object_t) -> Result<c_int>
pub fn start(&mut self, backend: *mut conf_object_t) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn stop(&mut self, handle: c_int) -> Result<()>
pub fn stop(&mut self, handle: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_title(
&mut self,
handle: c_int,
short_title: *const c_char,
long_title: *const c_char,
) -> Result<()>
pub fn set_title( &mut self, handle: c_int, short_title: *const c_char, long_title: *const c_char, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_size(
&mut self,
handle: c_int,
width: c_int,
height: c_int,
) -> Result<()>
pub fn set_size( &mut self, handle: c_int, width: c_int, height: c_int, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_max_scrollback_size(
&mut self,
handle: c_int,
num_lines: c_int,
) -> Result<()>
pub fn set_max_scrollback_size( &mut self, handle: c_int, num_lines: c_int, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_default_colours(
&mut self,
handle: c_int,
default_fg_col: uint32,
default_bg_col: uint32,
) -> Result<()>
pub fn set_default_colours( &mut self, handle: c_int, default_fg_col: uint32, default_bg_col: uint32, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_visible(&mut self, handle: c_int, visible: bool) -> Result<()>
pub fn set_visible(&mut self, handle: c_int, visible: bool) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_contents(
&mut self,
handle: c_int,
top: c_int,
left: c_int,
bottom: c_int,
right: c_int,
text: *const c_char,
attrib: *const text_console_attrib_t,
) -> Result<()>
pub fn set_contents( &mut self, handle: c_int, top: c_int, left: c_int, bottom: c_int, right: c_int, text: *const c_char, attrib: *const text_console_attrib_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_cursor_pos(
&mut self,
handle: c_int,
row: c_int,
col: c_int,
) -> Result<()>
pub fn set_cursor_pos( &mut self, handle: c_int, row: c_int, col: c_int, ) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for TextConsoleFrontendInterface
impl Interface for TextConsoleFrontendInterface
source§const NAME: &'static [u8] = crate::api::sys::TEXT_CONSOLE_FRONTEND_INTERFACE
const NAME: &'static [u8] = crate::api::sys::TEXT_CONSOLE_FRONTEND_INTERFACE
The name of the interface
source§type InternalInterface = text_console_frontend_interface
type InternalInterface = text_console_frontend_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 TextConsoleFrontendInterface
impl RefUnwindSafe for TextConsoleFrontendInterface
impl !Send for TextConsoleFrontendInterface
impl !Sync for TextConsoleFrontendInterface
impl Unpin for TextConsoleFrontendInterface
impl UnwindSafe for TextConsoleFrontendInterface
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