[][src]Struct qt_3d_render::QEnvironmentLight

#[repr(C)]pub struct QEnvironmentLight { /* fields omitted */ }

Encapsulate an environment light object in a Qt 3D scene.

C++ class: Qt3DRender::QEnvironmentLight.

C++ documentation:

Encapsulate an environment light object in a Qt 3D scene.

Methods

impl QEnvironmentLight[src]

pub fn slot_set_irradiance(&self) -> Receiver<(*mut QAbstractTexture,)>[src]

Holds the current environment irradiance map texture.

Returns a built-in Qt slot Qt3DRender::QEnvironmentLight::setIrradiance that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current environment irradiance map texture.

By default, the environment irradiance texture is null.

Access functions:

Qt3DRender::QAbstractTexture *irradiance() const
void setIrradiance(Qt3DRender::QAbstractTexture *irradiance)

Notifier signal:

void irradianceChanged(Qt3DRender::QAbstractTexture *environmentIrradiance)

pub fn slot_set_specular(&self) -> Receiver<(*mut QAbstractTexture,)>[src]

Holds the current environment specular map texture.

Returns a built-in Qt slot Qt3DRender::QEnvironmentLight::setSpecular that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current environment specular map texture.

By default, the environment specular texture is null.

Access functions:

Qt3DRender::QAbstractTexture *specular() const
void setSpecular(Qt3DRender::QAbstractTexture *specular)

Notifier signal:

void specularChanged(Qt3DRender::QAbstractTexture *environmentSpecular)

pub fn irradiance_changed(&self) -> Signal<(*mut QAbstractTexture,)>[src]

Holds the current environment irradiance map texture.

Returns a built-in Qt signal Qt3DRender::QEnvironmentLight::irradianceChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current environment irradiance map texture.

By default, the environment irradiance texture is null.

Access functions:

Qt3DRender::QAbstractTexture *irradiance() const
void setIrradiance(Qt3DRender::QAbstractTexture *irradiance)

Notifier signal:

void irradianceChanged(Qt3DRender::QAbstractTexture *environmentIrradiance)

pub fn specular_changed(&self) -> Signal<(*mut QAbstractTexture,)>[src]

Holds the current environment specular map texture.

Returns a built-in Qt signal Qt3DRender::QEnvironmentLight::specularChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current environment specular map texture.

By default, the environment specular texture is null.

Access functions:

Qt3DRender::QAbstractTexture *specular() const
void setSpecular(Qt3DRender::QAbstractTexture *specular)

Notifier signal:

void specularChanged(Qt3DRender::QAbstractTexture *environmentSpecular)

pub unsafe fn irradiance(&self) -> QPtr<QAbstractTexture>[src]

Holds the current environment irradiance map texture.

Calls C++ function: Qt3DRender::QAbstractTexture* Qt3DRender::QEnvironmentLight::irradiance() const.

C++ documentation:

Holds the current environment irradiance map texture.

By default, the environment irradiance texture is null.

Access functions:

Qt3DRender::QAbstractTexture *irradiance() const
void setIrradiance(Qt3DRender::QAbstractTexture *irradiance)

Notifier signal:

void irradianceChanged(Qt3DRender::QAbstractTexture *environmentIrradiance)

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DRender::QEnvironmentLight::metaObject() const.

pub unsafe fn new_1a(
    parent: impl CastInto<Ptr<QNode>>
) -> QBox<QEnvironmentLight>
[src]

Default constructs an instance of QEnvironmentLight.

Calls C++ function: [constructor] void Qt3DRender::QEnvironmentLight::QEnvironmentLight(Qt3DCore::QNode* parent = …).

C++ documentation:

Default constructs an instance of QEnvironmentLight.

pub unsafe fn new_0a() -> QBox<QEnvironmentLight>[src]

Encapsulate an environment light object in a Qt 3D scene.

Calls C++ function: [constructor] void Qt3DRender::QEnvironmentLight::QEnvironmentLight().

C++ documentation:

Encapsulate an environment light object in a Qt 3D scene.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int Qt3DRender::QEnvironmentLight::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* Qt3DRender::QEnvironmentLight::qt_metacast(const char* arg1).

pub unsafe fn set_irradiance(
    &self,
    irradiance: impl CastInto<Ptr<QAbstractTexture>>
)
[src]

Holds the current environment irradiance map texture.

Calls C++ function: [slot] void Qt3DRender::QEnvironmentLight::setIrradiance(Qt3DRender::QAbstractTexture* irradiance).

