[−][src]Trait sunrise_libuser::vi::ViInterfaceAsync
Entry point interface.
Required methods
fn create_buffer<'a>(
&'a mut self,
work_queue: WorkQueue<'static>,
framebuffer: SharedMemory,
top: i32,
left: i32,
width: u32,
height: u32
) -> FutureObj<'a, Result<IBufferProxy, Error>>
&'a mut self,
work_queue: WorkQueue<'static>,
framebuffer: SharedMemory,
top: i32,
left: i32,
width: u32,
height: u32
) -> FutureObj<'a, Result<IBufferProxy, Error>>
Create a window.
This creates a window at the given coordinates, with the given
height. The passed handle should be a SharedMemory handle containing
a framebuffer of type [[u8; width]; height]
.
It is allowed to place the framebuffer outside the field of view.
fn get_screen_resolution<'a>(
&'a mut self,
work_queue: WorkQueue<'static>
) -> FutureObj<'a, Result<(u32, u32), Error>>
&'a mut self,
work_queue: WorkQueue<'static>
) -> FutureObj<'a, Result<(u32, u32), Error>>
Gets the screen resolution.
fn get_font_height<'a>(
&'a mut self,
work_queue: WorkQueue<'static>
) -> FutureObj<'a, Result<u32, Error>>
&'a mut self,
work_queue: WorkQueue<'static>
) -> FutureObj<'a, Result<u32, Error>>
Gets the height of the font used for rendering a terminal line.
fn create_terminal<'a>(
&'a mut self,
work_queue: WorkQueue<'static>,
framebuffer: SharedMemory,
top: i32,
left: i32,
width: u32,
height: u32
) -> FutureObj<'a, Result<IPipeProxy, Error>>
&'a mut self,
work_queue: WorkQueue<'static>,
framebuffer: SharedMemory,
top: i32,
left: i32,
width: u32,
height: u32
) -> FutureObj<'a, Result<IPipeProxy, Error>>
Create a terminal.
This creates a terminal at the given coordinates, with the given height.
It is allowed to place the framebuffer outside the field of view.
Provided methods
fn dispatch<'a>(
&'a mut self,
work_queue: WorkQueue<'static>,
cmdid: u32,
buf: &'a mut [u8]
) -> FutureObj<Result<(), Error>>
&'a mut self,
work_queue: WorkQueue<'static>,
cmdid: u32,
buf: &'a mut [u8]
) -> FutureObj<Result<(), Error>>
Handle an incoming IPC request.