#[repr(C)]pub struct QSurface { /* private fields */ }
Expand description
The QSurface class is an abstraction of renderable surfaces in Qt.
C++ class: QSurface
.
Implementations§
source§impl QSurface
impl QSurface
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QSurface>>
) -> Ref<QSurface>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QSurface>> ) -> Ref<QSurface>
The QSurface class is an abstraction of renderable surfaces in Qt.
Calls C++ function: QSurface& QSurface::operator=(const QSurface& other)
.
sourcepub unsafe fn format(&self) -> CppBox<QSurfaceFormat>
pub unsafe fn format(&self) -> CppBox<QSurfaceFormat>
Returns the format of the surface.
Calls C++ function: pure virtual QSurfaceFormat QSurface::format() const
.
Returns the format of the surface.
sourcepub unsafe fn size(&self) -> CppBox<QSize>
pub unsafe fn size(&self) -> CppBox<QSize>
Returns the size of the surface in pixels.
Calls C++ function: pure virtual QSize QSurface::size() const
.
Returns the size of the surface in pixels.
sourcepub unsafe fn static_meta_object() -> Ref<QMetaObject>
Available on cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Returns a reference to the staticMetaObject
field.
sourcepub unsafe fn supports_opengl(&self) -> bool
pub unsafe fn supports_opengl(&self) -> bool
Returns true if the surface is OpenGL compatible and can be used in conjunction with QOpenGLContext; otherwise returns false.
Calls C++ function: bool QSurface::supportsOpenGL() const
.
Returns true if the surface is OpenGL compatible and can be used in conjunction with QOpenGLContext; otherwise returns false.
This function was introduced in Qt 5.3.
sourcepub unsafe fn surface_class(&self) -> SurfaceClass
pub unsafe fn surface_class(&self) -> SurfaceClass
Returns the surface class of this surface.
Calls C++ function: QSurface::SurfaceClass QSurface::surfaceClass() const
.
Returns the surface class of this surface.
sourcepub unsafe fn surface_type(&self) -> SurfaceType
pub unsafe fn surface_type(&self) -> SurfaceType
Returns the type of the surface.
Calls C++ function: pure virtual QSurface::SurfaceType QSurface::surfaceType() const
.
Returns the type of the surface.
Trait Implementations§
source§impl CppDeletable for QSurface
impl CppDeletable for QSurface
source§impl DynamicCast<QOffscreenSurface> for QSurface
impl DynamicCast<QOffscreenSurface> for QSurface
source§unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QOffscreenSurface>
unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QOffscreenSurface>
Calls C++ function: QOffscreenSurface* dynamic_cast<QOffscreenSurface*>(QSurface* ptr)
.
source§impl DynamicCast<QOpenGLWindow> for QSurface
impl DynamicCast<QOpenGLWindow> for QSurface
source§unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QOpenGLWindow>
unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QOpenGLWindow>
Calls C++ function: QOpenGLWindow* dynamic_cast<QOpenGLWindow*>(QSurface* ptr)
.
source§impl DynamicCast<QPaintDeviceWindow> for QSurface
impl DynamicCast<QPaintDeviceWindow> for QSurface
source§unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QPaintDeviceWindow>
unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QPaintDeviceWindow>
Calls C++ function: QPaintDeviceWindow* dynamic_cast<QPaintDeviceWindow*>(QSurface* ptr)
.
source§impl DynamicCast<QRasterWindow> for QSurface
impl DynamicCast<QRasterWindow> for QSurface
source§unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QRasterWindow>
unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QRasterWindow>
Calls C++ function: QRasterWindow* dynamic_cast<QRasterWindow*>(QSurface* ptr)
.
source§impl DynamicCast<QWindow> for QSurface
impl DynamicCast<QWindow> for QSurface
source§impl Size for QSurface
impl Size for QSurface
source§impl StaticDowncast<QOffscreenSurface> for QSurface
impl StaticDowncast<QOffscreenSurface> for QSurface
source§unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QOffscreenSurface>
unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QOffscreenSurface>
Calls C++ function: QOffscreenSurface* static_cast<QOffscreenSurface*>(QSurface* ptr)
.
source§impl StaticDowncast<QOpenGLWindow> for QSurface
impl StaticDowncast<QOpenGLWindow> for QSurface
source§unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QOpenGLWindow>
unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QOpenGLWindow>
Calls C++ function: QOpenGLWindow* static_cast<QOpenGLWindow*>(QSurface* ptr)
.
source§impl StaticDowncast<QPaintDeviceWindow> for QSurface
impl StaticDowncast<QPaintDeviceWindow> for QSurface
source§unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QPaintDeviceWindow>
unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QPaintDeviceWindow>
Calls C++ function: QPaintDeviceWindow* static_cast<QPaintDeviceWindow*>(QSurface* ptr)
.
source§impl StaticDowncast<QRasterWindow> for QSurface
impl StaticDowncast<QRasterWindow> for QSurface
source§unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QRasterWindow>
unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QRasterWindow>
Calls C++ function: QRasterWindow* static_cast<QRasterWindow*>(QSurface* ptr)
.
source§impl StaticDowncast<QWindow> for QSurface
impl StaticDowncast<QWindow> for QSurface
source§impl StaticUpcast<QSurface> for QOffscreenSurface
impl StaticUpcast<QSurface> for QOffscreenSurface
source§unsafe fn static_upcast(ptr: Ptr<QOffscreenSurface>) -> Ptr<QSurface>
unsafe fn static_upcast(ptr: Ptr<QOffscreenSurface>) -> Ptr<QSurface>
Calls C++ function: QSurface* static_cast<QSurface*>(QOffscreenSurface* ptr)
.
source§impl StaticUpcast<QSurface> for QOpenGLWindow
impl StaticUpcast<QSurface> for QOpenGLWindow
source§unsafe fn static_upcast(ptr: Ptr<QOpenGLWindow>) -> Ptr<QSurface>
unsafe fn static_upcast(ptr: Ptr<QOpenGLWindow>) -> Ptr<QSurface>
Calls C++ function: QSurface* static_cast<QSurface*>(QOpenGLWindow* ptr)
.
source§impl StaticUpcast<QSurface> for QPaintDeviceWindow
impl StaticUpcast<QSurface> for QPaintDeviceWindow
source§unsafe fn static_upcast(ptr: Ptr<QPaintDeviceWindow>) -> Ptr<QSurface>
unsafe fn static_upcast(ptr: Ptr<QPaintDeviceWindow>) -> Ptr<QSurface>
Calls C++ function: QSurface* static_cast<QSurface*>(QPaintDeviceWindow* ptr)
.
source§impl StaticUpcast<QSurface> for QRasterWindow
impl StaticUpcast<QSurface> for QRasterWindow
source§unsafe fn static_upcast(ptr: Ptr<QRasterWindow>) -> Ptr<QSurface>
unsafe fn static_upcast(ptr: Ptr<QRasterWindow>) -> Ptr<QSurface>
Calls C++ function: QSurface* static_cast<QSurface*>(QRasterWindow* ptr)
.