[][src]Struct qt_3d_render::QAttribute

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

Defines an attribute and how data should be read from a QBuffer.

C++ class: Qt3DRender::QAttribute.

C++ documentation:

Defines an attribute and how data should be read from a QBuffer.

There are 3 types of attributes.

  • VertexAttribute: used to define data to be read on a per vertex basis
  • IndexAttribute: used to define vertex indices when indexed draw calls are to be used
  • DrawIndirectAttribute: used to specify the DrawIndirect buffer to be used when indirect draw calls are to be used

Note: when an attribute is of type DrawIndirectAttribute, only count, stride and offset are relevant.

When providing your own attributes, it may make sense to name your attribute using helpers such as QAttribute::defaultPositionAttributeName() as that will ensure your geometry will be compatible with picking and the various materials provided in the Qt3DExtras module.

Methods

impl QAttribute[src]

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

Holds the buffer.

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

C++ documentation:

Holds the buffer.

Access functions:

QBuffer *buffer() const
void setBuffer(QBuffer *buffer)

Notifier signal:

void bufferChanged(QBuffer *buffer)

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

Holds the name.

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

C++ documentation:

Holds the name.

Access functions:

QString name() const
void setName(const QString &name)

Notifier signal:

void nameChanged(const QString &name)

pub fn slot_set_vertex_base_type(&self) -> Receiver<(VertexBaseType,)>[src]

Holds the data type.

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

C++ documentation:

Holds the data type.

Access functions:

VertexBaseType vertexBaseType() const
void setVertexBaseType(VertexBaseType type)

Notifier signal:

void vertexBaseTypeChanged(VertexBaseType vertexBaseType)

pub fn slot_set_vertex_size(&self) -> Receiver<(c_uint,)>[src]

Holds the data size, it can only be 1 to 4 units (scalars and vectors), 9 units (3x3 matrices) or 16 units (4x4 matrices).

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

C++ documentation:

Holds the data size, it can only be 1 to 4 units (scalars and vectors), 9 units (3x3 matrices) or 16 units (4x4 matrices).

Access functions:

uint vertexSize() const
void setVertexSize(uint size)

Notifier signal:

void vertexSizeChanged(uint vertexSize)

pub fn slot_set_data_type(&self) -> Receiver<(VertexBaseType,)>[src]

This function is deprecated.

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

C++ documentation:

This function is deprecated.

pub fn slot_set_data_size(&self) -> Receiver<(c_uint,)>[src]

This function is deprecated.

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

C++ documentation:

This function is deprecated.

pub fn slot_set_count(&self) -> Receiver<(c_uint,)>[src]

Holds the count.

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

C++ documentation:

Holds the count.

Access functions:

uint count() const
void setCount(uint count)

Notifier signal:

void countChanged(uint count)

pub fn slot_set_byte_stride(&self) -> Receiver<(c_uint,)>[src]

Holds the byte stride.

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

C++ documentation:

Holds the byte stride.

Access functions:

uint byteStride() const
void setByteStride(uint byteStride)

Notifier signal:

void byteStrideChanged(uint byteStride)

pub fn slot_set_byte_offset(&self) -> Receiver<(c_uint,)>[src]

Holds the byte offset.

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

C++ documentation:

Holds the byte offset.

Access functions:

uint byteOffset() const
void setByteOffset(uint byteOffset)

Notifier signal:

void byteOffsetChanged(uint byteOffset)

pub fn slot_set_divisor(&self) -> Receiver<(c_uint,)>[src]

Holds the divisor.

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

C++ documentation:

Holds the divisor.

Access functions:

uint divisor() const
void setDivisor(uint divisor)

Notifier signal:

void divisorChanged(uint divisor)

pub fn slot_set_attribute_type(&self) -> Receiver<(AttributeType,)>[src]

Holds the attribute type.

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

C++ documentation:

Holds the attribute type.

Access functions:

AttributeType attributeType() const
void setAttributeType(AttributeType attributeType)

Notifier signal:

void attributeTypeChanged(AttributeType attributeType)

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

Holds the buffer.

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

C++ documentation:

Holds the buffer.

Access functions:

QBuffer *buffer() const
void setBuffer(QBuffer *buffer)

Notifier signal:

void bufferChanged(QBuffer *buffer)

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

Holds the name.

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

C++ documentation:

Holds the name.

Access functions:

QString name() const
void setName(const QString &name)

Notifier signal:

