[−][src]Struct qt_gui::QSurface
The QSurface class is an abstraction of renderable surfaces in Qt.
C++ class: QSurface
.
Methods
impl QSurface
[src]
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QSurface>>
) -> MutRef<QSurface>
[src]
&mut self,
other: impl CastInto<Ref<QSurface>>
) -> MutRef<QSurface>
The QSurface class is an abstraction of renderable surfaces in Qt.
Calls C++ function: QSurface& QSurface::operator=(const QSurface& other)
.
pub unsafe fn format(&self) -> CppBox<QSurfaceFormat>
[src]
Returns the format of the surface.
Calls C++ function: pure virtual QSurfaceFormat QSurface::format() const
.
Returns the format of the surface.
pub unsafe fn size(&self) -> CppBox<QSize>
[src]
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.
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
Returns a reference to the staticMetaObject
field.
This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")
.
pub unsafe fn supports_opengl(&self) -> bool
[src]
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.
pub unsafe fn surface_class(&self) -> SurfaceClass
[src]
Returns the surface class of this surface.
Calls C++ function: QSurface::SurfaceClass QSurface::surfaceClass() const
.
Returns the surface class of this surface.
pub unsafe fn surface_type(&self) -> SurfaceType
[src]
Returns the type of the surface.
Calls C++ function: pure virtual QSurface::SurfaceType QSurface::surfaceType() const
.
Returns the type of the surface.
Trait Implementations
impl CppDeletable for QSurface
[src]
unsafe fn delete(&mut self)
[src]
Destroys the surface.
Calls C++ function: virtual [destructor] void QSurface::~QSurface()
.
Destroys the surface.
impl DynamicCast<QOffscreenSurface> for QSurface
[src]
unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QOffscreenSurface>
[src]
Calls C++ function: QOffscreenSurface* dynamic_cast<QOffscreenSurface*>(QSurface* ptr)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QSurface>) -> MutPtr<QOffscreenSurface>
[src]
Calls C++ function: QOffscreenSurface* dynamic_cast<QOffscreenSurface*>(QSurface* ptr)
.
impl DynamicCast<QOpenGLWindow> for QSurface
[src]
unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QOpenGLWindow>
[src]
Calls C++ function: QOpenGLWindow* dynamic_cast<QOpenGLWindow*>(QSurface* ptr)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QSurface>) -> MutPtr<QOpenGLWindow>
[src]
Calls C++ function: QOpenGLWindow* dynamic_cast<QOpenGLWindow*>(QSurface* ptr)
.
impl DynamicCast<QPaintDeviceWindow> for QSurface
[src]
unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QPaintDeviceWindow>
[src]
Calls C++ function: QPaintDeviceWindow* dynamic_cast<QPaintDeviceWindow*>(QSurface* ptr)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QSurface>) -> MutPtr<QPaintDeviceWindow>
[src]
Calls C++ function: QPaintDeviceWindow* dynamic_cast<QPaintDeviceWindow*>(QSurface* ptr)
.
impl DynamicCast<QRasterWindow> for QSurface
[src]
unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QRasterWindow>
[src]
Calls C++ function: QRasterWindow* dynamic_cast<QRasterWindow*>(QSurface* ptr)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QSurface>) -> MutPtr<QRasterWindow>
[src]
Calls C++ function: QRasterWindow* dynamic_cast<QRasterWindow*>(QSurface* ptr)
.
impl DynamicCast<QWindow> for QSurface
[src]
unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QWindow>
[src]
Calls C++ function: QWindow* dynamic_cast<QWindow*>(QSurface* ptr)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QSurface>) -> MutPtr<QWindow>
[src]
Calls C++ function: QWindow* dynamic_cast<QWindow*>(QSurface* ptr)
.
impl Size for QSurface
[src]
unsafe fn size(&self) -> usize
[src]
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.
impl StaticDowncast<QOffscreenSurface> for QSurface
[src]
unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QOffscreenSurface>
[src]
Calls C++ function: QOffscreenSurface* static_cast<QOffscreenSurface*>(QSurface* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QSurface>
) -> MutPtr<QOffscreenSurface>
[src]
ptr: MutPtr<QSurface>
) -> MutPtr<QOffscreenSurface>
Calls C++ function: QOffscreenSurface* static_cast<QOffscreenSurface*>(QSurface* ptr)
.
impl StaticDowncast<QOpenGLWindow> for QSurface
[src]
unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QOpenGLWindow>
[src]
Calls C++ function: QOpenGLWindow* static_cast<QOpenGLWindow*>(QSurface* ptr)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QSurface>) -> MutPtr<QOpenGLWindow>
[src]
Calls C++ function: QOpenGLWindow* static_cast<QOpenGLWindow*>(QSurface* ptr)
.
impl StaticDowncast<QPaintDeviceWindow> for QSurface
[src]
unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QPaintDeviceWindow>
[src]
Calls C++ function: QPaintDeviceWindow* static_cast<QPaintDeviceWindow*>(QSurface* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QSurface>
) -> MutPtr<QPaintDeviceWindow>
[src]
ptr: MutPtr<QSurface>
) -> MutPtr<QPaintDeviceWindow>
Calls C++ function: QPaintDeviceWindow* static_cast<QPaintDeviceWindow*>(QSurface* ptr)
.
impl StaticDowncast<QRasterWindow> for QSurface
[src]
unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QRasterWindow>
[src]
Calls C++ function: QRasterWindow* static_cast<QRasterWindow*>(QSurface* ptr)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QSurface>) -> MutPtr<QRasterWindow>
[src]
Calls C++ function: QRasterWindow* static_cast<QRasterWindow*>(QSurface* ptr)
.
impl StaticDowncast<QWindow> for QSurface
[src]
unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QWindow>
[src]
Calls C++ function: QWindow* static_cast<QWindow*>(QSurface* ptr)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QSurface>) -> MutPtr<QWindow>
[src]
Calls C++ function: QWindow* static_cast<QWindow*>(QSurface* ptr)
.
impl StaticUpcast<QSurface> for QWindow
[src]
unsafe fn static_upcast(ptr: Ptr<QWindow>) -> Ptr<QSurface>
[src]
Calls C++ function: QSurface* static_cast<QSurface*>(QWindow* ptr)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QWindow>) -> MutPtr<QSurface>
[src]
Calls C++ function: QSurface* static_cast<QSurface*>(QWindow* ptr)
.
impl StaticUpcast<QSurface> for QOffscreenSurface
[src]
unsafe fn static_upcast(ptr: Ptr<QOffscreenSurface>) -> Ptr<QSurface>
[src]
Calls C++ function: QSurface* static_cast<QSurface*>(QOffscreenSurface* ptr)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QOffscreenSurface>) -> MutPtr<QSurface>
[src]
Calls C++ function: QSurface* static_cast<QSurface*>(QOffscreenSurface* ptr)
.
impl StaticUpcast<QSurface> for QPaintDeviceWindow
[src]
unsafe fn static_upcast(ptr: Ptr<QPaintDeviceWindow>) -> Ptr<QSurface>
[src]
Calls C++ function: QSurface* static_cast<QSurface*>(QPaintDeviceWindow* ptr)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QPaintDeviceWindow>) -> MutPtr<QSurface>
[src]
Calls C++ function: QSurface* static_cast<QSurface*>(QPaintDeviceWindow* ptr)
.
impl StaticUpcast<QSurface> for QOpenGLWindow
[src]
unsafe fn static_upcast(ptr: Ptr<QOpenGLWindow>) -> Ptr<QSurface>
[src]
Calls C++ function: QSurface* static_cast<QSurface*>(QOpenGLWindow* ptr)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QOpenGLWindow>) -> MutPtr<QSurface>
[src]
Calls C++ function: QSurface* static_cast<QSurface*>(QOpenGLWindow* ptr)
.
impl StaticUpcast<QSurface> for QRasterWindow
[src]
unsafe fn static_upcast(ptr: Ptr<QRasterWindow>) -> Ptr<QSurface>
[src]
Calls C++ function: QSurface* static_cast<QSurface*>(QRasterWindow* ptr)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QRasterWindow>) -> MutPtr<QSurface>
[src]
Calls C++ function: QSurface* static_cast<QSurface*>(QRasterWindow* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QSurface
impl Send for QSurface
impl Sync for QSurface
impl Unpin for QSurface
impl UnwindSafe for QSurface
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,