Struct simics::api::interface::interfaces::GfxConsoleBackendInterface
source · pub struct GfxConsoleBackendInterface {
obj: *mut ConfObject,
interface: *mut gfx_console_backend_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut gfx_console_backend_interface
Implementations§
source§impl GfxConsoleBackendInterface
impl GfxConsoleBackendInterface
sourcepub fn kbd_event(&mut self, code: sim_key_t, down: bool) -> Result<()>
pub fn kbd_event(&mut self, code: sim_key_t, down: bool) -> Result<()>
Automatically generated method for the interface
sourcepub fn mouse_event(
&mut self,
x: c_int,
y: c_int,
z: c_int,
buttons: gfx_console_mouse_button_t,
) -> Result<()>
pub fn mouse_event( &mut self, x: c_int, y: c_int, z: c_int, buttons: gfx_console_mouse_button_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 text_data(&mut self) -> Result<gfx_console_screen_text_t>
pub fn text_data(&mut self) -> Result<gfx_console_screen_text_t>
Automatically generated method for the interface
sourcepub fn got_grab_keys(&mut self) -> Result<()>
pub fn got_grab_keys(&mut self) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for GfxConsoleBackendInterface
impl Interface for GfxConsoleBackendInterface
source§const NAME: &'static [u8] = crate::api::sys::GFX_CONSOLE_BACKEND_INTERFACE
const NAME: &'static [u8] = crate::api::sys::GFX_CONSOLE_BACKEND_INTERFACE
The name of the interface
source§type InternalInterface = gfx_console_backend_interface
type InternalInterface = gfx_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 GfxConsoleBackendInterface
impl RefUnwindSafe for GfxConsoleBackendInterface
impl !Send for GfxConsoleBackendInterface
impl !Sync for GfxConsoleBackendInterface
impl Unpin for GfxConsoleBackendInterface
impl UnwindSafe for GfxConsoleBackendInterface
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