[][src]Struct qt_3d_extras::QExtrudedTextGeometry

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

The QExtrudedTextGeometry class allows creation of a 3D extruded text in 3D space.

C++ class: Qt3DExtras::QExtrudedTextGeometry.

C++ documentation:

The QExtrudedTextGeometry class allows creation of a 3D extruded text in 3D space.

The QExtrudedTextGeometry class is most commonly used internally by the QText3DMesh but can also be used in custom Qt3DRender::QGeometryRenderer subclasses.

Methods

impl QExtrudedTextGeometry[src]

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

Holds the text used for the mesh.

Returns a built-in Qt slot Qt3DExtras::QExtrudedTextGeometry::setText that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the text used for the mesh.

Access functions:

QString text() const
void setText(const QString &text)

Notifier signal:

void textChanged(const QString &text)

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

Holds the font of the text.

Returns a built-in Qt slot Qt3DExtras::QExtrudedTextGeometry::setFont that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the font of the text.

Access functions:

QFont font() const
void setFont(const QFont &font)

Notifier signal:

void fontChanged(const QFont &font)

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

Holds the extrusion length of the text.

Returns a built-in Qt slot Qt3DExtras::QExtrudedTextGeometry::setDepth that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the extrusion length of the text.

Access functions:

float extrusionLength() const
void setDepth(float extrusionLength)

Notifier signal:

void depthChanged(float extrusionLength)

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

Holds the text used for the mesh.

Returns a built-in Qt signal Qt3DExtras::QExtrudedTextGeometry::textChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the text used for the mesh.

Access functions:

QString text() const
void setText(const QString &text)

Notifier signal:

void textChanged(const QString &text)

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

Holds the font of the text.

Returns a built-in Qt signal Qt3DExtras::QExtrudedTextGeometry::fontChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the font of the text.

Access functions:

QFont font() const
void setFont(const QFont &font)

Notifier signal:

void fontChanged(const QFont &font)

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

Holds the extrusion length of the text.

Returns a built-in Qt signal Qt3DExtras::QExtrudedTextGeometry::depthChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the extrusion length of the text.

Access functions:

float extrusionLength() const
void setDepth(float extrusionLength)

Notifier signal:

void depthChanged(float extrusionLength)

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

Holds the extrusion length of the text.

Calls C++ function: float Qt3DExtras::QExtrudedTextGeometry::extrusionLength() const.

C++ documentation:

Holds the extrusion length of the text.

Access functions:

float extrusionLength() const
void setDepth(float extrusionLength)

Notifier signal:

void depthChanged(float extrusionLength)

pub unsafe fn font(&self) -> CppBox<QFont>[src]

Holds the font of the text.

Calls C++ function: QFont Qt3DExtras::QExtrudedTextGeometry::font() const.

C++ documentation:

Holds the font of the text.

Access functions:

QFont font() const
void setFont(const QFont &font)

Notifier signal:

void fontChanged(const QFont &font)

pub unsafe fn index_attribute(&self) -> QPtr<QAttribute>[src]

Holds the geometry index attribute.

Calls C++ function: Qt3DRender::QAttribute* Qt3DExtras::QExtrudedTextGeometry::indexAttribute() const.

C++ documentation:

Holds the geometry index attribute.

Access functions:

Qt3DRender::QAttribute *indexAttribute() const

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

Calls C++ function: virtual const QMetaObject* Qt3DExtras::QExtrudedTextGeometry::metaObject() const.

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

Constructs a new QExtrudedTextGeometry with parent.

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

C++ documentation:

Constructs a new QExtrudedTextGeometry with parent.

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

The QExtrudedTextGeometry class allows creation of a 3D extruded text in 3D space.

Calls C++ function: [constructor] void Qt3DExtras::QExtrudedTextGeometry::QExtrudedTextGeometry().

C++ documentation:

The QExtrudedTextGeometry class allows creation of a 3D extruded text in 3D space.

The QExtrudedTextGeometry class is most commonly used internally by the QText3DMesh but can also be used in custom Qt3DRender::QGeometryRenderer subclasses.

pub unsafe fn normal_attribute(&self) -> QPtr<QAttribute>[src]

Holds the geometry normal attribute.

Calls C++ function: Qt3DRender::QAttribute* Qt3DExtras::QExtrudedTextGeometry::normalAttribute() const.

C++ documentation:

Holds the geometry normal attribute.

Access functions:

Qt3DRender::QAttribute *normalAttribute() const

pub unsafe fn position_attribute(&self) -> QPtr<QAttribute>[src]

Holds the geometry position attribute.

Calls C++ function: Qt3DRender::QAttribute* Qt3DExtras::QExtrudedTextGeometry::positionAttribute() const.

C++ documentation:

Holds the geometry position attribute.

Access functions:

Qt3DRender::QAttribute *positionAttribute() 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 Qt3DExtras::QExtrudedTextGeometry::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* Qt3DExtras::QExtrudedTextGeometry::qt_metacast(const char* arg1).

