pub struct XlibWindow(pub c_ulong);
Available on crate features
backend_egl
and backend_winit
only.Expand description
Typed Xlib window for the X11
backend
Tuple Fields§
§0: c_ulong
Trait Implementations§
Source§impl Debug for XlibWindow
impl Debug for XlibWindow
Source§impl EGLNativeSurface for XlibWindow
impl EGLNativeSurface for XlibWindow
Source§unsafe fn create(
&self,
display: &Arc<EGLDisplayHandle>,
config_id: EGLConfig,
) -> Result<*const c_void, EGLError>
unsafe fn create( &self, display: &Arc<EGLDisplayHandle>, config_id: EGLConfig, ) -> Result<*const c_void, EGLError>
Create an EGLSurface from the internal native type. Read more
Source§fn identifier(&self) -> Option<String>
fn identifier(&self) -> Option<String>
String identifying this native surface from its counterparts of the same platform, if applicable.
Source§fn needs_recreation(&self) -> bool
fn needs_recreation(&self) -> bool
Will be called to check if any internal resources will need
to be recreated. Old resources must be used until
create
was called again and a new surface was obtained. Read moreSource§fn resize(&self, _width: i32, _height: i32, _dx: i32, _dy: i32) -> bool
fn resize(&self, _width: i32, _height: i32, _dx: i32, _dy: i32) -> bool
If the surface supports resizing you may implement and use this function. Read more
Source§fn swap_buffers(
&self,
display: &Arc<EGLDisplayHandle>,
surface: EGLSurface,
damage: Option<&mut [Rectangle<i32, Physical>]>,
damage_impl: DamageSupport,
) -> Result<(), SwapBuffersError>
fn swap_buffers( &self, display: &Arc<EGLDisplayHandle>, surface: EGLSurface, damage: Option<&mut [Rectangle<i32, Physical>]>, damage_impl: DamageSupport, ) -> Result<(), SwapBuffersError>
Adds additional semantics when calling
EGLSurface::swap_buffers Read more
Auto Trait Implementations§
impl Freeze for XlibWindow
impl RefUnwindSafe for XlibWindow
impl Send for XlibWindow
impl Sync for XlibWindow
impl Unpin for XlibWindow
impl UnwindSafe for XlibWindow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.