[][src]Struct qt_3d_render::QDirectionalLight

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

Encapsulate a Directional Light object in a Qt 3D scene.

C++ class: Qt3DRender::QDirectionalLight.

C++ documentation:

Encapsulate a Directional Light object in a Qt 3D scene.

Methods

impl QDirectionalLight[src]

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

Specifies the world direction of the directional light

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

C++ documentation:

Specifies the world direction of the directional light

Access functions:

QVector3D worldDirection() const
void setWorldDirection(const QVector3D &worldDirection)

Notifier signal:

void worldDirectionChanged(const QVector3D &worldDirection)

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

Specifies the world direction of the directional light

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

C++ documentation:

Specifies the world direction of the directional light

Access functions:

QVector3D worldDirection() const
void setWorldDirection(const QVector3D &worldDirection)

Notifier signal:

void worldDirectionChanged(const QVector3D &worldDirection)

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

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

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

Constructs a new QDirectionalLight with the specified parent.

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

C++ documentation:

Constructs a new QDirectionalLight with the specified parent.

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

Encapsulate a Directional Light object in a Qt 3D scene.

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

C++ documentation:

Encapsulate a Directional 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::QDirectionalLight::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::QDirectionalLight::qt_metacast(const char* arg1).

pub unsafe fn set_world_direction(
    &self,
    world_direction: impl CastInto<Ref<QVector3D>>
)
[src]

Specifies the world direction of the directional light

Calls C++ function: [slot] void Qt3DRender::QDirectionalLight::setWorldDirection(const QVector3D& worldDirection).

C++ documentation:

Specifies the world direction of the directional light

Access functions:

QVector3D worldDirection() const
void setWorldDirection(const QVector3D &worldDirection)

Notifier signal:

void worldDirectionChanged(const QVector3D &worldDirection)

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

pub unsafe fn world_direction(&self) -> CppBox<QVector3D>[src]

Specifies the world direction of the directional light

Calls C++ function: QVector3D Qt3DRender::QDirectionalLight::worldDirection() const.

C++ documentation:

Specifies the world direction of the directional light

Access functions:

QVector3D worldDirection() const
void setWorldDirection(const QVector3D &worldDirection)

Notifier signal:

void worldDirectionChanged(const QVector3D &worldDirection)

Methods from Deref<Target = QAbstractLight>

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 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 QDirectionalLight[src]

unsafe fn delete(&self)[src]

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

impl Deref for QDirectionalLight[src]

type Target = QAbstractLight

The resulting type after dereferencing.

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

Calls C++ function: Qt3DRender::QAbstractLight* static_cast<Qt3DRender::QAbstractLight*>(Qt3DRender::QDirectionalLight* 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<QDirectionalLight> for QComponent[src]

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

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

impl DynamicCast<QDirectionalLight> for QNode[src]

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

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

impl DynamicCast<QDirectionalLight> for QObject[src]

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

Calls C++ function: Qt3DRender::QDirectionalLight* dynamic_cast<Qt3DRender::QDirectionalLight*>(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<QDirectionalLight> for QComponent[src]

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

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

impl StaticDowncast<QDirectionalLight> for QNode[src]

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

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

impl StaticDowncast<QDirectionalLight> for QObject[src]

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

Calls C++ function: Qt3DRender::QDirectionalLight* static_cast<Qt3DRender::QDirectionalLight*>(QObject* 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<QComponent> for QDirectionalLight[src]

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

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

impl StaticUpcast<QNode> for QDirectionalLight[src]

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

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

impl StaticUpcast<QObject> for QDirectionalLight[src]

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

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