C++ documentation:

Holds the current environment irradiance map texture.

By default, the environment irradiance texture is null.

Access functions:

Qt3DRender::QAbstractTexture *irradiance() const
void setIrradiance(Qt3DRender::QAbstractTexture *irradiance)

Notifier signal:

void irradianceChanged(Qt3DRender::QAbstractTexture *environmentIrradiance)

pub unsafe fn set_specular(
    &self,
    specular: impl CastInto<Ptr<QAbstractTexture>>
)
[src]

Holds the current environment specular map texture.

Calls C++ function: [slot] void Qt3DRender::QEnvironmentLight::setSpecular(Qt3DRender::QAbstractTexture* specular).

C++ documentation:

Holds the current environment specular map texture.

By default, the environment specular texture is null.

Access functions:

Qt3DRender::QAbstractTexture *specular() const
void setSpecular(Qt3DRender::QAbstractTexture *specular)

Notifier signal:

void specularChanged(Qt3DRender::QAbstractTexture *environmentSpecular)

pub unsafe fn specular(&self) -> QPtr<QAbstractTexture>[src]

Holds the current environment specular map texture.

Calls C++ function: Qt3DRender::QAbstractTexture* Qt3DRender::QEnvironmentLight::specular() const.

C++ documentation:

Holds the current environment specular map texture.

By default, the environment specular texture is null.

Access functions:

Qt3DRender::QAbstractTexture *specular() const
void setSpecular(Qt3DRender::QAbstractTexture *specular)

Notifier signal:

void specularChanged(Qt3DRender::QAbstractTexture *environmentSpecular)

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DRender::QEnvironmentLight::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DRender::QEnvironmentLight::trUtf8(const char* s, const char* c, int n).

Trait Implementations

impl CppDeletable for QEnvironmentLight[src]

unsafe fn delete(&self)[src]

Destroys the instance of QEnvironmentLight.

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

C++ documentation:

Destroys the instance of QEnvironmentLight.

impl Deref for QEnvironmentLight[src]

type Target = QComponent

The resulting type after dereferencing.

fn deref(&self) -> &QComponent[src]

Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DRender::QEnvironmentLight* ptr).

impl DynamicCast<QEnvironmentLight> for QComponent[src]

unsafe fn dynamic_cast(ptr: Ptr<QComponent>) -> Ptr<QEnvironmentLight>[src]

Calls C++ function: Qt3DRender::QEnvironmentLight* dynamic_cast<Qt3DRender::QEnvironmentLight*>(Qt3DCore::QComponent* ptr).

impl DynamicCast<QEnvironmentLight> for QNode[src]

unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QEnvironmentLight>[src]

Calls C++ function: Qt3DRender::QEnvironmentLight* dynamic_cast<Qt3DRender::QEnvironmentLight*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QEnvironmentLight> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QEnvironmentLight>[src]

Calls C++ function: Qt3DRender::QEnvironmentLight* dynamic_cast<Qt3DRender::QEnvironmentLight*>(QObject* ptr).

impl StaticDowncast<QEnvironmentLight> for QComponent[src]

unsafe fn static_downcast(ptr: Ptr<QComponent>) -> Ptr<QEnvironmentLight>[src]

Calls C++ function: Qt3DRender::QEnvironmentLight* static_cast<Qt3DRender::QEnvironmentLight*>(Qt3DCore::QComponent* ptr).

impl StaticDowncast<QEnvironmentLight> for QNode[src]

unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QEnvironmentLight>[src]

Calls C++ function: Qt3DRender::QEnvironmentLight* static_cast<Qt3DRender::QEnvironmentLight*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QEnvironmentLight> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QEnvironmentLight>[src]

Calls C++ function: Qt3DRender::QEnvironmentLight* static_cast<Qt3DRender::QEnvironmentLight*>(QObject* ptr).

impl StaticUpcast<QComponent> for QEnvironmentLight[src]

unsafe fn static_upcast(ptr: Ptr<QEnvironmentLight>) -> Ptr<QComponent>[src]

Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DRender::QEnvironmentLight* ptr).

impl StaticUpcast<QNode> for QEnvironmentLight[src]

unsafe fn static_upcast(ptr: Ptr<QEnvironmentLight>) -> Ptr<QNode>[src]

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QEnvironmentLight* ptr).

impl StaticUpcast<QObject> for QEnvironmentLight[src]

unsafe fn static_upcast(ptr: Ptr<QEnvironmentLight>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QEnvironmentLight* ptr).

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.