Struct QGeometryFactory

Source
#[repr(C)]
pub struct QGeometryFactory { /* private fields */ }
Expand description

C++ class: Qt3DRender::QGeometryFactory.

Implementations§

Source§

impl QGeometryFactory

Source

pub unsafe fn call(&self) -> QPtr<QGeometry>

Returns the generated geometry.

Calls C++ function: pure virtual Qt3DRender::QGeometry* Qt3DRender::QGeometryFactory::operator()().

C++ documentation:

Returns the generated geometry.

Methods from Deref<Target = QAbstractFunctor>§

Source

pub unsafe fn id(&self) -> isize

Returns a pointer to the id of the functor.

Calls C++ function: pure virtual qintptr Qt3DRender::QAbstractFunctor::id() const.

C++ documentation:

Returns a pointer to the id of the functor.

Trait Implementations§

Source§

impl CppDeletable for QGeometryFactory

Source§

unsafe fn delete(&self)

Destroys the instance of QGeometryFactory. The destructor is virtual.

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

C++ documentation:

Destroys the instance of QGeometryFactory. The destructor is virtual.

Source§

impl Deref for QGeometryFactory

Source§

fn deref(&self) -> &QAbstractFunctor

Calls C++ function: Qt3DRender::QAbstractFunctor* static_cast<Qt3DRender::QAbstractFunctor*>(Qt3DRender::QGeometryFactory* ptr).

Source§

type Target = QAbstractFunctor

The resulting type after dereferencing.
Source§

impl DynamicCast<QGeometryFactory> for QAbstractFunctor

Source§

unsafe fn dynamic_cast(ptr: Ptr<QAbstractFunctor>) -> Ptr<QGeometryFactory>

Calls C++ function: Qt3DRender::QGeometryFactory* dynamic_cast<Qt3DRender::QGeometryFactory*>(Qt3DRender::QAbstractFunctor* ptr).

Source§

impl PartialEq<Ref<QGeometryFactory>> for QGeometryFactory

Source§

fn eq(&self, other: &Ref<QGeometryFactory>) -> bool

Compares the factory with the factory specified in other. Returns true if they are equal.

Calls C++ function: pure virtual bool Qt3DRender::QGeometryFactory::operator==(const Qt3DRender::QGeometryFactory& other) const.

C++ documentation:

Compares the factory with the factory specified in other. Returns true if they are equal.

1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StaticDowncast<QGeometryFactory> for QAbstractFunctor

Source§

unsafe fn static_downcast(ptr: Ptr<QAbstractFunctor>) -> Ptr<QGeometryFactory>

Calls C++ function: Qt3DRender::QGeometryFactory* static_cast<Qt3DRender::QGeometryFactory*>(Qt3DRender::QAbstractFunctor* ptr).

Source§

impl StaticUpcast<QAbstractFunctor> for QGeometryFactory

Source§

unsafe fn static_upcast(ptr: Ptr<QGeometryFactory>) -> Ptr<QAbstractFunctor>

Calls C++ function: Qt3DRender::QAbstractFunctor* static_cast<Qt3DRender::QAbstractFunctor*>(Qt3DRender::QGeometryFactory* 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.