[−][src]Struct qt_3d_render::QPointSize
Specifies the size of rasterized points. May either be set statically or by shader programs.
C++ class: Qt3DRender::QPointSize
.
Specifies the size of rasterized points. May either be set statically or by shader programs.
When the sizeMode property is set to SizeMode::Fixed, the value is set using glPointSize(), if available. When using SizeMode::Programmable, gl_PointSize must be set within shader programs, the value provided to this RenderState is ignored in that case.
Methods
impl QPointSize
[src]
pub fn slot_set_size_mode(&self) -> Receiver<(SizeMode,)>
[src]
Specifies the sizeMode to be used.
Returns a built-in Qt slot Qt3DRender::QPointSize::setSizeMode
that can be passed to qt_core::Signal::connect
.
Specifies the sizeMode to be used.
Access functions:
SizeMode | sizeMode() const |
void | setSizeMode(SizeMode sizeMode) |
Notifier signal:
void | sizeModeChanged(SizeMode sizeMode) |
pub fn slot_set_value(&self) -> Receiver<(c_float,)>
[src]
Specifies the point size value to be used.
Returns a built-in Qt slot Qt3DRender::QPointSize::setValue
that can be passed to qt_core::Signal::connect
.
Specifies the point size value to be used.
Access functions:
float | value() const |
void | setValue(float value) |
Notifier signal:
void | valueChanged(float value) |
pub fn size_mode_changed(&self) -> Signal<(SizeMode,)>
[src]
Specifies the sizeMode to be used.
Returns a built-in Qt signal Qt3DRender::QPointSize::sizeModeChanged
that can be passed to qt_core::Signal::connect
.
Specifies the sizeMode to be used.
Access functions:
SizeMode | sizeMode() const |
void | setSizeMode(SizeMode sizeMode) |
Notifier signal:
void | sizeModeChanged(SizeMode sizeMode) |
pub fn value_changed(&self) -> Signal<(c_float,)>
[src]
Specifies the point size value to be used.
Returns a built-in Qt signal Qt3DRender::QPointSize::valueChanged
that can be passed to qt_core::Signal::connect
.
Specifies the point size value to be used.
Access functions:
float | value() const |
void | setValue(float value) |
Notifier signal:
void | valueChanged(float value) |
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DRender::QPointSize::metaObject() const
.
pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QPointSize>
[src]
Default constructs an instance of QPointSize.
Calls C++ function: [constructor] void Qt3DRender::QPointSize::QPointSize(Qt3DCore::QNode* parent = …)
.
Default constructs an instance of QPointSize.
pub unsafe fn new_0a() -> QBox<QPointSize>
[src]
Specifies the size of rasterized points. May either be set statically or by shader programs.
Calls C++ function: [constructor] void Qt3DRender::QPointSize::QPointSize()
.
Specifies the size of rasterized points. May either be set statically or by shader programs.
When the sizeMode property is set to SizeMode::Fixed, the value is set using glPointSize(), if available. When using SizeMode::Programmable, gl_PointSize must be set within shader programs, the value provided to this RenderState is ignored in that case.
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::QPointSize::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::QPointSize::qt_metacast(const char* arg1)
.
pub unsafe fn set_size_mode(&self, size_mode: SizeMode)
[src]
Specifies the sizeMode to be used.
Calls C++ function: [slot] void Qt3DRender::QPointSize::setSizeMode(Qt3DRender::QPointSize::SizeMode sizeMode)
.
Specifies the sizeMode to be used.
Access functions:
SizeMode | sizeMode() const |
void | setSizeMode(SizeMode sizeMode) |
Notifier signal:
void | sizeModeChanged(SizeMode sizeMode) |
pub unsafe fn set_value(&self, value: c_float)
[src]
Specifies the point size value to be used.
Calls C++ function: [slot] void Qt3DRender::QPointSize::setValue(float value)
.
Specifies the point size value to be used.
Access functions:
float | value() const |
void | setValue(float value) |
Notifier signal:
void | valueChanged(float value) |
pub unsafe fn size_mode(&self) -> SizeMode
[src]
Specifies the sizeMode to be used.
Calls C++ function: Qt3DRender::QPointSize::SizeMode Qt3DRender::QPointSize::sizeMode() const
.
Specifies the sizeMode to be used.
Access functions:
SizeMode | sizeMode() const |
void | setSizeMode(SizeMode sizeMode) |
Notifier signal:
void | sizeModeChanged(SizeMode sizeMode) |
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::QPointSize::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::QPointSize::trUtf8(const char* s, const char* c, int n)
.
pub unsafe fn value(&self) -> c_float
[src]
Specifies the point size value to be used.
Calls C++ function: float Qt3DRender::QPointSize::value() const
.
Specifies the point size value to be used.
Access functions:
float | value() const |
void | setValue(float value) |
Notifier signal:
void | valueChanged(float value) |
Methods from Deref<Target = QRenderState>
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DRender::QRenderState::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::QRenderState::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::QRenderState::qt_metacast(const char* arg1)
.
Trait Implementations
impl CppDeletable for QPointSize
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void Qt3DRender::QPointSize::~QPointSize()
.
impl Deref for QPointSize
[src]
type Target = QRenderState
The resulting type after dereferencing.
fn deref(&self) -> &QRenderState
[src]
Calls C++ function: Qt3DRender::QRenderState* static_cast<Qt3DRender::QRenderState*>(Qt3DRender::QPointSize* ptr)
.
impl DynamicCast<QPointSize> for QRenderState
[src]
unsafe fn dynamic_cast(ptr: Ptr<QRenderState>) -> Ptr<QPointSize>
[src]
Calls C++ function: Qt3DRender::QPointSize* dynamic_cast<Qt3DRender::QPointSize*>(Qt3DRender::QRenderState* ptr)
.
impl DynamicCast<QPointSize> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QPointSize>
[src]
Calls C++ function: Qt3DRender::QPointSize* dynamic_cast<Qt3DRender::QPointSize*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QPointSize> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QPointSize>
[src]
Calls C++ function: Qt3DRender::QPointSize* dynamic_cast<Qt3DRender::QPointSize*>(QObject* ptr)
.
impl StaticDowncast<QPointSize> for QRenderState
[src]
unsafe fn static_downcast(ptr: Ptr<QRenderState>) -> Ptr<QPointSize>
[src]
Calls C++ function: Qt3DRender::QPointSize* static_cast<Qt3DRender::QPointSize*>(Qt3DRender::QRenderState* ptr)
.
impl StaticDowncast<QPointSize> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QPointSize>
[src]
Calls C++ function: Qt3DRender::QPointSize* static_cast<Qt3DRender::QPointSize*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QPointSize> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QPointSize>
[src]
Calls C++ function: Qt3DRender::QPointSize* static_cast<Qt3DRender::QPointSize*>(QObject* ptr)
.
impl StaticUpcast<QNode> for QPointSize
[src]
unsafe fn static_upcast(ptr: Ptr<QPointSize>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QPointSize* ptr)
.
impl StaticUpcast<QObject> for QPointSize
[src]
unsafe fn static_upcast(ptr: Ptr<QPointSize>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QPointSize* ptr)
.
impl StaticUpcast<QRenderState> for QPointSize
[src]
unsafe fn static_upcast(ptr: Ptr<QPointSize>) -> Ptr<QRenderState>
[src]
Calls C++ function: Qt3DRender::QRenderState* static_cast<Qt3DRender::QRenderState*>(Qt3DRender::QPointSize* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QPointSize
impl Send for QPointSize
impl Sync for QPointSize
impl Unpin for QPointSize
impl UnwindSafe for QPointSize
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>,