[−][src]Struct qt_3d_render::QDirectionalLight
Encapsulate a Directional Light object in a Qt 3D scene.
C++ class: Qt3DRender::QDirectionalLight
.
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
.
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
.
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<MutPtr<QNode>>
) -> QBox<QDirectionalLight>
[src]
parent: impl CastInto<MutPtr<QNode>>
) -> QBox<QDirectionalLight>
Constructs a new QDirectionalLight with the specified parent.
Calls C++ function: [constructor] void Qt3DRender::QDirectionalLight::QDirectionalLight(Qt3DCore::QNode* parent = …)
.
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()
.
Encapsulate a Directional Light object in a Qt 3D scene.
pub unsafe fn qt_metacall(
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
Calls C++ function: virtual int Qt3DRender::QDirectionalLight::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
Calls C++ function: virtual void* Qt3DRender::QDirectionalLight::qt_metacast(const char* arg1)
.
pub unsafe fn set_world_direction(
&mut self,
world_direction: impl CastInto<Ref<QVector3D>>
)
[src]
&mut self,
world_direction: impl CastInto<Ref<QVector3D>>
)
Specifies the world direction of the directional light
Calls C++ function: [slot] void Qt3DRender::QDirectionalLight::setWorldDirection(const QVector3D& worldDirection)
.
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: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
[src]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DRender::QDirectionalLight::tr(const char* s, const char* c, int n)
.
pub unsafe fn tr_utf8(
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
[src]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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(
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
Calls C++ function: virtual int Qt3DRender::QAbstractLight::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
Calls C++ function: virtual void* Qt3DRender::QAbstractLight::qt_metacast(const char* arg1)
.
pub unsafe fn set_color(&mut self, color: impl CastInto<Ref<QColor>>)
[src]
Holds the current QAbstractLight color.
Calls C++ function: [slot] void Qt3DRender::QAbstractLight::setColor(const QColor& color)
.
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(&mut self, intensity: c_float)
[src]
Holds the current QAbstractLight intensity.
Calls C++ function: [slot] void Qt3DRender::QAbstractLight::setIntensity(float intensity)
.
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
.
Trait Implementations
impl CppDeletable for QDirectionalLight
[src]
unsafe fn delete(&mut 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 DerefMut for QDirectionalLight
[src]
fn deref_mut(&mut self) -> &mut 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)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QAbstractLight>
) -> MutPtr<QDirectionalLight>
[src]
ptr: MutPtr<QAbstractLight>
) -> MutPtr<QDirectionalLight>
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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QComponent>) -> MutPtr<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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QNode>) -> MutPtr<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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<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)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QAbstractLight>
) -> MutPtr<QDirectionalLight>
[src]
ptr: MutPtr<QAbstractLight>
) -> MutPtr<QDirectionalLight>
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)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QComponent>
) -> MutPtr<QDirectionalLight>
[src]
ptr: MutPtr<QComponent>
) -> MutPtr<QDirectionalLight>
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)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QNode>) -> MutPtr<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)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<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)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QDirectionalLight>
) -> MutPtr<QAbstractLight>
[src]
ptr: MutPtr<QDirectionalLight>
) -> MutPtr<QAbstractLight>
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)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QDirectionalLight>
) -> MutPtr<QComponent>
[src]
ptr: MutPtr<QDirectionalLight>
) -> MutPtr<QComponent>
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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QDirectionalLight>) -> MutPtr<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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QDirectionalLight>) -> MutPtr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QDirectionalLight* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QDirectionalLight
impl Send for QDirectionalLight
impl Sync for QDirectionalLight
impl Unpin for QDirectionalLight
impl UnwindSafe for QDirectionalLight
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,