void nameChanged(const QString &name)

pub fn vertex_base_type_changed(&self) -> Signal<(VertexBaseType,)>[src]

Holds the data type.

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

C++ documentation:

Holds the data type.

Access functions:

VertexBaseType vertexBaseType() const
void setVertexBaseType(VertexBaseType type)

Notifier signal:

void vertexBaseTypeChanged(VertexBaseType vertexBaseType)

pub fn vertex_size_changed(&self) -> Signal<(c_uint,)>[src]

Holds the data size, it can only be 1 to 4 units (scalars and vectors), 9 units (3x3 matrices) or 16 units (4x4 matrices).

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

C++ documentation:

Holds the data size, it can only be 1 to 4 units (scalars and vectors), 9 units (3x3 matrices) or 16 units (4x4 matrices).

Access functions:

uint vertexSize() const
void setVertexSize(uint size)

Notifier signal:

void vertexSizeChanged(uint vertexSize)

pub fn data_type_changed(&self) -> Signal<(VertexBaseType,)>[src]

The signal is emitted with vertexBaseType when the dataType changed.

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

C++ documentation:

The signal is emitted with vertexBaseType when the dataType changed.

pub fn data_size_changed(&self) -> Signal<(c_uint,)>[src]

The signal is emitted with vertexSize when the dataSize changes.

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

C++ documentation:

The signal is emitted with vertexSize when the dataSize changes.

pub fn count_changed(&self) -> Signal<(c_uint,)>[src]

Holds the count.

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

C++ documentation:

Holds the count.

Access functions:

uint count() const
void setCount(uint count)

Notifier signal:

void countChanged(uint count)

pub fn byte_stride_changed(&self) -> Signal<(c_uint,)>[src]

Holds the byte stride.

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

C++ documentation:

Holds the byte stride.

Access functions:

uint byteStride() const
void setByteStride(uint byteStride)

Notifier signal:

void byteStrideChanged(uint byteStride)

pub fn byte_offset_changed(&self) -> Signal<(c_uint,)>[src]

Holds the byte offset.

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

C++ documentation:

Holds the byte offset.

Access functions:

uint byteOffset() const
void setByteOffset(uint byteOffset)

Notifier signal:

void byteOffsetChanged(uint byteOffset)

pub fn divisor_changed(&self) -> Signal<(c_uint,)>[src]

Holds the divisor.

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

C++ documentation:

Holds the divisor.

Access functions:

uint divisor() const
void setDivisor(uint divisor)

Notifier signal:

void divisorChanged(uint divisor)

pub fn attribute_type_changed(&self) -> Signal<(AttributeType,)>[src]

Holds the attribute type.

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

C++ documentation:

Holds the attribute type.

Access functions:

AttributeType attributeType() const
void setAttributeType(AttributeType attributeType)

Notifier signal:

void attributeTypeChanged(AttributeType attributeType)

pub unsafe fn attribute_type(&self) -> AttributeType[src]

Holds the attribute type.

Calls C++ function: Qt3DRender::QAttribute::AttributeType Qt3DRender::QAttribute::attributeType() const.

C++ documentation:

Holds the attribute type.

Access functions:

AttributeType attributeType() const
void setAttributeType(AttributeType attributeType)

Notifier signal:

void attributeTypeChanged(AttributeType attributeType)

pub unsafe fn buffer(&self) -> QPtr<QBuffer>[src]

Holds the buffer.

Calls C++ function: Qt3DRender::QBuffer* Qt3DRender::QAttribute::buffer() const.

C++ documentation:

Holds the buffer.

Access functions:

QBuffer *buffer() const
void setBuffer(QBuffer *buffer)

Notifier signal:

void bufferChanged(QBuffer *buffer)

pub unsafe fn byte_offset(&self) -> c_uint[src]

Holds the byte offset.

Calls C++ function: unsigned int Qt3DRender::QAttribute::byteOffset() const.

C++ documentation:

Holds the byte offset.

Access functions:

uint byteOffset() const
void setByteOffset(uint byteOffset)

Notifier signal:

void byteOffsetChanged(uint byteOffset)

pub unsafe fn byte_stride(&self) -> c_uint[src]

Holds the byte stride.

Calls C++ function: unsigned int Qt3DRender::QAttribute::byteStride() const.

C++ documentation:

Holds the byte stride.

Access functions:

uint byteStride() const
void setByteStride(uint byteStride)

Notifier signal:

void byteStrideChanged(uint byteStride)

