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).