pub enum Config {
Egl(Config),
Glx(Config),
}
Expand description
Variants§
Trait Implementations§
Source§impl AsRawConfig for Config
impl AsRawConfig for Config
Source§fn raw_config(&self) -> RawConfig
fn raw_config(&self) -> RawConfig
Obtain the
RawConfig
of the underlying Api.Source§impl GetGlDisplay for Config
impl GetGlDisplay for Config
Source§impl GlConfig for Config
impl GlConfig for Config
Source§fn color_buffer_type(&self) -> Option<ColorBufferType>
fn color_buffer_type(&self) -> Option<ColorBufferType>
The type of the underlying color buffer. Read more
Source§fn float_pixels(&self) -> bool
fn float_pixels(&self) -> bool
Whether the config uses floating pixels.
Source§fn alpha_size(&self) -> u8
fn alpha_size(&self) -> u8
The size of the alpha.
Source§fn depth_size(&self) -> u8
fn depth_size(&self) -> u8
The size of the depth buffer.
Source§fn stencil_size(&self) -> u8
fn stencil_size(&self) -> u8
The size of the stencil buffer.
Source§fn num_samples(&self) -> u8
fn num_samples(&self) -> u8
The number of samples in multisample buffer. Read more
Source§fn srgb_capable(&self) -> bool
fn srgb_capable(&self) -> bool
Whether the config supports creating srgb capable
Surface
.Source§fn config_surface_types(&self) -> ConfigSurfaceTypes
fn config_surface_types(&self) -> ConfigSurfaceTypes
The type of the surfaces that can be created with this config.
Source§fn hardware_accelerated(&self) -> bool
fn hardware_accelerated(&self) -> bool
Whether the config is hardware accelerated. Read more
Source§fn supports_transparency(&self) -> Option<bool>
fn supports_transparency(&self) -> Option<bool>
Whether the config supports creating transparent surfaces. Read more
Source§fn api(&self) -> Api
fn api(&self) -> Api
The
crate::config::Api
supported by the configuration.Source§impl X11GlConfigExt for Config
impl X11GlConfigExt for Config
Source§fn x11_visual(&self) -> Option<X11VisualInfo>
fn x11_visual(&self) -> Option<X11VisualInfo>
The
X11VisualInfo
that must be used to initialize the Xlib window.impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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