Struct simics::api::interface::interfaces::TextConsoleBackendInterface
source · pub struct TextConsoleBackendInterface {
obj: *mut ConfObject,
interface: *mut text_console_backend_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut text_console_backend_interface
Implementations§
source§impl TextConsoleBackendInterface
impl TextConsoleBackendInterface
sourcepub fn input(
&mut self,
key: text_console_key_t,
modifiers: text_console_modifier_t,
) -> Result<()>
pub fn input( &mut self, key: text_console_key_t, modifiers: text_console_modifier_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn request_refresh(&mut self) -> Result<()>
pub fn request_refresh(&mut self) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_visible(&mut self, visible: bool) -> Result<()>
pub fn set_visible(&mut self, visible: bool) -> Result<()>
Automatically generated method for the interface
sourcepub fn line_length(&mut self, line_num: c_int) -> Result<c_int>
pub fn line_length(&mut self, line_num: c_int) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn line_wrap(&mut self, line_num: c_int) -> Result<bool>
pub fn line_wrap(&mut self, line_num: c_int) -> Result<bool>
Automatically generated method for the interface
sourcepub fn set_size(&mut self, width: c_int, height: c_int) -> Result<()>
pub fn set_size(&mut self, width: c_int, height: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_default_colours(
&mut self,
default_fg_col: uint32,
default_bg_col: uint32,
) -> Result<()>
pub fn set_default_colours( &mut self, default_fg_col: uint32, default_bg_col: uint32, ) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for TextConsoleBackendInterface
impl Interface for TextConsoleBackendInterface
source§const NAME: &'static [u8] = crate::api::sys::TEXT_CONSOLE_BACKEND_INTERFACE
const NAME: &'static [u8] = crate::api::sys::TEXT_CONSOLE_BACKEND_INTERFACE
The name of the interface
source§type InternalInterface = text_console_backend_interface
type InternalInterface = text_console_backend_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 TextConsoleBackendInterface
impl RefUnwindSafe for TextConsoleBackendInterface
impl !Send for TextConsoleBackendInterface
impl !Sync for TextConsoleBackendInterface
impl Unpin for TextConsoleBackendInterface
impl UnwindSafe for TextConsoleBackendInterface
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