pub unsafe fn set_depth(&self, extrusion_length: c_float)[src]

Holds the extrusion length of the text.

Calls C++ function: [slot] void Qt3DExtras::QExtrudedTextGeometry::setDepth(float extrusionLength).

C++ documentation:

Holds the extrusion length of the text.

Access functions:

float extrusionLength() const
void setDepth(float extrusionLength)

Notifier signal:

void depthChanged(float extrusionLength)

pub unsafe fn set_font(&self, font: impl CastInto<Ref<QFont>>)[src]

Holds the font of the text.

Calls C++ function: [slot] void Qt3DExtras::QExtrudedTextGeometry::setFont(const QFont& font).

C++ documentation:

Holds the font of the text.

Access functions:

QFont font() const
void setFont(const QFont &font)

Notifier signal:

void fontChanged(const QFont &font)

pub unsafe fn set_text(&self, text: impl CastInto<Ref<QString>>)[src]

Holds the text used for the mesh.

Calls C++ function: [slot] void Qt3DExtras::QExtrudedTextGeometry::setText(const QString& text).

C++ documentation:

Holds the text used for the mesh.

Access functions:

QString text() const
void setText(const QString &text)

Notifier signal:

void textChanged(const QString &text)

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn text(&self) -> CppBox<QString>[src]

Holds the text used for the mesh.

Calls C++ function: QString Qt3DExtras::QExtrudedTextGeometry::text() const.

C++ documentation:

Holds the text used for the mesh.

Access functions:

QString text() const
void setText(const QString &text)

Notifier signal:

void textChanged(const QString &text)

pub unsafe fn tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DExtras::QExtrudedTextGeometry::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 Qt3DExtras::QExtrudedTextGeometry::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QGeometry>

pub fn slot_set_bounding_volume_position_attribute(
    &self
) -> Receiver<(*mut QAttribute,)>
[src]

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

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

C++ documentation:

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

If unspecified, the system will look for the attribute using the name returned by QAttribute::defaultPositionAttributeName.

Access functions:

QAttribute *boundingVolumePositionAttribute() const
void setBoundingVolumePositionAttribute(QAttribute *boundingVolumePositionAttribute)

Notifier signal:

void boundingVolumePositionAttributeChanged(QAttribute *boundingVolumePositionAttribute)

See also Qt3DRender::QAttribute.

pub fn bounding_volume_position_attribute_changed(
    &self
) -> Signal<(*mut QAttribute,)>
[src]

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

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

C++ documentation:

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

If unspecified, the system will look for the attribute using the name returned by QAttribute::defaultPositionAttributeName.

Access functions:

QAttribute *boundingVolumePositionAttribute() const
void setBoundingVolumePositionAttribute(QAttribute *boundingVolumePositionAttribute)

Notifier signal:

void boundingVolumePositionAttributeChanged(QAttribute *boundingVolumePositionAttribute)

See also Qt3DRender::QAttribute.

pub unsafe fn add_attribute(&self, attribute: impl CastInto<Ptr<QAttribute>>)[src]

Adds an attribute to this geometry.

Calls C++ function: void Qt3DRender::QGeometry::addAttribute(Qt3DRender::QAttribute* attribute).

C++ documentation:

Adds an attribute to this geometry.

pub unsafe fn attributes(&self) -> CppBox<QVectorOfQAttribute>[src]

Returns the list of attributes in this geometry.

Calls C++ function: QVector<Qt3DRender::QAttribute*> Qt3DRender::QGeometry::attributes() const.

C++ documentation:

Returns the list of attributes in this geometry.

pub unsafe fn bounding_volume_position_attribute(&self) -> QPtr<QAttribute>[src]

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

Calls C++ function: Qt3DRender::QAttribute* Qt3DRender::QGeometry::boundingVolumePositionAttribute() const.

C++ documentation:

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

If unspecified, the system will look for the attribute using the name returned by QAttribute::defaultPositionAttributeName.

Access functions:

QAttribute *boundingVolumePositionAttribute() const
void setBoundingVolumePositionAttribute(QAttribute *boundingVolumePositionAttribute)

Notifier signal:

void boundingVolumePositionAttributeChanged(QAttribute *boundingVolumePositionAttribute)

See also Qt3DRender::QAttribute.

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

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Holds the vertex with the highest x, y, z position values.

Calls C++ function: QVector3D Qt3DRender::QGeometry::maxExtent() const.

C++ documentation:

Holds the vertex with the highest x, y, z position values.

Access functions:

QVector3D maxExtent() const

Notifier signal:

void maxExtentChanged(const QVector3D &maxExtent)

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

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Holds the vertex with the highest x, y, z position values.

Calls C++ function: void Qt3DRender::QGeometry::maxExtentChanged(const QVector3D& maxExtent).

C++ documentation:

Holds the vertex with the highest x, y, z position values.

Access functions:

QVector3D maxExtent() const

