[][src]Struct qt_3d_render::QAbstractLight

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

Encapsulate a QAbstractLight object in a Qt 3D scene.

C++ class: Qt3DRender::QAbstractLight.

C++ documentation:

Encapsulate a QAbstractLight object in a Qt 3D scene.

Methods

impl QAbstractLight[src]

pub fn slot_set_color(&self) -> Receiver<(*const QColor,)>[src]

Holds the current QAbstractLight color.

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

C++ documentation:

Holds the current QAbstractLight color.

Access functions:

QColor color() const
void setColor(const QColor &color)

Notifier signal:

void colorChanged(const QColor &color)

pub fn slot_set_intensity(&self) -> Receiver<(c_float,)>[src]

Holds the current QAbstractLight intensity.

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

C++ documentation:

Holds the current QAbstractLight intensity.

Access functions:

float intensity() const
void setIntensity(float intensity)

Notifier signal:

void intensityChanged(float intensity)

pub fn color_changed(&self) -> Signal<(*const QColor,)>[src]

Holds the current QAbstractLight color.

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

C++ documentation:

Holds the current QAbstractLight color.

Access functions:

QColor color() const
void setColor(const QColor &color)

Notifier signal:

void colorChanged(const QColor &color)

pub fn intensity_changed(&self) -> Signal<(c_float,)>[src]

Holds the current QAbstractLight intensity.

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

C++ documentation:

Holds the current QAbstractLight intensity.

Access functions:

float intensity() const
void setIntensity(float intensity)

Notifier signal:

void intensityChanged(float intensity)

pub unsafe fn color(&self) -> CppBox<QColor>[src]

Holds the current QAbstractLight color.

Calls C++ function: QColor Qt3DRender::QAbstractLight::color() const.

C++ documentation:

Holds the current QAbstractLight color.

Access functions:

QColor color() const
void setColor(const QColor &color)

Notifier signal:

void colorChanged(const QColor &color)

pub unsafe fn intensity(&self) -> c_float[src]

Holds the current QAbstractLight intensity.

Calls C++ function: float Qt3DRender::QAbstractLight::intensity() const.

C++ documentation:

Holds the current QAbstractLight intensity.

Access functions:

float intensity() const
void setIntensity(float intensity)

Notifier signal:

void intensityChanged(float intensity)

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

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

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::QAbstractLight::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::QAbstractLight::qt_metacast(const char* arg1).

pub unsafe fn set_color(&self, color: impl CastInto<Ref<QColor>>)[src]

Holds the current QAbstractLight color.

Calls C++ function: [slot] void Qt3DRender::QAbstractLight::setColor(const QColor& color).

C++ documentation:

Holds the current QAbstractLight color.

Access functions:

QColor color() const
void setColor(const QColor &color)

Notifier signal:

void colorChanged(const QColor &color)

pub unsafe fn set_intensity(&self, intensity: c_float)[src]

Holds the current QAbstractLight intensity.

Calls C++ function: [slot] void Qt3DRender::QAbstractLight::setIntensity(float intensity).

C++ documentation:

Holds the current QAbstractLight intensity.

Access functions:

float intensity() const
void setIntensity(float intensity)

Notifier signal:

void intensityChanged(float intensity)

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::QAbstractLight::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::QAbstractLight::trUtf8(const char* s, const char* c, int n).

pub unsafe fn type_(&self) -> Type[src]

Contains the type of light.

Calls C++ function: Qt3DRender::QAbstractLight::Type Qt3DRender::QAbstractLight::type() const.

C++ documentation:

Contains the type of light.

Access functions:

Type type() const

Trait Implementations

impl CppDeletable for QAbstractLight[src]

unsafe fn delete(&self)[src]

Destroys the instance of QAbstractLight.

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

C++ documentation:

Destroys the instance of QAbstractLight.

impl Deref for QAbstractLight[src]

type Target = QComponent

The resulting type after dereferencing.

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

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

impl DynamicCast<QAbstractLight> for QComponent[src]

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

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

impl DynamicCast<QAbstractLight> for QNode[src]

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

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

impl DynamicCast<QAbstractLight> for QObject[src]

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

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

impl DynamicCast<QDirectionalLight> for QAbstractLight[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractLight>) -> Ptr<QDirectionalLight>[src]

Calls C++ function: Qt3DRender::QDirectionalLight* dynamic_cast<Qt3DRender::QDirectionalLight*>(Qt3DRender::QAbstractLight* ptr).

impl DynamicCast<QPointLight> for QAbstractLight[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractLight>) -> Ptr<QPointLight>[src]

Calls C++ function: Qt3DRender::QPointLight* dynamic_cast<Qt3DRender::QPointLight*>(Qt3DRender::QAbstractLight* ptr).

impl DynamicCast<QSpotLight> for QAbstractLight[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractLight>) -> Ptr<QSpotLight>[src]

Calls C++ function: Qt3DRender::QSpotLight* dynamic_cast<Qt3DRender::QSpotLight*>(Qt3DRender::QAbstractLight* ptr).

impl StaticDowncast<QAbstractLight> for QComponent[src]

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

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

impl StaticDowncast<QAbstractLight> for QNode[src]

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

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

impl StaticDowncast<QAbstractLight> for QObject[src]

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

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

impl StaticDowncast<QDirectionalLight> for QAbstractLight[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractLight>) -> Ptr<QDirectionalLight>[src]

Calls C++ function: Qt3DRender::QDirectionalLight* static_cast<Qt3DRender::QDirectionalLight*>(Qt3DRender::QAbstractLight* ptr).

impl StaticDowncast<QPointLight> for QAbstractLight[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractLight>) -> Ptr<QPointLight>[src]

Calls C++ function: Qt3DRender::QPointLight* static_cast<Qt3DRender::QPointLight*>(Qt3DRender::QAbstractLight* ptr).

impl StaticDowncast<QSpotLight> for QAbstractLight[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractLight>) -> Ptr<QSpotLight>[src]

Calls C++ function: Qt3DRender::QSpotLight* static_cast<Qt3DRender::QSpotLight*>(Qt3DRender::QAbstractLight* ptr).

impl StaticUpcast<QAbstractLight> for QDirectionalLight[src]

unsafe fn static_upcast(ptr: Ptr<QDirectionalLight>) -> Ptr<QAbstractLight>[src]

Calls C++ function: Qt3DRender::QAbstractLight* static_cast<Qt3DRender::QAbstractLight*>(Qt3DRender::QDirectionalLight* ptr).

impl StaticUpcast<QAbstractLight> for QPointLight[src]

unsafe fn static_upcast(ptr: Ptr<QPointLight>) -> Ptr<QAbstractLight>[src]

Calls C++ function: Qt3DRender::QAbstractLight* static_cast<Qt3DRender::QAbstractLight*>(Qt3DRender::QPointLight* ptr).

impl StaticUpcast<QAbstractLight> for QSpotLight[src]

unsafe fn static_upcast(ptr: Ptr<QSpotLight>) -> Ptr<QAbstractLight>[src]

Calls C++ function: Qt3DRender::QAbstractLight* static_cast<Qt3DRender::QAbstractLight*>(Qt3DRender::QSpotLight* ptr).

impl StaticUpcast<QComponent> for QAbstractLight[src]

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

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

impl StaticUpcast<QNode> for QAbstractLight[src]

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

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

impl StaticUpcast<QObject> for QAbstractLight[src]

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

Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QAbstractLight* 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.