[][src]Struct qt_3d_extras::QSpriteSheet

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

C++ class: Qt3DExtras::QSpriteSheet.

Methods

impl QSpriteSheet[src]

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

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

See also sprites().

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

C++ documentation:

See also sprites().

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

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

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

pub unsafe fn add_sprite_4a(
    &self,
    x: c_int,
    y: c_int,
    width: c_int,
    height: c_int
) -> QPtr<QSpriteSheetItem>
[src]

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

Calls C++ function: Qt3DExtras::QSpriteSheetItem* Qt3DExtras::QSpriteSheet::addSprite(int x, int y, int width, int height).

pub unsafe fn add_sprite_1a(&self, sprite: impl CastInto<Ptr<QSpriteSheetItem>>)[src]

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

Calls C++ function: void Qt3DExtras::QSpriteSheet::addSprite(Qt3DExtras::QSpriteSheetItem* sprite).

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

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

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

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

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

Constructs a new QSpriteSheet instance with parent object parent.

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

C++ documentation:

Constructs a new QSpriteSheet instance with parent object parent.

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

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

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

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

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

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

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

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

Calls C++ function: virtual void* Qt3DExtras::QSpriteSheet::qt_metacast(const char* arg1).

pub unsafe fn remove_sprite(&self, sprite: impl CastInto<Ptr<QSpriteSheetItem>>)[src]

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

Calls C++ function: void Qt3DExtras::QSpriteSheet::removeSprite(Qt3DExtras::QSpriteSheetItem* sprite).

pub unsafe fn set_sprites(
    &self,
    sprites: impl CastInto<Ref<QVectorOfQSpriteSheetItem>>
)
[src]

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

See also sprites().

Calls C++ function: [slot] void Qt3DExtras::QSpriteSheet::setSprites(QVector<Qt3DExtras::QSpriteSheetItem*> sprites).

C++ documentation:

See also sprites().

pub unsafe fn sprites(&self) -> CppBox<QVectorOfQSpriteSheetItem>[src]

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

See also setSprites().

Calls C++ function: QVector<Qt3DExtras::QSpriteSheetItem*> Qt3DExtras::QSpriteSheet::sprites() const.

C++ documentation:

See also setSprites().

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

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

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]

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

Calls C++ function: static QString Qt3DExtras::QSpriteSheet::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]

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

Calls C++ function: static QString Qt3DExtras::QSpriteSheet::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QAbstractSpriteSheet>

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

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

Holds the current texture used by the material.

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

C++ documentation:

Holds the current texture used by the material.

Access functions:

Qt3DRender::QAbstractTexture *texture() const
void setTexture(Qt3DRender::QAbstractTexture *texture)

Notifier signal:

void textureChanged(Qt3DRender::QAbstractTexture *texture)

pub fn slot_set_current_index(&self) -> Receiver<(c_int,)>[src]

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

Access functions:

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

C++ documentation:

Access functions:

int currentIndex() const
void setCurrentIndex(int currentIndex)

Notifier signal:

void currentIndexChanged(int currentIndex)

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

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

Holds the current texture used by the material.

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

C++ documentation:

Holds the current texture used by the material.

Access functions:

Qt3DRender::QAbstractTexture *texture() const
void setTexture(Qt3DRender::QAbstractTexture *texture)

Notifier signal:

void textureChanged(Qt3DRender::QAbstractTexture *texture)

pub fn current_index_changed(&self) -> Signal<(c_int,)>[src]

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

Access functions:

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

C++ documentation:

Access functions:

int currentIndex() const
void setCurrentIndex(int currentIndex)

Notifier signal:

void currentIndexChanged(int currentIndex)

pub unsafe fn current_index(&self) -> c_int[src]

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

Access functions:

Calls C++ function: int Qt3DExtras::QAbstractSpriteSheet::currentIndex() const.

C++ documentation:

Access functions:

int currentIndex() const
void setCurrentIndex(int currentIndex)

Notifier signal:

