pub trait RawContextExt {
unsafe fn build_raw_x11_context(
self,
xconn: Arc<XConnection>,
xwin: c_ulong
) -> Result<RawContext<NotCurrent>, CreationError>
where
Self: Sized;
}
Expand description
A unix-specific extension for the ContextBuilder
which allows assembling RawContext<T>
s.
Required Methods
sourceunsafe fn build_raw_x11_context(
self,
xconn: Arc<XConnection>,
xwin: c_ulong
) -> Result<RawContext<NotCurrent>, CreationError>where
Self: Sized,
unsafe fn build_raw_x11_context(
self,
xconn: Arc<XConnection>,
xwin: c_ulong
) -> Result<RawContext<NotCurrent>, CreationError>where
Self: Sized,
Creates a raw context on the provided window.
Unsafe behaviour might happen if you:
- Provide us with invalid parameters.
- The xwin is destroyed before the context