[][src]Struct orbtk::InnerWindow

pub struct InnerWindow { /* fields omitted */ }

A window

Methods

impl Window[src]

pub fn new(x: i32, y: i32, w: u32, h: u32, title: &str) -> Option<Window>[src]

Create a new window

pub fn new_flags(
    x: i32,
    y: i32,
    w: u32,
    h: u32,
    title: &str,
    flags: &[WindowFlag]
) -> Option<Window>
[src]

Create a new window with flags

pub fn clipboard(&self) -> String[src]

pub fn set_clipboard(&mut self, text: &str)[src]

pub fn sync_path(&mut self)[src]

pub fn x(&self) -> i32[src]

Get x

pub fn y(&self) -> i32[src]

Get y

pub fn title(&self) -> String[src]

Get title

pub fn set_mouse_cursor(&mut self, visible: bool)[src]

Set cursor visibility

pub fn set_mouse_grab(&mut self, grab: bool)[src]

Set mouse grabbing

pub fn set_mouse_relative(&mut self, relative: bool)[src]

Set mouse relative mode

pub fn set_pos(&mut self, x: i32, y: i32)[src]

Set position

pub fn set_size(&mut self, width: u32, height: u32)[src]

Set size

pub fn set_title(&mut self, title: &str)[src]

Set title

pub fn events(&mut self) -> EventIter[src]

Blocking iterator over events

Trait Implementations

impl Renderer for Window[src]

fn width(&self) -> u32[src]

Get width

fn height(&self) -> u32[src]

Get height

fn data(&self) -> &[Color][src]

Access pixel buffer

fn data_mut(&mut self) -> &mut [Color][src]

Access pixel buffer mutably

fn sync(&mut self) -> bool[src]

Flip the window buffer

fn mode(&self) -> &Cell<Mode>[src]

Set/get mode

Auto Trait Implementations

impl !RefUnwindSafe for Window

impl !Send for Window

impl !Sync for Window

impl Unpin for Window

impl !UnwindSafe for Window

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> SetParameter for T

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.