Struct simics::api::interface::interfaces::GfxConInterface
source · pub struct GfxConInterface {
obj: *mut ConfObject,
interface: *mut gfx_con_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut gfx_con_interface
Implementations§
source§impl GfxConInterface
impl GfxConInterface
sourcepub fn set_color(
&mut self,
index: uint8,
r: uint8,
g: uint8,
b: uint8,
) -> Result<c_int>
pub fn set_color( &mut self, index: uint8, r: uint8, g: uint8, b: uint8, ) -> Result<c_int>
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 put_pixel(&mut self, x: c_int, y: c_int, index: uint8) -> Result<()>
pub fn put_pixel(&mut self, x: c_int, y: c_int, index: uint8) -> Result<()>
Automatically generated method for the interface
sourcepub fn put_pixel_rgb(&mut self, x: c_int, y: c_int, rgb: uint32) -> Result<()>
pub fn put_pixel_rgb(&mut self, x: c_int, y: c_int, rgb: uint32) -> Result<()>
Automatically generated method for the interface
sourcepub fn put_block_old(
&mut self,
src: *mut uint8,
minx: c_int,
miny: c_int,
maxx: c_int,
maxy: c_int,
src_fmt: c_int,
src_stride: c_int,
unused: c_int,
) -> Result<()>
pub fn put_block_old( &mut self, src: *mut uint8, minx: c_int, miny: c_int, maxx: c_int, maxy: c_int, src_fmt: c_int, src_stride: c_int, unused: c_int, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn update_keyboard_leds(&mut self, led_change: c_int) -> Result<()>
pub fn update_keyboard_leds(&mut self, led_change: c_int) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for GfxConInterface
impl Interface for GfxConInterface
source§type InternalInterface = gfx_con_interface
type InternalInterface = gfx_con_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 GfxConInterface
impl RefUnwindSafe for GfxConInterface
impl !Send for GfxConInterface
impl !Sync for GfxConInterface
impl Unpin for GfxConInterface
impl UnwindSafe for GfxConInterface
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