[][src]Struct sunrise_vi::ViInterface

struct ViInterface;

Entry point interface.

Trait Implementations

impl Clone for ViInterface[src]

impl Debug for ViInterface[src]

impl Default for ViInterface[src]

impl ViInterface for ViInterface[src]

fn create_buffer(
    &mut self,
    manager: WorkQueue<'static>,
    sharedmem: 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.

fn get_screen_resolution(
    &mut self,
    _manager: WorkQueue<'static>
) -> Result<(u32, u32), Error>
[src]

Gets the screen (width, height) in pixels.

Cannot fail.

Auto Trait Implementations

impl RefUnwindSafe for ViInterface

impl Send for ViInterface

impl Sync for ViInterface

impl Unpin for ViInterface

impl UnwindSafe for ViInterface

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.