Type Alias simics_api_sys::gfx_console_frontend_interface_t

source ·
pub type gfx_console_frontend_interface_t = gfx_console_frontend_interface;

Aliased Type§

struct gfx_console_frontend_interface_t {
Show 14 fields pub start: Option<unsafe extern "C" fn(_: *mut conf_object, _: *mut conf_object) -> i32>, pub stop: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32)>, pub set_title: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32, _: *const i8, _: *const i8)>, pub set_size: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32, _: i32, _: i32)>, pub set_visible: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32, _: bool)>, pub set_contents: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32, _: i32, _: i32, _: i32, _: i32, _: *const u32)>, pub invalidate_contents: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32)>, pub set_text_mode: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32, _: bool)>, pub signal_text_update: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32)>, pub set_grab_mode: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32, _: bool)>, pub set_mouse_pos: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32, _: i32, _: i32)>, pub set_keyboard_leds: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32, _: gfx_console_led_t)>, pub set_grab_modifier: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32, _: sim_key_t)>, pub set_grab_button: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32, _: gfx_console_mouse_button_t)>,
}

Fields§

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

Called when the backend is finalised. Should return a unique handle identifying the given backend object to the frontend.

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

Called when the backend is being destroyed.

§set_title: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32, _: *const i8, _: *const i8)>

Set window title of the frontend associated to the specified backend. Two title strings are given, where the long title is meant for a window title bar and the short for a window list. The long title string is at least as long as the short.

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

Called when the screen size of the specified backend changes.

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

Tell the frontend to show/hide its GUI window.

§set_contents: Option<unsafe extern "C" fn(_: *mut conf_object, _: i32, _: i32, _: i32, _: i32, _: i32, _: *const u32)>

Update the screen contents in the rectangle between (left, top) and (right, bottom), inclusive. ‘data’ is the start of the screen pixel array, so the first pixel of the rectangle is at &data[width * top + left], where width was set by set_size.

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

Tell the frontend that the data argument passed to set_contents is no longer valid. This must be called upon a screen size change, before set_size.

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

Inform the frontend whether or not we are currently in VGA text mode.

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

Tell the frontend that text arrived to the backend from the attached device, using vga_text_update.

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

Inform the frontend that the grab mode of the specified backend has changed.

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

Tell the frontend to set the host mouse cursor to (x, y), with ranges [0, width - 1] and [0, height - 1], where width and height were set by set_size.

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

Inform frontend that the keyboard LED state have been updated. The new state of the LEDs is given as a bitmask.

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

Inform frontend that the grab modifier has changed.

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

Inform frontend that the grab button has changed.