[][src]Struct qt_3d_extras::QText2DEntity

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

QText2DEntity allows creation of a 2D text in 3D space.

C++ class: Qt3DExtras::QText2DEntity.

C++ documentation:

QText2DEntity allows creation of a 2D text in 3D space.

The QText2DEntity renders text as triangles in the XY plane. The geometry will be fitted in the rectangle of specified width and height. If the resulting geometry is wider than the specified width, the remainder will be rendered on the new line.

The entity can be positionned in the scene by adding a transform component.

QText2DEntity will create geometry based on the shape of the glyphs and a solid material using the specified color.

Methods

impl QText2DEntity[src]

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

Access functions:

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

C++ documentation:

Access functions:

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

Notifier signal:

void fontChanged(const QFont &font)

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

Access functions:

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

C++ documentation:

Access functions:

QColor color() const
void setColor(const QColor &color)

Notifier signal:

void colorChanged(const QColor &color)

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

Access functions:

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

C++ documentation:

Access functions:

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

Notifier signal:

void textChanged(const QString &text)

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

Access functions:

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

C++ documentation:

Access functions:

float width() const
void setWidth(float width)

Notifier signal:

void widthChanged(float width)

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

Access functions:

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

C++ documentation:

Access functions:

float height() const
void setHeight(float height)

Notifier signal:

void heightChanged(float height)

pub unsafe fn color(&self) -> CppBox<QColor>[src]

Access functions:

Calls C++ function: QColor Qt3DExtras::QText2DEntity::color() const.

C++ documentation:

Access functions:

QColor color() const
void setColor(const QColor &color)

Notifier signal:

void colorChanged(const QColor &color)

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

Access functions:

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

C++ documentation:

Access functions:

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

Notifier signal:

void fontChanged(const QFont &font)

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

Access functions:

Calls C++ function: float Qt3DExtras::QText2DEntity::height() const.

C++ documentation:

Access functions:

float height() const
void setHeight(float height)

Notifier signal:

void heightChanged(float height)

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

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

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

Default constructs an instance of QText2DEntity.

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

C++ documentation:

Default constructs an instance of QText2DEntity.

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

QText2DEntity allows creation of a 2D text in 3D space.

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

C++ documentation:

QText2DEntity allows creation of a 2D text in 3D space.

The QText2DEntity renders text as triangles in the XY plane. The geometry will be fitted in the rectangle of specified width and height. If the resulting geometry is wider than the specified width, the remainder will be rendered on the new line.

The entity can be positionned in the scene by adding a transform component.

QText2DEntity will create geometry based on the shape of the glyphs and a solid material using the specified color.

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::QText2DEntity::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::QText2DEntity::qt_metacast(const char* arg1).

pub unsafe fn set_color(&self, color: impl CastInto<Ref<QColor>>)[src]

Access functions:

Calls C++ function: void Qt3DExtras::QText2DEntity::setColor(const QColor& color).

C++ documentation:

Access functions:

QColor color() const
void setColor(const QColor &color)

Notifier signal:

void colorChanged(const QColor &color)

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

Access functions:

Calls C++ function: void Qt3DExtras::QText2DEntity::setFont(const QFont& font).

C++ documentation:

Access functions:

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

Notifier signal:

void fontChanged(const QFont &font)

pub unsafe fn set_height(&self, height: c_float)[src]

Access functions:

Calls C++ function: void Qt3DExtras::QText2DEntity::setHeight(float height).

C++ documentation:

Access functions:

float height() const
void setHeight(float height)

Notifier signal:

void heightChanged(float height)

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

Access functions:

Calls C++ function: void Qt3DExtras::QText2DEntity::setText(const QString& text).

C++ documentation:

Access functions:

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

Notifier signal:

void textChanged(const QString &text)

pub unsafe fn set_width(&self, width: c_float)[src]

Access functions:

Calls C++ function: void Qt3DExtras::QText2DEntity::setWidth(float width).

C++ documentation:

Access functions:

float width() const
void setWidth(float width)

Notifier signal:

void widthChanged(float width)

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

Returns a reference to the staticMetaObject field.

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

Access functions:

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

C++ documentation:

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

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

Access functions:

Calls C++ function: float Qt3DExtras::QText2DEntity::width() const.

C++ documentation:

Access functions:

float width() const
void setWidth(float width)

Notifier signal:

void widthChanged(float width)

Trait Implementations

impl CppDeletable for QText2DEntity[src]

unsafe fn delete(&self)[src]

Destroys the instance of QText2DEntity.

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

C++ documentation:

Destroys the instance of QText2DEntity.

impl Deref for QText2DEntity[src]

type Target = QEntity

The resulting type after dereferencing.

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

Calls C++ function: Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QText2DEntity* ptr).

impl DynamicCast<QText2DEntity> for QEntity[src]

unsafe fn dynamic_cast(ptr: Ptr<QEntity>) -> Ptr<QText2DEntity>[src]

Calls C++ function: Qt3DExtras::QText2DEntity* dynamic_cast<Qt3DExtras::QText2DEntity*>(Qt3DCore::QEntity* ptr).

impl DynamicCast<QText2DEntity> for QNode[src]

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

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

impl DynamicCast<QText2DEntity> for QObject[src]

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

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

impl StaticDowncast<QText2DEntity> for QEntity[src]

unsafe fn static_downcast(ptr: Ptr<QEntity>) -> Ptr<QText2DEntity>[src]

Calls C++ function: Qt3DExtras::QText2DEntity* static_cast<Qt3DExtras::QText2DEntity*>(Qt3DCore::QEntity* ptr).

impl StaticDowncast<QText2DEntity> for QNode[src]

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

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

impl StaticDowncast<QText2DEntity> for QObject[src]

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

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

impl StaticUpcast<QEntity> for QText2DEntity[src]

unsafe fn static_upcast(ptr: Ptr<QText2DEntity>) -> Ptr<QEntity>[src]

Calls C++ function: Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QText2DEntity* ptr).

impl StaticUpcast<QNode> for QText2DEntity[src]

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

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

impl StaticUpcast<QObject> for QText2DEntity[src]

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

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