void currentIndexChanged(int currentIndex)

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

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

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

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

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

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

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

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

Calls C++ function: virtual void* Qt3DExtras::QAbstractSpriteSheet::qt_metacast(const char* arg1).

pub unsafe fn set_current_index(&self, current_index: c_int)[src]

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

Access functions:

Calls C++ function: [slot] void Qt3DExtras::QAbstractSpriteSheet::setCurrentIndex(int currentIndex).

C++ documentation:

Access functions:

int currentIndex() const
void setCurrentIndex(int currentIndex)

Notifier signal:

void currentIndexChanged(int currentIndex)

pub unsafe fn set_texture(&self, texture: impl CastInto<Ptr<QAbstractTexture>>)[src]

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

Holds the current texture used by the material.

Calls C++ function: [slot] void Qt3DExtras::QAbstractSpriteSheet::setTexture(Qt3DRender::QAbstractTexture* texture).

C++ documentation:

Holds the current texture used by the material.

Access functions:

Qt3DRender::QAbstractTexture *texture() const
void setTexture(Qt3DRender::QAbstractTexture *texture)

Notifier signal:

void textureChanged(Qt3DRender::QAbstractTexture *texture)

pub unsafe fn texture(&self) -> QPtr<QAbstractTexture>[src]

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

Holds the current texture used by the material.

Calls C++ function: Qt3DRender::QAbstractTexture* Qt3DExtras::QAbstractSpriteSheet::texture() const.

C++ documentation:

Holds the current texture used by the material.

Access functions:

Qt3DRender::QAbstractTexture *texture() const
void setTexture(Qt3DRender::QAbstractTexture *texture)

Notifier signal:

void textureChanged(Qt3DRender::QAbstractTexture *texture)

Trait Implementations

impl CppDeletable for QSpriteSheet[src]

unsafe fn delete(&self)[src]

Destroys the instance of QSpriteSheet. The destructor is virtual.

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

C++ documentation:

Destroys the instance of QSpriteSheet. The destructor is virtual.

impl Deref for QSpriteSheet[src]

type Target = QAbstractSpriteSheet

The resulting type after dereferencing.

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

Calls C++ function: Qt3DExtras::QAbstractSpriteSheet* static_cast<Qt3DExtras::QAbstractSpriteSheet*>(Qt3DExtras::QSpriteSheet* ptr).

impl DynamicCast<QSpriteSheet> for QAbstractSpriteSheet[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractSpriteSheet>) -> Ptr<QSpriteSheet>[src]

Calls C++ function: Qt3DExtras::QSpriteSheet* dynamic_cast<Qt3DExtras::QSpriteSheet*>(Qt3DExtras::QAbstractSpriteSheet* ptr).

impl DynamicCast<QSpriteSheet> for QNode[src]

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

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

impl DynamicCast<QSpriteSheet> for QObject[src]

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

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

impl StaticDowncast<QSpriteSheet> for QAbstractSpriteSheet[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractSpriteSheet>) -> Ptr<QSpriteSheet>[src]

Calls C++ function: Qt3DExtras::QSpriteSheet* static_cast<Qt3DExtras::QSpriteSheet*>(Qt3DExtras::QAbstractSpriteSheet* ptr).

impl StaticDowncast<QSpriteSheet> for QNode[src]

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

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

impl StaticDowncast<QSpriteSheet> for QObject[src]

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

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

impl StaticUpcast<QAbstractSpriteSheet> for QSpriteSheet[src]

unsafe fn static_upcast(ptr: Ptr<QSpriteSheet>) -> Ptr<QAbstractSpriteSheet>[src]

Calls C++ function: Qt3DExtras::QAbstractSpriteSheet* static_cast<Qt3DExtras::QAbstractSpriteSheet*>(Qt3DExtras::QSpriteSheet* ptr).

impl StaticUpcast<QNode> for QSpriteSheet[src]

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

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

impl StaticUpcast<QObject> for QSpriteSheet[src]

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

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