Notifier signal:

void maxExtentChanged(const QVector3D &maxExtent)

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

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

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

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Holds the vertex with the lowest x, y, z position values.

Calls C++ function: QVector3D Qt3DRender::QGeometry::minExtent() const.

C++ documentation:

Holds the vertex with the lowest x, y, z position values.

Access functions:

QVector3D minExtent() const

Notifier signal:

void minExtentChanged(const QVector3D &minExtent)

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

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Holds the vertex with the lowest x, y, z position values.

Calls C++ function: void Qt3DRender::QGeometry::minExtentChanged(const QVector3D& minExtent).

C++ documentation:

Holds the vertex with the lowest x, y, z position values.

Access functions:

QVector3D minExtent() const

Notifier signal:

void minExtentChanged(const QVector3D &minExtent)

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: i32,
    arg3: *mut *mut c_void
) -> i32
[src]

Calls C++ function: virtual int Qt3DRender::QGeometry::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const i8) -> *mut c_void[src]

Calls C++ function: virtual void* Qt3DRender::QGeometry::qt_metacast(const char* arg1).

pub unsafe fn remove_attribute(&self, attribute: impl CastInto<Ptr<QAttribute>>)[src]

Removes the given attribute from this geometry.

Calls C++ function: void Qt3DRender::QGeometry::removeAttribute(Qt3DRender::QAttribute* attribute).

C++ documentation:

Removes the given attribute from this geometry.

pub unsafe fn set_bounding_volume_position_attribute(
    &self,
    bounding_volume_position_attribute: impl CastInto<Ptr<QAttribute>>
)
[src]

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

Calls C++ function: [slot] void Qt3DRender::QGeometry::setBoundingVolumePositionAttribute(Qt3DRender::QAttribute* boundingVolumePositionAttribute).

C++ documentation:

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

If unspecified, the system will look for the attribute using the name returned by QAttribute::defaultPositionAttributeName.

Access functions:

QAttribute *boundingVolumePositionAttribute() const
void setBoundingVolumePositionAttribute(QAttribute *boundingVolumePositionAttribute)

Notifier signal:

void boundingVolumePositionAttributeChanged(QAttribute *boundingVolumePositionAttribute)

See also Qt3DRender::QAttribute.

Trait Implementations

impl CppDeletable for QExtrudedTextGeometry[src]

unsafe fn delete(&self)[src]

Calls C++ function: virtual [destructor] void Qt3DExtras::QExtrudedTextGeometry::~QExtrudedTextGeometry().

impl Deref for QExtrudedTextGeometry[src]

type Target = QGeometry

The resulting type after dereferencing.

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

Calls C++ function: Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QExtrudedTextGeometry* ptr).

impl DynamicCast<QExtrudedTextGeometry> for QGeometry[src]

unsafe fn dynamic_cast(ptr: Ptr<QGeometry>) -> Ptr<QExtrudedTextGeometry>[src]

Calls C++ function: Qt3DExtras::QExtrudedTextGeometry* dynamic_cast<Qt3DExtras::QExtrudedTextGeometry*>(Qt3DRender::QGeometry* ptr).

impl DynamicCast<QExtrudedTextGeometry> for QNode[src]

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

Calls C++ function: Qt3DExtras::QExtrudedTextGeometry* dynamic_cast<Qt3DExtras::QExtrudedTextGeometry*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QExtrudedTextGeometry> for QObject[src]

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

Calls C++ function: Qt3DExtras::QExtrudedTextGeometry* dynamic_cast<Qt3DExtras::QExtrudedTextGeometry*>(QObject* ptr).

impl StaticDowncast<QExtrudedTextGeometry> for QGeometry[src]

unsafe fn static_downcast(ptr: Ptr<QGeometry>) -> Ptr<QExtrudedTextGeometry>[src]

Calls C++ function: Qt3DExtras::QExtrudedTextGeometry* static_cast<Qt3DExtras::QExtrudedTextGeometry*>(Qt3DRender::QGeometry* ptr).

impl StaticDowncast<QExtrudedTextGeometry> for QNode[src]

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

Calls C++ function: Qt3DExtras::QExtrudedTextGeometry* static_cast<Qt3DExtras::QExtrudedTextGeometry*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QExtrudedTextGeometry> for QObject[src]

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

Calls C++ function: Qt3DExtras::QExtrudedTextGeometry* static_cast<Qt3DExtras::QExtrudedTextGeometry*>(QObject* ptr).

impl StaticUpcast<QGeometry> for QExtrudedTextGeometry[src]

unsafe fn static_upcast(ptr: Ptr<QExtrudedTextGeometry>) -> Ptr<QGeometry>[src]

Calls C++ function: Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QExtrudedTextGeometry* ptr).

impl StaticUpcast<QNode> for QExtrudedTextGeometry[src]

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

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QExtrudedTextGeometry* ptr).

impl StaticUpcast<QObject> for QExtrudedTextGeometry[src]

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

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