[][src]Struct sunrise_libuser::vi::ViInterfaceProxy

pub struct ViInterfaceProxy(ClientSession);

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]

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]

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]

impl From<ViInterfaceProxy> for 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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SizedIPCBuffer for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.