[][src]Struct qt_gui::q_surface::SurfaceType

#[repr(transparent)]
pub struct SurfaceType(_);

The SurfaceType enum describes what type of surface this is.

C++ enum: QSurface::SurfaceType.

C++ documentation:

The SurfaceType enum describes what type of surface this is.

Methods

impl SurfaceType[src]

pub fn to_int(&self) -> c_int[src]

impl SurfaceType[src]

pub const RasterSurface: SurfaceType[src]

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)

pub const OpenGLSurface: SurfaceType[src]

The surface is an OpenGL compatible surface and can be used in conjunction with QOpenGLContext. (C++ enum variant: OpenGLSurface = 1)

pub const RasterGLSurface: SurfaceType[src]

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)

pub const OpenVGSurface: SurfaceType[src]

The surface is an OpenVG compatible surface and can be used in conjunction with OpenVG contexts. (C++ enum variant: OpenVGSurface = 3)

pub const VulkanSurface: SurfaceType[src]

The surface is a Vulkan compatible surface and can be used in conjunction with the Vulkan graphics API. (C++ enum variant: VulkanSurface = 4)

pub const MetalSurface: SurfaceType[src]

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

impl Clone for SurfaceType[src]

impl Copy for SurfaceType[src]

impl Debug for SurfaceType[src]

impl Eq for SurfaceType[src]

impl From<SurfaceType> for c_int[src]

impl From<i32> for SurfaceType[src]

impl PartialEq<SurfaceType> for SurfaceType[src]

impl StructuralEq for SurfaceType[src]

impl StructuralPartialEq for SurfaceType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.