Trait glutin::os::unix::RawContextExt
source · pub trait RawContextExt {
// Required methods
unsafe fn new_raw_wayland_context(
display_ptr: *const wl_display,
surface: *mut c_void,
width: u32,
height: u32,
cb: ContextBuilder<'_>
) -> Result<RawContext, CreationError>
where Self: Sized;
unsafe fn new_raw_x11_context(
xconn: Arc<XConnection>,
xwin: c_ulong,
cb: ContextBuilder<'_>
) -> Result<RawContext, CreationError>
where Self: Sized;
}
Required Methods§
sourceunsafe fn new_raw_wayland_context(
display_ptr: *const wl_display,
surface: *mut c_void,
width: u32,
height: u32,
cb: ContextBuilder<'_>
) -> Result<RawContext, CreationError>where
Self: Sized,
unsafe fn new_raw_wayland_context( display_ptr: *const wl_display, surface: *mut c_void, width: u32, height: u32, cb: ContextBuilder<'_> ) -> Result<RawContext, CreationError>where Self: Sized,
Creates a raw context on the provided surface.
Unsafe behaviour might happen if you:
- Provide us with invalid parameters.
- The surface/display_ptr is destroyed before the context
sourceunsafe fn new_raw_x11_context(
xconn: Arc<XConnection>,
xwin: c_ulong,
cb: ContextBuilder<'_>
) -> Result<RawContext, CreationError>where
Self: Sized,
unsafe fn new_raw_x11_context( xconn: Arc<XConnection>, xwin: c_ulong, cb: ContextBuilder<'_> ) -> Result<RawContext, CreationError>where Self: Sized,
Creates a raw context on the provided window.
Unsafe behaviour might happen if you:
- Provide us with invalid parameters.
- The xconn/xwin is destroyed before the context