Struct qt_gui::q_surface::SurfaceType
source · pub struct SurfaceType(/* private fields */);
Expand description
The SurfaceType enum describes what type of surface this is.
C++ enum: QSurface::SurfaceType
.
The SurfaceType enum describes what type of surface this is.
Implementations§
source§impl SurfaceType
impl SurfaceType
sourcepub const RasterSurface: SurfaceType = _
pub const RasterSurface: SurfaceType = _
The surface is is composed of pixels and can be rendered to using a software rasterizer like Qt’s raster paint engine. (C++ enum variant: RasterSurface = 0
)
sourcepub const OpenGLSurface: SurfaceType = _
pub const OpenGLSurface: SurfaceType = _
The surface is an OpenGL compatible surface and can be used in conjunction with QOpenGLContext. (C++ enum variant: OpenGLSurface = 1
)
sourcepub const RasterGLSurface: SurfaceType = _
pub const RasterGLSurface: SurfaceType = _
The surface can be rendered to using a software rasterizer, and also supports OpenGL. This surface type is intended for internal Qt use, and requires the use of private API. (C++ enum variant: RasterGLSurface = 2
)
sourcepub const OpenVGSurface: SurfaceType = _
pub const OpenVGSurface: SurfaceType = _
sourcepub const VulkanSurface: SurfaceType = _
pub const VulkanSurface: SurfaceType = _
The surface is a Vulkan compatible surface and can be used in conjunction with the Vulkan graphics API. (C++ enum variant: VulkanSurface = 4
)
sourcepub const MetalSurface: SurfaceType = _
pub const MetalSurface: SurfaceType = _
The surface is a Metal compatible surface and can be used in conjunction with Apple’s Metal graphics API. This surface type is supported on macOS only. (C++ enum variant: MetalSurface = 5
)
Trait Implementations§
source§impl Clone for SurfaceType
impl Clone for SurfaceType
source§fn clone(&self) -> SurfaceType
fn clone(&self) -> SurfaceType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SurfaceType
impl Debug for SurfaceType
source§impl From<SurfaceType> for c_int
impl From<SurfaceType> for c_int
source§fn from(value: SurfaceType) -> Self
fn from(value: SurfaceType) -> Self
source§impl From<i32> for SurfaceType
impl From<i32> for SurfaceType
source§impl PartialEq for SurfaceType
impl PartialEq for SurfaceType
source§fn eq(&self, other: &SurfaceType) -> bool
fn eq(&self, other: &SurfaceType) -> bool
self
and other
values to be equal, and is used
by ==
.