Type Alias simics_api_sys::gfx_console_backend_interface_t

source ·
pub type gfx_console_backend_interface_t = gfx_console_backend_interface;

Aliased Type§

struct gfx_console_backend_interface_t {
    pub kbd_event: Option<unsafe extern "C" fn(_: *mut conf_object, _: sim_key_t, _: bool)>,
    pub mouse_event: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32, _: i32, _: i32, _: gfx_console_mouse_button_t)>,
    pub request_refresh: Option<unsafe extern "C" fn(_: *mut conf_object)>,
    pub set_visible: Option<unsafe extern "C" fn(_: *mut conf_object, _: bool)>,
    pub text_data: Option<unsafe extern "C" fn(_: *mut conf_object) -> gfx_console_screen_text_t>,
    pub got_grab_keys: Option<unsafe extern "C" fn(_: *mut conf_object)>,
}

Fields§

§kbd_event: Option<unsafe extern "C" fn(_: *mut conf_object, _: sim_key_t, _: bool)>

Indicate to the backend that a key has been pressed or released.

§mouse_event: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32, _: i32, _: i32, _: gfx_console_mouse_button_t)>

Indicate to the backend that the mouse state has changed. (x, y) are in screen coordinates (pixels). z is the mouse wheel: 1 if the wheel has rolled upwards, -1 for downwards, 0 for no change. ‘buttons’ is the current button state.

§request_refresh: Option<unsafe extern "C" fn(_: *mut conf_object)>

Request that the backend should refresh the whole console screen. Shortly after this call, the frontend can expect a call to gfx_console_frontend.set_contents, updating the whole screen.

§set_visible: Option<unsafe extern "C" fn(_: *mut conf_object, _: bool)>

Indicate to the backend whether the frontend is visible, e.g. if the console window is hidden by other windows or minimised. If the frontend is invisible, the backend may choose not to call gfx_console_frontend.set_contents.

§text_data: Option<unsafe extern "C" fn(_: *mut conf_object) -> gfx_console_screen_text_t>

Obtain VGA text data from console backend. If the console is not in VGA text mode, the result is undefined.

§got_grab_keys: Option<unsafe extern "C" fn(_: *mut conf_object)>

Inform the backed that the grab mode keys were pressed.