pub unsafe fn count(&self) -> c_uint[src]

Holds the count.

Calls C++ function: unsigned int Qt3DRender::QAttribute::count() const.

C++ documentation:

Holds the count.

Access functions:

uint count() const
void setCount(uint count)

Notifier signal:

void countChanged(uint count)

pub unsafe fn default_color_attribute_name() -> CppBox<QString>[src]

Access functions:

Calls C++ function: static QString Qt3DRender::QAttribute::defaultColorAttributeName().

C++ documentation:

Access functions:

pub unsafe fn default_joint_indices_attribute_name() -> 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.

Access functions:

Calls C++ function: static QString Qt3DRender::QAttribute::defaultJointIndicesAttributeName().

C++ documentation:

Access functions:

pub unsafe fn default_joint_weights_attribute_name() -> 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.

Access functions:

Calls C++ function: static QString Qt3DRender::QAttribute::defaultJointWeightsAttributeName().

C++ documentation:

Access functions:

pub unsafe fn default_normal_attribute_name() -> CppBox<QString>[src]

Access functions:

Calls C++ function: static QString Qt3DRender::QAttribute::defaultNormalAttributeName().

C++ documentation:

Access functions:

pub unsafe fn default_position_attribute_name() -> CppBox<QString>[src]

Access functions:

Calls C++ function: static QString Qt3DRender::QAttribute::defaultPositionAttributeName().

C++ documentation:

Access functions:

pub unsafe fn default_tangent_attribute_name() -> CppBox<QString>[src]

Access functions:

Calls C++ function: static QString Qt3DRender::QAttribute::defaultTangentAttributeName().

C++ documentation:

Access functions:

pub unsafe fn default_texture_coordinate1_attribute_name() -> 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.

Access functions:

Calls C++ function: static QString Qt3DRender::QAttribute::defaultTextureCoordinate1AttributeName().

C++ documentation:

Access functions:

pub unsafe fn default_texture_coordinate2_attribute_name() -> 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.

Access functions:

Calls C++ function: static QString Qt3DRender::QAttribute::defaultTextureCoordinate2AttributeName().

C++ documentation:

Access functions:

pub unsafe fn default_texture_coordinate_attribute_name() -> CppBox<QString>[src]

Access functions:

Calls C++ function: static QString Qt3DRender::QAttribute::defaultTextureCoordinateAttributeName().

C++ documentation:

Access functions:

pub unsafe fn divisor(&self) -> c_uint[src]

Holds the divisor.

Calls C++ function: unsigned int Qt3DRender::QAttribute::divisor() const.

C++ documentation:

Holds the divisor.

Access functions:

uint divisor() const
void setDivisor(uint divisor)

Notifier signal:

void divisorChanged(uint divisor)

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

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

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

Holds the name.

Calls C++ function: QString Qt3DRender::QAttribute::name() const.

C++ documentation:

Holds the name.

Access functions:

QString name() const
void setName(const QString &name)

Notifier signal:

void nameChanged(const QString &name)

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

Constructs a new QAttribute with parent.

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

C++ documentation:

Constructs a new QAttribute with parent.

pub unsafe fn from_q_buffer_vertex_base_type4_uint_q_node(
    buf: impl CastInto<Ptr<QBuffer>>,
    vertex_base_type: VertexBaseType,
    vertex_size: c_uint,
    count: c_uint,
    offset: c_uint,
    stride: c_uint,
    parent: impl CastInto<Ptr<QNode>>
) -> QBox<QAttribute>
[src]

Constructs a new QAttribute from buf of type, dataSize, count, offset, and stride with parent.

Calls C++ function: [constructor] void Qt3DRender::QAttribute::QAttribute(Qt3DRender::QBuffer* buf, Qt3DRender::QAttribute::VertexBaseType vertexBaseType, unsigned int vertexSize, unsigned int count, unsigned int offset = …, unsigned int stride = …, Qt3DCore::QNode* parent = …).

C++ documentation:

Constructs a new QAttribute from buf of type, dataSize, count, offset, and stride with parent.

pub unsafe fn from_q_buffer_q_string_vertex_base_type4_uint_q_node(
    buf: impl CastInto<Ptr<QBuffer>>,
    name: impl CastInto<Ref<QString>>,
    vertex_base_type: VertexBaseType,
    vertex_size: c_uint,
    count: c_uint,
    offset: c_uint,
    stride: c_uint,
    parent: impl CastInto<Ptr<QNode>>
) -> QBox<QAttribute>
[src]

