[−][src]Struct sunrise_libuser::vi::ViInterfaceProxy
Entry point interface.
Implementations
impl ViInterfaceProxy
[src]
pub fn raw_new() -> Result<ViInterfaceProxy, Error>
[src]
Creates a new ViInterfaceProxy by connecting to the vi:
service.
pub fn new() -> Result<&'static ViInterfaceProxy, Error>
[src]
Acquires the shared handle to the vi:
service - connecting if it wasn't already.
impl ViInterfaceProxy
[src]
pub fn clone_current_object(&self) -> Result<Self, Error>
[src]
Clones the current object, returning a new handle. The returned handle has its own IPC buffer - it may be used concurrently with the original.
pub fn create_buffer(
&self,
framebuffer: &SharedMemory,
top: i32,
left: i32,
width: u32,
height: u32
) -> Result<IBufferProxy, Error>
[src]
&self,
framebuffer: &SharedMemory,
top: i32,
left: i32,
width: u32,
height: u32
) -> 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.
pub fn get_screen_resolution(&self) -> Result<(u32, u32), Error>
[src]
Gets the screen resolution.
pub fn get_font_height(&self) -> Result<u32, Error>
[src]
Gets the height of the font used for rendering a terminal line.
pub fn create_terminal(
&self,
framebuffer: &SharedMemory,
top: i32,
left: i32,
width: u32,
height: u32
) -> Result<IPipeProxy, Error>
[src]
&self,
framebuffer: &SharedMemory,
top: i32,
left: i32,
width: u32,
height: u32
) -> 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.
Trait Implementations
impl Debug for ViInterfaceProxy
[src]
impl From<ClientSession> for ViInterfaceProxy
[src]
fn from(sess: ClientSession) -> ViInterfaceProxy
[src]
impl From<ViInterfaceProxy> for ClientSession
[src]
fn from(sess: ViInterfaceProxy) -> ClientSession
[src]
Auto Trait Implementations
impl RefUnwindSafe for ViInterfaceProxy
impl Send for ViInterfaceProxy
impl Sync for ViInterfaceProxy
impl Unpin for ViInterfaceProxy
impl UnwindSafe for ViInterfaceProxy
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SizedIPCBuffer for T
[src]
fn size(&Self) -> usize
[src]
fn is_cool(usize, usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(usize, usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(usize, usize) -> &'a mut T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,