Struct wai::x11::Context
[−]
[src]
pub struct Context(_);
Methods
impl Context
[src]
fn flush(&self)
fn window_set_name(&self, window: WindowID, name: &str)
fn keysym_name(key: Keysym) -> String
fn keysym_from_name(name: &str) -> Option<Keysym>
Trait Implementations
impl Wrapper for Context
[src]
type Native = *mut xcb_connection_t
fn get_native(&self) -> Self::Native
impl WindowSystem for Context
[src]
type WindowID = WindowID
type DeviceID = DeviceID
type EventStream = Stream
fn open(handle: &Handle) -> Result<(Context, Stream)>
fn new_window(
&self,
position: (i32, i32),
size: (u32, u32),
name: Option<&str>
) -> WindowID
&self,
position: (i32, i32),
size: (u32, u32),
name: Option<&str>
) -> WindowID
unsafe fn create_vulkan_surface(
&self,
instance: &Arc<Instance>,
window: Self::WindowID
) -> Result<Arc<Surface>, SurfaceCreationError>
&self,
instance: &Arc<Instance>,
window: Self::WindowID
) -> Result<Arc<Surface>, SurfaceCreationError>