Constructs a new QAttribute named name from buf of type, dataSize, count, offset, and stride with parent.

Calls C++ function: [constructor] void Qt3DRender::QAttribute::QAttribute(Qt3DRender::QBuffer* buf, const QString& name, Qt3DRender::QAttribute::VertexBaseType vertexBaseType, unsigned int vertexSize, unsigned int count, unsigned int offset = …, unsigned int stride = …, Qt3DCore::QNode* parent = …).

C++ documentation:

Constructs a new QAttribute named name from buf of type, dataSize, count, offset, and stride with parent.

pub unsafe fn new() -> QBox<QAttribute>[src]

Defines an attribute and how data should be read from a QBuffer.

Calls C++ function: [constructor] void Qt3DRender::QAttribute::QAttribute().

C++ documentation:

Defines an attribute and how data should be read from a QBuffer.

There are 3 types of attributes.

  • VertexAttribute: used to define data to be read on a per vertex basis
  • IndexAttribute: used to define vertex indices when indexed draw calls are to be used
  • DrawIndirectAttribute: used to specify the DrawIndirect buffer to be used when indirect draw calls are to be used

Note: when an attribute is of type DrawIndirectAttribute, only count, stride and offset are relevant.

When providing your own attributes, it may make sense to name your attribute using helpers such as QAttribute::defaultPositionAttributeName() as that will ensure your geometry will be compatible with picking and the various materials provided in the Qt3DExtras module.

pub unsafe fn from_q_buffer_vertex_base_type4_uint(
    buf: impl CastInto<Ptr<QBuffer>>,
    vertex_base_type: VertexBaseType,
    vertex_size: c_uint,
    count: c_uint,
    offset: c_uint,
    stride: c_uint
) -> QBox<QAttribute>
[src]

Constructs a new QAttribute from buf of type, dataSize, count, offset, and stride with parent.

Calls C++ function: [constructor] void Qt3DRender::QAttribute::QAttribute(Qt3DRender::QBuffer* buf, Qt3DRender::QAttribute::VertexBaseType vertexBaseType, unsigned int vertexSize, unsigned int count, unsigned int offset = …, unsigned int stride = …).

C++ documentation:

Constructs a new QAttribute from buf of type, dataSize, count, offset, and stride with parent.

pub unsafe fn from_q_buffer_vertex_base_type3_uint(
    buf: impl CastInto<Ptr<QBuffer>>,
    vertex_base_type: VertexBaseType,
    vertex_size: c_uint,
    count: c_uint,
    offset: c_uint
) -> QBox<QAttribute>
[src]

Constructs a new QAttribute from buf of type, dataSize, count, offset, and stride with parent.

Calls C++ function: [constructor] void Qt3DRender::QAttribute::QAttribute(Qt3DRender::QBuffer* buf, Qt3DRender::QAttribute::VertexBaseType vertexBaseType, unsigned int vertexSize, unsigned int count, unsigned int offset = …).

C++ documentation:

Constructs a new QAttribute from buf of type, dataSize, count, offset, and stride with parent.

pub unsafe fn from_q_buffer_vertex_base_type2_uint(
    buf: impl CastInto<Ptr<QBuffer>>,
    vertex_base_type: VertexBaseType,
    vertex_size: c_uint,
    count: c_uint
) -> QBox<QAttribute>
[src]

Constructs a new QAttribute from buf of type, dataSize, count, offset, and stride with parent.

Calls C++ function: [constructor] void Qt3DRender::QAttribute::QAttribute(Qt3DRender::QBuffer* buf, Qt3DRender::QAttribute::VertexBaseType vertexBaseType, unsigned int vertexSize, unsigned int count).

C++ documentation:

Constructs a new QAttribute from buf of type, dataSize, count, offset, and stride with parent.

pub unsafe fn from_q_buffer_q_string_vertex_base_type4_uint(
    buf: impl CastInto<Ptr<QBuffer>>,
    name: impl CastInto<Ref<QString>>,
    vertex_base_type: VertexBaseType,
    vertex_size: c_uint,
    count: c_uint,
    offset: c_uint,
    stride: c_uint
) -> QBox<QAttribute>
[src]

Constructs a new QAttribute named name from buf of type, dataSize, count, offset, and stride with parent.

