Struct smithay::backend::egl::display::EGLDisplay [−][src]
pub struct EGLDisplay { /* fields omitted */ }
Expand description
EGLDisplay
represents an initialised EGL environment
Implementations
pub fn new<N, L>(native: &N, logger: L) -> Result<EGLDisplay, Error> where
N: EGLNativeDisplay + 'static,
L: Into<Option<Logger>>,
pub fn new<N, L>(native: &N, logger: L) -> Result<EGLDisplay, Error> where
N: EGLNativeDisplay + 'static,
L: Into<Option<Logger>>,
Create a new EGLDisplay
from a given EGLNativeDisplay
pub fn choose_config(
&self,
attributes: GlAttributes,
reqs: PixelFormatRequirements
) -> Result<(PixelFormat, EGLConfig), Error>
pub fn choose_config(
&self,
attributes: GlAttributes,
reqs: PixelFormatRequirements
) -> Result<(PixelFormat, EGLConfig), Error>
Finds a compatible EGLConfig for a given set of requirements
Get a handle to the underlying raw EGLDisplay handle
Returns the supported extensions of this display
Binds this EGL display to the given Wayland display.
This will allow clients to utilize EGL to create hardware-accelerated
surfaces. The server will need to be able to handle EGL-WlBuffer
s.
Errors
This might return EglExtensionNotSupported
if binding is not supported by the EGL implementation.
This might return OtherEGLDisplayAlreadyBound
if called for the same Display
multiple times, as only one egl display may be bound at any given time.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EGLDisplay
impl Send for EGLDisplay
impl Sync for EGLDisplay
impl Unpin for EGLDisplay
impl UnwindSafe for EGLDisplay
Blanket Implementations
Mutably borrows from an owned value. Read more
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
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
pub fn vzip(self) -> V