Skip to main content

QSurface

Struct QSurface 

Source
pub struct QSurface { /* private fields */ }
Expand description

C++ class: QSurface.

Implementations§

Source§

impl QSurface

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QSurface>>, ) -> Ref<QSurface>

Calls C++ function: QSurface& QSurface::operator=(const QSurface& other).

Source

pub unsafe fn format(&self) -> CppBox<QSurfaceFormat>

Calls C++ function: pure virtual QSurfaceFormat QSurface::format() const.

Source

pub unsafe fn size(&self) -> CppBox<QSize>

Calls C++ function: pure virtual QSize QSurface::size() const.

Source

pub unsafe fn static_meta_object() -> Ref<QMetaObject>

Returns a reference to the staticMetaObject field.

Source

pub unsafe fn supports_opengl(&self) -> bool

Calls C++ function: bool QSurface::supportsOpenGL() const.

Source

pub unsafe fn surface_class(&self) -> SurfaceClass

Calls C++ function: QSurface::SurfaceClass QSurface::surfaceClass() const.

Source

pub unsafe fn surface_type(&self) -> SurfaceType

Calls C++ function: pure virtual QSurface::SurfaceType QSurface::surfaceType() const.

Trait Implementations§

Source§

impl CppDeletable for QSurface

Source§

unsafe fn delete(&self)

Calls C++ function: virtual [destructor] void QSurface::~QSurface().

Source§

impl DynamicCast<QOffscreenSurface> for QSurface

Source§

unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QOffscreenSurface>

Calls C++ function: QOffscreenSurface* dynamic_cast<QOffscreenSurface*>(QSurface* ptr).

Source§

impl DynamicCast<QOpenGLWindow> for QSurface

Source§

unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QOpenGLWindow>

Calls C++ function: QOpenGLWindow* dynamic_cast<QOpenGLWindow*>(QSurface* ptr).

Source§

impl DynamicCast<QPaintDeviceWindow> for QSurface

Source§

unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QPaintDeviceWindow>

Calls C++ function: QPaintDeviceWindow* dynamic_cast<QPaintDeviceWindow*>(QSurface* ptr).

Source§

impl DynamicCast<QRasterWindow> for QSurface

Source§

unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QRasterWindow>

Calls C++ function: QRasterWindow* dynamic_cast<QRasterWindow*>(QSurface* ptr).

Source§

impl DynamicCast<QWindow> for QSurface

Source§

unsafe fn dynamic_cast(ptr: Ptr<QSurface>) -> Ptr<QWindow>

Calls C++ function: QWindow* dynamic_cast<QWindow*>(QSurface* ptr).

Source§

impl Size for QSurface

Source§

unsafe fn size(&self) -> usize

Calls C++ function: pure virtual QSize QSurface::size() const.

Source§

impl StaticDowncast<QOffscreenSurface> for QSurface

Source§

unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QOffscreenSurface>

Calls C++ function: QOffscreenSurface* static_cast<QOffscreenSurface*>(QSurface* ptr).

Source§

impl StaticDowncast<QOpenGLWindow> for QSurface

Source§

unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QOpenGLWindow>

Calls C++ function: QOpenGLWindow* static_cast<QOpenGLWindow*>(QSurface* ptr).

Source§

impl StaticDowncast<QPaintDeviceWindow> for QSurface

Source§

unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QPaintDeviceWindow>

Calls C++ function: QPaintDeviceWindow* static_cast<QPaintDeviceWindow*>(QSurface* ptr).

Source§

impl StaticDowncast<QRasterWindow> for QSurface

Source§

unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QRasterWindow>

Calls C++ function: QRasterWindow* static_cast<QRasterWindow*>(QSurface* ptr).

Source§

impl StaticDowncast<QWindow> for QSurface

Source§

unsafe fn static_downcast(ptr: Ptr<QSurface>) -> Ptr<QWindow>

Calls C++ function: QWindow* static_cast<QWindow*>(QSurface* ptr).

Source§

impl StaticUpcast<QSurface> for QOffscreenSurface

Source§

unsafe fn static_upcast(ptr: Ptr<QOffscreenSurface>) -> Ptr<QSurface>

Calls C++ function: QSurface* static_cast<QSurface*>(QOffscreenSurface* ptr).

Source§

impl StaticUpcast<QSurface> for QOpenGLWindow

Source§

unsafe fn static_upcast(ptr: Ptr<QOpenGLWindow>) -> Ptr<QSurface>

Calls C++ function: QSurface* static_cast<QSurface*>(QOpenGLWindow* ptr).

Source§

impl StaticUpcast<QSurface> for QPaintDeviceWindow

Source§

unsafe fn static_upcast(ptr: Ptr<QPaintDeviceWindow>) -> Ptr<QSurface>

Calls C++ function: QSurface* static_cast<QSurface*>(QPaintDeviceWindow* ptr).

Source§

impl StaticUpcast<QSurface> for QRasterWindow

Source§

unsafe fn static_upcast(ptr: Ptr<QRasterWindow>) -> Ptr<QSurface>

Calls C++ function: QSurface* static_cast<QSurface*>(QRasterWindow* ptr).

Source§

impl StaticUpcast<QSurface> for QWindow

Source§

unsafe fn static_upcast(ptr: Ptr<QWindow>) -> Ptr<QSurface>

Calls C++ function: QSurface* static_cast<QSurface*>(QWindow* ptr).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.