Calls C++ function: [constructor] void Qt3DRender::QAttribute::QAttribute(Qt3DRender::QBuffer* buf, const QString& name, Qt3DRender::QAttribute::VertexBaseType vertexBaseType, unsigned int vertexSize, unsigned int count, unsigned int offset = …, unsigned int stride = …).

C++ documentation:

Constructs a new QAttribute named name from buf of type, dataSize, count, offset, and stride with parent.

pub unsafe fn from_q_buffer_q_string_vertex_base_type3_uint(
    buf: impl CastInto<Ptr<QBuffer>>,
    name: impl CastInto<Ref<QString>>,
    vertex_base_type: VertexBaseType,
    vertex_size: c_uint,
    count: c_uint,
    offset: c_uint
) -> QBox<QAttribute>
[src]

Constructs a new QAttribute named name from buf of type, dataSize, count, offset, and stride with parent.

Calls C++ function: [constructor] void Qt3DRender::QAttribute::QAttribute(Qt3DRender::QBuffer* buf, const QString& name, Qt3DRender::QAttribute::VertexBaseType vertexBaseType, unsigned int vertexSize, unsigned int count, unsigned int offset = …).

C++ documentation:

Constructs a new QAttribute named name from buf of type, dataSize, count, offset, and stride with parent.

pub unsafe fn from_q_buffer_q_string_vertex_base_type2_uint(
    buf: impl CastInto<Ptr<QBuffer>>,
    name: impl CastInto<Ref<QString>>,
    vertex_base_type: VertexBaseType,
    vertex_size: c_uint,
    count: c_uint
) -> QBox<QAttribute>
[src]

Constructs a new QAttribute named name from buf of type, dataSize, count, offset, and stride with parent.

Calls C++ function: [constructor] void Qt3DRender::QAttribute::QAttribute(Qt3DRender::QBuffer* buf, const QString& name, Qt3DRender::QAttribute::VertexBaseType vertexBaseType, unsigned int vertexSize, unsigned int count).

C++ documentation:

Constructs a new QAttribute named name from buf of type, dataSize, count, offset, and stride with parent.

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

Calls C++ function: virtual int Qt3DRender::QAttribute::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::QAttribute::qt_metacast(const char* arg1).

pub unsafe fn set_attribute_type(&self, attribute_type: AttributeType)[src]

Holds the attribute type.

Calls C++ function: [slot] void Qt3DRender::QAttribute::setAttributeType(Qt3DRender::QAttribute::AttributeType attributeType).

C++ documentation:

Holds the attribute type.

Access functions:

AttributeType attributeType() const
void setAttributeType(AttributeType attributeType)

Notifier signal:

void attributeTypeChanged(AttributeType attributeType)

pub unsafe fn set_buffer(&self, buffer: impl CastInto<Ptr<QBuffer>>)[src]

Holds the buffer.

Calls C++ function: [slot] void Qt3DRender::QAttribute::setBuffer(Qt3DRender::QBuffer* buffer).

C++ documentation:

Holds the buffer.

Access functions:

QBuffer *buffer() const
void setBuffer(QBuffer *buffer)

Notifier signal:

void bufferChanged(QBuffer *buffer)

pub unsafe fn set_byte_offset(&self, byte_offset: c_uint)[src]

Holds the byte offset.

Calls C++ function: [slot] void Qt3DRender::QAttribute::setByteOffset(unsigned int byteOffset).

C++ documentation:

Holds the byte offset.

Access functions:

uint byteOffset() const
void setByteOffset(uint byteOffset)

Notifier signal:

void byteOffsetChanged(uint byteOffset)

pub unsafe fn set_byte_stride(&self, byte_stride: c_uint)[src]

Holds the byte stride.

Calls C++ function: [slot] void Qt3DRender::QAttribute::setByteStride(unsigned int byteStride).

C++ documentation:

Holds the byte stride.

Access functions:

uint byteStride() const
void setByteStride(uint byteStride)

Notifier signal:

void byteStrideChanged(uint byteStride)

pub unsafe fn set_count(&self, count: c_uint)[src]

Holds the count.

Calls C++ function: [slot] void Qt3DRender::QAttribute::setCount(unsigned int count).

C++ documentation:

Holds the count.

Access functions:

uint count() const
void setCount(uint count)

Notifier signal:

void countChanged(uint count)

pub unsafe fn set_data_size(&self, size: c_uint)[src]

This function is deprecated.

Calls C++ function: [slot] void Qt3DRender::QAttribute::setDataSize(unsigned int size).

