[−][src]Struct qt_3d_render::QPointLight
Encapsulate a Point Light object in a Qt 3D scene.
C++ class: Qt3DRender::QPointLight
.
Encapsulate a Point Light object in a Qt 3D scene.
Methods
impl QPointLight
[src]
pub fn slot_set_constant_attenuation(&self) -> Receiver<(c_float,)>
[src]
Specifies the constant attenuation of the point light
Returns a built-in Qt slot Qt3DRender::QPointLight::setConstantAttenuation
that can be passed to qt_core::Signal::connect
.
Specifies the constant attenuation of the point light
Access functions:
float | constantAttenuation() const |
void | setConstantAttenuation(float value) |
Notifier signal:
void | constantAttenuationChanged(float constantAttenuation) |
pub fn slot_set_linear_attenuation(&self) -> Receiver<(c_float,)>
[src]
Specifies the linear attenuation of the point light
Returns a built-in Qt slot Qt3DRender::QPointLight::setLinearAttenuation
that can be passed to qt_core::Signal::connect
.
Specifies the linear attenuation of the point light
Access functions:
float | linearAttenuation() const |
void | setLinearAttenuation(float value) |
Notifier signal:
void | linearAttenuationChanged(float linearAttenuation) |
pub fn slot_set_quadratic_attenuation(&self) -> Receiver<(c_float,)>
[src]
Specifies the quadratic attenuation of the point light
Returns a built-in Qt slot Qt3DRender::QPointLight::setQuadraticAttenuation
that can be passed to qt_core::Signal::connect
.
Specifies the quadratic attenuation of the point light
Access functions:
float | quadraticAttenuation() const |
void | setQuadraticAttenuation(float value) |
Notifier signal:
void | quadraticAttenuationChanged(float quadraticAttenuation) |
pub fn constant_attenuation_changed(&self) -> Signal<(c_float,)>
[src]
Specifies the constant attenuation of the point light
Returns a built-in Qt signal Qt3DRender::QPointLight::constantAttenuationChanged
that can be passed to qt_core::Signal::connect
.
Specifies the constant attenuation of the point light
Access functions:
float | constantAttenuation() const |
void | setConstantAttenuation(float value) |
Notifier signal:
void | constantAttenuationChanged(float constantAttenuation) |
pub fn linear_attenuation_changed(&self) -> Signal<(c_float,)>
[src]
Specifies the linear attenuation of the point light
Returns a built-in Qt signal Qt3DRender::QPointLight::linearAttenuationChanged
that can be passed to qt_core::Signal::connect
.
Specifies the linear attenuation of the point light
Access functions:
float | linearAttenuation() const |
void | setLinearAttenuation(float value) |
Notifier signal:
void | linearAttenuationChanged(float linearAttenuation) |
pub fn quadratic_attenuation_changed(&self) -> Signal<(c_float,)>
[src]
Specifies the quadratic attenuation of the point light
Returns a built-in Qt signal Qt3DRender::QPointLight::quadraticAttenuationChanged
that can be passed to qt_core::Signal::connect
.
Specifies the quadratic attenuation of the point light
Access functions:
float | quadraticAttenuation() const |
void | setQuadraticAttenuation(float value) |
Notifier signal:
void | quadraticAttenuationChanged(float quadraticAttenuation) |
pub unsafe fn constant_attenuation(&self) -> c_float
[src]
Specifies the constant attenuation of the point light
Calls C++ function: float Qt3DRender::QPointLight::constantAttenuation() const
.
Specifies the constant attenuation of the point light
Access functions:
float | constantAttenuation() const |
void | setConstantAttenuation(float value) |
Notifier signal:
void | constantAttenuationChanged(float constantAttenuation) |
pub unsafe fn linear_attenuation(&self) -> c_float
[src]
Specifies the linear attenuation of the point light
Calls C++ function: float Qt3DRender::QPointLight::linearAttenuation() const
.
Specifies the linear attenuation of the point light
Access functions:
float | linearAttenuation() const |
void | setLinearAttenuation(float value) |
Notifier signal:
void | linearAttenuationChanged(float linearAttenuation) |
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DRender::QPointLight::metaObject() const
.
pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QPointLight>
[src]
Constructs a new QPointLight with the specified parent.
Calls C++ function: [constructor] void Qt3DRender::QPointLight::QPointLight(Qt3DCore::QNode* parent = …)
.
Constructs a new QPointLight with the specified parent.
pub unsafe fn new_0a() -> QBox<QPointLight>
[src]
Encapsulate a Point Light object in a Qt 3D scene.
Calls C++ function: [constructor] void Qt3DRender::QPointLight::QPointLight()
.
Encapsulate a Point 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]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int Qt3DRender::QPointLight::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::QPointLight::qt_metacast(const char* arg1)
.
pub unsafe fn quadratic_attenuation(&self) -> c_float
[src]
Specifies the quadratic attenuation of the point light
Calls C++ function: float Qt3DRender::QPointLight::quadraticAttenuation() const
.
Specifies the quadratic attenuation of the point light
Access functions:
float | quadraticAttenuation() const |
void | setQuadraticAttenuation(float value) |
Notifier signal:
void | quadraticAttenuationChanged(float quadraticAttenuation) |
pub unsafe fn set_constant_attenuation(&self, value: c_float)
[src]
Specifies the constant attenuation of the point light
Calls C++ function: [slot] void Qt3DRender::QPointLight::setConstantAttenuation(float value)
.
Specifies the constant attenuation of the point light
Access functions:
float | constantAttenuation() const |
void | setConstantAttenuation(float value) |
Notifier signal:
void | constantAttenuationChanged(float constantAttenuation) |
pub unsafe fn set_linear_attenuation(&self, value: c_float)
[src]
Specifies the linear attenuation of the point light
Calls C++ function: [slot] void Qt3DRender::QPointLight::setLinearAttenuation(float value)
.
Specifies the linear attenuation of the point light
Access functions:
float | linearAttenuation() const |
void | setLinearAttenuation(float value) |
Notifier signal:
void | linearAttenuationChanged(float linearAttenuation) |
pub unsafe fn set_quadratic_attenuation(&self, value: c_float)
[src]
Specifies the quadratic attenuation of the point light
Calls C++ function: [slot] void Qt3DRender::QPointLight::setQuadraticAttenuation(float value)
.
Specifies the quadratic attenuation of the point light
Access functions:
float | quadraticAttenuation() const |
void | setQuadraticAttenuation(float value) |
Notifier signal:
void | quadraticAttenuationChanged(float quadraticAttenuation) |
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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DRender::QPointLight::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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DRender::QPointLight::trUtf8(const char* s, const char* c, int n)
.
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(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *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(&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)
.
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)
.
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 QPointLight
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void Qt3DRender::QPointLight::~QPointLight()
.
impl Deref for QPointLight
[src]
type Target = QAbstractLight
The resulting type after dereferencing.
fn deref(&self) -> &QAbstractLight
[src]
Calls C++ function: Qt3DRender::QAbstractLight* static_cast<Qt3DRender::QAbstractLight*>(Qt3DRender::QPointLight* 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<QPointLight> for QComponent
[src]
unsafe fn dynamic_cast(ptr: Ptr<QComponent>) -> Ptr<QPointLight>
[src]
Calls C++ function: Qt3DRender::QPointLight* dynamic_cast<Qt3DRender::QPointLight*>(Qt3DCore::QComponent* ptr)
.
impl DynamicCast<QPointLight> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QPointLight>
[src]
Calls C++ function: Qt3DRender::QPointLight* dynamic_cast<Qt3DRender::QPointLight*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QPointLight> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QPointLight>
[src]
Calls C++ function: Qt3DRender::QPointLight* dynamic_cast<Qt3DRender::QPointLight*>(QObject* 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<QPointLight> for QComponent
[src]
unsafe fn static_downcast(ptr: Ptr<QComponent>) -> Ptr<QPointLight>
[src]
Calls C++ function: Qt3DRender::QPointLight* static_cast<Qt3DRender::QPointLight*>(Qt3DCore::QComponent* ptr)
.
impl StaticDowncast<QPointLight> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QPointLight>
[src]
Calls C++ function: Qt3DRender::QPointLight* static_cast<Qt3DRender::QPointLight*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QPointLight> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QPointLight>
[src]
Calls C++ function: Qt3DRender::QPointLight* static_cast<Qt3DRender::QPointLight*>(QObject* 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<QComponent> for QPointLight
[src]
unsafe fn static_upcast(ptr: Ptr<QPointLight>) -> Ptr<QComponent>
[src]
Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DRender::QPointLight* ptr)
.
impl StaticUpcast<QNode> for QPointLight
[src]
unsafe fn static_upcast(ptr: Ptr<QPointLight>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QPointLight* ptr)
.
impl StaticUpcast<QObject> for QPointLight
[src]
unsafe fn static_upcast(ptr: Ptr<QPointLight>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QPointLight* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QPointLight
impl Send for QPointLight
impl Sync for QPointLight
impl Unpin for QPointLight
impl UnwindSafe for QPointLight
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]
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>,