Struct adi_gpu_base::Window [−][src]
pub struct Window { /* fields omitted */ }
A graphics window on a computer, linked to a rendering API.
Methods
impl Window
[src]
impl Window
pub fn new(title: &str, icon: &Video, v: Option<i32>) -> Window
[src]
pub fn new(title: &str, icon: &Video, v: Option<i32>) -> Window
Create a window, using title
as the title, and icon
as the
window icon. The format of icon is as follows:
(width, height, pixels)
. You can load icons with aci. v
should
be either None
or Some(visual_id from EGL)
.
pub fn get_connection(&self) -> WindowConnection
[src]
pub fn get_connection(&self) -> WindowConnection
Get the type of connection, plus native window and connection
handles to pass to ffi. See WindowConnection
for more details.
pub fn wh(&self) -> (u16, u16)
[src]
pub fn wh(&self) -> (u16, u16)
Get the width and height of the window, as a tuple.
pub fn update(&mut self) -> Option<Input>
[src]
pub fn update(&mut self) -> Option<Input>
Poll window input, return None
when finished. After returning
None
, the next call will update the window.