C++ documentation:

This function is deprecated.

pub unsafe fn set_data_type(&self, type_: VertexBaseType)[src]

This function is deprecated.

Calls C++ function: [slot] void Qt3DRender::QAttribute::setDataType(Qt3DRender::QAttribute::VertexBaseType type).

C++ documentation:

This function is deprecated.

pub unsafe fn set_divisor(&self, divisor: c_uint)[src]

Holds the divisor.

Calls C++ function: [slot] void Qt3DRender::QAttribute::setDivisor(unsigned int divisor).

C++ documentation:

Holds the divisor.

Access functions:

uint divisor() const
void setDivisor(uint divisor)

Notifier signal:

void divisorChanged(uint divisor)

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

Holds the name.

Calls C++ function: [slot] void Qt3DRender::QAttribute::setName(const QString& name).

C++ documentation:

Holds the name.

Access functions:

QString name() const
void setName(const QString &name)

Notifier signal:

void nameChanged(const QString &name)

pub unsafe fn set_vertex_base_type(&self, type_: VertexBaseType)[src]

Holds the data type.

Calls C++ function: [slot] void Qt3DRender::QAttribute::setVertexBaseType(Qt3DRender::QAttribute::VertexBaseType type).

C++ documentation:

Holds the data type.

Access functions:

VertexBaseType vertexBaseType() const
void setVertexBaseType(VertexBaseType type)

Notifier signal:

void vertexBaseTypeChanged(VertexBaseType vertexBaseType)

pub unsafe fn set_vertex_size(&self, size: c_uint)[src]

Holds the data size, it can only be 1 to 4 units (scalars and vectors), 9 units (3x3 matrices) or 16 units (4x4 matrices).

Calls C++ function: [slot] void Qt3DRender::QAttribute::setVertexSize(unsigned int size).

C++ documentation:

Holds the data size, it can only be 1 to 4 units (scalars and vectors), 9 units (3x3 matrices) or 16 units (4x4 matrices).

Access functions:

uint vertexSize() const
void setVertexSize(uint size)

Notifier signal:

void vertexSizeChanged(uint vertexSize)

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]

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

pub unsafe fn vertex_base_type(&self) -> VertexBaseType[src]

Holds the data type.

Calls C++ function: Qt3DRender::QAttribute::VertexBaseType Qt3DRender::QAttribute::vertexBaseType() const.

C++ documentation:

Holds the data type.

Access functions:

VertexBaseType vertexBaseType() const
void setVertexBaseType(VertexBaseType type)

Notifier signal:

void vertexBaseTypeChanged(VertexBaseType vertexBaseType)

pub unsafe fn vertex_size(&self) -> c_uint[src]

Holds the data size, it can only be 1 to 4 units (scalars and vectors), 9 units (3x3 matrices) or 16 units (4x4 matrices).

Calls C++ function: unsigned int Qt3DRender::QAttribute::vertexSize() const.

C++ documentation:

Holds the data size, it can only be 1 to 4 units (scalars and vectors), 9 units (3x3 matrices) or 16 units (4x4 matrices).

Access functions:

uint vertexSize() const
void setVertexSize(uint size)

Notifier signal:

void vertexSizeChanged(uint vertexSize)

Trait Implementations

impl CppDeletable for QAttribute[src]

unsafe fn delete(&self)[src]

Calls C++ function: virtual [destructor] void Qt3DRender::QAttribute::~QAttribute().

impl Deref for QAttribute[src]

type Target = QNode

The resulting type after dereferencing.

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

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QAttribute* ptr).

impl DynamicCast<QAttribute> for QNode[src]

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

Calls C++ function: Qt3DRender::QAttribute* dynamic_cast<Qt3DRender::QAttribute*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QAttribute> for QObject[src]

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

Calls C++ function: Qt3DRender::QAttribute* dynamic_cast<Qt3DRender::QAttribute*>(QObject* ptr).

impl StaticDowncast<QAttribute> for QNode[src]

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

Calls C++ function: Qt3DRender::QAttribute* static_cast<Qt3DRender::QAttribute*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QAttribute> for QObject[src]

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

Calls C++ function: Qt3DRender::QAttribute* static_cast<Qt3DRender::QAttribute*>(QObject* ptr).

impl StaticUpcast<QNode> for QAttribute[src]

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

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QAttribute* ptr).

impl StaticUpcast<QObject> for QAttribute[src]

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

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